ContainerEmptyDirVolume

class oci.container_instances.models.ContainerEmptyDirVolume(**kwargs)

Bases: oci.container_instances.models.container_volume.ContainerVolume

The empty directory volume of a container instance. You can create up to 64 EmptyDir per container instance.

Attributes

BACKING_STORE_EPHEMERAL_STORAGE A constant which can be used with the backing_store property of a ContainerEmptyDirVolume.
BACKING_STORE_MEMORY A constant which can be used with the backing_store property of a ContainerEmptyDirVolume.
VOLUME_TYPE_CONFIGFILE str(object=’’) -> str
VOLUME_TYPE_EMPTYDIR str(object=’’) -> str
backing_store Gets the backing_store of this ContainerEmptyDirVolume.
name [Required] Gets the name of this ContainerVolume.
volume_type [Required] Gets the volume_type of this ContainerVolume.

Methods

__init__(**kwargs) Initializes a new ContainerEmptyDirVolume object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
BACKING_STORE_EPHEMERAL_STORAGE = 'EPHEMERAL_STORAGE'

A constant which can be used with the backing_store property of a ContainerEmptyDirVolume. This constant has a value of “EPHEMERAL_STORAGE”

BACKING_STORE_MEMORY = 'MEMORY'

A constant which can be used with the backing_store property of a ContainerEmptyDirVolume. This constant has a value of “MEMORY”

VOLUME_TYPE_CONFIGFILE = 'CONFIGFILE'
VOLUME_TYPE_EMPTYDIR = 'EMPTYDIR'
__init__(**kwargs)

Initializes a new ContainerEmptyDirVolume object with values from keyword arguments. The default value of the volume_type attribute of this class is EMPTYDIR and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • name (str) – The value to assign to the name property of this ContainerEmptyDirVolume.
  • volume_type (str) – The value to assign to the volume_type property of this ContainerEmptyDirVolume. Allowed values for this property are: “EMPTYDIR”, “CONFIGFILE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • backing_store (str) – The value to assign to the backing_store property of this ContainerEmptyDirVolume. Allowed values for this property are: “EPHEMERAL_STORAGE”, “MEMORY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
backing_store

Gets the backing_store of this ContainerEmptyDirVolume. The volume type of the empty directory, can be either File Storage or Memory.

Allowed values for this property are: “EPHEMERAL_STORAGE”, “MEMORY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The backing_store of this ContainerEmptyDirVolume.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

name

[Required] Gets the name of this ContainerVolume. The name of the volume. This must be unique within a single container instance.

Returns:The name of this ContainerVolume.
Return type:str
volume_type

[Required] Gets the volume_type of this ContainerVolume. The type of volume.

Allowed values for this property are: “EMPTYDIR”, “CONFIGFILE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The volume_type of this ContainerVolume.
Return type:str