Class: Google::Apis::AppengineV1beta::Volume
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1beta::Volume
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/appengine_v1beta/classes.rb,
lib/google/apis/appengine_v1beta/representations.rb,
lib/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
-
#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.
Constructor Details
#initialize(**args) ⇒ Volume
Returns a new instance of Volume.
3638 3639 3640 |
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 3638 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Unique name for the volume.
Corresponds to the JSON property name
3626 3627 3628 |
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 3626 def name @name end |
#size_gb ⇒ Float
Volume size in gigabytes.
Corresponds to the JSON property sizeGb
3631 3632 3633 |
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 3631 def size_gb @size_gb end |
#volume_type ⇒ String
Underlying volume type, e.g. 'tmpfs'.
Corresponds to the JSON property volumeType
3636 3637 3638 |
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 3636 def volume_type @volume_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3643 3644 3645 3646 3647 |
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 3643 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 |