kubernetes.aio.client.models.v1_persistent_volume_spec module¶
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.36 Generated by: https://openapi-generator.tech
- class kubernetes.aio.client.models.v1_persistent_volume_spec.V1PersistentVolumeSpec(access_modes=None, aws_elastic_block_store=None, azure_disk=None, azure_file=None, capacity=None, cephfs=None, cinder=None, claim_ref=None, csi=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, glusterfs=None, host_path=None, iscsi=None, local=None, mount_options=None, nfs=None, node_affinity=None, persistent_volume_reclaim_policy=None, photon_persistent_disk=None, portworx_volume=None, quobyte=None, rbd=None, scale_io=None, storage_class_name=None, storageos=None, volume_attributes_class_name=None, volume_mode=None, vsphere_volume=None, local_vars_configuration=None)¶
Bases:
objectNOTE: 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 V1PersistentVolumeSpec. # noqa: E501
accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes # noqa: E501
- Returns:
The access_modes of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
list[str]
- attribute_map = {'access_modes': 'accessModes', 'aws_elastic_block_store': 'awsElasticBlockStore', 'azure_disk': 'azureDisk', 'azure_file': 'azureFile', 'capacity': 'capacity', 'cephfs': 'cephfs', 'cinder': 'cinder', 'claim_ref': 'claimRef', 'csi': 'csi', 'fc': 'fc', 'flex_volume': 'flexVolume', 'flocker': 'flocker', 'gce_persistent_disk': 'gcePersistentDisk', 'glusterfs': 'glusterfs', 'host_path': 'hostPath', 'iscsi': 'iscsi', 'local': 'local', 'mount_options': 'mountOptions', 'nfs': 'nfs', 'node_affinity': 'nodeAffinity', 'persistent_volume_reclaim_policy': 'persistentVolumeReclaimPolicy', 'photon_persistent_disk': 'photonPersistentDisk', 'portworx_volume': 'portworxVolume', 'quobyte': 'quobyte', 'rbd': 'rbd', 'scale_io': 'scaleIO', 'storage_class_name': 'storageClassName', 'storageos': 'storageos', 'volume_attributes_class_name': 'volumeAttributesClassName', 'volume_mode': 'volumeMode', 'vsphere_volume': 'vsphereVolume'}¶
- property aws_elastic_block_store¶
Gets the aws_elastic_block_store of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The aws_elastic_block_store of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property azure_disk¶
Gets the azure_disk of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The azure_disk of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property azure_file¶
Gets the azure_file of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The azure_file of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property capacity¶
Gets the capacity of this V1PersistentVolumeSpec. # noqa: E501
capacity is the description of the persistent volume’s resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity # noqa: E501
- Returns:
The capacity of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
dict[str, str]
- property cephfs¶
Gets the cephfs of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The cephfs of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property cinder¶
Gets the cinder of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The cinder of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property claim_ref¶
Gets the claim_ref of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The claim_ref of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property csi¶
Gets the csi of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The csi of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property fc¶
Gets the fc of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The fc of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property flex_volume¶
Gets the flex_volume of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The flex_volume of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property flocker¶
Gets the flocker of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The flocker of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property gce_persistent_disk¶
Gets the gce_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The gce_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property glusterfs¶
Gets the glusterfs of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The glusterfs of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property host_path¶
Gets the host_path of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The host_path of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property iscsi¶
Gets the iscsi of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The iscsi of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property local¶
Gets the local of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The local of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property mount_options¶
Gets the mount_options of this V1PersistentVolumeSpec. # noqa: E501
mountOptions is the list of mount options, e.g. [“ro”, “soft”]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options # noqa: E501
- Returns:
The mount_options of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
list[str]
- property nfs¶
Gets the nfs of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The nfs of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property node_affinity¶
Gets the node_affinity of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The node_affinity of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- openapi_types = {'access_modes': 'list[str]', 'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource', 'azure_disk': 'V1AzureDiskVolumeSource', 'azure_file': 'V1AzureFilePersistentVolumeSource', 'capacity': 'dict[str, str]', 'cephfs': 'V1CephFSPersistentVolumeSource', 'cinder': 'V1CinderPersistentVolumeSource', 'claim_ref': 'V1ObjectReference', 'csi': 'V1CSIPersistentVolumeSource', 'fc': 'V1FCVolumeSource', 'flex_volume': 'V1FlexPersistentVolumeSource', 'flocker': 'V1FlockerVolumeSource', 'gce_persistent_disk': 'V1GCEPersistentDiskVolumeSource', 'glusterfs': 'V1GlusterfsPersistentVolumeSource', 'host_path': 'V1HostPathVolumeSource', 'iscsi': 'V1ISCSIPersistentVolumeSource', 'local': 'V1LocalVolumeSource', 'mount_options': 'list[str]', 'nfs': 'V1NFSVolumeSource', 'node_affinity': 'V1VolumeNodeAffinity', 'persistent_volume_reclaim_policy': 'str', 'photon_persistent_disk': 'V1PhotonPersistentDiskVolumeSource', 'portworx_volume': 'V1PortworxVolumeSource', 'quobyte': 'V1QuobyteVolumeSource', 'rbd': 'V1RBDPersistentVolumeSource', 'scale_io': 'V1ScaleIOPersistentVolumeSource', 'storage_class_name': 'str', 'storageos': 'V1StorageOSPersistentVolumeSource', 'volume_attributes_class_name': 'str', 'volume_mode': 'str', 'vsphere_volume': 'V1VsphereVirtualDiskVolumeSource'}¶
- property persistent_volume_reclaim_policy¶
Gets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. # noqa: E501
persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming # noqa: E501
- Returns:
The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
str
- property photon_persistent_disk¶
Gets the photon_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The photon_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property portworx_volume¶
Gets the portworx_volume of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The portworx_volume of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property quobyte¶
Gets the quobyte of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The quobyte of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property rbd¶
Gets the rbd of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The rbd of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property scale_io¶
Gets the scale_io of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The scale_io of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- property storage_class_name¶
Gets the storage_class_name of this V1PersistentVolumeSpec. # noqa: E501
storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. # noqa: E501
- Returns:
The storage_class_name of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
str
- property storageos¶
Gets the storageos of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The storageos of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
- 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 V1PersistentVolumeSpec. # noqa: E501
Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. # noqa: E501
- Returns:
The volume_attributes_class_name of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
str
- property volume_mode¶
Gets the volume_mode of this V1PersistentVolumeSpec. # noqa: E501
volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. # noqa: E501
- Returns:
The volume_mode of this V1PersistentVolumeSpec. # noqa: E501
- Return type:
str
- property vsphere_volume¶
Gets the vsphere_volume of this V1PersistentVolumeSpec. # noqa: E501
- Returns:
The vsphere_volume of this V1PersistentVolumeSpec. # noqa: E501
- Return type: