AutomaticOSUpgradePolicy Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. AutomaticOSUpgradePolicy
- com.
public class AutomaticOSUpgradePolicy
The configuration parameters used for performing automatic OS upgrade.
Constructor Summary
Constructor | Description | |
---|---|---|
AutomaticOSUpgradePolicy() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
disableAutomaticRollback()
Get whether OS image rollback feature should be disabled. |
Boolean |
enableAutomaticOSUpgrade()
Get indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. |
Boolean |
osRollingUpgradeDeferral()
Get defer OS upgrades on the TVMs if they are running tasks. |
Boolean |
useRollingUpgradePolicy()
Get indicates whether rolling upgrade policy should be used during Auto OS Upgrade. |
Automatic |
withDisableAutomaticRollback(Boolean disableAutomaticRollback)
Set whether OS image rollback feature should be disabled. |
Automatic |
withEnableAutomaticOSUpgrade(Boolean enableAutomaticOSUpgrade)
Set indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. |
Automatic |
withOsRollingUpgradeDeferral(Boolean osRollingUpgradeDeferral)
Set defer OS upgrades on the TVMs if they are running tasks. |
Automatic |
withUseRollingUpgradePolicy(Boolean useRollingUpgradePolicy)
Set indicates whether rolling upgrade policy should be used during Auto OS Upgrade. |
Methods inherited from java.lang.Object
Constructor Details
AutomaticOSUpgradePolicy
public AutomaticOSUpgradePolicy()
Method Details
disableAutomaticRollback
public Boolean disableAutomaticRollback()
Get whether OS image rollback feature should be disabled.
Returns:
enableAutomaticOSUpgrade
public Boolean enableAutomaticOSUpgrade()
Get indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available.
If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://video2.skills-academy.com/rest/api/batchservice/pool/add?tabs=HTTP\#windowsconfiguration) cannot be set to true.
Returns:
osRollingUpgradeDeferral
public Boolean osRollingUpgradeDeferral()
Get defer OS upgrades on the TVMs if they are running tasks.
Returns:
useRollingUpgradePolicy
public Boolean useRollingUpgradePolicy()
Get indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS.
Returns:
withDisableAutomaticRollback
public AutomaticOSUpgradePolicy withDisableAutomaticRollback(Boolean disableAutomaticRollback)
Set whether OS image rollback feature should be disabled.
Parameters:
Returns:
withEnableAutomaticOSUpgrade
public AutomaticOSUpgradePolicy withEnableAutomaticOSUpgrade(Boolean enableAutomaticOSUpgrade)
Set indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available.
If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://video2.skills-academy.com/rest/api/batchservice/pool/add?tabs=HTTP\#windowsconfiguration) cannot be set to true.
Parameters:
Returns:
withOsRollingUpgradeDeferral
public AutomaticOSUpgradePolicy withOsRollingUpgradeDeferral(Boolean osRollingUpgradeDeferral)
Set defer OS upgrades on the TVMs if they are running tasks.
Parameters:
Returns:
withUseRollingUpgradePolicy
public AutomaticOSUpgradePolicy withUseRollingUpgradePolicy(Boolean useRollingUpgradePolicy)
Set indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS.
Parameters:
Returns:
Applies to
Azure SDK for Java