MachineExtensionInner Class

public final class MachineExtensionInner
extends Resource

Describes a Machine Extension.

Constructor Summary

Constructor Description
MachineExtensionInner()

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

String forceUpdateTag()

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

MachineExtensionPropertiesInstanceView instanceView()

Get the instanceView property: The machine extension instance view.

Object protectedSettings()

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

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.

SystemData systemData()

Get the systemData property: The system data.

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.

MachineExtensionInner withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion)

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

MachineExtensionInner withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade)

Set the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available.

MachineExtensionInner withForceUpdateTag(String forceUpdateTag)

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

MachineExtensionInner withInstanceView(MachineExtensionPropertiesInstanceView instanceView)

Set the instanceView property: The machine extension instance view.

MachineExtensionInner withLocation(String location)
MachineExtensionInner withProtectedSettings(Object protectedSettings)

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

MachineExtensionInner withPublisher(String publisher)

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

MachineExtensionInner withSettings(Object settings)

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

MachineExtensionInner withTags(Map<String,String> tags)
MachineExtensionInner withTypeHandlerVersion(String typeHandlerVersion)

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

MachineExtensionInner withTypePropertiesType(String type)

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

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

MachineExtensionInner

public MachineExtensionInner()

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

instanceView

public MachineExtensionPropertiesInstanceView instanceView()

Get the instanceView property: The machine extension instance view.

Returns:

the instanceView 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.

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.

systemData

public SystemData systemData()

Get the systemData property: The system data.

Returns:

the systemData 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.

withAutoUpgradeMinorVersion

public MachineExtensionInner 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 MachineExtensionInner object itself.

withEnableAutomaticUpgrade

public MachineExtensionInner withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade)

Set the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available.

Parameters:

enableAutomaticUpgrade - the enableAutomaticUpgrade value to set.

Returns:

the MachineExtensionInner object itself.

withForceUpdateTag

public MachineExtensionInner 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 MachineExtensionInner object itself.

withInstanceView

public MachineExtensionInner withInstanceView(MachineExtensionPropertiesInstanceView instanceView)

Set the instanceView property: The machine extension instance view.

Parameters:

instanceView - the instanceView value to set.

Returns:

the MachineExtensionInner object itself.

withLocation

public MachineExtensionInner withLocation(String location)

Overrides:

MachineExtensionInner.withLocation(String location)

Parameters:

location

withProtectedSettings

public MachineExtensionInner 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 MachineExtensionInner object itself.

withPublisher

public MachineExtensionInner withPublisher(String publisher)

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

Parameters:

publisher - the publisher value to set.

Returns:

the MachineExtensionInner object itself.

withSettings

public MachineExtensionInner withSettings(Object settings)

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

Parameters:

settings - the settings value to set.

Returns:

the MachineExtensionInner object itself.

withTags

public MachineExtensionInner withTags(Map<String,String> tags)

Overrides:

MachineExtensionInner.withTags(Map<String,String> tags)

Parameters:

tags

withTypeHandlerVersion

public MachineExtensionInner withTypeHandlerVersion(String typeHandlerVersion)

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

Parameters:

typeHandlerVersion - the typeHandlerVersion value to set.

Returns:

the MachineExtensionInner object itself.

withTypePropertiesType

public MachineExtensionInner 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 MachineExtensionInner object itself.

Applies to