Class: Azure::Compute::Mgmt::V2019_07_01::Models::AutomaticOSUpgradePolicy

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-07-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb

Overview

The configuration parameters used for performing automatic OS upgrade.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#disable_automatic_rollbackBoolean

Default value is false.

Returns:

  • (Boolean)

    Whether OS image rollback feature should be disabled.



25
26
27
# File 'lib/2019-07-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb', line 25

def disable_automatic_rollback
  @disable_automatic_rollback
end

#enable_automatic_osupgradeBoolean

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, [enableAutomaticUpdates](docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true.

Returns:

  • (Boolean)

    Indicates whether OS upgrades should automatically be



21
22
23
# File 'lib/2019-07-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb', line 21

def enable_automatic_osupgrade
  @enable_automatic_osupgrade
end

Class Method Details

.mapperObject

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



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/2019-07-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