codekingpro/portable-devtools
114k
1# coding: utf-82 3"""4 Kubernetes5 6 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E5017 8 The version of the OpenAPI document: release-1.359 Generated by: https://openapi-generator.tech10"""11 12 13import pprint14import re # noqa: F40115 16import six17 18from kubernetes.client.configuration import Configuration19 20 21class V1PersistentVolumeSpec(object):22 """NOTE: This class is auto generated by OpenAPI Generator.23 Ref: https://openapi-generator.tech24 25 Do not edit the class manually.26 """27 28 """29 Attributes:30 openapi_types (dict): The key is attribute name31 and the value is attribute type.32 attribute_map (dict): The key is attribute name33 and the value is json key in definition.34 """35 openapi_types = {36 'access_modes': 'list[str]',37 'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource',38 'azure_disk': 'V1AzureDiskVolumeSource',39 'azure_file': 'V1AzureFilePersistentVolumeSource',40 'capacity': 'dict(str, str)',41 'cephfs': 'V1CephFSPersistentVolumeSource',42 'cinder': 'V1CinderPersistentVolumeSource',43 'claim_ref': 'V1ObjectReference',44 'csi': 'V1CSIPersistentVolumeSource',45 'fc': 'V1FCVolumeSource',46 'flex_volume': 'V1FlexPersistentVolumeSource',47 'flocker': 'V1FlockerVolumeSource',48 'gce_persistent_disk': 'V1GCEPersistentDiskVolumeSource',49 'glusterfs': 'V1GlusterfsPersistentVolumeSource',50 'host_path': 'V1HostPathVolumeSource',51 'iscsi': 'V1ISCSIPersistentVolumeSource',52 'local': 'V1LocalVolumeSource',53 'mount_options': 'list[str]',54 'nfs': 'V1NFSVolumeSource',55 'node_affinity': 'V1VolumeNodeAffinity',56 'persistent_volume_reclaim_policy': 'str',57 'photon_persistent_disk': 'V1PhotonPersistentDiskVolumeSource',58 'portworx_volume': 'V1PortworxVolumeSource',59 'quobyte': 'V1QuobyteVolumeSource',60 'rbd': 'V1RBDPersistentVolumeSource',61 'scale_io': 'V1ScaleIOPersistentVolumeSource',62 'storage_class_name': 'str',63 'storageos': 'V1StorageOSPersistentVolumeSource',64 'volume_attributes_class_name': 'str',65 'volume_mode': 'str',66 'vsphere_volume': 'V1VsphereVirtualDiskVolumeSource'67 }68 69 attribute_map = {70 'access_modes': 'accessModes',71 'aws_elastic_block_store': 'awsElasticBlockStore',72 'azure_disk': 'azureDisk',73 'azure_file': 'azureFile',74 'capacity': 'capacity',75 'cephfs': 'cephfs',76 'cinder': 'cinder',77 'claim_ref': 'claimRef',78 'csi': 'csi',79 'fc': 'fc',80 'flex_volume': 'flexVolume',81 'flocker': 'flocker',82 'gce_persistent_disk': 'gcePersistentDisk',83 'glusterfs': 'glusterfs',84 'host_path': 'hostPath',85 'iscsi': 'iscsi',86 'local': 'local',87 'mount_options': 'mountOptions',88 'nfs': 'nfs',89 'node_affinity': 'nodeAffinity',90 'persistent_volume_reclaim_policy': 'persistentVolumeReclaimPolicy',91 'photon_persistent_disk': 'photonPersistentDisk',92 'portworx_volume': 'portworxVolume',93 'quobyte': 'quobyte',94 'rbd': 'rbd',95 'scale_io': 'scaleIO',96 'storage_class_name': 'storageClassName',97 'storageos': 'storageos',98 'volume_attributes_class_name': 'volumeAttributesClassName',99 'volume_mode': 'volumeMode',100 'vsphere_volume': 'vsphereVolume'101 }102 103 def __init__(self, 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): # noqa: E501104 """V1PersistentVolumeSpec - a model defined in OpenAPI""" # noqa: E501105 if local_vars_configuration is None:106 local_vars_configuration = Configuration()107 self.local_vars_configuration = local_vars_configuration108 109 self._access_modes = None110 self._aws_elastic_block_store = None111 self._azure_disk = None112 self._azure_file = None113 self._capacity = None114 self._cephfs = None115 self._cinder = None116 self._claim_ref = None117 self._csi = None118 self._fc = None119 self._flex_volume = None120 self._flocker = None121 self._gce_persistent_disk = None122 self._glusterfs = None123 self._host_path = None124 self._iscsi = None125 self._local = None126 self._mount_options = None127 self._nfs = None128 self._node_affinity = None129 self._persistent_volume_reclaim_policy = None130 self._photon_persistent_disk = None131 self._portworx_volume = None132 self._quobyte = None133 self._rbd = None134 self._scale_io = None135 self._storage_class_name = None136 self._storageos = None137 self._volume_attributes_class_name = None138 self._volume_mode = None139 self._vsphere_volume = None140 self.discriminator = None141 142 if access_modes is not None:143 self.access_modes = access_modes144 if aws_elastic_block_store is not None:145 self.aws_elastic_block_store = aws_elastic_block_store146 if azure_disk is not None:147 self.azure_disk = azure_disk148 if azure_file is not None:149 self.azure_file = azure_file150 if capacity is not None:151 self.capacity = capacity152 if cephfs is not None:153 self.cephfs = cephfs154 if cinder is not None:155 self.cinder = cinder156 if claim_ref is not None:157 self.claim_ref = claim_ref158 if csi is not None:159 self.csi = csi160 if fc is not None:161 self.fc = fc162 if flex_volume is not None:163 self.flex_volume = flex_volume164 if flocker is not None:165 self.flocker = flocker166 if gce_persistent_disk is not None:167 self.gce_persistent_disk = gce_persistent_disk168 if glusterfs is not None:169 self.glusterfs = glusterfs170 if host_path is not None:171 self.host_path = host_path172 if iscsi is not None:173 self.iscsi = iscsi174 if local is not None:175 self.local = local176 if mount_options is not None:177 self.mount_options = mount_options178 if nfs is not None:179 self.nfs = nfs180 if node_affinity is not None:181 self.node_affinity = node_affinity182 if persistent_volume_reclaim_policy is not None:183 self.persistent_volume_reclaim_policy = persistent_volume_reclaim_policy184 if photon_persistent_disk is not None:185 self.photon_persistent_disk = photon_persistent_disk186 if portworx_volume is not None:187 self.portworx_volume = portworx_volume188 if quobyte is not None:189 self.quobyte = quobyte190 if rbd is not None:191 self.rbd = rbd192 if scale_io is not None:193 self.scale_io = scale_io194 if storage_class_name is not None:195 self.storage_class_name = storage_class_name196 if storageos is not None:197 self.storageos = storageos198 if volume_attributes_class_name is not None:199 self.volume_attributes_class_name = volume_attributes_class_name200 if volume_mode is not None:201 self.volume_mode = volume_mode202 if vsphere_volume is not None:203 self.vsphere_volume = vsphere_volume204 205 @property206 def access_modes(self):207 """Gets the access_modes of this V1PersistentVolumeSpec. # noqa: E501208 209 accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes # noqa: E501210 211 :return: The access_modes of this V1PersistentVolumeSpec. # noqa: E501212 :rtype: list[str]213 """214 return self._access_modes215 216 @access_modes.setter217 def access_modes(self, access_modes):218 """Sets the access_modes of this V1PersistentVolumeSpec.219 220 accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes # noqa: E501221 222 :param access_modes: The access_modes of this V1PersistentVolumeSpec. # noqa: E501223 :type: list[str]224 """225 226 self._access_modes = access_modes227 228 @property229 def aws_elastic_block_store(self):230 """Gets the aws_elastic_block_store of this V1PersistentVolumeSpec. # noqa: E501231 232 233 :return: The aws_elastic_block_store of this V1PersistentVolumeSpec. # noqa: E501234 :rtype: V1AWSElasticBlockStoreVolumeSource235 """236 return self._aws_elastic_block_store237 238 @aws_elastic_block_store.setter239 def aws_elastic_block_store(self, aws_elastic_block_store):240 """Sets the aws_elastic_block_store of this V1PersistentVolumeSpec.241 242 243 :param aws_elastic_block_store: The aws_elastic_block_store of this V1PersistentVolumeSpec. # noqa: E501244 :type: V1AWSElasticBlockStoreVolumeSource245 """246 247 self._aws_elastic_block_store = aws_elastic_block_store248 249 @property250 def azure_disk(self):251 """Gets the azure_disk of this V1PersistentVolumeSpec. # noqa: E501252 253 254 :return: The azure_disk of this V1PersistentVolumeSpec. # noqa: E501255 :rtype: V1AzureDiskVolumeSource256 """257 return self._azure_disk258 259 @azure_disk.setter260 def azure_disk(self, azure_disk):261 """Sets the azure_disk of this V1PersistentVolumeSpec.262 263 264 :param azure_disk: The azure_disk of this V1PersistentVolumeSpec. # noqa: E501265 :type: V1AzureDiskVolumeSource266 """267 268 self._azure_disk = azure_disk269 270 @property271 def azure_file(self):272 """Gets the azure_file of this V1PersistentVolumeSpec. # noqa: E501273 274 275 :return: The azure_file of this V1PersistentVolumeSpec. # noqa: E501276 :rtype: V1AzureFilePersistentVolumeSource277 """278 return self._azure_file279 280 @azure_file.setter281 def azure_file(self, azure_file):282 """Sets the azure_file of this V1PersistentVolumeSpec.283 284 285 :param azure_file: The azure_file of this V1PersistentVolumeSpec. # noqa: E501286 :type: V1AzureFilePersistentVolumeSource287 """288 289 self._azure_file = azure_file290 291 @property292 def capacity(self):293 """Gets the capacity of this V1PersistentVolumeSpec. # noqa: E501294 295 capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity # noqa: E501296 297 :return: The capacity of this V1PersistentVolumeSpec. # noqa: E501298 :rtype: dict(str, str)299 """300 return self._capacity301 302 @capacity.setter303 def capacity(self, capacity):304 """Sets the capacity of this V1PersistentVolumeSpec.305 306 capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity # noqa: E501307 308 :param capacity: The capacity of this V1PersistentVolumeSpec. # noqa: E501309 :type: dict(str, str)310 """311 312 self._capacity = capacity313 314 @property315 def cephfs(self):316 """Gets the cephfs of this V1PersistentVolumeSpec. # noqa: E501317 318 319 :return: The cephfs of this V1PersistentVolumeSpec. # noqa: E501320 :rtype: V1CephFSPersistentVolumeSource321 """322 return self._cephfs323 324 @cephfs.setter325 def cephfs(self, cephfs):326 """Sets the cephfs of this V1PersistentVolumeSpec.327 328 329 :param cephfs: The cephfs of this V1PersistentVolumeSpec. # noqa: E501330 :type: V1CephFSPersistentVolumeSource331 """332 333 self._cephfs = cephfs334 335 @property336 def cinder(self):337 """Gets the cinder of this V1PersistentVolumeSpec. # noqa: E501338 339 340 :return: The cinder of this V1PersistentVolumeSpec. # noqa: E501341 :rtype: V1CinderPersistentVolumeSource342 """343 return self._cinder344 345 @cinder.setter346 def cinder(self, cinder):347 """Sets the cinder of this V1PersistentVolumeSpec.348 349 350 :param cinder: The cinder of this V1PersistentVolumeSpec. # noqa: E501351 :type: V1CinderPersistentVolumeSource352 """353 354 self._cinder = cinder355 356 @property357 def claim_ref(self):358 """Gets the claim_ref of this V1PersistentVolumeSpec. # noqa: E501359 360 361 :return: The claim_ref of this V1PersistentVolumeSpec. # noqa: E501362 :rtype: V1ObjectReference363 """364 return self._claim_ref365 366 @claim_ref.setter367 def claim_ref(self, claim_ref):368 """Sets the claim_ref of this V1PersistentVolumeSpec.369 370 371 :param claim_ref: The claim_ref of this V1PersistentVolumeSpec. # noqa: E501372 :type: V1ObjectReference373 """374 375 self._claim_ref = claim_ref376 377 @property378 def csi(self):379 """Gets the csi of this V1PersistentVolumeSpec. # noqa: E501380 381 382 :return: The csi of this V1PersistentVolumeSpec. # noqa: E501383 :rtype: V1CSIPersistentVolumeSource384 """385 return self._csi386 387 @csi.setter388 def csi(self, csi):389 """Sets the csi of this V1PersistentVolumeSpec.390 391 392 :param csi: The csi of this V1PersistentVolumeSpec. # noqa: E501393 :type: V1CSIPersistentVolumeSource394 """395 396 self._csi = csi397 398 @property399 def fc(self):400 """Gets the fc of this V1PersistentVolumeSpec. # noqa: E501401 402 403 :return: The fc of this V1PersistentVolumeSpec. # noqa: E501404 :rtype: V1FCVolumeSource405 """406 return self._fc407 408 @fc.setter409 def fc(self, fc):410 """Sets the fc of this V1PersistentVolumeSpec.411 412 413 :param fc: The fc of this V1PersistentVolumeSpec. # noqa: E501414 :type: V1FCVolumeSource415 """416 417 self._fc = fc418 419 @property420 def flex_volume(self):421 """Gets the flex_volume of this V1PersistentVolumeSpec. # noqa: E501422 423 424 :return: The flex_volume of this V1PersistentVolumeSpec. # noqa: E501425 :rtype: V1FlexPersistentVolumeSource426 """427 return self._flex_volume428 429 @flex_volume.setter430 def flex_volume(self, flex_volume):431 """Sets the flex_volume of this V1PersistentVolumeSpec.432 433 434 :param flex_volume: The flex_volume of this V1PersistentVolumeSpec. # noqa: E501435 :type: V1FlexPersistentVolumeSource436 """437 438 self._flex_volume = flex_volume439 440 @property441 def flocker(self):442 """Gets the flocker of this V1PersistentVolumeSpec. # noqa: E501443 444 445 :return: The flocker of this V1PersistentVolumeSpec. # noqa: E501446 :rtype: V1FlockerVolumeSource447 """448 return self._flocker449 450 @flocker.setter451 def flocker(self, flocker):452 """Sets the flocker of this V1PersistentVolumeSpec.453 454 455 :param flocker: The flocker of this V1PersistentVolumeSpec. # noqa: E501456 :type: V1FlockerVolumeSource457 """458 459 self._flocker = flocker460 461 @property462 def gce_persistent_disk(self):463 """Gets the gce_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501464 465 466 :return: The gce_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501467 :rtype: V1GCEPersistentDiskVolumeSource468 """469 return self._gce_persistent_disk470 471 @gce_persistent_disk.setter472 def gce_persistent_disk(self, gce_persistent_disk):473 """Sets the gce_persistent_disk of this V1PersistentVolumeSpec.474 475 476 :param gce_persistent_disk: The gce_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501477 :type: V1GCEPersistentDiskVolumeSource478 """479 480 self._gce_persistent_disk = gce_persistent_disk481 482 @property483 def glusterfs(self):484 """Gets the glusterfs of this V1PersistentVolumeSpec. # noqa: E501485 486 487 :return: The glusterfs of this V1PersistentVolumeSpec. # noqa: E501488 :rtype: V1GlusterfsPersistentVolumeSource489 """490 return self._glusterfs491 492 @glusterfs.setter493 def glusterfs(self, glusterfs):494 """Sets the glusterfs of this V1PersistentVolumeSpec.495 496 497 :param glusterfs: The glusterfs of this V1PersistentVolumeSpec. # noqa: E501498 :type: V1GlusterfsPersistentVolumeSource499 """500 501 self._glusterfs = glusterfs502 503 @property504 def host_path(self):505 """Gets the host_path of this V1PersistentVolumeSpec. # noqa: E501506 507 508 :return: The host_path of this V1PersistentVolumeSpec. # noqa: E501509 :rtype: V1HostPathVolumeSource510 """511 return self._host_path512 513 @host_path.setter514 def host_path(self, host_path):515 """Sets the host_path of this V1PersistentVolumeSpec.516 517 518 :param host_path: The host_path of this V1PersistentVolumeSpec. # noqa: E501519 :type: V1HostPathVolumeSource520 """521 522 self._host_path = host_path523 524 @property525 def iscsi(self):526 """Gets the iscsi of this V1PersistentVolumeSpec. # noqa: E501527 528 529 :return: The iscsi of this V1PersistentVolumeSpec. # noqa: E501530 :rtype: V1ISCSIPersistentVolumeSource531 """532 return self._iscsi533 534 @iscsi.setter535 def iscsi(self, iscsi):536 """Sets the iscsi of this V1PersistentVolumeSpec.537 538 539 :param iscsi: The iscsi of this V1PersistentVolumeSpec. # noqa: E501540 :type: V1ISCSIPersistentVolumeSource541 """542 543 self._iscsi = iscsi544 545 @property546 def local(self):547 """Gets the local of this V1PersistentVolumeSpec. # noqa: E501548 549 550 :return: The local of this V1PersistentVolumeSpec. # noqa: E501551 :rtype: V1LocalVolumeSource552 """553 return self._local554 555 @local.setter556 def local(self, local):557 """Sets the local of this V1PersistentVolumeSpec.558 559 560 :param local: The local of this V1PersistentVolumeSpec. # noqa: E501561 :type: V1LocalVolumeSource562 """563 564 self._local = local565 566 @property567 def mount_options(self):568 """Gets the mount_options of this V1PersistentVolumeSpec. # noqa: E501569 570 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: E501571 572 :return: The mount_options of this V1PersistentVolumeSpec. # noqa: E501573 :rtype: list[str]574 """575 return self._mount_options576 577 @mount_options.setter578 def mount_options(self, mount_options):579 """Sets the mount_options of this V1PersistentVolumeSpec.580 581 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: E501582 583 :param mount_options: The mount_options of this V1PersistentVolumeSpec. # noqa: E501584 :type: list[str]585 """586 587 self._mount_options = mount_options588 589 @property590 def nfs(self):591 """Gets the nfs of this V1PersistentVolumeSpec. # noqa: E501592 593 594 :return: The nfs of this V1PersistentVolumeSpec. # noqa: E501595 :rtype: V1NFSVolumeSource596 """597 return self._nfs598 599 @nfs.setter600 def nfs(self, nfs):601 """Sets the nfs of this V1PersistentVolumeSpec.602 603 604 :param nfs: The nfs of this V1PersistentVolumeSpec. # noqa: E501605 :type: V1NFSVolumeSource606 """607 608 self._nfs = nfs609 610 @property611 def node_affinity(self):612 """Gets the node_affinity of this V1PersistentVolumeSpec. # noqa: E501613 614 615 :return: The node_affinity of this V1PersistentVolumeSpec. # noqa: E501616 :rtype: V1VolumeNodeAffinity617 """618 return self._node_affinity619 620 @node_affinity.setter621 def node_affinity(self, node_affinity):622 """Sets the node_affinity of this V1PersistentVolumeSpec.623 624 625 :param node_affinity: The node_affinity of this V1PersistentVolumeSpec. # noqa: E501626 :type: V1VolumeNodeAffinity627 """628 629 self._node_affinity = node_affinity630 631 @property632 def persistent_volume_reclaim_policy(self):633 """Gets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. # noqa: E501634 635 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: E501636 637 :return: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. # noqa: E501638 :rtype: str639 """640 return self._persistent_volume_reclaim_policy641 642 @persistent_volume_reclaim_policy.setter643 def persistent_volume_reclaim_policy(self, persistent_volume_reclaim_policy):644 """Sets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec.645 646 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: E501647 648 :param persistent_volume_reclaim_policy: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. # noqa: E501649 :type: str650 """651 652 self._persistent_volume_reclaim_policy = persistent_volume_reclaim_policy653 654 @property655 def photon_persistent_disk(self):656 """Gets the photon_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501657 658 659 :return: The photon_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501660 :rtype: V1PhotonPersistentDiskVolumeSource661 """662 return self._photon_persistent_disk663 664 @photon_persistent_disk.setter665 def photon_persistent_disk(self, photon_persistent_disk):666 """Sets the photon_persistent_disk of this V1PersistentVolumeSpec.667 668 669 :param photon_persistent_disk: The photon_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501670 :type: V1PhotonPersistentDiskVolumeSource671 """672 673 self._photon_persistent_disk = photon_persistent_disk674 675 @property676 def portworx_volume(self):677 """Gets the portworx_volume of this V1PersistentVolumeSpec. # noqa: E501678 679 680 :return: The portworx_volume of this V1PersistentVolumeSpec. # noqa: E501681 :rtype: V1PortworxVolumeSource682 """683 return self._portworx_volume684 685 @portworx_volume.setter686 def portworx_volume(self, portworx_volume):687 """Sets the portworx_volume of this V1PersistentVolumeSpec.688 689 690 :param portworx_volume: The portworx_volume of this V1PersistentVolumeSpec. # noqa: E501691 :type: V1PortworxVolumeSource692 """693 694 self._portworx_volume = portworx_volume695 696 @property697 def quobyte(self):698 """Gets the quobyte of this V1PersistentVolumeSpec. # noqa: E501699 700 701 :return: The quobyte of this V1PersistentVolumeSpec. # noqa: E501702 :rtype: V1QuobyteVolumeSource703 """704 return self._quobyte705 706 @quobyte.setter707 def quobyte(self, quobyte):708 """Sets the quobyte of this V1PersistentVolumeSpec.709 710 711 :param quobyte: The quobyte of this V1PersistentVolumeSpec. # noqa: E501712 :type: V1QuobyteVolumeSource713 """714 715 self._quobyte = quobyte716 717 @property718 def rbd(self):719 """Gets the rbd of this V1PersistentVolumeSpec. # noqa: E501720 721 722 :return: The rbd of this V1PersistentVolumeSpec. # noqa: E501723 :rtype: V1RBDPersistentVolumeSource724 """725 return self._rbd726 727 @rbd.setter728 def rbd(self, rbd):729 """Sets the rbd of this V1PersistentVolumeSpec.730 731 732 :param rbd: The rbd of this V1PersistentVolumeSpec. # noqa: E501733 :type: V1RBDPersistentVolumeSource734 """735 736 self._rbd = rbd737 738 @property739 def scale_io(self):740 """Gets the scale_io of this V1PersistentVolumeSpec. # noqa: E501741 742 743 :return: The scale_io of this V1PersistentVolumeSpec. # noqa: E501744 :rtype: V1ScaleIOPersistentVolumeSource745 """746 return self._scale_io747 748 @scale_io.setter749 def scale_io(self, scale_io):750 """Sets the scale_io of this V1PersistentVolumeSpec.751 752 753 :param scale_io: The scale_io of this V1PersistentVolumeSpec. # noqa: E501754 :type: V1ScaleIOPersistentVolumeSource755 """756 757 self._scale_io = scale_io758 759 @property760 def storage_class_name(self):761 """Gets the storage_class_name of this V1PersistentVolumeSpec. # noqa: E501762 763 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: E501764 765 :return: The storage_class_name of this V1PersistentVolumeSpec. # noqa: E501766 :rtype: str767 """768 return self._storage_class_name769 770 @storage_class_name.setter771 def storage_class_name(self, storage_class_name):772 """Sets the storage_class_name of this V1PersistentVolumeSpec.773 774 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: E501775 776 :param storage_class_name: The storage_class_name of this V1PersistentVolumeSpec. # noqa: E501777 :type: str778 """779 780 self._storage_class_name = storage_class_name781 782 @property783 def storageos(self):784 """Gets the storageos of this V1PersistentVolumeSpec. # noqa: E501785 786 787 :return: The storageos of this V1PersistentVolumeSpec. # noqa: E501788 :rtype: V1StorageOSPersistentVolumeSource789 """790 return self._storageos791 792 @storageos.setter793 def storageos(self, storageos):794 """Sets the storageos of this V1PersistentVolumeSpec.795 796 797 :param storageos: The storageos of this V1PersistentVolumeSpec. # noqa: E501798 :type: V1StorageOSPersistentVolumeSource799 """800 801 self._storageos = storageos802 803 @property804 def volume_attributes_class_name(self):805 """Gets the volume_attributes_class_name of this V1PersistentVolumeSpec. # noqa: E501806 807 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: E501808 809 :return: The volume_attributes_class_name of this V1PersistentVolumeSpec. # noqa: E501810 :rtype: str811 """812 return self._volume_attributes_class_name813 814 @volume_attributes_class_name.setter815 def volume_attributes_class_name(self, volume_attributes_class_name):816 """Sets the volume_attributes_class_name of this V1PersistentVolumeSpec.817 818 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: E501819 820 :param volume_attributes_class_name: The volume_attributes_class_name of this V1PersistentVolumeSpec. # noqa: E501821 :type: str822 """823 824 self._volume_attributes_class_name = volume_attributes_class_name825 826 @property827 def volume_mode(self):828 """Gets the volume_mode of this V1PersistentVolumeSpec. # noqa: E501829 830 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: E501831 832 :return: The volume_mode of this V1PersistentVolumeSpec. # noqa: E501833 :rtype: str834 """835 return self._volume_mode836 837 @volume_mode.setter838 def volume_mode(self, volume_mode):839 """Sets the volume_mode of this V1PersistentVolumeSpec.840 841 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: E501842 843 :param volume_mode: The volume_mode of this V1PersistentVolumeSpec. # noqa: E501844 :type: str845 """846 847 self._volume_mode = volume_mode848 849 @property850 def vsphere_volume(self):851 """Gets the vsphere_volume of this V1PersistentVolumeSpec. # noqa: E501852 853 854 :return: The vsphere_volume of this V1PersistentVolumeSpec. # noqa: E501855 :rtype: V1VsphereVirtualDiskVolumeSource856 """857 return self._vsphere_volume858 859 @vsphere_volume.setter860 def vsphere_volume(self, vsphere_volume):861 """Sets the vsphere_volume of this V1PersistentVolumeSpec.862 863 864 :param vsphere_volume: The vsphere_volume of this V1PersistentVolumeSpec. # noqa: E501865 :type: V1VsphereVirtualDiskVolumeSource866 """867 868 self._vsphere_volume = vsphere_volume869 870 def to_dict(self):871 """Returns the model properties as a dict"""872 result = {}873 874 for attr, _ in six.iteritems(self.openapi_types):875 value = getattr(self, attr)876 if isinstance(value, list):877 result[attr] = list(map(878 lambda x: x.to_dict() if hasattr(x, "to_dict") else x,879 value880 ))881 elif hasattr(value, "to_dict"):882 result[attr] = value.to_dict()883 elif isinstance(value, dict):884 result[attr] = dict(map(885 lambda item: (item[0], item[1].to_dict())886 if hasattr(item[1], "to_dict") else item,887 value.items()888 ))889 else:890 result[attr] = value891 892 return result893 894 def to_str(self):895 """Returns the string representation of the model"""896 return pprint.pformat(self.to_dict())897 898 def __repr__(self):899 """For `print` and `pprint`"""900 return self.to_str()901 902 def __eq__(self, other):903 """Returns true if both objects are equal"""904 if not isinstance(other, V1PersistentVolumeSpec):905 return False906 907 return self.to_dict() == other.to_dict()908 909 def __ne__(self, other):910 """Returns true if both objects are not equal"""911 if not isinstance(other, V1PersistentVolumeSpec):912 return True913 914 return self.to_dict() != other.to_dict()915 