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.



1253
1254
1255
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1253

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



1221
1222
1223
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1221

def allowed_clients
  @allowed_clients
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


1226
1227
1228
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1226

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


1231
1232
1233
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1231

def name
  @name
end

#nfs_share_idString

Output only. An identifier for the NFS share, generated by the backend. Corresponds to the JSON property nfsShareId

Returns:

  • (String)


1236
1237
1238
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1236

def nfs_share_id
  @nfs_share_id
end

#requested_size_gibFixnum

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

Returns:

  • (Fixnum)


1241
1242
1243
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1241

def requested_size_gib
  @requested_size_gib
end

#stateString

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

Returns:

  • (String)


1246
1247
1248
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1246

def state
  @state
end

#volumeString

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

Returns:

  • (String)


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