Class: Google::Apis::ComputeAlpha::InstanceGroupManagersSuspendInstancesRequest
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::InstanceGroupManagersSuspendInstancesRequest
- 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
-
#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) ⇒ InstanceGroupManagersSuspendInstancesRequest
constructor
A new instance of InstanceGroupManagersSuspendInstancesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceGroupManagersSuspendInstancesRequest
Returns a new instance of InstanceGroupManagersSuspendInstancesRequest.
18018 18019 18020 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 18018 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
18009 18010 18011 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 18009 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
18016 18017 18018 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 18016 def instances @instances end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18023 18024 18025 18026 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 18023 def update!(**args) @force_suspend = args[:force_suspend] if args.key?(:force_suspend) @instances = args[:instances] if args.key?(:instances) end |