kubernetes_asyncio.client.models.v1_csi_volume_source 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_csi_volume_source.V1CSIVolumeSource(driver=None, fs_type=None, node_publish_secret_ref=None, read_only=None, volume_attributes=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 = {'driver': 'driver', 'fs_type': 'fsType', 'node_publish_secret_ref': 'nodePublishSecretRef', 'read_only': 'readOnly', 'volume_attributes': 'volumeAttributes'}
property driver

Gets the driver of this V1CSIVolumeSource. # noqa: E501

driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. # noqa: E501

Returns:

The driver of this V1CSIVolumeSource. # noqa: E501

Return type:

str

property fs_type

Gets the fs_type of this V1CSIVolumeSource. # noqa: E501

fsType to mount. Ex. “ext4”, “xfs”, “ntfs”. If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. # noqa: E501

Returns:

The fs_type of this V1CSIVolumeSource. # noqa: E501

Return type:

str

property node_publish_secret_ref

Gets the node_publish_secret_ref of this V1CSIVolumeSource. # noqa: E501

Returns:

The node_publish_secret_ref of this V1CSIVolumeSource. # noqa: E501

Return type:

V1LocalObjectReference

openapi_types = {'driver': 'str', 'fs_type': 'str', 'node_publish_secret_ref': 'V1LocalObjectReference', 'read_only': 'bool', 'volume_attributes': 'dict(str, str)'}
property read_only

Gets the read_only of this V1CSIVolumeSource. # noqa: E501

readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). # noqa: E501

Returns:

The read_only of this V1CSIVolumeSource. # noqa: E501

Return type:

bool

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property volume_attributes

Gets the volume_attributes of this V1CSIVolumeSource. # noqa: E501

volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver’s documentation for supported values. # noqa: E501

Returns:

The volume_attributes of this V1CSIVolumeSource. # noqa: E501

Return type:

dict(str, str)