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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Volume

Returns a new instance of Volume.



3599
3600
3601
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 3599

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


3587
3588
3589
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 3587

def name
  @name
end

#size_gbFloat

Volume size in gigabytes. Corresponds to the JSON property sizeGb

Returns:

  • (Float)


3592
3593
3594
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 3592

def size_gb
  @size_gb
end

#volume_typeString

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

Returns:

  • (String)


3597
3598
3599
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 3597

def volume_type
  @volume_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3604
3605
3606
3607
3608
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 3604

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