VolumeMount

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

Bases: object

Define the mapping from volume to a mount path in container.

Methods

__init__(**kwargs) Initializes a new VolumeMount object with values from keyword arguments.

Attributes

is_read_only Gets the is_read_only of this VolumeMount.
mount_path [Required] Gets the mount_path of this VolumeMount.
partition Gets the partition of this VolumeMount.
sub_path Gets the sub_path of this VolumeMount.
volume_name [Required] Gets the volume_name of this VolumeMount.
__init__(**kwargs)

Initializes a new VolumeMount object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • mount_path (str) – The value to assign to the mount_path property of this VolumeMount.
  • volume_name (str) – The value to assign to the volume_name property of this VolumeMount.
  • sub_path (str) – The value to assign to the sub_path property of this VolumeMount.
  • is_read_only (bool) – The value to assign to the is_read_only property of this VolumeMount.
  • partition (int) – The value to assign to the partition property of this VolumeMount.
is_read_only

Gets the is_read_only of this VolumeMount. Whether the volume was mounted in read-only mode. By default, the volume is mounted with write access.

Returns:The is_read_only of this VolumeMount.
Return type:bool
mount_path

[Required] Gets the mount_path of this VolumeMount. Describes the volume access path.

Returns:The mount_path of this VolumeMount.
Return type:str
partition

Gets the partition of this VolumeMount. If there is more than one partition in the volume, reference this number of partitions. Here is an example: Number Start End Size File system Name Flags 1 1049kB 106MB 105MB fat16 EFI System Partition boot, esp 2 106MB 1180MB 1074MB xfs 3 1180MB 50.0GB 48.8GB lvm

Returns:The partition of this VolumeMount.
Return type:int
sub_path

Gets the sub_path of this VolumeMount. A sub-path inside the referenced volume.

Returns:The sub_path of this VolumeMount.
Return type:str
volume_name

[Required] Gets the volume_name of this VolumeMount. The name of the volume.

Returns:The volume_name of this VolumeMount.
Return type:str