Class: Google::Apis::ComputeAlpha::InstanceGroupManagerTargetSizePolicy

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceGroupManagerTargetSizePolicy

Returns a new instance of InstanceGroupManagerTargetSizePolicy.



29014
29015
29016
# File 'lib/google/apis/compute_alpha/classes.rb', line 29014

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

Instance Attribute Details

#modeString

The mode of target size policy based on which the MIG creates its VMs individually or all at once. Corresponds to the JSON property mode

Returns:

  • (String)


29012
29013
29014
# File 'lib/google/apis/compute_alpha/classes.rb', line 29012

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29019
29020
29021
# File 'lib/google/apis/compute_alpha/classes.rb', line 29019

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