Class: Google::Apis::FileV1beta1::NfsExport

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_gidFixnum

GID for anonymous or squashed GIDs. Corresponds to the JSON property anonymousGid

Returns:

  • (Fixnum)


507
508
509
# File 'generated/google/apis/file_v1beta1/classes.rb', line 507

def anonymous_gid
  @anonymous_gid
end

#anonymous_uidFixnum

UID for anonymous or squashed UIDs. Corresponds to the JSON property anonymousUid

Returns:

  • (Fixnum)


512
513
514
# File 'generated/google/apis/file_v1beta1/classes.rb', line 512

def anonymous_uid
  @anonymous_uid
end

#protocolsArray<String>

Network transport protocols to be enabled. The default is TCP. Corresponds to the JSON property protocols

Returns:

  • (Array<String>)


518
519
520
# File 'generated/google/apis/file_v1beta1/classes.rb', line 518

def protocols
  @protocols
end

#squashString

The mode of mapping of UIDs and GIDs (if any). Corresponds to the JSON property squash

Returns:

  • (String)


523
524
525
# File 'generated/google/apis/file_v1beta1/classes.rb', line 523

def squash
  @squash
end

#unauthenticated_locks_allowedBoolean Also known as: unauthenticated_locks_allowed?

If unauthenticated_locks_allowed is true, locking requests do not require authentication. Corresponds to the JSON property unauthenticatedLocksAllowed

Returns:

  • (Boolean)


529
530
531
# File 'generated/google/apis/file_v1beta1/classes.rb', line 529

def unauthenticated_locks_allowed
  @unauthenticated_locks_allowed
end

#user_ports_allowedBoolean 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

Returns:

  • (Boolean)


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