Class: Google::Apis::RunV1::EmptyDirVolumeSource

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

In memory (tmpfs) ephemeral storage. 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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EmptyDirVolumeSource

Returns a new instance of EmptyDirVolumeSource.



932
933
934
# File 'lib/google/apis/run_v1/classes.rb', line 932

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

Instance Attribute Details

#mediumString

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 Corresponds to the JSON property medium

Returns:

  • (String)


919
920
921
# File 'lib/google/apis/run_v1/classes.rb', line 919

def medium
  @medium
end

#size_limitString

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. The default is nil which means that the limit is undefined. More info: https://cloud.google.com/run/docs/configuring/in- memory-volumes#configure-volume. Info in Kubernetes: https://kubernetes.io/ docs/concepts/storage/volumes/#emptydir Corresponds to the JSON property sizeLimit

Returns:

  • (String)


930
931
932
# File 'lib/google/apis/run_v1/classes.rb', line 930

def size_limit
  @size_limit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



937
938
939
940
# File 'lib/google/apis/run_v1/classes.rb', line 937

def update!(**args)
  @medium = args[:medium] if args.key?(:medium)
  @size_limit = args[:size_limit] if args.key?(:size_limit)
end