ArmContainerRegistryModelFactory.ContainerRegistryImportImageContent Method

Definition

Initializes a new instance of ContainerRegistryImportImageContent.

public static Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryImportImageContent ContainerRegistryImportImageContent (Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryImportSource source = default, System.Collections.Generic.IEnumerable<string> targetTags = default, System.Collections.Generic.IEnumerable<string> untaggedTargetRepositories = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryImportMode? mode = default);
static member ContainerRegistryImportImageContent : Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryImportSource * seq<string> * seq<string> * Nullable<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryImportMode> -> Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryImportImageContent
Public Shared Function ContainerRegistryImportImageContent (Optional source As ContainerRegistryImportSource = Nothing, Optional targetTags As IEnumerable(Of String) = Nothing, Optional untaggedTargetRepositories As IEnumerable(Of String) = Nothing, Optional mode As Nullable(Of ContainerRegistryImportMode) = Nothing) As ContainerRegistryImportImageContent

Parameters

source
ContainerRegistryImportSource

The source of the image.

targetTags
IEnumerable<String>

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).

untaggedTargetRepositories
IEnumerable<String>

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

mode
Nullable<ContainerRegistryImportMode>

When Force, any existing target tags will be overwritten. When NoForce, any existing target tags will fail the operation before any copying begins.

Returns

A new ContainerRegistryImportImageContent instance for mocking.

Applies to