BatchVmImageReference Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchVmImageReference
- com.
Implements
public final class BatchVmImageReference
implements JsonSerializable<BatchVmImageReference>
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 |
|---|---|
| BatchVmImageReference() |
Creates an instance of Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
| String |
getCommunityGalleryImageId()
Get the community |
| String |
getExactVersion()
Get the exact |
| String |
getOffer()
Get the offer property: The offer type of the Azure Virtual Machines Marketplace Image. |
| String |
getPublisher()
Get the publisher property: The publisher of the Azure Virtual Machines Marketplace Image. |
| String |
getSharedGalleryImageId()
Get the shared |
| String |
getSku()
Get the sku property: The SKU of the Azure Virtual Machines Marketplace Image. |
| String |
getVersion()
Get the version property: The version of the Azure Virtual Machines Marketplace Image. |
| String |
getVirtualMachineImageId()
Get the virtual |
|
Batch |
setCommunityGalleryImageId(String communityGalleryImageId)
Set the community |
|
Batch |
setOffer(String offer)
Set the offer property: The offer type of the Azure Virtual Machines Marketplace Image. |
|
Batch |
setPublisher(String publisher)
Set the publisher property: The publisher of the Azure Virtual Machines Marketplace Image. |
|
Batch |
setSharedGalleryImageId(String sharedGalleryImageId)
Set the shared |
|
Batch |
setSku(String sku)
Set the sku property: The SKU of the Azure Virtual Machines Marketplace Image. |
|
Batch |
setVersion(String version)
Set the version property: The version of the Azure Virtual Machines Marketplace Image. |
|
Batch |
setVirtualMachineImageId(String virtualMachineImageId)
Set the virtual |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
BatchVmImageReference
public BatchVmImageReference()
Creates an instance of BatchVmImageReference class.
Method Details
fromJson
public static BatchVmImageReference fromJson(JsonReader jsonReader)
Reads an instance of BatchVmImageReference from the JsonReader.
Parameters:
Returns:
Throws:
getCommunityGalleryImageId
public String getCommunityGalleryImageId()
Get the communityGalleryImageId property: The community gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched from community gallery image GET call.
Returns:
getExactVersion
public String getExactVersion()
Get the exactVersion property: 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:
getOffer
public String getOffer()
Get the offer property: The offer type of the Azure Virtual Machines Marketplace Image. For example, UbuntuServer or WindowsServer.
Returns:
getPublisher
public String getPublisher()
Get the publisher property: The publisher of the Azure Virtual Machines Marketplace Image. For example, Canonical or MicrosoftWindowsServer.
Returns:
getSharedGalleryImageId
public String getSharedGalleryImageId()
Get the sharedGalleryImageId property: The shared gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched from shared gallery image GET call.
Returns:
getSku
public String getSku()
Get the sku property: The SKU of the Azure Virtual Machines Marketplace Image. For example, 18.04-LTS or 2019-Datacenter.
Returns:
getVersion
public String getVersion()
Get the version property: The version of the Azure Virtual Machines Marketplace Image. A value of 'latest' can be specified to select the latest version of an Image. If omitted, the default is 'latest'.
Returns:
getVirtualMachineImageId
public String getVirtualMachineImageId()
Get the virtualMachineImageId property: The ARM resource identifier of the Azure Compute Gallery Image. Compute Nodes in the Pool will be created using this Image Id. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{VersionId} or /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName} for always defaulting to the latest image version. 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://learn.microsoft.com/azure/batch/nodes-and-pools\#virtual-network-vnet-and-firewall-configuration.
Returns:
setCommunityGalleryImageId
public BatchVmImageReference setCommunityGalleryImageId(String communityGalleryImageId)
Set the communityGalleryImageId property: The community gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched from community gallery image GET call.
Parameters:
Returns:
setOffer
public BatchVmImageReference setOffer(String offer)
Set the offer property: The offer type of the Azure Virtual Machines Marketplace Image. For example, UbuntuServer or WindowsServer.
Parameters:
Returns:
setPublisher
public BatchVmImageReference setPublisher(String publisher)
Set the publisher property: The publisher of the Azure Virtual Machines Marketplace Image. For example, Canonical or MicrosoftWindowsServer.
Parameters:
Returns:
setSharedGalleryImageId
public BatchVmImageReference setSharedGalleryImageId(String sharedGalleryImageId)
Set the sharedGalleryImageId property: The shared gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched from shared gallery image GET call.
Parameters:
Returns:
setSku
public BatchVmImageReference setSku(String sku)
Set the sku property: The SKU of the Azure Virtual Machines Marketplace Image. For example, 18.04-LTS or 2019-Datacenter.
Parameters:
Returns:
setVersion
public BatchVmImageReference setVersion(String version)
Set the version property: The version of the Azure Virtual Machines Marketplace Image. A value of 'latest' can be specified to select the latest version of an Image. If omitted, the default is 'latest'.
Parameters:
Returns:
setVirtualMachineImageId
public BatchVmImageReference setVirtualMachineImageId(String virtualMachineImageId)
Set the virtualMachineImageId property: The ARM resource identifier of the Azure Compute Gallery Image. Compute Nodes in the Pool will be created using this Image Id. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{VersionId} or /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName} for always defaulting to the latest image version. 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://learn.microsoft.com/azure/batch/nodes-and-pools\#virtual-network-vnet-and-firewall-configuration.
Parameters:
Returns: