Class: Google::Apis::AppengineV1beta5::Volume
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1beta5::Volume
- 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
-
#name ⇒ String
Unique name for the volume.
-
#size_gb ⇒ Float
Volume size in gigabytes.
-
#volume_type ⇒ String
Underlying volume type, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Volume
constructor
A new instance of Volume.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Volume
Returns a new instance of Volume
2222 2223 2224 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 2222 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Unique name for the volume.
Corresponds to the JSON property name
2210 2211 2212 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 2210 def name @name end |
#size_gb ⇒ Float
Volume size in gigabytes.
Corresponds to the JSON property sizeGb
2215 2216 2217 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 2215 def size_gb @size_gb end |
#volume_type ⇒ String
Underlying volume type, e.g. 'tmpfs'.
Corresponds to the JSON property volumeType
2220 2221 2222 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 2220 def volume_type @volume_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2227 2228 2229 2230 2231 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 2227 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 |