Class: Google::Apis::ComputeV1::InstanceGroupManagerInstanceLifecyclePolicyOnRepair

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Overview

Configuration for VM repairs in the MIG.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceGroupManagerInstanceLifecyclePolicyOnRepair

Returns a new instance of InstanceGroupManagerInstanceLifecyclePolicyOnRepair.



23228
23229
23230
# File 'lib/google/apis/compute_v1/classes.rb', line 23228

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allow_changing_zoneString

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

Returns:

  • (String)


23226
23227
23228
# File 'lib/google/apis/compute_v1/classes.rb', line 23226

def allow_changing_zone
  @allow_changing_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23233
23234
23235
# File 'lib/google/apis/compute_v1/classes.rb', line 23233

def update!(**args)
  @allow_changing_zone = args[:allow_changing_zone] if args.key?(:allow_changing_zone)
end