Class: Google::Apis::AppengineV1beta::Volume

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

Overview

Volumes mounted within the app container. Only applicable in the App Engine flexible environment.

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



3076
3077
3078
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 3076

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


3064
3065
3066
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 3064

def name
  @name
end

#size_gbFloat

Volume size in gigabytes. Corresponds to the JSON property sizeGb

Returns:

  • (Float)


3069
3070
3071
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 3069

def size_gb
  @size_gb
end

#volume_typeString

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

Returns:

  • (String)


3074
3075
3076
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 3074

def volume_type
  @volume_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3081
3082
3083
3084
3085
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 3081

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