CreateContainerVolumeDetails

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

Bases: object

A volume represents a directory with data that is accessible across multiple containers in a container instance.

Attributes

VOLUME_TYPE_CONFIGFILE A constant which can be used with the volume_type property of a CreateContainerVolumeDetails.
VOLUME_TYPE_EMPTYDIR A constant which can be used with the volume_type property of a CreateContainerVolumeDetails.
name [Required] Gets the name of this CreateContainerVolumeDetails.
volume_type [Required] Gets the volume_type of this CreateContainerVolumeDetails.

Methods

__init__(**kwargs) Initializes a new CreateContainerVolumeDetails 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.
VOLUME_TYPE_CONFIGFILE = 'CONFIGFILE'

A constant which can be used with the volume_type property of a CreateContainerVolumeDetails. This constant has a value of “CONFIGFILE”

VOLUME_TYPE_EMPTYDIR = 'EMPTYDIR'

A constant which can be used with the volume_type property of a CreateContainerVolumeDetails. This constant has a value of “EMPTYDIR”

__init__(**kwargs)

Initializes a new CreateContainerVolumeDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

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 CreateContainerVolumeDetails.
  • volume_type (str) – The value to assign to the volume_type property of this CreateContainerVolumeDetails. Allowed values for this property are: “EMPTYDIR”, “CONFIGFILE”
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 CreateContainerVolumeDetails. The name of the volume. This must be unique within a single container instance.

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

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

Allowed values for this property are: “EMPTYDIR”, “CONFIGFILE”

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