VMGalleryApplication Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VMGalleryApplication
- com.
Implements
public final class VMGalleryApplication
implements JsonSerializable<VMGalleryApplication>
Specifies the required information to reference a compute gallery application version.
Constructor Summary
Constructor | Description |
---|---|
VMGalleryApplication() |
Creates an instance of VMGallery |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
configurationReference()
Get the configuration |
Boolean |
enableAutomaticUpgrade()
Get the enable |
static
VMGallery |
fromJson(JsonReader jsonReader)
Reads an instance of VMGallery |
Integer |
order()
Get the order property: Optional, Specifies the order in which the packages have to be installed. |
String |
packageReferenceId()
Get the package |
String |
tags()
Get the tags property: Optional, Specifies a passthrough value for more generic context. |
Json |
toJson(JsonWriter jsonWriter) |
Boolean |
treatFailureAsDeploymentFailure()
Get the treat |
void |
validate()
Validates the instance. |
VMGallery |
withConfigurationReference(String configurationReference)
Set the configuration |
VMGallery |
withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade)
Set the enable |
VMGallery |
withOrder(Integer order)
Set the order property: Optional, Specifies the order in which the packages have to be installed. |
VMGallery |
withPackageReferenceId(String packageReferenceId)
Set the package |
VMGallery |
withTags(String tags)
Set the tags property: Optional, Specifies a passthrough value for more generic context. |
VMGallery |
withTreatFailureAsDeploymentFailure(Boolean treatFailureAsDeploymentFailure)
Set the treat |
Methods inherited from java.lang.Object
Constructor Details
VMGalleryApplication
public VMGalleryApplication()
Creates an instance of VMGalleryApplication class.
Method Details
configurationReference
public String configurationReference()
Get the configurationReference property: Optional, Specifies the uri to an azure blob that will replace the default configuration for the package if provided.
Returns:
enableAutomaticUpgrade
public Boolean enableAutomaticUpgrade()
Get the enableAutomaticUpgrade property: If set to true, when a new Gallery Application version is available in PIR/SIG, it will be automatically updated for the VM/VMSS.
Returns:
fromJson
public static VMGalleryApplication fromJson(JsonReader jsonReader)
Reads an instance of VMGalleryApplication from the JsonReader.
Parameters:
Returns:
Throws:
order
public Integer order()
Get the order property: Optional, Specifies the order in which the packages have to be installed.
Returns:
packageReferenceId
public String packageReferenceId()
Get the packageReferenceId property: Specifies the GalleryApplicationVersion resource id on the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version}.
Returns:
tags
public String tags()
Get the tags property: Optional, Specifies a passthrough value for more generic context.
Returns:
toJson
treatFailureAsDeploymentFailure
public Boolean treatFailureAsDeploymentFailure()
Get the treatFailureAsDeploymentFailure property: Optional, If true, any failure for any operation in the VmApplication will fail the deployment.
Returns:
validate
public void validate()
Validates the instance.
withConfigurationReference
public VMGalleryApplication withConfigurationReference(String configurationReference)
Set the configurationReference property: Optional, Specifies the uri to an azure blob that will replace the default configuration for the package if provided.
Parameters:
Returns:
withEnableAutomaticUpgrade
public VMGalleryApplication withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade)
Set the enableAutomaticUpgrade property: If set to true, when a new Gallery Application version is available in PIR/SIG, it will be automatically updated for the VM/VMSS.
Parameters:
Returns:
withOrder
public VMGalleryApplication withOrder(Integer order)
Set the order property: Optional, Specifies the order in which the packages have to be installed.
Parameters:
Returns:
withPackageReferenceId
public VMGalleryApplication withPackageReferenceId(String packageReferenceId)
Set the packageReferenceId property: Specifies the GalleryApplicationVersion resource id on the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version}.
Parameters:
Returns:
withTags
public VMGalleryApplication withTags(String tags)
Set the tags property: Optional, Specifies a passthrough value for more generic context.
Parameters:
Returns:
withTreatFailureAsDeploymentFailure
public VMGalleryApplication withTreatFailureAsDeploymentFailure(Boolean treatFailureAsDeploymentFailure)
Set the treatFailureAsDeploymentFailure property: Optional, If true, any failure for any operation in the VmApplication will fail the deployment.
Parameters:
Returns:
Applies to
Azure SDK for Java