Compute V1 Client - Class TargetPoolsAddInstanceRequest (1.5.0)

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

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

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

Generated from protobuf field repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

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

Generated from protobuf field repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

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