kubernetes_asyncio.client.models.v1_gce_persistent_disk_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_gce_persistent_disk_volume_source.V1GCEPersistentDiskVolumeSource(fs_type=None, partition=None, pd_name=None, read_only=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 = {'fs_type': 'fsType', 'partition': 'partition', 'pd_name': 'pdName', 'read_only': 'readOnly'}
property fs_type

Gets the fs_type of this V1GCEPersistentDiskVolumeSource. # noqa: E501

fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501

Returns:

The fs_type of this V1GCEPersistentDiskVolumeSource. # noqa: E501

Return type:

str

openapi_types = {'fs_type': 'str', 'partition': 'int', 'pd_name': 'str', 'read_only': 'bool'}
property partition

Gets the partition of this V1GCEPersistentDiskVolumeSource. # noqa: E501

partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as “1”. Similarly, the volume partition for /dev/sda is “0” (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501

Returns:

The partition of this V1GCEPersistentDiskVolumeSource. # noqa: E501

Return type:

int

property pd_name

Gets the pd_name of this V1GCEPersistentDiskVolumeSource. # noqa: E501

pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501

Returns:

The pd_name of this V1GCEPersistentDiskVolumeSource. # noqa: E501

Return type:

str

property read_only

Gets the read_only of this V1GCEPersistentDiskVolumeSource. # noqa: E501

readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501

Returns:

The read_only of this V1GCEPersistentDiskVolumeSource. # 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