Class: Azure::Compute::Mgmt::V2019_03_01::Models::AutomaticRepairsPolicy
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2019_03_01::Models::AutomaticRepairsPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-03-01/generated/azure_mgmt_compute/models/automatic_repairs_policy.rb
Overview
Specifies the configuration parameters for automatic repairs on the virtual machine scale set.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
on the virtual machine scale set.
-
#grace_period ⇒ String
suspended due to a state change on VM.
-
#max_instance_repairs_percent ⇒ Integer
machines that will be simultaneously repaired.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AutomaticRepairsPolicy class as Ruby Hash.
Instance Attribute Details
#enabled ⇒ Boolean
on the virtual machine scale set. The default value is false.
18 19 20 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/automatic_repairs_policy.rb', line 18 def enabled @enabled end |
#grace_period ⇒ String
suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The default value is 5 minutes (PT5M).
25 26 27 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/automatic_repairs_policy.rb', line 25 def grace_period @grace_period end |
#max_instance_repairs_percent ⇒ Integer
machines that will be simultaneously repaired. The default value is 20%.
30 31 32 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/automatic_repairs_policy.rb', line 30 def max_instance_repairs_percent @max_instance_repairs_percent end |
Class Method Details
.mapper ⇒ Object
Mapper for AutomaticRepairsPolicy class as Ruby Hash. This will be used for serialization/deserialization.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/automatic_repairs_policy.rb', line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'AutomaticRepairsPolicy', type: { name: 'Composite', class_name: 'AutomaticRepairsPolicy', model_properties: { enabled: { client_side_validation: true, required: false, serialized_name: 'enabled', type: { name: 'Boolean' } }, grace_period: { client_side_validation: true, required: false, serialized_name: 'gracePeriod', type: { name: 'String' } }, max_instance_repairs_percent: { client_side_validation: true, required: false, serialized_name: 'maxInstanceRepairsPercent', type: { name: 'Number' } } } } } end |