Class: Google::Apis::ComputeBeta::RegionInstanceGroupManagersSuspendInstancesRequest
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::RegionInstanceGroupManagersSuspendInstancesRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb
Instance Attribute Summary collapse
-
#force_suspend ⇒ Boolean
(also: #force_suspend?)
If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
-
#instances ⇒ Array<String>
The URLs of one or more instances to suspend.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RegionInstanceGroupManagersSuspendInstancesRequest
constructor
A new instance of RegionInstanceGroupManagersSuspendInstancesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RegionInstanceGroupManagersSuspendInstancesRequest
Returns a new instance of RegionInstanceGroupManagersSuspendInstancesRequest.
34256 34257 34258 |
# File 'lib/google/apis/compute_beta/classes.rb', line 34256 def initialize(**args) update!(**args) end |
Instance Attribute Details
#force_suspend ⇒ Boolean 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
34247 34248 34249 |
# File 'lib/google/apis/compute_beta/classes.rb', line 34247 def force_suspend @force_suspend end |
#instances ⇒ Array<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
34254 34255 34256 |
# File 'lib/google/apis/compute_beta/classes.rb', line 34254 def instances @instances end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
34261 34262 34263 34264 |
# File 'lib/google/apis/compute_beta/classes.rb', line 34261 def update!(**args) @force_suspend = args[:force_suspend] if args.key?(:force_suspend) @instances = args[:instances] if args.key?(:instances) end |