VMExtension Class
- java.
lang. Object - com.
azure. compute. batch. models. VMExtension
- com.
Implements
public final class VMExtension
implements JsonSerializable<VMExtension>
The configuration for virtual machine extensions.
Constructor Summary
| Constructor | Description |
|---|---|
| VMExtension(String name, String publisher, String type) |
Creates an instance of VMExtension class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static VMExtension |
fromJson(JsonReader jsonReader)
Reads an instance of VMExtension from the Json |
| String |
getName()
Get the name property: The name of the virtual machine extension. |
| Map<String,String> |
getProtectedSettings()
Get the protected |
| List<String> |
getProvisionAfterExtensions()
Get the provision |
| String |
getPublisher()
Get the publisher property: The name of the extension handler publisher. |
| Map<String,String> |
getSettings()
Get the settings property: JSON formatted public settings for the extension. |
| String |
getType()
Get the type property: The type of the extension. |
| String |
getTypeHandlerVersion()
Get the type |
| Boolean |
isAutoUpgradeMinorVersion()
Get the auto |
| Boolean |
isEnableAutomaticUpgrade()
Get the enable |
| VMExtension |
setAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion)
Set the auto |
| VMExtension |
setEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade)
Set the enable |
| VMExtension |
setProtectedSettings(Map<String,String> protectedSettings)
Set the protected |
| VMExtension |
setProvisionAfterExtensions(List<String> provisionAfterExtensions)
Set the provision |
| VMExtension |
setSettings(Map<String,String> settings)
Set the settings property: JSON formatted public settings for the extension. |
| VMExtension |
setTypeHandlerVersion(String typeHandlerVersion)
Set the type |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
VMExtension
public VMExtension(String name, String publisher, String type)
Creates an instance of VMExtension class.
Parameters:
Method Details
fromJson
public static VMExtension fromJson(JsonReader jsonReader)
Reads an instance of VMExtension from the JsonReader.
Parameters:
Returns:
Throws:
getName
public String getName()
Get the name property: The name of the virtual machine extension.
Returns:
getProtectedSettings
public Map<String,String> getProtectedSettings()
Get the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
Returns:
getProvisionAfterExtensions
public List<String> getProvisionAfterExtensions()
Get the provisionAfterExtensions property: The collection of extension names. Collection of extension names after which this extension needs to be provisioned.
Returns:
getPublisher
public String getPublisher()
Get the publisher property: The name of the extension handler publisher.
Returns:
getSettings
public Map<String,String> getSettings()
Get the settings property: JSON formatted public settings for the extension.
Returns:
getType
public String getType()
Get the type property: The type of the extension.
Returns:
getTypeHandlerVersion
public String getTypeHandlerVersion()
Get the typeHandlerVersion property: The version of script handler.
Returns:
isAutoUpgradeMinorVersion
public Boolean isAutoUpgradeMinorVersion()
Get the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
Returns:
isEnableAutomaticUpgrade
public Boolean isEnableAutomaticUpgrade()
Get the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
Returns:
setAutoUpgradeMinorVersion
public VMExtension setAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion)
Set the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
Parameters:
Returns:
setEnableAutomaticUpgrade
public VMExtension setEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade)
Set the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
Parameters:
Returns:
setProtectedSettings
public VMExtension setProtectedSettings(Map<String,String> protectedSettings)
Set the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
Parameters:
Returns:
setProvisionAfterExtensions
public VMExtension setProvisionAfterExtensions(List<String> provisionAfterExtensions)
Set the provisionAfterExtensions property: The collection of extension names. Collection of extension names after which this extension needs to be provisioned.
Parameters:
Returns:
setSettings
public VMExtension setSettings(Map<String,String> settings)
Set the settings property: JSON formatted public settings for the extension.
Parameters:
Returns:
setTypeHandlerVersion
public VMExtension setTypeHandlerVersion(String typeHandlerVersion)
Set the typeHandlerVersion property: The version of script handler.
Parameters:
Returns: