kubernetes_asyncio.client.models.v1_volume_mount module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech

class kubernetes_asyncio.client.models.v1_volume_mount.V1VolumeMount(mount_path=None, mount_propagation=None, name=None, read_only=None, recursive_read_only=None, sub_path=None, sub_path_expr=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'mount_path': 'mountPath', 'mount_propagation': 'mountPropagation', 'name': 'name', 'read_only': 'readOnly', 'recursive_read_only': 'recursiveReadOnly', 'sub_path': 'subPath', 'sub_path_expr': 'subPathExpr'}
property mount_path

Gets the mount_path of this V1VolumeMount. # noqa: E501

Path within the container at which the volume should be mounted. Must not contain ‘:’. # noqa: E501

Returns:

The mount_path of this V1VolumeMount. # noqa: E501

Return type:

str

property mount_propagation

Gets the mount_propagation of this V1VolumeMount. # noqa: E501

mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). # noqa: E501

Returns:

The mount_propagation of this V1VolumeMount. # noqa: E501

Return type:

str

property name

Gets the name of this V1VolumeMount. # noqa: E501

This must match the Name of a Volume. # noqa: E501

Returns:

The name of this V1VolumeMount. # noqa: E501

Return type:

str

openapi_types = {'mount_path': 'str', 'mount_propagation': 'str', 'name': 'str', 'read_only': 'bool', 'recursive_read_only': 'str', 'sub_path': 'str', 'sub_path_expr': 'str'}
property read_only

Gets the read_only of this V1VolumeMount. # noqa: E501

Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. # noqa: E501

Returns:

The read_only of this V1VolumeMount. # noqa: E501

Return type:

bool

property recursive_read_only

Gets the recursive_read_only of this V1VolumeMount. # noqa: E501

RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled. # noqa: E501

Returns:

The recursive_read_only of this V1VolumeMount. # noqa: E501

Return type:

str

property sub_path

Gets the sub_path of this V1VolumeMount. # noqa: E501

Path within the volume from which the container’s volume should be mounted. Defaults to “” (volume’s root). # noqa: E501

Returns:

The sub_path of this V1VolumeMount. # noqa: E501

Return type:

str

property sub_path_expr

Gets the sub_path_expr of this V1VolumeMount. # noqa: E501

Expanded path within the volume from which the container’s volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container’s environment. Defaults to “” (volume’s root). SubPathExpr and SubPath are mutually exclusive. # noqa: E501

Returns:

The sub_path_expr of this V1VolumeMount. # noqa: E501

Return type:

str

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model