Google Cloud Run V2 Client - Class EmptyDirVolumeSource (1.15.0)

Reference documentation and code samples for the Google Cloud Run V2 Client class EmptyDirVolumeSource.

Represents in-memory (tmpfs) or disk-backed 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).

Generated from protobuf message google.cloud.run.v2.EmptyDirVolumeSource

Namespace

Google \ Cloud \ Run \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ medium int

The medium on which the data is stored. Acceptable values are MEMORY, DISK, or unset (MEDIUM_UNSPECIFIED). When unset, the default is currently memory-backed but could change over time.

↳ 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. The default is nil which means that the limit is undefined. For more information, see Configure in-memory volume mounts and the Kubernetes emptyDir volume documentation.

getMedium

The medium on which the data is stored. Acceptable values are MEMORY, DISK, or unset (MEDIUM_UNSPECIFIED). When unset, the default is currently memory-backed but could change over time.

Returns
Type Description
int Enum of type Medium.

setMedium

The medium on which the data is stored. Acceptable values are MEMORY, DISK, or unset (MEDIUM_UNSPECIFIED). When unset, the default is currently memory-backed but could change over time.

Parameter
Name Description
var int

Enum of type Medium.

Returns
Type Description
$this

getSizeLimit

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. For more information, see Configure in-memory volume mounts and the Kubernetes emptyDir volume documentation.

Returns
Type Description
string

setSizeLimit

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. For more information, see Configure in-memory volume mounts and the Kubernetes emptyDir volume documentation.

Parameter
Name Description
var string
Returns
Type Description
$this