CreateVolumeMountDetails

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

Bases: object

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

Methods:

__init__(**kwargs)

Initializes a new CreateVolumeMountDetails object with values from keyword arguments.

Attributes:

is_read_only

Gets the is_read_only of this CreateVolumeMountDetails.

mount_path

[Required] Gets the mount_path of this CreateVolumeMountDetails.

partition

Gets the partition of this CreateVolumeMountDetails.

sub_path

Gets the sub_path of this CreateVolumeMountDetails.

volume_name

[Required] Gets the volume_name of this CreateVolumeMountDetails.

__init__(**kwargs)

Initializes a new CreateVolumeMountDetails 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 CreateVolumeMountDetails.

  • volume_name (str) – The value to assign to the volume_name property of this CreateVolumeMountDetails.

  • sub_path (str) – The value to assign to the sub_path property of this CreateVolumeMountDetails.

  • is_read_only (bool) – The value to assign to the is_read_only property of this CreateVolumeMountDetails.

  • partition (int) – The value to assign to the partition property of this CreateVolumeMountDetails.

property is_read_only

Gets the is_read_only of this CreateVolumeMountDetails. Whether the volume was mounted in read-only mode. By default, the volume is not read-only.

Returns

The is_read_only of this CreateVolumeMountDetails.

Return type

bool

property mount_path

[Required] Gets the mount_path of this CreateVolumeMountDetails. The volume access path.

Returns

The mount_path of this CreateVolumeMountDetails.

Return type

str

property partition

Gets the partition of this CreateVolumeMountDetails. 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 CreateVolumeMountDetails.

Return type

int

property sub_path

Gets the sub_path of this CreateVolumeMountDetails. A subpath inside the referenced volume.

Returns

The sub_path of this CreateVolumeMountDetails.

Return type

str

property volume_name

[Required] Gets the volume_name of this CreateVolumeMountDetails. The name of the volume. Avoid entering confidential information.

Returns

The volume_name of this CreateVolumeMountDetails.

Return type

str