Class: Google::Apis::AppengineV1beta5::Volume

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Volume

Returns a new instance of Volume.



2228
2229
2230
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 2228

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


2216
2217
2218
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 2216

def name
  @name
end

#size_gbFloat

Volume size in gigabytes. Corresponds to the JSON property sizeGb

Returns:

  • (Float)


2221
2222
2223
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 2221

def size_gb
  @size_gb
end

#volume_typeString

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

Returns:

  • (String)


2226
2227
2228
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 2226

def volume_type
  @volume_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2233
2234
2235
2236
2237
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 2233

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