Class: Google::Apis::FileV1beta1::NfsExport
- Inherits:
-
Object
- Object
- Google::Apis::FileV1beta1::NfsExport
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/file_v1beta1/classes.rb,
generated/google/apis/file_v1beta1/representations.rb,
generated/google/apis/file_v1beta1/representations.rb
Overview
NfsExport specifies attributes of a given NFS export rule.
Instance Attribute Summary collapse
-
#anonymous_gid ⇒ Fixnum
GID for anonymous or squashed GIDs.
-
#anonymous_uid ⇒ Fixnum
UID for anonymous or squashed UIDs.
-
#protocols ⇒ Array<String>
Network transport protocols to be enabled.
-
#squash ⇒ String
The mode of mapping of UIDs and GIDs (if any).
-
#unauthenticated_locks_allowed ⇒ Boolean
(also: #unauthenticated_locks_allowed?)
If unauthenticated_locks_allowed is true, locking requests do not require authentication.
-
#user_ports_allowed ⇒ Boolean
(also: #user_ports_allowed?)
If user_ports_allowed is true, client ports greater than or equal to 1024 are allowed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NfsExport
constructor
A new instance of NfsExport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NfsExport
Returns a new instance of NfsExport
539 540 541 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 539 def initialize(**args) update!(**args) end |
Instance Attribute Details
#anonymous_gid ⇒ Fixnum
GID for anonymous or squashed GIDs.
Corresponds to the JSON property anonymousGid
507 508 509 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 507 def anonymous_gid @anonymous_gid end |
#anonymous_uid ⇒ Fixnum
UID for anonymous or squashed UIDs.
Corresponds to the JSON property anonymousUid
512 513 514 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 512 def anonymous_uid @anonymous_uid end |
#protocols ⇒ Array<String>
Network transport protocols to be enabled.
The default is TCP.
Corresponds to the JSON property protocols
518 519 520 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 518 def protocols @protocols end |
#squash ⇒ String
The mode of mapping of UIDs and GIDs (if any).
Corresponds to the JSON property squash
523 524 525 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 523 def squash @squash end |
#unauthenticated_locks_allowed ⇒ Boolean Also known as: unauthenticated_locks_allowed?
If unauthenticated_locks_allowed is true, locking requests do not require
authentication.
Corresponds to the JSON property unauthenticatedLocksAllowed
529 530 531 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 529 def unauthenticated_locks_allowed @unauthenticated_locks_allowed end |
#user_ports_allowed ⇒ Boolean Also known as: user_ports_allowed?
If user_ports_allowed is true, client ports greater than or equal to 1024
are allowed.
Corresponds to the JSON property userPortsAllowed
536 537 538 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 536 def user_ports_allowed @user_ports_allowed end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
544 545 546 547 548 549 550 551 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 544 def update!(**args) @anonymous_gid = args[:anonymous_gid] if args.key?(:anonymous_gid) @anonymous_uid = args[:anonymous_uid] if args.key?(:anonymous_uid) @protocols = args[:protocols] if args.key?(:protocols) @squash = args[:squash] if args.key?(:squash) @unauthenticated_locks_allowed = args[:unauthenticated_locks_allowed] if args.key?(:unauthenticated_locks_allowed) @user_ports_allowed = args[:user_ports_allowed] if args.key?(:user_ports_allowed) end |