Class: Azure::Compute::Mgmt::V2020_06_01::Models::VirtualMachineScaleSetVMProtectionPolicy
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2020_06_01::Models::VirtualMachineScaleSetVMProtectionPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-06-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
-
#protect_from_scale_in ⇒ Boolean
shouldn't be considered for deletion during a scale-in operation.
-
#protect_from_scale_set_actions ⇒ Boolean
scale-in) initiated on the virtual machine scale set should not be applied to the virtual machine scale set VM.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for VirtualMachineScaleSetVMProtectionPolicy class as Ruby Hash.
Instance Attribute Details
#protect_from_scale_in ⇒ Boolean
shouldn't be considered for deletion during a scale-in operation.
17 18 19 |
# File 'lib/2020-06-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_actions ⇒ Boolean
scale-in) initiated on the virtual machine scale set should not be applied to the virtual machine scale set VM.
22 23 24 |
# File 'lib/2020-06-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
.mapper ⇒ Object
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-06-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 |