ImageReference Class
- java.
lang. Object - com.
microsoft. azure. management. batch. ImageReference
- com.
public class ImageReference
A reference to an Azure Virtual Machines Marketplace image or the Azure Image resource of a custom Virtual Machine. To get the list of all imageReferences verified by Azure Batch, see the 'List supported node agent SKUs' operation.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
id()
Get this property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. |
String |
offer()
Get for example, UbuntuServer or WindowsServer. |
String |
publisher()
Get for example, Canonical or MicrosoftWindowsServer. |
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. If omitted, the default is 'latest'. |
Image |
withId(String id)
Set this property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. |
Image |
withOffer(String offer)
Set for example, UbuntuServer or WindowsServer. |
Image |
withPublisher(String publisher)
Set for example, Canonical or MicrosoftWindowsServer. |
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. If omitted, the default is 'latest'. |
Method Details
id
public String id()
Get this property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.
Returns:
offer
public String offer()
Get for example, UbuntuServer or WindowsServer.
Returns:
publisher
public String publisher()
Get for example, Canonical or MicrosoftWindowsServer.
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:
withId
public ImageReference withId(String id)
Set this property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.
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:
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: