CloudServiceExtensionProperties Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. CloudServiceExtensionProperties
- com.
Implements
public final class CloudServiceExtensionProperties
implements JsonSerializable<CloudServiceExtensionProperties>
Extension Properties.
Constructor Summary
Constructor | Description |
---|---|
CloudServiceExtensionProperties() |
Creates an instance of Cloud |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
autoUpgradeMinorVersion()
Get the auto |
String |
forceUpdateTag()
Get the force |
static
Cloud |
fromJson(JsonReader jsonReader)
Reads an instance of Cloud |
Object |
protectedSettings()
Get the protected |
Cloud |
protectedSettingsFromKeyVault()
Get the protected |
String |
provisioningState()
Get the provisioning |
String |
publisher()
Get the publisher property: The name of the extension handler publisher. |
List<String> |
rolesAppliedTo()
Get the roles |
Object |
settings()
Get the settings property: Public settings for the extension. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Specifies the type of the extension. |
String |
typeHandlerVersion()
Get the type |
void |
validate()
Validates the instance. |
Cloud |
withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion)
Set the auto |
Cloud |
withForceUpdateTag(String forceUpdateTag)
Set the force |
Cloud |
withProtectedSettings(Object protectedSettings)
Set the protected |
Cloud |
withProtectedSettingsFromKeyVault(CloudServiceVaultAndSecretReference protectedSettingsFromKeyVault)
Set the protected |
Cloud |
withPublisher(String publisher)
Set the publisher property: The name of the extension handler publisher. |
Cloud |
withRolesAppliedTo(List<String> rolesAppliedTo)
Set the roles |
Cloud |
withSettings(Object settings)
Set the settings property: Public settings for the extension. |
Cloud |
withType(String type)
Set the type property: Specifies the type of the extension. |
Cloud |
withTypeHandlerVersion(String typeHandlerVersion)
Set the type |
Methods inherited from java.lang.Object
Constructor Details
CloudServiceExtensionProperties
public CloudServiceExtensionProperties()
Creates an instance of CloudServiceExtensionProperties class.
Method Details
autoUpgradeMinorVersion
public Boolean autoUpgradeMinorVersion()
Get the autoUpgradeMinorVersion property: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available.
Returns:
forceUpdateTag
public String forceUpdateTag()
Get the forceUpdateTag property: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not.
Returns:
fromJson
public static CloudServiceExtensionProperties fromJson(JsonReader jsonReader)
Reads an instance of CloudServiceExtensionProperties from the JsonReader.
Parameters:
Returns:
Throws:
protectedSettings
public Object protectedSettings()
Get the protectedSettings property: Protected settings for the extension which are encrypted before sent to the role instance.
Returns:
protectedSettingsFromKeyVault
public CloudServiceVaultAndSecretReference protectedSettingsFromKeyVault()
Get the protectedSettingsFromKeyVault property: Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance.
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:
rolesAppliedTo
public List
Get the rolesAppliedTo property: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service.
Returns:
settings
public Object settings()
Get the settings property: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension.
Returns:
toJson
type
public String type()
Get the type property: Specifies the type of the extension.
Returns:
typeHandlerVersion
public String typeHandlerVersion()
Get the typeHandlerVersion property: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance.
Returns:
validate
public void validate()
Validates the instance.
withAutoUpgradeMinorVersion
public CloudServiceExtensionProperties withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion)
Set the autoUpgradeMinorVersion property: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available.
Parameters:
Returns:
withForceUpdateTag
public CloudServiceExtensionProperties withForceUpdateTag(String forceUpdateTag)
Set the forceUpdateTag property: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not.
Parameters:
Returns:
withProtectedSettings
public CloudServiceExtensionProperties withProtectedSettings(Object protectedSettings)
Set the protectedSettings property: Protected settings for the extension which are encrypted before sent to the role instance.
Parameters:
Returns:
withProtectedSettingsFromKeyVault
public CloudServiceExtensionProperties withProtectedSettingsFromKeyVault(CloudServiceVaultAndSecretReference protectedSettingsFromKeyVault)
Set the protectedSettingsFromKeyVault property: Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance.
Parameters:
Returns:
withPublisher
public CloudServiceExtensionProperties withPublisher(String publisher)
Set the publisher property: The name of the extension handler publisher.
Parameters:
Returns:
withRolesAppliedTo
public CloudServiceExtensionProperties withRolesAppliedTo(List
Set the rolesAppliedTo property: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service.
Parameters:
Returns:
withSettings
public CloudServiceExtensionProperties withSettings(Object settings)
Set the settings property: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension.
Parameters:
Returns:
withType
public CloudServiceExtensionProperties withType(String type)
Set the type property: Specifies the type of the extension.
Parameters:
Returns:
withTypeHandlerVersion
public CloudServiceExtensionProperties withTypeHandlerVersion(String typeHandlerVersion)
Set the typeHandlerVersion property: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance.
Parameters:
Returns:
Applies to
Azure SDK for Java