Class: Azure::Compute::Mgmt::V2020_12_01::Models::VirtualMachineScaleSetVMProtectionPolicy

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

Overview

The protection policy of a virtual machine scale set VM.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#protect_from_scale_inBoolean

shouldn't be considered for deletion during a scale-in operation.

Returns:

  • (Boolean)

    Indicates that the virtual machine scale set VM



17
18
19
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprotection_policy.rb', line 17

def protect_from_scale_in
  @protect_from_scale_in
end

#protect_from_scale_set_actionsBoolean

scale-in) initiated on the virtual machine scale set should not be applied to the virtual machine scale set VM.

Returns:

  • (Boolean)

    Indicates that model updates or actions (including



22
23
24
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprotection_policy.rb', line 22

def protect_from_scale_set_actions
  @protect_from_scale_set_actions
end

Class Method Details

.mapperObject

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



29
30
31
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
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprotection_policy.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VirtualMachineScaleSetVMProtectionPolicy',
    type: {
      name: 'Composite',
      class_name: 'VirtualMachineScaleSetVMProtectionPolicy',
      model_properties: {
        protect_from_scale_in: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protectFromScaleIn',
          type: {
            name: 'Boolean'
          }
        },
        protect_from_scale_set_actions: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protectFromScaleSetActions',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end