CreateContainerConfigFileVolumeDetails

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

Bases: CreateContainerVolumeDetails

The configuration files to pass to the container using volume mounts.

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.

VOLUME_TYPE_OCI_FSS_FILE_SYSTEM

A constant which can be used with the volume_type property of a CreateContainerVolumeDetails.

configs

Gets the configs of this CreateContainerConfigFileVolumeDetails.

name

[Required] Gets the name of this CreateContainerVolumeDetails.

volume_type

[Required] Gets the volume_type of this CreateContainerVolumeDetails.

Methods:

__init__(**kwargs)

Initializes a new CreateContainerConfigFileVolumeDetails 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”

VOLUME_TYPE_OCI_FSS_FILE_SYSTEM = 'OCI_FSS_FILE_SYSTEM'

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

__init__(**kwargs)

Initializes a new CreateContainerConfigFileVolumeDetails object with values from keyword arguments. The default value of the volume_type attribute of this class is CONFIGFILE 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 CreateContainerConfigFileVolumeDetails.

  • volume_type (str) – The value to assign to the volume_type property of this CreateContainerConfigFileVolumeDetails. Allowed values for this property are: “EMPTYDIR”, “CONFIGFILE”, “OCI_FSS_FILE_SYSTEM”

  • configs (list[oci.container_instances.models.ContainerConfigFile]) – The value to assign to the configs property of this CreateContainerConfigFileVolumeDetails.

property configs

Gets the configs of this CreateContainerConfigFileVolumeDetails. Contains key value pairs which can be mounted as individual files inside the container. The value needs to be base64 encoded. It is decoded to plain text before the mount.

Returns

The configs of this CreateContainerConfigFileVolumeDetails.

Return type

list[oci.container_instances.models.ContainerConfigFile]

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.

property 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

property volume_type

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

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

Returns

The volume_type of this CreateContainerVolumeDetails.

Return type

str