Class: Google::Apis::BaremetalsolutionV2::NfsExport

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

Overview

A NFS export entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NfsExport

Returns a new instance of NfsExport.



1401
1402
1403
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1401

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

Instance Attribute Details

#allow_devBoolean Also known as: allow_dev?

Allow dev flag in NfsShare AllowedClientsRequest. Corresponds to the JSON property allowDev

Returns:

  • (Boolean)


1363
1364
1365
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1363

def allow_dev
  @allow_dev
end

#allow_suidBoolean Also known as: allow_suid?

Allow the setuid flag. Corresponds to the JSON property allowSuid

Returns:

  • (Boolean)


1369
1370
1371
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1369

def allow_suid
  @allow_suid
end

#cidrString

A CIDR range. Corresponds to the JSON property cidr

Returns:

  • (String)


1375
1376
1377
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1375

def cidr
  @cidr
end

#machine_idString

Either a single machine, identified by an ID, or a comma-separated list of machine IDs. Corresponds to the JSON property machineId

Returns:

  • (String)


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

def machine_id
  @machine_id
end

#network_idString

Network to use to publish the export. Corresponds to the JSON property networkId

Returns:

  • (String)


1386
1387
1388
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1386

def network_id
  @network_id
end

#no_root_squashBoolean Also known as: no_root_squash?

Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication. Corresponds to the JSON property noRootSquash

Returns:

  • (Boolean)


1393
1394
1395
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1393

def no_root_squash
  @no_root_squash
end

#permissionsString

Export permissions. Corresponds to the JSON property permissions

Returns:

  • (String)


1399
1400
1401
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1399

def permissions
  @permissions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1406
1407
1408
1409
1410
1411
1412
1413
1414
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1406

def update!(**args)
  @allow_dev = args[:allow_dev] if args.key?(:allow_dev)
  @allow_suid = args[:allow_suid] if args.key?(:allow_suid)
  @cidr = args[:cidr] if args.key?(:cidr)
  @machine_id = args[:machine_id] if args.key?(:machine_id)
  @network_id = args[:network_id] if args.key?(:network_id)
  @no_root_squash = args[:no_root_squash] if args.key?(:no_root_squash)
  @permissions = args[:permissions] if args.key?(:permissions)
end