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

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

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

When set in a
\[StorageResourceConfig\]\[google.cloud.hypercomputecluster.v1beta.StorageResourceConfig\],
indicates that a new [Google Cloud Storage](https://cloud.google.com/storage)
bucket should be created.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[NewBucketConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.NewBucketConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[NewBucketConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.NewBucketConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[NewBucketConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.NewBucketConfig), [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

### NewBucketConfig()

    public NewBucketConfig()

### NewBucketConfig(NewBucketConfig)

    public NewBucketConfig(NewBucketConfig other)

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

## Properties

### Autoclass

    public GcsAutoclassConfig Autoclass { get; set; }

Optional. Immutable. If set, indicates that the bucket should use
[Autoclass](https://cloud.google.com/storage/docs/autoclass).

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

### Bucket

    public string Bucket { get; set; }

Required. Immutable. Name of the Cloud Storage bucket to create.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### BucketAsBucketName

    public BucketName BucketAsBucketName { get; set; }

[BucketName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.BucketName)-typed view over the [Bucket](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.NewBucketConfig#Google_Cloud_HypercomputeCluster_V1Beta_NewBucketConfig_Bucket) resource name property.

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

### HasStorageClass

    public bool HasStorageClass { get; }

Gets whether the "storage_class" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HierarchicalNamespace

    public GcsHierarchicalNamespaceConfig HierarchicalNamespace { get; set; }

Optional. Immutable. If set, indicates that the bucket should use
[hierarchical
namespaces](https://cloud.google.com/storage/docs/hns-overview).

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

### OptionCase

    public NewBucketConfig.OptionOneofCase OptionCase { get; }

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

### StorageClass

    public NewBucketConfig.Types.StorageClass StorageClass { get; set; }

Optional. Immutable. If set, uses the provided storage class as the
bucket's default storage class.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.NewBucketConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.NewBucketConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.NewBucketConfig.Types.StorageClass` |   |