MachineExtensionProperties Class
- java.
lang. Object - com.
azure. resourcemanager. hybridcompute. models. MachineExtensionProperties
- com.
public final class MachineExtensionProperties
Describes the properties of a Machine Extension.
Constructor Summary
Constructor | Description |
---|---|
MachineExtensionProperties() |
Creates an instance of Machine |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
autoUpgradeMinorVersion()
Get the auto |
Boolean |
enableAutomaticUpgrade()
Get the enable |
String |
forceUpdateTag()
Get the force |
Machine |
instanceView()
Get the instance |
Map<String,Object> |
protectedSettings()
Get the protected |
String |
provisioningState()
Get the provisioning |
String |
publisher()
Get the publisher property: The name of the extension handler publisher. |
Map<String,Object> |
settings()
Get the settings property: Json formatted public settings for the extension. |
String |
type()
Get the type property: Specifies the type of the extension; an example is "Custom |
String |
typeHandlerVersion()
Get the type |
void |
validate()
Validates the instance. |
Machine |
withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion)
Set the auto |
Machine |
withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade)
Set the enable |
Machine |
withForceUpdateTag(String forceUpdateTag)
Set the force |
Machine |
withInstanceView(MachineExtensionInstanceView instanceView)
Set the instance |
Machine |
withProtectedSettings(Map<String,Object> protectedSettings)
Set the protected |
Machine |
withPublisher(String publisher)
Set the publisher property: The name of the extension handler publisher. |
Machine |
withSettings(Map<String,Object> settings)
Set the settings property: Json formatted public settings for the extension. |
Machine |
withType(String type)
Set the type property: Specifies the type of the extension; an example is "Custom |
Machine |
withTypeHandlerVersion(String typeHandlerVersion)
Set the type |
Methods inherited from java.lang.Object
Constructor Details
MachineExtensionProperties
public MachineExtensionProperties()
Creates an instance of MachineExtensionProperties 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 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:
instanceView
public MachineExtensionInstanceView instanceView()
Get the instanceView property: The machine extension instance view.
Returns:
protectedSettings
public Map
Get the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
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 Map
Get the settings property: Json formatted public settings for the extension.
Returns:
type
public String type()
Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
Returns:
typeHandlerVersion
public String typeHandlerVersion()
Get the typeHandlerVersion property: Specifies the version of the script handler.
Returns:
validate
public void validate()
Validates the instance.
withAutoUpgradeMinorVersion
public MachineExtensionProperties 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 MachineExtensionProperties 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:
Returns:
withForceUpdateTag
public MachineExtensionProperties 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 MachineExtensionProperties withInstanceView(MachineExtensionInstanceView instanceView)
Set the instanceView property: The machine extension instance view.
Parameters:
Returns:
withProtectedSettings
public MachineExtensionProperties withProtectedSettings(Map
Set the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
Parameters:
Returns:
withPublisher
public MachineExtensionProperties withPublisher(String publisher)
Set the publisher property: The name of the extension handler publisher.
Parameters:
Returns:
withSettings
public MachineExtensionProperties withSettings(Map
Set the settings property: Json formatted public settings for the extension.
Parameters:
Returns:
withType
public MachineExtensionProperties withType(String type)
Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
Parameters:
Returns:
withTypeHandlerVersion
public MachineExtensionProperties withTypeHandlerVersion(String typeHandlerVersion)
Set the typeHandlerVersion property: Specifies the version of the script handler.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for