Class: Google::Apis::ComputeBeta::InstanceGroupManagerInstanceLifecyclePolicyOnRepair
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::InstanceGroupManagerInstanceLifecyclePolicyOnRepair
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb
Overview
Configuration for VM repairs in the MIG.
Instance Attribute Summary collapse
-
#allow_changing_zone ⇒ String
Specifies whether the MIG can change a VM's zone during a repair.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceGroupManagerInstanceLifecyclePolicyOnRepair
constructor
A new instance of InstanceGroupManagerInstanceLifecyclePolicyOnRepair.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceGroupManagerInstanceLifecyclePolicyOnRepair
Returns a new instance of InstanceGroupManagerInstanceLifecyclePolicyOnRepair.
22830 22831 22832 |
# File 'lib/google/apis/compute_beta/classes.rb', line 22830 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_changing_zone ⇒ String
Specifies whether the MIG can change a VM's zone during a repair. Valid values are:
- NO (default): MIG cannot change a VM's zone during a repair.
- YES: MIG can select a different zone for the VM during
a repair.
Corresponds to the JSON property
allowChangingZone
22828 22829 22830 |
# File 'lib/google/apis/compute_beta/classes.rb', line 22828 def allow_changing_zone @allow_changing_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22835 22836 22837 |
# File 'lib/google/apis/compute_beta/classes.rb', line 22835 def update!(**args) @allow_changing_zone = args[:allow_changing_zone] if args.key?(:allow_changing_zone) end |