Google Cloud Hypercompute Cluster V1beta Client - Class ExistingInstances (0.6.0)

Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1beta Client class ExistingInstances.

ExistingInstances defines a list of existing VM instances to include in the cluster.

Generated from protobuf message google.cloud.hypercomputecluster.v1beta.ExistingInstances

Namespace

Google \ Cloud \ HypercomputeCluster \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ project string

Optional. Immutable. Project containing the instances, in the format projects/{project}.

↳ instance_group_manager string

Optional. Immutable. Managed instance group containing the instances, in the format projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}.

↳ region_instance_group_manager string

Optional. Immutable. Regional managed instance group containing the instances, in the format projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}.

↳ reservation string

Optional. Immutable. Reservation containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

↳ reservation_block string

Optional. Immutable. Reservation block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}.

↳ reservation_sub_block string

Optional. Immutable. Reservation sub block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/reservationSubBlocks/{reservationSubBlock}.

↳ labels array|Google\Protobuf\Internal\MapField

Optional. Immutable. Labels specifying the instances to include. Instances from the source will be included only if they contain each of these labels. If no labels are specified, all instances from the source will be included. Example: {"env": "prod", "app": "worker"}

↳ networks array<NetworkReference>

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

getProject

Optional. Immutable. Project containing the instances, in the format projects/{project}.

Returns
Type Description
string

hasProject

setProject

Optional. Immutable. Project containing the instances, in the format projects/{project}.

Parameter
Name Description
var string
Returns
Type Description
$this

getInstanceGroupManager

Optional. Immutable. Managed instance group containing the instances, in the format projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}.

Returns
Type Description
string

hasInstanceGroupManager

setInstanceGroupManager

Optional. Immutable. Managed instance group containing the instances, in the format projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}.

Parameter
Name Description
var string
Returns
Type Description
$this

getRegionInstanceGroupManager

Optional. Immutable. Regional managed instance group containing the instances, in the format projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}.

Returns
Type Description
string

hasRegionInstanceGroupManager

setRegionInstanceGroupManager

Optional. Immutable. Regional managed instance group containing the instances, in the format projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}.

Parameter
Name Description
var string
Returns
Type Description
$this

getReservation

Optional. Immutable. Reservation containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

Returns
Type Description
string

hasReservation

setReservation

Optional. Immutable. Reservation containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

Parameter
Name Description
var string
Returns
Type Description
$this

getReservationBlock

Optional. Immutable. Reservation block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}.

Returns
Type Description
string

hasReservationBlock

setReservationBlock

Optional. Immutable. Reservation block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}.

Parameter
Name Description
var string
Returns
Type Description
$this

getReservationSubBlock

Optional. Immutable. Reservation sub block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/reservationSubBlocks/{reservationSubBlock}.

Returns
Type Description
string

hasReservationSubBlock

setReservationSubBlock

Optional. Immutable. Reservation sub block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/reservationSubBlocks/{reservationSubBlock}.

Parameter
Name Description
var string
Returns
Type Description
$this

getLabels

Optional. Immutable. Labels specifying the instances to include. Instances from the source will be included only if they contain each of these labels.

If no labels are specified, all instances from the source will be included. Example: {"env": "prod", "app": "worker"}

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

Optional. Immutable. Labels specifying the instances to include. Instances from the source will be included only if they contain each of these labels.

If no labels are specified, all instances from the source will be included. Example: {"env": "prod", "app": "worker"}

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getNetworks

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

Returns
Type Description
Google\Protobuf\RepeatedField<NetworkReference>

setNetworks

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

Parameter
Name Description
var array<NetworkReference>
Returns
Type Description
$this

getSource

Returns
Type Description
string