Compute V1 Client - Class TargetPoolsAddInstanceRequest (1.14.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ instances array<Google\Cloud\Compute\V1\InstanceReference>

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

getInstances

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setInstances

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\InstanceReference>
Returns
TypeDescription
$this