Compute V1 Client - Class TargetPoolsAddInstanceRequest (2.5.0)

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

Generated from protobuf messagegoogle.cloud.compute.v1.TargetPoolsAddInstanceRequest

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ instancesarray<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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setInstances

A full or partial URL to an instance to add to this target pool. This canbe a full or partial URL. For example, the following are valid URLs:

Parameter
NameDescription
vararray<InstanceReference>
Returns
TypeDescription
$this

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-23 UTC.