VirtualMachineExtensionInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. compute. models. ResourceWithOptionalLocation - com.
azure. resourcemanager. compute. fluent. models. VirtualMachineExtensionInner
- com.
- com.
- com.
- com.
public final class VirtualMachineExtensionInner
extends ResourceWithOptionalLocation
Describes a Virtual Machine Extension.
Constructor Summary
Constructor | Description |
---|---|
VirtualMachineExtensionInner() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
autoUpgradeMinorVersion()
Get the auto |
Boolean |
enableAutomaticUpgrade()
Get the enable |
String |
forceUpdateTag()
Get the force |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Virtual |
instanceView()
Get the instance |
String |
name()
Get the name property: The name of the resource. |
Object |
protectedSettings()
Get the protected |
Key |
protectedSettingsFromKeyVault()
Get the protected |
List<String> |
provisionAfterExtensions()
Get the provision |
String |
provisioningState()
Get the provisioning |
String |
publisher()
Get the publisher property: The name of the extension handler publisher. |
Object |
settings()
Get the settings property: Json formatted public settings for the extension. |
Boolean |
suppressFailures()
Get the suppress |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
String |
typeHandlerVersion()
Get the type |
String |
typePropertiesType()
Get the type property: Specifies the type of the extension; an example is "Custom |
void |
validate()
Validates the instance. |
Virtual |
withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion)
Set the auto |
Virtual |
withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade)
Set the enable |
Virtual |
withForceUpdateTag(String forceUpdateTag)
Set the force |
Virtual |
withInstanceView(VirtualMachineExtensionInstanceView instanceView)
Set the instance |
Virtual |
withLocation(String location) |
Virtual |
withProtectedSettings(Object protectedSettings)
Set the protected |
Virtual |
withProtectedSettingsFromKeyVault(KeyVaultSecretReference protectedSettingsFromKeyVault)
Set the protected |
Virtual |
withProvisionAfterExtensions(List<String> provisionAfterExtensions)
Set the provision |
Virtual |
withPublisher(String publisher)
Set the publisher property: The name of the extension handler publisher. |
Virtual |
withSettings(Object settings)
Set the settings property: Json formatted public settings for the extension. |
Virtual |
withSuppressFailures(Boolean suppressFailures)
Set the suppress |
Virtual |
withTags(Map<String,String> tags) |
Virtual |
withTypeHandlerVersion(String typeHandlerVersion)
Set the type |
Virtual |
withTypePropertiesType(String type)
Set the type property: Specifies the type of the extension; an example is "Custom |
Methods inherited from Resource
Methods inherited from ResourceWithOptionalLocation
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineExtensionInner
public VirtualMachineExtensionInner()
Creates an instance of VirtualMachineExtensionInner class.
Method Details
autoUpgradeMinorVersion
public Boolean autoUpgradeMinorVersion()
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:
enableAutomaticUpgrade
public Boolean enableAutomaticUpgrade()
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:
forceUpdateTag
public String forceUpdateTag()
Get the forceUpdateTag property: How the extension handler should be forced to update even if the extension configuration has not changed.
Returns:
fromJson
public static VirtualMachineExtensionInner fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineExtensionInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
VirtualMachineExtensionInner.id()Returns:
instanceView
public VirtualMachineExtensionInstanceView instanceView()
Get the instanceView property: The virtual machine extension instance view.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
VirtualMachineExtensionInner.name()Returns:
protectedSettings
public Object protectedSettings()
Get the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
Returns:
protectedSettingsFromKeyVault
public KeyVaultSecretReference protectedSettingsFromKeyVault()
Get the protectedSettingsFromKeyVault property: The extensions protected settings that are passed by reference, and consumed from key vault.
Returns:
provisionAfterExtensions
public List
Get the provisionAfterExtensions property: Collection of extension names after which this extension needs to be provisioned.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning state, which only appears in the response.
Returns:
publisher
public String publisher()
Get the publisher property: The name of the extension handler publisher.
Returns:
settings
public Object settings()
Get the settings property: Json formatted public settings for the extension.
Returns:
suppressFailures
public Boolean suppressFailures()
Get the suppressFailures property: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
VirtualMachineExtensionInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
VirtualMachineExtensionInner.type()Returns:
typeHandlerVersion
public String typeHandlerVersion()
Get the typeHandlerVersion property: Specifies the version of the script handler.
Returns:
typePropertiesType
public String typePropertiesType()
Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
Returns:
validate
public void validate()
Validates the instance.
Overrides:
VirtualMachineExtensionInner.validate()withAutoUpgradeMinorVersion
public VirtualMachineExtensionInner withAutoUpgradeMinorVersion(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:
withEnableAutomaticUpgrade
public VirtualMachineExtensionInner withEnableAutomaticUpgrade(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:
withForceUpdateTag
public VirtualMachineExtensionInner withForceUpdateTag(String forceUpdateTag)
Set the forceUpdateTag property: How the extension handler should be forced to update even if the extension configuration has not changed.
Parameters:
Returns:
withInstanceView
public VirtualMachineExtensionInner withInstanceView(VirtualMachineExtensionInstanceView instanceView)
Set the instanceView property: The virtual machine extension instance view.
Parameters:
Returns:
withLocation
public VirtualMachineExtensionInner withLocation(String location)
Overrides:
VirtualMachineExtensionInner.withLocation(String location)Parameters:
withProtectedSettings
public VirtualMachineExtensionInner withProtectedSettings(Object protectedSettings)
Set the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
Parameters:
Returns:
withProtectedSettingsFromKeyVault
public VirtualMachineExtensionInner withProtectedSettingsFromKeyVault(KeyVaultSecretReference protectedSettingsFromKeyVault)
Set the protectedSettingsFromKeyVault property: The extensions protected settings that are passed by reference, and consumed from key vault.
Parameters:
Returns:
withProvisionAfterExtensions
public VirtualMachineExtensionInner withProvisionAfterExtensions(List
Set the provisionAfterExtensions property: Collection of extension names after which this extension needs to be provisioned.
Parameters:
Returns:
withPublisher
public VirtualMachineExtensionInner withPublisher(String publisher)
Set the publisher property: The name of the extension handler publisher.
Parameters:
Returns:
withSettings
public VirtualMachineExtensionInner withSettings(Object settings)
Set the settings property: Json formatted public settings for the extension.
Parameters:
Returns:
withSuppressFailures
public VirtualMachineExtensionInner withSuppressFailures(Boolean suppressFailures)
Set the suppressFailures property: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false.
Parameters:
Returns:
withTags
public VirtualMachineExtensionInner withTags(Map
Overrides:
VirtualMachineExtensionInner.withTags(Map<String,String> tags)Parameters:
withTypeHandlerVersion
public VirtualMachineExtensionInner withTypeHandlerVersion(String typeHandlerVersion)
Set the typeHandlerVersion property: Specifies the version of the script handler.
Parameters:
Returns:
withTypePropertiesType
public VirtualMachineExtensionInner withTypePropertiesType(String type)
Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
Parameters:
Returns:
Applies to
Azure SDK for Java