Class: Google::Apis::BaremetalsolutionV2::AllowedClient
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::AllowedClient
- 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
Represents an 'access point' for the share.
Instance Attribute Summary collapse
-
#allow_dev ⇒ Boolean
(also: #allow_dev?)
Allow dev flag.
-
#allow_suid ⇒ Boolean
(also: #allow_suid?)
Allow the setuid flag.
-
#allowed_clients_cidr ⇒ String
The subnet of IP addresses permitted to access the share.
-
#mount_permissions ⇒ String
Mount permissions.
-
#network ⇒ String
The network the access point sits on.
-
#no_root_squash ⇒ Boolean
(also: #no_root_squash?)
Disable root squashing, which is a feature of NFS.
-
#share_ip ⇒ String
The IP address of the share on this network.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllowedClient
constructor
A new instance of AllowedClient.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AllowedClient
Returns a new instance of AllowedClient.
69 70 71 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 69 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_dev ⇒ Boolean Also known as: allow_dev?
Allow dev flag. Which controls whether to allow creation of devices.
Corresponds to the JSON property allowDev
32 33 34 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 32 def allow_dev @allow_dev end |
#allow_suid ⇒ Boolean Also known as: allow_suid?
Allow the setuid flag.
Corresponds to the JSON property allowSuid
38 39 40 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 38 def allow_suid @allow_suid end |
#allowed_clients_cidr ⇒ String
The subnet of IP addresses permitted to access the share.
Corresponds to the JSON property allowedClientsCidr
44 45 46 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 44 def allowed_clients_cidr @allowed_clients_cidr end |
#mount_permissions ⇒ String
Mount permissions.
Corresponds to the JSON property mountPermissions
49 50 51 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 49 def @mount_permissions end |
#network ⇒ String
The network the access point sits on.
Corresponds to the JSON property network
54 55 56 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 54 def network @network 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
61 62 63 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 61 def no_root_squash @no_root_squash end |
#share_ip ⇒ String
The IP address of the share on this network.
Corresponds to the JSON property shareIp
67 68 69 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 67 def share_ip @share_ip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
74 75 76 77 78 79 80 81 82 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 74 def update!(**args) @allow_dev = args[:allow_dev] if args.key?(:allow_dev) @allow_suid = args[:allow_suid] if args.key?(:allow_suid) @allowed_clients_cidr = args[:allowed_clients_cidr] if args.key?(:allowed_clients_cidr) @mount_permissions = args[:mount_permissions] if args.key?(:mount_permissions) @network = args[:network] if args.key?(:network) @no_root_squash = args[:no_root_squash] if args.key?(:no_root_squash) @share_ip = args[:share_ip] if args.key?(:share_ip) end |