Class ImportSource
java.lang.Object
com.microsoft.azure.management.containerregistry.ImportSource
The ImportSource model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet credentials used when importing from a registry uri.Get the address of the source registry (e.g.Get the resource identifier of the source Azure Container Registry.Get repository name of the source image.withCredentials
(ImportSourceCredentials credentials) Set credentials used when importing from a registry uri.withRegistryUri
(String registryUri) Set the address of the source registry (e.g.withResourceId
(String resourceId) Set the resource identifier of the source Azure Container Registry.withSourceImage
(String sourceImage) Set repository name of the source image.
-
Constructor Details
-
ImportSource
public ImportSource()
-
-
Method Details
-
resourceId
Get the resource identifier of the source Azure Container Registry.- Returns:
- the resourceId value
-
withResourceId
Set the resource identifier of the source Azure Container Registry.- Parameters:
resourceId
- the resourceId value to set- Returns:
- the ImportSource object itself.
-
registryUri
Get the address of the source registry (e.g. 'mcr.microsoft.com').- Returns:
- the registryUri value
-
withRegistryUri
Set the address of the source registry (e.g. 'mcr.microsoft.com').- Parameters:
registryUri
- the registryUri value to set- Returns:
- the ImportSource object itself.
-
credentials
Get credentials used when importing from a registry uri.- Returns:
- the credentials value
-
withCredentials
Set credentials used when importing from a registry uri.- Parameters:
credentials
- the credentials value to set- Returns:
- the ImportSource object itself.
-
sourceImage
Get repository name of the source image. Specify an image by repository ('hello-world'). This will use the 'latest' tag. Specify an image by tag ('hello-world:latest'). Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123').- Returns:
- the sourceImage value
-
withSourceImage
Set repository name of the source image. Specify an image by repository ('hello-world'). This will use the 'latest' tag. Specify an image by tag ('hello-world:latest'). Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123').- Parameters:
sourceImage
- the sourceImage value to set- Returns:
- the ImportSource object itself.
-