ContainerOciFssVolume¶
- class oci.container_instances.models.ContainerOciFssVolume(**kwargs)¶
Bases:
ContainerVolumeAn 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:
A constant which can be used with the volume_type property of a ContainerVolume.
A constant which can be used with the volume_type property of a ContainerVolume.
A constant which can be used with the volume_type property of a ContainerVolume.
Gets the export of this ContainerOciFssVolume.
Gets the mount_command of this ContainerOciFssVolume.
Gets the mount_target of this ContainerOciFssVolume.
[Required] Gets the name of this ContainerVolume.
Gets the security of this ContainerOciFssVolume.
Gets the subnet_id of this ContainerOciFssVolume.
[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'¶
A constant which can be used with the volume_type property of a ContainerVolume. This constant has a value of “CONFIGFILE”
- VOLUME_TYPE_EMPTYDIR = 'EMPTYDIR'¶
A constant which can be used with the volume_type property of a ContainerVolume. 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 ContainerVolume. This constant has a value of “OCI_FSS_FILE_SYSTEM”
- __init__(**kwargs)¶
Initializes a new ContainerOciFssVolume object with values from keyword arguments. The default value of the
volume_typeattribute of this class isOCI_FSS_FILE_SYSTEMand 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.
- property export¶
Gets the export of this ContainerOciFssVolume.
- Returns
The export of this ContainerOciFssVolume.
- Return type
- 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 mount_command¶
Gets the mount_command of this ContainerOciFssVolume.
- Returns
The mount_command of this ContainerOciFssVolume.
- Return type
- property mount_target¶
Gets the mount_target of this ContainerOciFssVolume.
- Returns
The mount_target of this ContainerOciFssVolume.
- Return type
- property 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
- property security¶
Gets the security of this ContainerOciFssVolume.
- Returns
The security of this ContainerOciFssVolume.
- Return type
- property 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
- property 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