ContainerOciFssVolume

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

Bases: oci.container_instances.models.container_volume.ContainerVolume

An OCI File Storage Service (FSS) File System that can be mounted to Containers within a Container Instance. Check https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/FileSystem for more details.

Attributes

VOLUME_TYPE_CONFIGFILE str(object=’’) -> str
VOLUME_TYPE_EMPTYDIR str(object=’’) -> str
VOLUME_TYPE_OCI_FSS_FILE_SYSTEM str(object=’’) -> str
export Gets the export of this ContainerOciFssVolume.
mount_command Gets the mount_command of this ContainerOciFssVolume.
mount_target Gets the mount_target of this ContainerOciFssVolume.
name [Required] Gets the name of this ContainerVolume.
security Gets the security of this ContainerOciFssVolume.
subnet_id Gets the subnet_id of this ContainerOciFssVolume.
volume_type [Required] Gets the volume_type of this ContainerVolume.

Methods

__init__(**kwargs) Initializes a new ContainerOciFssVolume 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'
VOLUME_TYPE_EMPTYDIR = 'EMPTYDIR'
VOLUME_TYPE_OCI_FSS_FILE_SYSTEM = 'OCI_FSS_FILE_SYSTEM'
__init__(**kwargs)

Initializes a new ContainerOciFssVolume object with values from keyword arguments. The default value of the volume_type attribute of this class is OCI_FSS_FILE_SYSTEM 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 ContainerOciFssVolume.
  • volume_type (str) – The value to assign to the volume_type property of this ContainerOciFssVolume. Allowed values for this property are: “EMPTYDIR”, “CONFIGFILE”, “OCI_FSS_FILE_SYSTEM”
  • mount_target (oci.container_instances.models.OciFssMountTarget) – The value to assign to the mount_target property of this ContainerOciFssVolume.
  • export (oci.container_instances.models.OciFssExport) – The value to assign to the export property of this ContainerOciFssVolume.
  • security (oci.container_instances.models.OciFssSecurity) – The value to assign to the security property of this ContainerOciFssVolume.
  • mount_command (oci.container_instances.models.OciFssMountCommand) – The value to assign to the mount_command property of this ContainerOciFssVolume.
  • subnet_id (str) – The value to assign to the subnet_id property of this ContainerOciFssVolume.
export

Gets the export of this ContainerOciFssVolume.

Returns:The export of this ContainerOciFssVolume.
Return type:oci.container_instances.models.OciFssExport
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.

mount_command

Gets the mount_command of this ContainerOciFssVolume.

Returns:The mount_command of this ContainerOciFssVolume.
Return type:oci.container_instances.models.OciFssMountCommand
mount_target

Gets the mount_target of this ContainerOciFssVolume.

Returns:The mount_target of this ContainerOciFssVolume.
Return type:oci.container_instances.models.OciFssMountTarget
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
security

Gets the security of this ContainerOciFssVolume.

Returns:The security of this ContainerOciFssVolume.
Return type:oci.container_instances.models.OciFssSecurity
subnet_id

Gets the subnet_id of this ContainerOciFssVolume. Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. This is a required parameter when a Container Instance is attached to more than one subnets.

Returns:The subnet_id of this ContainerOciFssVolume.
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”, “OCI_FSS_FILE_SYSTEM”, ‘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