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

A [Persistent disk](https://cloud.google.com/compute/docs/disks) used as the
boot disk for a Compute Engine VM instance.

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `string` Required. Immutable. [Persistent disk type](https://cloud.google.com/compute/docs/disks#disk-types), in the format `projects/{project}/zones/{zone}/diskTypes/{disk_type}`. |
| `↳ size_gb` | `int|string` Required. Immutable. Size of the disk in gigabytes. Must be at least 10GB. |

### getType

Required. Immutable. [Persistent disk
type](https://cloud.google.com/compute/docs/disks#disk-types), in the
format `projects/{project}/zones/{zone}/diskTypes/{disk_type}`.

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

### setType

Required. Immutable. [Persistent disk
type](https://cloud.google.com/compute/docs/disks#disk-types), in the
format `projects/{project}/zones/{zone}/diskTypes/{disk_type}`.

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

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

### getSizeGb

Required. Immutable. Size of the disk in gigabytes. Must be at least 10GB.

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

### setSizeGb

Required. Immutable. Size of the disk in gigabytes. Must be at least 10GB.

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

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