1.8.0 (latest) 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Bare Metal Solution v2 API class VolumeConfig.

Configuration parameters for a new volume.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[VolumeConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.VolumeConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[VolumeConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.VolumeConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[VolumeConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.VolumeConfig.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.BareMetalSolution.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.md.txt)

## Assembly

Google.Cloud.BareMetalSolution.V2.dll

## Constructors

### VolumeConfig()

    public VolumeConfig()

### VolumeConfig(VolumeConfig)

    public VolumeConfig(VolumeConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `VolumeConfig` |

## Properties

### GcpService

    public string GcpService { get; set; }

The GCP service of the storage volume. Available gcp_service are in
<https://cloud.google.com/bare-metal/docs/bms-planning>.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Id

    public string Id { get; set; }

A transient unique identifier to identify a volume within an
ProvisioningConfig request.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### LunRanges

    public RepeatedField<VolumeConfig.Types.LunRange> LunRanges { get; }

LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldVolumeConfigTypesLunRange` |   |

### MachineIds

    public RepeatedField<string> MachineIds { get; }

Machine ids connected to this volume. Set only when protocol is
PROTOCOL_FC.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### Name

    public string Name { get; set; }

Output only. The name of the volume config.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### NfsExports

    public RepeatedField<VolumeConfig.Types.NfsExport> NfsExports { get; }

NFS exports. Set only when protocol is PROTOCOL_NFS.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldVolumeConfigTypesNfsExport` |   |

### PerformanceTier

    public VolumePerformanceTier PerformanceTier { get; set; }

Performance tier of the Volume.
Default is SHARED.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `VolumePerformanceTier` |   |

### Protocol

    public VolumeConfig.Types.Protocol Protocol { get; set; }

Volume protocol.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `VolumeConfigTypesProtocol` |   |

### SizeGb

    public int SizeGb { get; set; }

The requested size of this volume, in GB.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### SnapshotsEnabled

    public bool SnapshotsEnabled { get; set; }

Whether snapshots should be enabled.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Type

    public VolumeConfig.Types.Type Type { get; set; }

The type of this Volume.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `VolumeConfigTypesType` |   |

### UserNote

    public string UserNote { get; set; }

User note field, it can be used by customers to add additional information
for the BMS Ops team .

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### VolumeConfigName

    public VolumeConfigName VolumeConfigName { get; set; }

[VolumeConfigName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.VolumeConfigName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.VolumeConfig.md.txt#Google_Cloud_BareMetalSolution_V2_VolumeConfig_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `VolumeConfigName` |   |