Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1beta Client class NewReservedInstancesConfig.
When set in a ComputeResourceConfig, indicates that VM instances should be created from a reservation.
Generated from protobuf message google.cloud.hypercomputecluster.v1beta.NewReservedInstancesConfig
Namespace
Google \ Cloud \ HypercomputeCluster \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ reservation |
string
Optional. Immutable. Name of the reservation from which VM instances should be created, in the format |
↳ reservation_block |
string
Optional. Immutable. Name of the reservation block from which VM instances should be created, in the format |
↳ reservation_sub_block |
string
Optional. Immutable. Name of the reservation sub block from which VM instances should be created, in the format |
↳ network_tags |
string[]
Optional. Immutable. A list of network tags to attach to the VM instances. A maximum of 64 network tags are allowed. |
getReservation
Optional. Immutable. Name of the reservation from which VM instances
should be created, in the format
projects/{project}/zones/{zone}/reservations/{reservation}.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasReservation
setReservation
Optional. Immutable. Name of the reservation from which VM instances
should be created, in the format
projects/{project}/zones/{zone}/reservations/{reservation}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getReservationBlock
Optional. Immutable. Name of the reservation block from which VM
instances should be created, in the format
projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservation_block}.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasReservationBlock
setReservationBlock
Optional. Immutable. Name of the reservation block from which VM
instances should be created, in the format
projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservation_block}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getReservationSubBlock
Optional. Immutable. Name of the reservation sub block from which VM
instances should be created, in the format
projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservation_block}/reservationSubBlocks/{reservation_sub_block}.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasReservationSubBlock
setReservationSubBlock
Optional. Immutable. Name of the reservation sub block from which VM
instances should be created, in the format
projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservation_block}/reservationSubBlocks/{reservation_sub_block}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNetworkTags
Optional. Immutable. A list of network tags to attach to the VM instances.
A maximum of 64 network tags are allowed.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setNetworkTags
Optional. Immutable. A list of network tags to attach to the VM instances.
A maximum of 64 network tags are allowed.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSource
| Returns | |
|---|---|
| Type | Description |
string |
|