kubernetes_asyncio.client.models.v1_persistent_volume_claim_spec 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_persistent_volume_claim_spec.V1PersistentVolumeClaimSpec(access_modes=None, data_source=None, data_source_ref=None, resources=None, selector=None, storage_class_name=None, volume_attributes_class_name=None, volume_mode=None, volume_name=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.

property access_modes

Gets the access_modes of this V1PersistentVolumeClaimSpec. # noqa: E501

accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 # noqa: E501

Returns:

The access_modes of this V1PersistentVolumeClaimSpec. # noqa: E501

Return type:

list[str]

attribute_map = {'access_modes': 'accessModes', 'data_source': 'dataSource', 'data_source_ref': 'dataSourceRef', 'resources': 'resources', 'selector': 'selector', 'storage_class_name': 'storageClassName', 'volume_attributes_class_name': 'volumeAttributesClassName', 'volume_mode': 'volumeMode', 'volume_name': 'volumeName'}
property data_source

Gets the data_source of this V1PersistentVolumeClaimSpec. # noqa: E501

Returns:

The data_source of this V1PersistentVolumeClaimSpec. # noqa: E501

Return type:

V1TypedLocalObjectReference

property data_source_ref

Gets the data_source_ref of this V1PersistentVolumeClaimSpec. # noqa: E501

Returns:

The data_source_ref of this V1PersistentVolumeClaimSpec. # noqa: E501

Return type:

V1TypedObjectReference

openapi_types = {'access_modes': 'list[str]', 'data_source': 'V1TypedLocalObjectReference', 'data_source_ref': 'V1TypedObjectReference', 'resources': 'V1VolumeResourceRequirements', 'selector': 'V1LabelSelector', 'storage_class_name': 'str', 'volume_attributes_class_name': 'str', 'volume_mode': 'str', 'volume_name': 'str'}
property resources

Gets the resources of this V1PersistentVolumeClaimSpec. # noqa: E501

Returns:

The resources of this V1PersistentVolumeClaimSpec. # noqa: E501

Return type:

V1VolumeResourceRequirements

property selector

Gets the selector of this V1PersistentVolumeClaimSpec. # noqa: E501

Returns:

The selector of this V1PersistentVolumeClaimSpec. # noqa: E501

Return type:

V1LabelSelector

property storage_class_name

Gets the storage_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501

storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 # noqa: E501

Returns:

The storage_class_name of this V1PersistentVolumeClaimSpec. # 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

property volume_attributes_class_name

Gets the volume_attributes_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501

volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ # noqa: E501

Returns:

The volume_attributes_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501

Return type:

str

property volume_mode

Gets the volume_mode of this V1PersistentVolumeClaimSpec. # noqa: E501

volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. # noqa: E501

Returns:

The volume_mode of this V1PersistentVolumeClaimSpec. # noqa: E501

Return type:

str

property volume_name

Gets the volume_name of this V1PersistentVolumeClaimSpec. # noqa: E501

volumeName is the binding reference to the PersistentVolume backing this claim. # noqa: E501

Returns:

The volume_name of this V1PersistentVolumeClaimSpec. # noqa: E501

Return type:

str