Compartir a través de


ImportImageParameters Class

ImportImageParameters.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.containerregistry._serialization.Model
ImportImageParameters

Constructor

ImportImageParameters(*, source: _models.ImportSource, target_tags: List[str] | None = None, untagged_target_repositories: List[str] | None = None, mode: str | _models.ImportMode = 'NoForce', **kwargs: Any)

Keyword-Only Parameters

Name Description
source
<xref:azure.mgmt.containerregistry.v2023_06_06_preview.models.ImportSource>

The source of the image. Required.

target_tags

List of strings of the form repo[:tag]. When tag is omitted the source will be used (or 'latest' if source tag is also omitted).

untagged_target_repositories

List of strings of repository names to do a manifest only copy. No tag will be created.

mode
str or <xref:azure.mgmt.containerregistry.v2023_06_06_preview.models.ImportMode>

When Force, any existing target tags will be overwritten. When NoForce, any existing target tags will fail the operation before any copying begins. Known values are: "NoForce" and "Force".

Default value: NoForce

Variables

Name Description
source
<xref:azure.mgmt.containerregistry.v2023_06_06_preview.models.ImportSource>

The source of the image. Required.

target_tags

List of strings of the form repo[:tag]. When tag is omitted the source will be used (or 'latest' if source tag is also omitted).

untagged_target_repositories

List of strings of repository names to do a manifest only copy. No tag will be created.

mode
str or <xref:azure.mgmt.containerregistry.v2023_06_06_preview.models.ImportMode>

When Force, any existing target tags will be overwritten. When NoForce, any existing target tags will fail the operation before any copying begins. Known values are: "NoForce" and "Force".