Class: Google::Apis::BaremetalsolutionV2::NfsShare
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::NfsShare
- 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
An NFS share.
Instance Attribute Summary collapse
-
#allowed_clients ⇒ Array<Google::Apis::BaremetalsolutionV2::AllowedClient>
List of allowed access points.
-
#id ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs.
-
#name ⇒ String
Output only.
-
#nfs_share_id ⇒ String
Output only.
-
#requested_size_gib ⇒ Fixnum
The requested size, in GiB.
-
#state ⇒ String
The state of the NFS share.
-
#volume ⇒ String
The volume containing the share.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NfsShare
constructor
A new instance of NfsShare.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NfsShare
Returns a new instance of NfsShare.
1267 1268 1269 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1267 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_clients ⇒ Array<Google::Apis::BaremetalsolutionV2::AllowedClient>
List of allowed access points.
Corresponds to the JSON property allowedClients
1228 1229 1230 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1228 def allowed_clients @allowed_clients end |
#id ⇒ String
Output only. An identifier for the NFS share, generated by the backend. This
is the same value as nfs_share_id and will replace it in the future.
Corresponds to the JSON property id
1234 1235 1236 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1234 def id @id end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
1239 1240 1241 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1239 def labels @labels end |
#name ⇒ String
Output only. The name of the NFS share.
Corresponds to the JSON property name
1244 1245 1246 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1244 def name @name end |
#nfs_share_id ⇒ String
Output only. An identifier for the NFS share, generated by the backend. This
field will be deprecated in the future, use id instead.
Corresponds to the JSON property nfsShareId
1250 1251 1252 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1250 def nfs_share_id @nfs_share_id end |
#requested_size_gib ⇒ Fixnum
The requested size, in GiB.
Corresponds to the JSON property requestedSizeGib
1255 1256 1257 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1255 def requested_size_gib @requested_size_gib end |
#state ⇒ String
The state of the NFS share.
Corresponds to the JSON property state
1260 1261 1262 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1260 def state @state end |
#volume ⇒ String
The volume containing the share.
Corresponds to the JSON property volume
1265 1266 1267 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1265 def volume @volume end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1272 def update!(**args) @allowed_clients = args[:allowed_clients] if args.key?(:allowed_clients) @id = args[:id] if args.key?(:id) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @nfs_share_id = args[:nfs_share_id] if args.key?(:nfs_share_id) @requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib) @state = args[:state] if args.key?(:state) @volume = args[:volume] if args.key?(:volume) end |