# Google Cloud Hypercompute Cluster V1 Client - Class NewReservedInstancesConfig (0.3.0)

0.3.0 (latest) 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1 Client class NewReservedInstancesConfig.

When set in a
[ComputeResourceConfig](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.ComputeResourceConfig),
indicates that VM instances should be created from a
[reservation](https://cloud.google.com/compute/docs/instances/reservations-overview).

Generated from protobuf message `google.cloud.hypercomputecluster.v1.NewReservedInstancesConfig`

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1

## Methods

### __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 `projects/{project}/zones/{zone}/reservations/{reservation}`. |

### 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` |   |

### getSource

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |