VirtualMachineScaleSetVMExtensionInner Class

public final class VirtualMachineScaleSetVMExtensionInner
extends SubResourceReadOnly

Describes a VMSS VM Extension.

Constructor Summary

Constructor Description
VirtualMachineScaleSetVMExtensionInner()

Creates an instance of VirtualMachineScaleSetVMExtensionInner class.

Method Summary

Modifier and Type Method and Description
Boolean autoUpgradeMinorVersion()

Get the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one is available at deployment time.

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.

String forceUpdateTag()

Get the forceUpdateTag property: How the extension handler should be forced to update even if the extension configuration has not changed.

static VirtualMachineScaleSetVMExtensionInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineScaleSetVMExtensionInner from the JsonReader.

String id()

Get the id property: Resource Id.

VirtualMachineExtensionInstanceView instanceView()

Get the instanceView property: The virtual machine extension instance view.

String location()

Get the location property: The location of the extension.

String name()

Get the name property: The name of the extension.

Object protectedSettings()

Get the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.

KeyVaultSecretReference protectedSettingsFromKeyVault()

Get the protectedSettingsFromKeyVault property: The extensions protected settings that are passed by reference, and consumed from key vault.

List<String> provisionAfterExtensions()

Get the provisionAfterExtensions property: Collection of extension names after which this extension needs to be provisioned.

String provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

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 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).

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

String typeHandlerVersion()

Get the typeHandlerVersion property: Specifies the version of the script handler.

String typePropertiesType()

Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".

void validate()

Validates the instance.

VirtualMachineScaleSetVMExtensionInner withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion)

Set the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one is available at deployment time.

VirtualMachineScaleSetVMExtensionInner 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.

VirtualMachineScaleSetVMExtensionInner withForceUpdateTag(String forceUpdateTag)

Set the forceUpdateTag property: How the extension handler should be forced to update even if the extension configuration has not changed.

VirtualMachineScaleSetVMExtensionInner withInstanceView(VirtualMachineExtensionInstanceView instanceView)

Set the instanceView property: The virtual machine extension instance view.

VirtualMachineScaleSetVMExtensionInner withLocation(String location)

Set the location property: The location of the extension.

VirtualMachineScaleSetVMExtensionInner withProtectedSettings(Object protectedSettings)

Set the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.

VirtualMachineScaleSetVMExtensionInner withProtectedSettingsFromKeyVault(KeyVaultSecretReference protectedSettingsFromKeyVault)

Set the protectedSettingsFromKeyVault property: The extensions protected settings that are passed by reference, and consumed from key vault.

VirtualMachineScaleSetVMExtensionInner withProvisionAfterExtensions(List<String> provisionAfterExtensions)

Set the provisionAfterExtensions property: Collection of extension names after which this extension needs to be provisioned.

VirtualMachineScaleSetVMExtensionInner withPublisher(String publisher)

Set the publisher property: The name of the extension handler publisher.

VirtualMachineScaleSetVMExtensionInner withSettings(Object settings)

Set the settings property: Json formatted public settings for the extension.

VirtualMachineScaleSetVMExtensionInner 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).

VirtualMachineScaleSetVMExtensionInner withTypeHandlerVersion(String typeHandlerVersion)

Set the typeHandlerVersion property: Specifies the version of the script handler.

VirtualMachineScaleSetVMExtensionInner withTypePropertiesType(String type)

Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".

Methods inherited from SubResourceReadOnly

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineScaleSetVMExtensionInner

public VirtualMachineScaleSetVMExtensionInner()

Creates an instance of VirtualMachineScaleSetVMExtensionInner 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:

the autoUpgradeMinorVersion value.

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:

the enableAutomaticUpgrade value.

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:

the forceUpdateTag value.

fromJson

public static VirtualMachineScaleSetVMExtensionInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineScaleSetVMExtensionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineScaleSetVMExtensionInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the VirtualMachineScaleSetVMExtensionInner.

id

public String id()

Get the id property: Resource Id.

Overrides:

VirtualMachineScaleSetVMExtensionInner.id()

Returns:

the id value.

instanceView

public VirtualMachineExtensionInstanceView instanceView()

Get the instanceView property: The virtual machine extension instance view.

Returns:

the instanceView value.

location

public String location()

Get the location property: The location of the extension.

Returns:

the location value.

name

public String name()

Get the name property: The name of the extension.

Returns:

the name value.

protectedSettings

public Object protectedSettings()

Get the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.

Returns:

the protectedSettings value.

protectedSettingsFromKeyVault

public KeyVaultSecretReference protectedSettingsFromKeyVault()

Get the protectedSettingsFromKeyVault property: The extensions protected settings that are passed by reference, and consumed from key vault.

Returns:

the protectedSettingsFromKeyVault value.

provisionAfterExtensions

public List provisionAfterExtensions()

Get the provisionAfterExtensions property: Collection of extension names after which this extension needs to be provisioned.

Returns:

the provisionAfterExtensions value.

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

Returns:

the provisioningState value.

publisher

public String publisher()

Get the publisher property: The name of the extension handler publisher.

Returns:

the publisher value.

settings

public Object settings()

Get the settings property: Json formatted public settings for the extension.

Returns:

the settings value.

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:

the suppressFailures value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualMachineScaleSetVMExtensionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Returns:

the type value.

typeHandlerVersion

public String typeHandlerVersion()

Get the typeHandlerVersion property: Specifies the version of the script handler.

Returns:

the typeHandlerVersion value.

typePropertiesType

public String typePropertiesType()

Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

VirtualMachineScaleSetVMExtensionInner.validate()

withAutoUpgradeMinorVersion

public VirtualMachineScaleSetVMExtensionInner 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:

autoUpgradeMinorVersion - the autoUpgradeMinorVersion value to set.

Returns:

the VirtualMachineScaleSetVMExtensionInner object itself.

withEnableAutomaticUpgrade

public VirtualMachineScaleSetVMExtensionInner 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:

enableAutomaticUpgrade - the enableAutomaticUpgrade value to set.

Returns:

the VirtualMachineScaleSetVMExtensionInner object itself.

withForceUpdateTag

public VirtualMachineScaleSetVMExtensionInner 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:

forceUpdateTag - the forceUpdateTag value to set.

Returns:

the VirtualMachineScaleSetVMExtensionInner object itself.

withInstanceView

public VirtualMachineScaleSetVMExtensionInner withInstanceView(VirtualMachineExtensionInstanceView instanceView)

Set the instanceView property: The virtual machine extension instance view.

Parameters:

instanceView - the instanceView value to set.

Returns:

the VirtualMachineScaleSetVMExtensionInner object itself.

withLocation

public VirtualMachineScaleSetVMExtensionInner withLocation(String location)

Set the location property: The location of the extension.

Parameters:

location - the location value to set.

Returns:

the VirtualMachineScaleSetVMExtensionInner object itself.

withProtectedSettings

public VirtualMachineScaleSetVMExtensionInner withProtectedSettings(Object protectedSettings)

Set the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.

Parameters:

protectedSettings - the protectedSettings value to set.

Returns:

the VirtualMachineScaleSetVMExtensionInner object itself.

withProtectedSettingsFromKeyVault

public VirtualMachineScaleSetVMExtensionInner withProtectedSettingsFromKeyVault(KeyVaultSecretReference protectedSettingsFromKeyVault)

Set the protectedSettingsFromKeyVault property: The extensions protected settings that are passed by reference, and consumed from key vault.

Parameters:

protectedSettingsFromKeyVault - the protectedSettingsFromKeyVault value to set.

Returns:

the VirtualMachineScaleSetVMExtensionInner object itself.

withProvisionAfterExtensions

public VirtualMachineScaleSetVMExtensionInner withProvisionAfterExtensions(List provisionAfterExtensions)

Set the provisionAfterExtensions property: Collection of extension names after which this extension needs to be provisioned.

Parameters:

provisionAfterExtensions - the provisionAfterExtensions value to set.

Returns:

the VirtualMachineScaleSetVMExtensionInner object itself.

withPublisher

public VirtualMachineScaleSetVMExtensionInner withPublisher(String publisher)

Set the publisher property: The name of the extension handler publisher.

Parameters:

publisher - the publisher value to set.

Returns:

the VirtualMachineScaleSetVMExtensionInner object itself.

withSettings

public VirtualMachineScaleSetVMExtensionInner withSettings(Object settings)

Set the settings property: Json formatted public settings for the extension.

Parameters:

settings - the settings value to set.

Returns:

the VirtualMachineScaleSetVMExtensionInner object itself.

withSuppressFailures

public VirtualMachineScaleSetVMExtensionInner 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:

suppressFailures - the suppressFailures value to set.

Returns:

the VirtualMachineScaleSetVMExtensionInner object itself.

withTypeHandlerVersion

public VirtualMachineScaleSetVMExtensionInner withTypeHandlerVersion(String typeHandlerVersion)

Set the typeHandlerVersion property: Specifies the version of the script handler.

Parameters:

typeHandlerVersion - the typeHandlerVersion value to set.

Returns:

the VirtualMachineScaleSetVMExtensionInner object itself.

withTypePropertiesType

public VirtualMachineScaleSetVMExtensionInner withTypePropertiesType(String type)

Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".

Parameters:

type - the type value to set.

Returns:

the VirtualMachineScaleSetVMExtensionInner object itself.

Applies to