Class: Google::Apis::ComputeV1::InstanceGroupManagerTargetSizePolicy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceGroupManagerTargetSizePolicy

Returns a new instance of InstanceGroupManagerTargetSizePolicy.



24428
24429
24430
# File 'lib/google/apis/compute_v1/classes.rb', line 24428

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)


24426
24427
24428
# File 'lib/google/apis/compute_v1/classes.rb', line 24426

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



24433
24434
24435
# File 'lib/google/apis/compute_v1/classes.rb', line 24433

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