VMExtension Class
- java.
lang. Object - com.
microsoft. azure. management. batch. VMExtension
- com.
public class VMExtension
The configuration for virtual machine extensions.
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
autoUpgradeMinorVersion()
Get 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. |
String |
name()
Get the name value. |
Object |
protectedSettings()
Get the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. |
List<String> |
provisionAfterExtensions()
Get collection of extension names after which this extension needs to be provisioned. |
String |
publisher()
Get the publisher value. |
Object |
settings()
Get the settings value. |
String |
type()
Get the type value. |
String |
typeHandlerVersion()
Get the typeHandlerVersion value. |
VMExtension |
withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion)
Set 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. |
VMExtension |
withName(String name)
Set the name value. |
VMExtension |
withProtectedSettings(Object protectedSettings)
Set the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. |
VMExtension |
withProvisionAfterExtensions(List<String> provisionAfterExtensions)
Set collection of extension names after which this extension needs to be provisioned. |
VMExtension |
withPublisher(String publisher)
Set the publisher value. |
VMExtension |
withSettings(Object settings)
Set the settings value. |
VMExtension |
withType(String type)
Set the type value. |
VMExtension |
withTypeHandlerVersion(String typeHandlerVersion)
Set the typeHandlerVersion value. |
Method Details
autoUpgradeMinorVersion
public Boolean autoUpgradeMinorVersion()
Get 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:
name
public String name()
Get the name value.
Returns:
protectedSettings
public Object protectedSettings()
Get the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
Returns:
provisionAfterExtensions
public List
Get collection of extension names after which this extension needs to be provisioned.
Returns:
publisher
public String publisher()
Get the publisher value.
Returns:
settings
public Object settings()
Get the settings value.
Returns:
type
public String type()
Get the type value.
Returns:
typeHandlerVersion
public String typeHandlerVersion()
Get the typeHandlerVersion value.
Returns:
withAutoUpgradeMinorVersion
public VMExtension withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion)
Set 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:
withName
public VMExtension withName(String name)
Set the name value.
Parameters:
Returns:
withProtectedSettings
public VMExtension withProtectedSettings(Object protectedSettings)
Set the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
Parameters:
Returns:
withProvisionAfterExtensions
public VMExtension withProvisionAfterExtensions(List
Set collection of extension names after which this extension needs to be provisioned.
Parameters:
Returns:
withPublisher
public VMExtension withPublisher(String publisher)
Set the publisher value.
Parameters:
Returns:
withSettings
public VMExtension withSettings(Object settings)
Set the settings value.
Parameters:
Returns:
withType
public VMExtension withType(String type)
Set the type value.
Parameters:
Returns:
withTypeHandlerVersion
public VMExtension withTypeHandlerVersion(String typeHandlerVersion)
Set the typeHandlerVersion value.
Parameters:
Returns:
Applies to
Azure SDK for Java