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

Description of how a [storage
resource](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.StorageResource) should be
mounted on a VM instance.

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` Required. ID of the storage resource to mount, which must match a key in the cluster's [storage_resources](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.Cluster#_Google_Cloud_HypercomputeCluster_V1_Cluster__getStorageResources__). |
| `↳ local_mount` | `string` Required. A directory inside the VM instance's file system where the storage resource should be mounted (e.g., `/mnt/share`). |

### getId

Required. ID of the storage resource to mount, which must match a key in
the cluster's
[storage_resources](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.Cluster#_Google_Cloud_HypercomputeCluster_V1_Cluster__getStorageResources__).

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

### setId

Required. ID of the storage resource to mount, which must match a key in
the cluster's
[storage_resources](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.Cluster#_Google_Cloud_HypercomputeCluster_V1_Cluster__getStorageResources__).

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

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

### getLocalMount

Required. A directory inside the VM instance's file system where the
storage resource should be mounted (e.g., `/mnt/share`).

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

### setLocalMount

Required. A directory inside the VM instance's file system where the
storage resource should be mounted (e.g., `/mnt/share`).

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

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