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 NfsShare : IMessage<NfsShare>, IEquatable<NfsShare>, IDeepCloneable<NfsShare>, IBufferMessage, IMessage

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

An NFS share.

## Inheritance

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

## Implements

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

### NfsShare()

    public NfsShare()

### NfsShare(NfsShare)

    public NfsShare(NfsShare other)

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

## Properties

### AllowedClients

    public RepeatedField<NfsShare.Types.AllowedClient> AllowedClients { get; }

List of allowed access points.

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

### Id

    public string Id { get; set; }

Output only. An identifier for the NFS share, generated by the backend.
This is the same value as nfs_share_id and will replace it in the future.

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

### Labels

    public MapField<string, string> Labels { get; }

Labels as key value pairs.

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

### NFSShareName

    public NFSShareName NFSShareName { get; set; }

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

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

### Name

    public string Name { get; set; }

Immutable. The name of the NFS share.

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

### NfsShareId

    public string NfsShareId { get; set; }

Output only. An identifier for the NFS share, generated by the backend.
This field will be deprecated in the future, use `id` instead.

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

### RequestedSizeGib

    public long RequestedSizeGib { get; set; }

The requested size, in GiB.

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

### State

    public NfsShare.Types.State State { get; set; }

Output only. The state of the NFS share.

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

### StorageType

    public NfsShare.Types.StorageType StorageType { get; set; }

Immutable. The storage type of the underlying volume.

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

### Volume

    public string Volume { get; set; }

Output only. The underlying volume of the share. Created automatically
during provisioning.

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

### VolumeAsVolumeName

    public VolumeName VolumeAsVolumeName { get; set; }

[VolumeName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.VolumeName.md.txt)-typed view over the [Volume](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.NfsShare.md.txt#Google_Cloud_BareMetalSolution_V2_NfsShare_Volume) resource name property.

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