Compute V1 Client - Class InstanceGroupManagersSuspendInstancesRequest (1.24.0)

Reference documentation and code samples for the Compute V1 Client class InstanceGroupManagersSuspendInstancesRequest.

Generated from protobuf message google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ force_suspendbool

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

↳ instancesarray

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].

getForceSuspend

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

Returns
TypeDescription
bool

hasForceSuspend

clearForceSuspend

setForceSuspend

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

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

getInstances

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].

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setInstances

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].

Parameter
NameDescription
varstring[]
Returns
TypeDescription
$this