Class: Azure::ARM::Compute::Models::UpgradePolicy

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_compute/models/upgrade_policy.rb

Overview

Describes an upgrade policy - automatic or manual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#modeUpgradeMode

machines in the scale set.<br /><br /> Possible values are:<br /><br /> Manual - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> Automatic - All virtual machines in the scale set are automatically updated at the same time. Possible values include: ‘Automatic’, ‘Manual’

Returns:

  • (UpgradeMode)

    Specifies the mode of an upgrade to virtual



23
24
25
# File 'lib/generated/azure_mgmt_compute/models/upgrade_policy.rb', line 23

def mode
  @mode
end

Class Method Details

.mapperObject

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



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/generated/azure_mgmt_compute/models/upgrade_policy.rb', line 30

def self.mapper()
  {
    required: false,
    serialized_name: 'UpgradePolicy',
    type: {
      name: 'Composite',
      class_name: 'UpgradePolicy',
      model_properties: {
        mode: {
          required: false,
          serialized_name: 'mode',
          type: {
            name: 'Enum',
            module: 'UpgradeMode'
          }
        }
      }
    }
  }
end