Class: Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineScaleSetUpdate

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

Overview

Describes a Virtual Machine Scale Set.

Instance Attribute Summary collapse

Attributes inherited from UpdateResource

#tags

Class Method Summary collapse

Instance Attribute Details

#additional_capabilitiesAdditionalCapabilities

enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

Returns:



53
54
55
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb', line 53

def additional_capabilities
  @additional_capabilities
end

#automatic_repairs_policyAutomaticRepairsPolicy

Returns Policy for automatic repairs.

Returns:



26
27
28
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb', line 26

def automatic_repairs_policy
  @automatic_repairs_policy
end

#do_not_run_extensions_on_overprovisioned_vmsBoolean

launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.

Returns:

  • (Boolean)

    When Overprovision is enabled, extensions are



40
41
42
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb', line 40

def do_not_run_extensions_on_overprovisioned_vms
  @do_not_run_extensions_on_overprovisioned_vms
end

#identityVirtualMachineScaleSetIdentity

machine scale set, if configured.

Returns:



67
68
69
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb', line 67

def identity
  @identity
end

#overprovisionBoolean

should be overprovisioned.

Returns:

  • (Boolean)

    Specifies whether the Virtual Machine Scale Set



34
35
36
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb', line 34

def overprovision
  @overprovision
end

#planPlan

set from VM Marketplace images.

Returns:

  • (Plan)

    The purchase plan when deploying a virtual machine scale



20
21
22
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb', line 20

def plan
  @plan
end

#proximity_placement_groupSubResource

placement group that the virtual machine scale set should be assigned to.
Minimum api-version: 2018-04-01.

Returns:

  • (SubResource)

    Specifies information about the proximity



63
64
65
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb', line 63

def proximity_placement_group
  @proximity_placement_group
end

#scale_in_policyScaleInPolicy

which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled-in.

Returns:



58
59
60
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb', line 58

def scale_in_policy
  @scale_in_policy
end

#single_placement_groupBoolean

placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.

Returns:

  • (Boolean)

    When true this limits the scale set to a single



46
47
48
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb', line 46

def single_placement_group
  @single_placement_group
end

#skuSku

Returns The virtual machine scale set sku.

Returns:

  • (Sku)

    The virtual machine scale set sku.



16
17
18
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb', line 16

def sku
  @sku
end

#upgrade_policyUpgradePolicy

Returns The upgrade policy.

Returns:



23
24
25
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb', line 23

def upgrade_policy
  @upgrade_policy
end

#virtual_machine_profileVirtualMachineScaleSetUpdateVMProfile

profile.

Returns:



30
31
32
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb', line 30

def virtual_machine_profile
  @virtual_machine_profile
end

Class Method Details

.mapperObject

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



74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb', line 74

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VirtualMachineScaleSetUpdate',
    type: {
      name: 'Composite',
      class_name: 'VirtualMachineScaleSetUpdate',
      model_properties: {
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        sku: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'Sku'
          }
        },
        plan: {
          client_side_validation: true,
          required: false,
          serialized_name: 'plan',
          type: {
            name: 'Composite',
            class_name: 'Plan'
          }
        },
        upgrade_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.upgradePolicy',
          type: {
            name: 'Composite',
            class_name: 'UpgradePolicy'
          }
        },
        automatic_repairs_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.automaticRepairsPolicy',
          type: {
            name: 'Composite',
            class_name: 'AutomaticRepairsPolicy'
          }
        },
        virtual_machine_profile: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.virtualMachineProfile',
          type: {
            name: 'Composite',
            class_name: 'VirtualMachineScaleSetUpdateVMProfile'
          }
        },
        overprovision: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.overprovision',
          type: {
            name: 'Boolean'
          }
        },
        do_not_run_extensions_on_overprovisioned_vms: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.doNotRunExtensionsOnOverprovisionedVMs',
          type: {
            name: 'Boolean'
          }
        },
        single_placement_group: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.singlePlacementGroup',
          type: {
            name: 'Boolean'
          }
        },
        additional_capabilities: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.additionalCapabilities',
          type: {
            name: 'Composite',
            class_name: 'AdditionalCapabilities'
          }
        },
        scale_in_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.scaleInPolicy',
          type: {
            name: 'Composite',
            class_name: 'ScaleInPolicy'
          }
        },
        proximity_placement_group: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.proximityPlacementGroup',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        identity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'identity',
          type: {
            name: 'Composite',
            class_name: 'VirtualMachineScaleSetIdentity'
          }
        }
      }
    }
  }
end