class Google::Apis::FileV1::NfsExportOptions
NFS export options specifications.
Attributes
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. Corresponds to the JSON property `accessMode` @return [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. Corresponds to the JSON property `anonGid` @return [Fixnum]
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. Corresponds to the JSON property `anonUid` @return [Fixnum]
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
. Corresponds to the JSON property `ipRanges` @return [Array<String>]
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. Corresponds to the JSON property `squashMode` @return [String]
Public Class Methods
# File lib/google/apis/file_v1/classes.rb, line 1110 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/file_v1/classes.rb, line 1115 def update!(**args) @access_mode = args[:access_mode] if args.key?(:access_mode) @anon_gid = args[:anon_gid] if args.key?(:anon_gid) @anon_uid = args[:anon_uid] if args.key?(:anon_uid) @ip_ranges = args[:ip_ranges] if args.key?(:ip_ranges) @squash_mode = args[:squash_mode] if args.key?(:squash_mode) end