Class: Google::Apis::BaremetalsolutionV2::NfsExport
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::NfsExport
- 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
-
#allow_dev ⇒ Boolean
(also: #allow_dev?)
Allow dev flag in NfsShare AllowedClientsRequest.
-
#allow_suid ⇒ Boolean
(also: #allow_suid?)
Allow the setuid flag.
-
#cidr ⇒ String
A CIDR range.
-
#machine_id ⇒ String
Either a single machine, identified by an ID, or a comma-separated list of machine IDs.
-
#network_id ⇒ String
Network to use to publish the export.
-
#no_root_squash ⇒ Boolean
(also: #no_root_squash?)
Disable root squashing, which is a feature of NFS.
-
#permissions ⇒ String
Export permissions.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NfsExport
constructor
A new instance of NfsExport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NfsExport
Returns a new instance of NfsExport.
1399 1400 1401 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1399 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_dev ⇒ Boolean Also known as: allow_dev?
Allow dev flag in NfsShare AllowedClientsRequest.
Corresponds to the JSON property allowDev
1361 1362 1363 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1361 def allow_dev @allow_dev end |
#allow_suid ⇒ Boolean Also known as: allow_suid?
Allow the setuid flag.
Corresponds to the JSON property allowSuid
1367 1368 1369 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1367 def allow_suid @allow_suid end |
#cidr ⇒ String
A CIDR range.
Corresponds to the JSON property cidr
1373 1374 1375 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1373 def cidr @cidr end |
#machine_id ⇒ String
Either a single machine, identified by an ID, or a comma-separated list of
machine IDs.
Corresponds to the JSON property machineId
1379 1380 1381 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1379 def machine_id @machine_id end |
#network_id ⇒ String
Network to use to publish the export.
Corresponds to the JSON property networkId
1384 1385 1386 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1384 def network_id @network_id end |
#no_root_squash ⇒ Boolean 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
1391 1392 1393 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1391 def no_root_squash @no_root_squash end |
#permissions ⇒ String
Export permissions.
Corresponds to the JSON property permissions
1397 1398 1399 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1397 def @permissions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1404 1405 1406 1407 1408 1409 1410 1411 1412 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1404 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 |