Class: Google::Apis::FileV1beta1::NfsExportOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/file_v1beta1/classes.rb,
lib/google/apis/file_v1beta1/representations.rb,
lib/google/apis/file_v1beta1/representations.rb

Overview

NFS export options specifications.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NfsExportOptions

Returns a new instance of NfsExportOptions.



1381
1382
1383
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1381

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#access_modeString

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

Returns:

  • (String)


1344
1345
1346
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1344

def access_mode
  @access_mode
end

#anon_gidFixnum

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

Returns:

  • (Fixnum)


1351
1352
1353
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1351

def anon_gid
  @anon_gid
end

#anon_uidFixnum

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

Returns:

  • (Fixnum)


1358
1359
1360
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1358

def anon_uid
  @anon_uid
end

#ip_rangesArray<String>

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

Returns:

  • (Array<String>)


1368
1369
1370
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1368

def ip_ranges
  @ip_ranges
end

#security_flavorsArray<String>

The security flavors allowed for mount operations. The default is AUTH_SYS. Corresponds to the JSON property securityFlavors

Returns:

  • (Array<String>)


1373
1374
1375
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1373

def security_flavors
  @security_flavors
end

#squash_modeString

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

Returns:

  • (String)


1379
1380
1381
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1379

def squash_mode
  @squash_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1386
1387
1388
1389
1390
1391
1392
1393
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1386

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)
  @security_flavors = args[:security_flavors] if args.key?(:security_flavors)
  @squash_mode = args[:squash_mode] if args.key?(:squash_mode)
end