class Azure::Compute::Mgmt::V2019_03_01::Models::AutomaticOSUpgradePolicy

The configuration parameters used for performing automatic OS upgrade.

Attributes

disable_automatic_rollback[RW]

@return [Boolean] Whether OS image rollback feature should be disabled. Default value is false.

enable_automatic_osupgrade[RW]

@return [Boolean] 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. Default value is false. If this is set to true for Windows based scale sets, recommendation is to set [enableAutomaticUpdates](docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) to false.

Private Class Methods

mapper() click to toggle source

Mapper for AutomaticOSUpgradePolicy class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2019-03-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb, line 32
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AutomaticOSUpgradePolicy',
    type: {
      name: 'Composite',
      class_name: 'AutomaticOSUpgradePolicy',
      model_properties: {
        enable_automatic_osupgrade: {
          client_side_validation: true,
          required: false,
          serialized_name: 'enableAutomaticOSUpgrade',
          type: {
            name: 'Boolean'
          }
        },
        disable_automatic_rollback: {
          client_side_validation: true,
          required: false,
          serialized_name: 'disableAutomaticRollback',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end