Class: Google::Apis::AppengineV1::Volume

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/appengine_v1/classes.rb,
generated/google/apis/appengine_v1/representations.rb,
generated/google/apis/appengine_v1/representations.rb

Overview

Volumes mounted within the app container. Only applicable for VM runtimes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Volume

Returns a new instance of Volume



1256
1257
1258
# File 'generated/google/apis/appengine_v1/classes.rb', line 1256

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

Instance Attribute Details

#nameString

Unique name for the volume. Corresponds to the JSON property name

Returns:

  • (String)


1254
1255
1256
# File 'generated/google/apis/appengine_v1/classes.rb', line 1254

def name
  @name
end

#size_gbFloat

Volume size in gigabytes. Corresponds to the JSON property sizeGb

Returns:

  • (Float)


1249
1250
1251
# File 'generated/google/apis/appengine_v1/classes.rb', line 1249

def size_gb
  @size_gb
end

#volume_typeString

Underlying volume type, e.g. 'tmpfs'. Corresponds to the JSON property volumeType

Returns:

  • (String)


1244
1245
1246
# File 'generated/google/apis/appengine_v1/classes.rb', line 1244

def volume_type
  @volume_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1261
1262
1263
1264
1265
# File 'generated/google/apis/appengine_v1/classes.rb', line 1261

def update!(**args)
  @volume_type = args[:volume_type] if args.key?(:volume_type)
  @size_gb = args[:size_gb] if args.key?(:size_gb)
  @name = args[:name] if args.key?(:name)
end