Class: Google::Apis::BaremetalsolutionV2::NfsShare

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NfsShare

Returns a new instance of NfsShare.



1294
1295
1296
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1294

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allowed_clientsArray<Google::Apis::BaremetalsolutionV2::AllowedClient>

List of allowed access points. Corresponds to the JSON property allowedClients



1255
1256
1257
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1255

def allowed_clients
  @allowed_clients
end

#idString

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

Returns:

  • (String)


1261
1262
1263
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1261

def id
  @id
end

#labelsHash<String,String>

Labels as key value pairs. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1266
1267
1268
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1266

def labels
  @labels
end

#nameString

Output only. The name of the NFS share. Corresponds to the JSON property name

Returns:

  • (String)


1271
1272
1273
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1271

def name
  @name
end

#nfs_share_idString

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

Returns:

  • (String)


1277
1278
1279
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1277

def nfs_share_id
  @nfs_share_id
end

#requested_size_gibFixnum

The requested size, in GiB. Corresponds to the JSON property requestedSizeGib

Returns:

  • (Fixnum)


1282
1283
1284
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1282

def requested_size_gib
  @requested_size_gib
end

#stateString

The state of the NFS share. Corresponds to the JSON property state

Returns:

  • (String)


1287
1288
1289
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1287

def state
  @state
end

#volumeString

The volume containing the share. Corresponds to the JSON property volume

Returns:

  • (String)


1292
1293
1294
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1292

def volume
  @volume
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1299

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