Class: Google::Apis::RunV1::EmptyDirVolumeSource
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::EmptyDirVolumeSource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1/classes.rb,
lib/google/apis/run_v1/representations.rb,
lib/google/apis/run_v1/representations.rb
Overview
Ephemeral storage which can be backed by real disks (HD, SSD), network storage or memory (i.e. tmpfs). For now only in memory (tmpfs) is supported. It is ephemeral in the sense that when the sandbox is taken down, the data is destroyed with it (it does not persist across sandbox runs).
Instance Attribute Summary collapse
-
#medium ⇒ String
The medium on which the data is stored.
-
#size_limit ⇒ String
Limit on the storage usable by this EmptyDir volume.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EmptyDirVolumeSource
constructor
A new instance of EmptyDirVolumeSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EmptyDirVolumeSource
Returns a new instance of EmptyDirVolumeSource.
849 850 851 |
# File 'lib/google/apis/run_v1/classes.rb', line 849 def initialize(**args) update!(**args) end |
Instance Attribute Details
#medium ⇒ String
The medium on which the data is stored. The default is "" which means to use
the node's default medium. Must be an empty string (default) or Memory. More
info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir +optional
Corresponds to the JSON property medium
835 836 837 |
# File 'lib/google/apis/run_v1/classes.rb', line 835 def medium @medium end |
#size_limit ⇒ String
Limit on the storage usable by this EmptyDir volume. The size limit is also
applicable for memory medium. The maximum usage on memory medium EmptyDir
would be the minimum value between the SizeLimit specified here and the sum of
memory limits of all containers in a pod. This field's values are of the '
Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-
definitions/quantity/. The default is nil which means that the limit is
undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir +
optional
Corresponds to the JSON property sizeLimit
847 848 849 |
# File 'lib/google/apis/run_v1/classes.rb', line 847 def size_limit @size_limit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
854 855 856 857 |
# File 'lib/google/apis/run_v1/classes.rb', line 854 def update!(**args) @medium = args[:medium] if args.key?(:medium) @size_limit = args[:size_limit] if args.key?(:size_limit) end |