# Google Cloud Hypercompute Cluster V1beta Client - Class StorageResourceConfig (0.3.0)

0.3.0 (latest) 0.2.0 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1beta 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.v1beta.StorageResourceConfig`

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1beta

## 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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.ExistingLustreConfig` |

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

### getConfig

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