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.
-
#nfs_path ⇒ String
Output only.
-
#no_root_squash ⇒ Boolean
(also: #no_root_squash?)
Disable root squashing, which is a feature of NFS.
-
#share_ip ⇒ String
Output only.
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.
77 78 79 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 77 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 |
#nfs_path ⇒ String
Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID
is the generated ID instead of customer provided name. example like "10.0.0.0:/
g123456789-nfs001"
Corresponds to the JSON property nfsPath
61 62 63 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 61 def nfs_path @nfs_path 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
68 69 70 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 68 def no_root_squash @no_root_squash end |
#share_ip ⇒ String
Output only. The IP address of the share on this network. Assigned
automatically during provisioning based on the network's services_cidr.
Corresponds to the JSON property shareIp
75 76 77 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 75 def share_ip @share_ip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
82 83 84 85 86 87 88 89 90 91 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 82 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) @nfs_path = args[:nfs_path] if args.key?(:nfs_path) @no_root_squash = args[:no_root_squash] if args.key?(:no_root_squash) @share_ip = args[:share_ip] if args.key?(:share_ip) end |