# Google Cloud Hypercompute Cluster V1 Client - Class ComputeInstanceSlurmNodeSet (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 ComputeInstanceSlurmNodeSet.

When set in a
[SlurmNodeSet](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.SlurmNodeSet), indicates
that the nodeset should be backed by Compute Engine VM instances.

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ startup_script` | `string` Optional. [Startup script](https://cloud.google.com/compute/docs/instances/startup-scripts/linux) to be run on each VM instance in the nodeset. Max 256KB. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. [Labels](https://cloud.google.com/compute/docs/labeling-resources) that should be applied to each VM instance in the nodeset. |
| `↳ boot_disk` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.BootDisk` Optional. Boot disk for the compute instance |

### getStartupScript

Optional. [Startup
script](https://cloud.google.com/compute/docs/instances/startup-scripts/linux)
to be run on each VM instance in the nodeset. Max 256KB.

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

### setStartupScript

Optional. [Startup
script](https://cloud.google.com/compute/docs/instances/startup-scripts/linux)
to be run on each VM instance in the nodeset. Max 256KB.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabels

Optional.

[Labels](https://cloud.google.com/compute/docs/labeling-resources) that
should be applied to each VM instance in the nodeset.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional.

[Labels](https://cloud.google.com/compute/docs/labeling-resources) that
should be applied to each VM instance in the nodeset.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBootDisk

Optional. Boot disk for the compute instance

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.BootDisk|null` |   |

### hasBootDisk

### clearBootDisk

### setBootDisk

Optional. Boot disk for the compute instance

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.BootDisk` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |