ImportSource Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. ImportSource
- com.
Implements
public final class ImportSource
implements JsonSerializable<ImportSource>
The ImportSource model.
Constructor Summary
| Constructor | Description |
|---|---|
| ImportSource() |
Creates an instance of Import |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Import |
credentials()
Get the credentials property: Credentials used when importing from a registry uri. |
|
static
Import |
fromJson(JsonReader jsonReader)
Reads an instance of Import |
| String |
registryUri()
Get the registry |
| String |
resourceId()
Get the resource |
| String |
sourceImage()
Get the source |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Import |
withCredentials(ImportSourceCredentials credentials)
Set the credentials property: Credentials used when importing from a registry uri. |
|
Import |
withRegistryUri(String registryUri)
Set the registry |
|
Import |
withResourceId(String resourceId)
Set the resource |
|
Import |
withSourceImage(String sourceImage)
Set the source |
Methods inherited from java.lang.Object
Constructor Details
ImportSource
public ImportSource()
Creates an instance of ImportSource class.
Method Details
credentials
public ImportSourceCredentials credentials()
Get the credentials property: Credentials used when importing from a registry uri.
Returns:
fromJson
public static ImportSource fromJson(JsonReader jsonReader)
Reads an instance of ImportSource from the JsonReader.
Parameters:
Returns:
Throws:
registryUri
public String registryUri()
Get the registryUri property: The address of the source registry (e.g. 'mcr.microsoft.com').
Returns:
resourceId
public String resourceId()
Get the resourceId property: The resource identifier of the source Azure Container Registry.
Returns:
sourceImage
public String sourceImage()
Get the sourceImage property: 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:
toJson
validate
public void validate()
Validates the instance.
withCredentials
public ImportSource withCredentials(ImportSourceCredentials credentials)
Set the credentials property: Credentials used when importing from a registry uri.
Parameters:
Returns:
withRegistryUri
public ImportSource withRegistryUri(String registryUri)
Set the registryUri property: The address of the source registry (e.g. 'mcr.microsoft.com').
Parameters:
Returns:
withResourceId
public ImportSource withResourceId(String resourceId)
Set the resourceId property: The resource identifier of the source Azure Container Registry.
Parameters:
Returns:
withSourceImage
public ImportSource withSourceImage(String sourceImage)
Set the sourceImage property: 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:
Returns: