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

Describes how a storage resource should be initialized. Each storage resource
can either be imported from an existing Google Cloud resource or initialized
when the cluster is created.

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ new_filestore` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.NewFilestoreConfig` Optional. Immutable. If set, indicates that a new Filestore instance should be created. |
| `↳ existing_filestore` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.ExistingFilestoreConfig` Optional. Immutable. If set, indicates that an existing Filestore instance should be imported. |
| `↳ new_bucket` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.NewBucketConfig` Optional. Immutable. If set, indicates that a new Cloud Storage bucket should be created. |
| `↳ existing_bucket` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.ExistingBucketConfig` Optional. Immutable. If set, indicates that an existing Cloud Storage bucket should be imported. |
| `↳ new_lustre` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.NewLustreConfig` Optional. Immutable. If set, indicates that a new Managed Lustre instance should be created. |
| `↳ existing_lustre` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.ExistingLustreConfig` Optional. Immutable. If set, indicates that an existing Managed Lustre instance should be imported. |

### getNewFilestore

Optional. Immutable. If set, indicates that a new Filestore instance
should be created.

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

### hasNewFilestore

### setNewFilestore

Optional. Immutable. If set, indicates that a new Filestore instance
should be created.

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

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

### getExistingFilestore

Optional. Immutable. If set, indicates that an existing Filestore
instance should be imported.

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

### hasExistingFilestore

### setExistingFilestore

Optional. Immutable. If set, indicates that an existing Filestore
instance should be imported.

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

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

### getNewBucket

Optional. Immutable. If set, indicates that a new Cloud Storage bucket
should be created.

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

### hasNewBucket

### setNewBucket

Optional. Immutable. If set, indicates that a new Cloud Storage bucket
should be created.

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

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

### getExistingBucket

Optional. Immutable. If set, indicates that an existing Cloud Storage
bucket should be imported.

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

### hasExistingBucket

### setExistingBucket

Optional. Immutable. If set, indicates that an existing Cloud Storage
bucket should be imported.

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

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

### getNewLustre

Optional. Immutable. If set, indicates that a new Managed Lustre instance
should be created.

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

### hasNewLustre

### setNewLustre

Optional. Immutable. If set, indicates that a new Managed Lustre instance
should be created.

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

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

### getExistingLustre

Optional. Immutable. If set, indicates that an existing Managed Lustre
instance should be imported.

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

### hasExistingLustre

### setExistingLustre

Optional. Immutable. If set, indicates that an existing Managed Lustre
instance should be imported.

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

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

### getConfig

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