2.8.0 (latest) 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Cloud Filestore v1 API class NfsExportOptions.

NFS export options specifications.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.Filestore.V1.dll

## Constructors

### NfsExportOptions()

    public NfsExportOptions()

### NfsExportOptions(NfsExportOptions)

    public NfsExportOptions(NfsExportOptions other)

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

## Properties

### AccessMode

    public NfsExportOptions.Types.AccessMode AccessMode { get; set; }

Either READ_ONLY, for allowing only read requests on the exported
directory, or READ_WRITE, for allowing both read and write requests.
The default is READ_WRITE.

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

### AnonGid

    public long AnonGid { get; set; }

An integer representing the anonymous group id with a default value of
65534.
Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be
returned if this field is specified for other squash_mode settings.

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

### AnonUid

    public long AnonUid { get; set; }

An integer representing the anonymous user id with a default value of
65534.
Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be
returned if this field is specified for other squash_mode settings.

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

### IpRanges

    public RepeatedField<string> IpRanges { get; }

List of either an IPv4 addresses in the format
`{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
`{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
file share.
Overlapping IP ranges are not allowed, both within and across
NfsExportOptions. An error will be returned.
The limit is 64 IP ranges/addresses for each FileShareConfig among all
NfsExportOptions.

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

### SquashMode

    public NfsExportOptions.Types.SquashMode SquashMode { get; set; }

Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
or ROOT_SQUASH, for not allowing root access. The default is
NO_ROOT_SQUASH.

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