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.
-
#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.
1253 1254 1255 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1253 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
1221 1222 1223 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1221 def allowed_clients @allowed_clients end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
1226 1227 1228 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1226 def labels @labels end |
#name ⇒ String
Output only. The name of the NFS share.
Corresponds to the JSON property name
1231 1232 1233 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1231 def name @name end |
#nfs_share_id ⇒ String
Output only. An identifier for the NFS share, generated by the backend.
Corresponds to the JSON property nfsShareId
1236 1237 1238 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1236 def nfs_share_id @nfs_share_id end |
#requested_size_gib ⇒ Fixnum
The requested size, in GiB.
Corresponds to the JSON property requestedSizeGib
1241 1242 1243 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1241 def requested_size_gib @requested_size_gib end |
#state ⇒ String
The state of the NFS share.
Corresponds to the JSON property state
1246 1247 1248 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1246 def state @state end |
#volume ⇒ String
The volume containing the share.
Corresponds to the JSON property volume
1251 1252 1253 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1251 def volume @volume end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1258 1259 1260 1261 1262 1263 1264 1265 1266 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1258 def update!(**args) @allowed_clients = args[:allowed_clients] if args.key?(:allowed_clients) @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 |