# Cluster Director v1beta API - Class StorageResource (1.0.0-beta01)

    public sealed class StorageResource : IMessage<StorageResource>, IEquatable<StorageResource>, IDeepCloneable<StorageResource>, IBufferMessage, IMessage

Reference documentation and code samples for the Cluster Director v1beta API class StorageResource.

A resource representing a form of persistent storage that is accessible to
compute resources in the cluster.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> StorageResource

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[StorageResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.StorageResource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StorageResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.StorageResource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[StorageResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.StorageResource), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.HypercomputeCluster.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta)

## Assembly

Google.Cloud.HypercomputeCluster.V1Beta.dll

## Constructors

### StorageResource()

    public StorageResource()

### StorageResource(StorageResource)

    public StorageResource(StorageResource other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.StorageResource` |

## Properties

### Bucket

    public BucketReference Bucket { get; set; }

Reference to a Google Cloud Storage bucket. Populated if and only if the
storage resource was configured to use Google Cloud Storage.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.BucketReference` |   |

### Config

    public StorageResourceConfig Config { get; set; }

Required. Immutable. Configuration for this storage resource, which
describes how it should be created or imported. This field only controls
how the storage resource is initially created or imported. Subsequent
changes to the storage resource should be made via the resource's API and
will not be reflected in the configuration.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.StorageResourceConfig` |   |

### Filestore

    public FilestoreReference Filestore { get; set; }

Reference to a Filestore instance. Populated if and only if the storage
resource was configured to use Filestore.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.FilestoreReference` |   |

### Lustre

    public LustreReference Lustre { get; set; }

Reference to a Managed Lustre instance. Populated if and only if the
storage resource was configured to use Managed Lustre.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.LustreReference` |   |

### ReferenceCase

    public StorageResource.ReferenceOneofCase ReferenceCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.StorageResourcehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.StorageResource.ReferenceOneofCase` |   |