Class: Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSuspendInstancesRequest

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) ⇒ RegionInstanceGroupManagersSuspendInstancesRequest

Returns a new instance of RegionInstanceGroupManagersSuspendInstancesRequest.



36981
36982
36983
# File 'lib/google/apis/compute_alpha/classes.rb', line 36981

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

Instance Attribute Details

#force_suspendBoolean Also known as: force_suspend?

If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them. Corresponds to the JSON property forceSuspend

Returns:

  • (Boolean)


36972
36973
36974
# File 'lib/google/apis/compute_alpha/classes.rb', line 36972

def force_suspend
  @force_suspend
end

#instancesArray<String>

The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Corresponds to the JSON property instances

Returns:

  • (Array<String>)


36979
36980
36981
# File 'lib/google/apis/compute_alpha/classes.rb', line 36979

def instances
  @instances
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36986
36987
36988
36989
# File 'lib/google/apis/compute_alpha/classes.rb', line 36986

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