Class: Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceLifecyclePolicyOnRepair
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceLifecyclePolicyOnRepair
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/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.
23138 23139 23140 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 23138 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.
Corresponds to the JSON property allowChangingZone
23136 23137 23138 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 23136 def allow_changing_zone @allow_changing_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
23143 23144 23145 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 23143 def update!(**args) @allow_changing_zone = args[:allow_changing_zone] if args.key?(:allow_changing_zone) end |