ImageReference Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. ImageReference
- com.
public class ImageReference
A reference to an Azure Virtual Machines Marketplace Image or a Azure Compute Gallery Image. To get the list of all Azure Marketplace Image references verified by Azure Batch, see the 'List Supported Images' operation.
Constructor Summary
Constructor | Description | |
---|---|---|
ImageReference() |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
communityGalleryImageId()
Get this property is mutually exclusive with other properties and can be fetched from community gallery image GET call. |
String |
exactVersion()
Get the specific version of the platform image or marketplace image used to create the node. |
String |
offer()
Get for example, Ubuntu |
String |
publisher()
Get for example, Canonical or Microsoft |
String |
sharedGalleryImageId()
Get this property is mutually exclusive with other properties and can be fetched from shared gallery image GET call. |
String |
sku()
Get for example, 18.04-LTS or 2019-Datacenter. |
String |
version()
Get a value of 'latest' can be specified to select the latest version of an Image. |
String |
virtualMachineImageId()
Get this property is mutually exclusive with other Image |
Image |
withCommunityGalleryImageId(String communityGalleryImageId)
Set this property is mutually exclusive with other properties and can be fetched from community gallery image GET call. |
Image |
withOffer(String offer)
Set for example, Ubuntu |
Image |
withPublisher(String publisher)
Set for example, Canonical or Microsoft |
Image |
withSharedGalleryImageId(String sharedGalleryImageId)
Set this property is mutually exclusive with other properties and can be fetched from shared gallery image GET call. |
Image |
withSku(String sku)
Set for example, 18.04-LTS or 2019-Datacenter. |
Image |
withVersion(String version)
Set a value of 'latest' can be specified to select the latest version of an Image. |
Image |
withVirtualMachineImageId(String virtualMachineImageId)
Set this property is mutually exclusive with other Image |
Methods inherited from java.lang.Object
Constructor Details
ImageReference
public ImageReference()
Method Details
communityGalleryImageId
public String communityGalleryImageId()
Get this property is mutually exclusive with other properties and can be fetched from community gallery image GET call.
Returns:
exactVersion
public String exactVersion()
Get the specific version of the platform image or marketplace image used to create the node. This read-only field differs from 'version' only if the value specified for 'version' when the pool was created was 'latest'.
Returns:
offer
public String offer()
Get for example, UbuntuServer or WindowsServer.
Returns:
publisher
public String publisher()
Get for example, Canonical or MicrosoftWindowsServer.
Returns:
sharedGalleryImageId
public String sharedGalleryImageId()
Get this property is mutually exclusive with other properties and can be fetched from shared gallery image GET call.
Returns:
sku
public String sku()
Get for example, 18.04-LTS or 2019-Datacenter.
Returns:
version
public String version()
Get a value of 'latest' can be specified to select the latest version of an Image. If omitted, the default is 'latest'.
Returns:
virtualMachineImageId
public String virtualMachineImageId()
Get this property is mutually exclusive with other ImageReference properties. The Azure Compute Gallery Image must have replicas in the same region and must be in the same subscription as the Azure Batch account. If the image version is not specified in the imageId, the latest version will be used. For information about the firewall settings for the Batch Compute Node agent to communicate with the Batch service see https://docs.microsoft.com/azure/batch/batch-api-basics\#virtual-network-vnet-and-firewall-configuration.
Returns:
withCommunityGalleryImageId
public ImageReference withCommunityGalleryImageId(String communityGalleryImageId)
Set this property is mutually exclusive with other properties and can be fetched from community gallery image GET call.
Parameters:
Returns:
withOffer
public ImageReference withOffer(String offer)
Set for example, UbuntuServer or WindowsServer.
Parameters:
Returns:
withPublisher
public ImageReference withPublisher(String publisher)
Set for example, Canonical or MicrosoftWindowsServer.
Parameters:
Returns:
withSharedGalleryImageId
public ImageReference withSharedGalleryImageId(String sharedGalleryImageId)
Set this property is mutually exclusive with other properties and can be fetched from shared gallery image GET call.
Parameters:
Returns:
withSku
public ImageReference withSku(String sku)
Set for example, 18.04-LTS or 2019-Datacenter.
Parameters:
Returns:
withVersion
public ImageReference withVersion(String version)
Set a value of 'latest' can be specified to select the latest version of an Image. If omitted, the default is 'latest'.
Parameters:
Returns:
withVirtualMachineImageId
public ImageReference withVirtualMachineImageId(String virtualMachineImageId)
Set this property is mutually exclusive with other ImageReference properties. The Azure Compute Gallery Image must have replicas in the same region and must be in the same subscription as the Azure Batch account. If the image version is not specified in the imageId, the latest version will be used. For information about the firewall settings for the Batch Compute Node agent to communicate with the Batch service see https://docs.microsoft.com/azure/batch/batch-api-basics\#virtual-network-vnet-and-firewall-configuration.
Parameters:
Returns:
Applies to
Azure SDK for Java