Compute V1 Client - Class TargetPoolsAddInstanceRequest (2.5.0) Stay organized with collections Save and categorize content based on your preferences.
Reference documentation and code samples for the Compute V1 Client class TargetPoolsAddInstanceRequest.
Generated from protobuf messagegoogle.cloud.compute.v1.TargetPoolsAddInstanceRequest
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data | arrayOptional. Data for populating the Message object. |
↳ instances | array<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 canbe 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 | |
|---|---|
| Type | Description |
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:
- 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 | |
|---|---|
| Name | Description |
var | array<InstanceReference> |
| Returns | |
|---|---|
| Type | Description |
$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.