Reference documentation and code samples for the Google Cloud Filestore V1 Client class NfsExportOptions.
NFS export options specifications.
Generated from protobuf messagegoogle.cloud.filestore.v1.NfsExportOptions
Namespace
Google \ Cloud \ Filestore \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ ip_ranges
array
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.
↳ access_mode
int
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.
↳ squash_mode
int
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.
↳ anon_uid
int|string
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.
↳ anon_gid
int|string
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.
getIpRanges
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.
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.
Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
getAccessMode
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.
Returns
Type
Description
int
Enum of typeAccessMode.
setAccessMode
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.
Parameter
Name
Description
var
int
Enum of typeAccessMode.
Returns
Type
Description
$this
getSquashMode
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.
Returns
Type
Description
int
Enum of typeSquashMode.
setSquashMode
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.
Parameter
Name
Description
var
int
Enum of typeSquashMode.
Returns
Type
Description
$this
getAnonUid
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.
Returns
Type
Description
int|string
setAnonUid
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.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getAnonGid
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.
Returns
Type
Description
int|string
setAnonGid
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Filestore V1 Client - Class NfsExportOptions (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-filestore/latest/V1.NfsExportOptions)\n- [2.1.0](/php/docs/reference/cloud-filestore/2.1.0/V1.NfsExportOptions)\n- [2.0.4](/php/docs/reference/cloud-filestore/2.0.4/V1.NfsExportOptions)\n- [1.5.7](/php/docs/reference/cloud-filestore/1.5.7/V1.NfsExportOptions)\n- [1.4.0](/php/docs/reference/cloud-filestore/1.4.0/V1.NfsExportOptions)\n- [1.3.2](/php/docs/reference/cloud-filestore/1.3.2/V1.NfsExportOptions)\n- [1.2.1](/php/docs/reference/cloud-filestore/1.2.1/V1.NfsExportOptions)\n- [1.1.2](/php/docs/reference/cloud-filestore/1.1.2/V1.NfsExportOptions)\n- [1.0.3](/php/docs/reference/cloud-filestore/1.0.3/V1.NfsExportOptions) \nReference documentation and code samples for the Google Cloud Filestore V1 Client class NfsExportOptions.\n\nNFS export options specifications.\n\nGenerated from protobuf message `google.cloud.filestore.v1.NfsExportOptions`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Filestore \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getIpRanges\n\nList of either an IPv4 addresses in the format\n`{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format\n`{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the\nfile share.\n\nOverlapping IP ranges are not allowed, both within and across\nNfsExportOptions. An error will be returned.\nThe limit is 64 IP ranges/addresses for each FileShareConfig among all\nNfsExportOptions.\n\n### setIpRanges\n\nList of either an IPv4 addresses in the format\n`{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format\n`{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the\nfile share.\n\nOverlapping IP ranges are not allowed, both within and across\nNfsExportOptions. An error will be returned.\nThe limit is 64 IP ranges/addresses for each FileShareConfig among all\nNfsExportOptions.\n\n### getAccessMode\n\nEither READ_ONLY, for allowing only read requests on the exported\ndirectory, or READ_WRITE, for allowing both read and write requests.\n\nThe default is READ_WRITE.\n\n### setAccessMode\n\nEither READ_ONLY, for allowing only read requests on the exported\ndirectory, or READ_WRITE, for allowing both read and write requests.\n\nThe default is READ_WRITE.\n\n### getSquashMode\n\nEither NO_ROOT_SQUASH, for allowing root access on the exported directory,\nor ROOT_SQUASH, for not allowing root access. The default is\nNO_ROOT_SQUASH.\n\n### setSquashMode\n\nEither NO_ROOT_SQUASH, for allowing root access on the exported directory,\nor ROOT_SQUASH, for not allowing root access. The default is\nNO_ROOT_SQUASH.\n\n### getAnonUid\n\nAn integer representing the anonymous user id with a default value of\n65534.\n\nAnon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be\nreturned if this field is specified for other squash_mode settings.\n\n### setAnonUid\n\nAn integer representing the anonymous user id with a default value of\n65534.\n\nAnon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be\nreturned if this field is specified for other squash_mode settings.\n\n### getAnonGid\n\nAn integer representing the anonymous group id with a default value of\n65534.\n\nAnon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be\nreturned if this field is specified for other squash_mode settings.\n\n### setAnonGid\n\nAn integer representing the anonymous group id with a default value of\n65534.\n\nAnon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be\nreturned if this field is specified for other squash_mode settings."]]