3 fYn@s8dZddlmZddlmZddlZGdddeZdS)z Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git )pformat) iteritemsNc@seZdZdZdcddZeddZejddZedd Zejd d Zed d Z e jd d Z eddZ e jddZ eddZ e jddZ eddZ e jddZ eddZ e jddZ eddZejddZeddZejddZed d!Zejd"d!Zed#d$Zejd%d$Zed&d'Zejd(d'Zed)d*Zejd+d*Zed,d-Zejd.d-Zed/d0Zejd1d0Zed2d3Zejd4d3Zed5d6Zejd7d6Zed8d9Zejd:d9Zed;d<Zejd=d<Zed>d?Zejd@d?ZedAdBZejdCdBZedDdEZejdFdEZedGdHZejdIdHZedJdKZejdLdKZedMdNZejdOdNZedPdQZ e jdRdQZ edSdTZ!e!jdUdTZ!edVdWZ"e"jdXdWZ"dYdZZ#d[d\Z$d]d^Z%d_d`Z&dadbZ'dS)dV1Volumezw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs,ddddddddd d d d d dddddddddddddddd|_ddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d|_||_||_||_||_||_||_||_||_ | |_ | |_ | |_ | |_ | |_||_||_||_||_||_||_||_||_||_||_||_||_||_||_||_d:S);a> V1Volume - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. "V1AWSElasticBlockStoreVolumeSourceV1AzureDiskVolumeSourceV1AzureFileVolumeSourceV1CephFSVolumeSourceV1CinderVolumeSourceV1ConfigMapVolumeSourceV1DownwardAPIVolumeSourceV1EmptyDirVolumeSourceV1FCVolumeSourceV1FlexVolumeSourceV1FlockerVolumeSourceV1GCEPersistentDiskVolumeSourceV1GitRepoVolumeSourceV1GlusterfsVolumeSourceV1HostPathVolumeSourceV1ISCSIVolumeSourcestrV1NFSVolumeSource#V1PersistentVolumeClaimVolumeSource"V1PhotonPersistentDiskVolumeSourceV1PortworxVolumeSourceV1ProjectedVolumeSourceV1QuobyteVolumeSourceV1RBDVolumeSourceV1ScaleIOVolumeSourceV1SecretVolumeSourceV1StorageOSVolumeSource V1VsphereVirtualDiskVolumeSource)aws_elastic_block_store azure_disk azure_filecephfscinder config_map downward_api empty_dirfc flex_volumeflockergce_persistent_diskgit_repo glusterfs host_pathiscsinamenfspersistent_volume_claimphoton_persistent_diskportworx_volume projectedquobyterbdscale_iosecret storageosvsphere_volumeawsElasticBlockStore azureDisk azureFiler$r%Z configMapZ downwardAPIZemptyDirr) flexVolumer+gcePersistentDiskZgitRepor.hostPathr0r1r2ZpersistentVolumeClaimphotonPersistentDiskportworxVolumer6r7r8scaleIOr:r; vsphereVolumeN) swagger_types attribute_map_aws_elastic_block_store _azure_disk _azure_file_cephfs_cinder _config_map _downward_api _empty_dir_fc _flex_volume_flocker_gce_persistent_disk _git_repo _glusterfs _host_path_iscsi_name_nfs_persistent_volume_claim_photon_persistent_disk_portworx_volume _projected_quobyte_rbd _scale_io_secret _storageos_vsphere_volume)selfr!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<rfS/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_volume.py__init__s   zV1Volume.__init__cCs|jS)a Gets the aws_elastic_block_store of this V1Volume. AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore :return: The aws_elastic_block_store of this V1Volume. :rtype: V1AWSElasticBlockStoreVolumeSource )rI)rerfrfrgr!|s z V1Volume.aws_elastic_block_storecCs ||_dS)a Sets the aws_elastic_block_store of this V1Volume. AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore :param aws_elastic_block_store: The aws_elastic_block_store of this V1Volume. :type: V1AWSElasticBlockStoreVolumeSource N)rI)rer!rfrfrgr!s cCs|jS)z Gets the azure_disk of this V1Volume. AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. :return: The azure_disk of this V1Volume. :rtype: V1AzureDiskVolumeSource )rJ)rerfrfrgr"s zV1Volume.azure_diskcCs ||_dS)z Sets the azure_disk of this V1Volume. AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. :param azure_disk: The azure_disk of this V1Volume. :type: V1AzureDiskVolumeSource N)rJ)rer"rfrfrgr"s cCs|jS)z Gets the azure_file of this V1Volume. AzureFile represents an Azure File Service mount on the host and bind mount to the pod. :return: The azure_file of this V1Volume. :rtype: V1AzureFileVolumeSource )rK)rerfrfrgr#s zV1Volume.azure_filecCs ||_dS)z Sets the azure_file of this V1Volume. AzureFile represents an Azure File Service mount on the host and bind mount to the pod. :param azure_file: The azure_file of this V1Volume. :type: V1AzureFileVolumeSource N)rK)rer#rfrfrgr#s cCs|jS)z Gets the cephfs of this V1Volume. CephFS represents a Ceph FS mount on the host that shares a pod's lifetime :return: The cephfs of this V1Volume. :rtype: V1CephFSVolumeSource )rL)rerfrfrgr$s zV1Volume.cephfscCs ||_dS)z Sets the cephfs of this V1Volume. CephFS represents a Ceph FS mount on the host that shares a pod's lifetime :param cephfs: The cephfs of this V1Volume. :type: V1CephFSVolumeSource N)rL)rer$rfrfrgr$s cCs|jS)a* Gets the cinder of this V1Volume. Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md :return: The cinder of this V1Volume. :rtype: V1CinderVolumeSource )rM)rerfrfrgr%s zV1Volume.cindercCs ||_dS)a/ Sets the cinder of this V1Volume. Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md :param cinder: The cinder of this V1Volume. :type: V1CinderVolumeSource N)rM)rer%rfrfrgr%s cCs|jS)z Gets the config_map of this V1Volume. ConfigMap represents a configMap that should populate this volume :return: The config_map of this V1Volume. :rtype: V1ConfigMapVolumeSource )rN)rerfrfrgr&s zV1Volume.config_mapcCs ||_dS)z Sets the config_map of this V1Volume. ConfigMap represents a configMap that should populate this volume :param config_map: The config_map of this V1Volume. :type: V1ConfigMapVolumeSource N)rN)rer&rfrfrgr&s cCs|jS)z Gets the downward_api of this V1Volume. DownwardAPI represents downward API about the pod that should populate this volume :return: The downward_api of this V1Volume. :rtype: V1DownwardAPIVolumeSource )rO)rerfrfrgr's zV1Volume.downward_apicCs ||_dS)z Sets the downward_api of this V1Volume. DownwardAPI represents downward API about the pod that should populate this volume :param downward_api: The downward_api of this V1Volume. :type: V1DownwardAPIVolumeSource N)rO)rer'rfrfrgr's cCs|jS)a' Gets the empty_dir of this V1Volume. EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir :return: The empty_dir of this V1Volume. :rtype: V1EmptyDirVolumeSource )rP)rerfrfrgr(s zV1Volume.empty_dircCs ||_dS)a/ Sets the empty_dir of this V1Volume. EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir :param empty_dir: The empty_dir of this V1Volume. :type: V1EmptyDirVolumeSource N)rP)rer(rfrfrgr((s cCs|jS)z Gets the fc of this V1Volume. FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. :return: The fc of this V1Volume. :rtype: V1FCVolumeSource )rQ)rerfrfrgr)4s z V1Volume.fccCs ||_dS)z Sets the fc of this V1Volume. FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. :param fc: The fc of this V1Volume. :type: V1FCVolumeSource N)rQ)rer)rfrfrgr)?s cCs|jS)a3 Gets the flex_volume of this V1Volume. FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future. :return: The flex_volume of this V1Volume. :rtype: V1FlexVolumeSource )rR)rerfrfrgr*Ks zV1Volume.flex_volumecCs ||_dS)a= Sets the flex_volume of this V1Volume. FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future. :param flex_volume: The flex_volume of this V1Volume. :type: V1FlexVolumeSource N)rR)rer*rfrfrgr*Vs cCs|jS)a Gets the flocker of this V1Volume. Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running :return: The flocker of this V1Volume. :rtype: V1FlockerVolumeSource )rS)rerfrfrgr+bs zV1Volume.flockercCs ||_dS)a Sets the flocker of this V1Volume. Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running :param flocker: The flocker of this V1Volume. :type: V1FlockerVolumeSource N)rS)rer+rfrfrgr+ms cCs|jS)a Gets the gce_persistent_disk of this V1Volume. GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk :return: The gce_persistent_disk of this V1Volume. :rtype: V1GCEPersistentDiskVolumeSource )rT)rerfrfrgr,ys zV1Volume.gce_persistent_diskcCs ||_dS)a Sets the gce_persistent_disk of this V1Volume. GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk :param gce_persistent_disk: The gce_persistent_disk of this V1Volume. :type: V1GCEPersistentDiskVolumeSource N)rT)rer,rfrfrgr,s cCs|jS)z Gets the git_repo of this V1Volume. GitRepo represents a git repository at a particular revision. :return: The git_repo of this V1Volume. :rtype: V1GitRepoVolumeSource )rU)rerfrfrgr-s zV1Volume.git_repocCs ||_dS)z Sets the git_repo of this V1Volume. GitRepo represents a git repository at a particular revision. :param git_repo: The git_repo of this V1Volume. :type: V1GitRepoVolumeSource N)rU)rer-rfrfrgr-s cCs|jS)a6 Gets the glusterfs of this V1Volume. Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md :return: The glusterfs of this V1Volume. :rtype: V1GlusterfsVolumeSource )rV)rerfrfrgr.s zV1Volume.glusterfscCs ||_dS)a> Sets the glusterfs of this V1Volume. Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md :param glusterfs: The glusterfs of this V1Volume. :type: V1GlusterfsVolumeSource N)rV)rer.rfrfrgr.s cCs|jS)a Gets the host_path of this V1Volume. HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath :return: The host_path of this V1Volume. :rtype: V1HostPathVolumeSource )rW)rerfrfrgr/s zV1Volume.host_pathcCs ||_dS)a Sets the host_path of this V1Volume. HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath :param host_path: The host_path of this V1Volume. :type: V1HostPathVolumeSource N)rW)rer/rfrfrgr/s cCs|jS)aG Gets the iscsi of this V1Volume. ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md :return: The iscsi of this V1Volume. :rtype: V1ISCSIVolumeSource )rX)rerfrfrgr0s zV1Volume.iscsicCs ||_dS)aK Sets the iscsi of this V1Volume. ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md :param iscsi: The iscsi of this V1Volume. :type: V1ISCSIVolumeSource N)rX)rer0rfrfrgr0s cCs|jS)a Gets the name of this V1Volume. Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names :return: The name of this V1Volume. :rtype: str )rY)rerfrfrgr1s z V1Volume.namecCs|dkrtd||_dS)a Sets the name of this V1Volume. Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names :param name: The name of this V1Volume. :type: str Nz,Invalid value for `name`, must not be `None`) ValueErrorrY)rer1rfrfrgr1s cCs|jS)a Gets the nfs of this V1Volume. NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs :return: The nfs of this V1Volume. :rtype: V1NFSVolumeSource )rZ)rerfrfrgr2s z V1Volume.nfscCs ||_dS)a Sets the nfs of this V1Volume. NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs :param nfs: The nfs of this V1Volume. :type: V1NFSVolumeSource N)rZ)rer2rfrfrgr2s cCs|jS)a Gets the persistent_volume_claim of this V1Volume. PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :return: The persistent_volume_claim of this V1Volume. :rtype: V1PersistentVolumeClaimVolumeSource )r[)rerfrfrgr3s z V1Volume.persistent_volume_claimcCs ||_dS)a Sets the persistent_volume_claim of this V1Volume. PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :param persistent_volume_claim: The persistent_volume_claim of this V1Volume. :type: V1PersistentVolumeClaimVolumeSource N)r[)rer3rfrfrgr3's cCs|jS)a. Gets the photon_persistent_disk of this V1Volume. PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine :return: The photon_persistent_disk of this V1Volume. :rtype: V1PhotonPersistentDiskVolumeSource )r\)rerfrfrgr43s zV1Volume.photon_persistent_diskcCs ||_dS)aC Sets the photon_persistent_disk of this V1Volume. PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine :param photon_persistent_disk: The photon_persistent_disk of this V1Volume. :type: V1PhotonPersistentDiskVolumeSource N)r\)rer4rfrfrgr4>s cCs|jS)z Gets the portworx_volume of this V1Volume. PortworxVolume represents a portworx volume attached and mounted on kubelets host machine :return: The portworx_volume of this V1Volume. :rtype: V1PortworxVolumeSource )r])rerfrfrgr5Js zV1Volume.portworx_volumecCs ||_dS)a  Sets the portworx_volume of this V1Volume. PortworxVolume represents a portworx volume attached and mounted on kubelets host machine :param portworx_volume: The portworx_volume of this V1Volume. :type: V1PortworxVolumeSource N)r])rer5rfrfrgr5Us cCs|jS)z Gets the projected of this V1Volume. Items for all in one resources secrets, configmaps, and downward API :return: The projected of this V1Volume. :rtype: V1ProjectedVolumeSource )r^)rerfrfrgr6as zV1Volume.projectedcCs ||_dS)z Sets the projected of this V1Volume. Items for all in one resources secrets, configmaps, and downward API :param projected: The projected of this V1Volume. :type: V1ProjectedVolumeSource N)r^)rer6rfrfrgr6ls cCs|jS)z Gets the quobyte of this V1Volume. Quobyte represents a Quobyte mount on the host that shares a pod's lifetime :return: The quobyte of this V1Volume. :rtype: V1QuobyteVolumeSource )r_)rerfrfrgr7xs zV1Volume.quobytecCs ||_dS)z Sets the quobyte of this V1Volume. Quobyte represents a Quobyte mount on the host that shares a pod's lifetime :param quobyte: The quobyte of this V1Volume. :type: V1QuobyteVolumeSource N)r_)rer7rfrfrgr7s cCs|jS)a! Gets the rbd of this V1Volume. RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md :return: The rbd of this V1Volume. :rtype: V1RBDVolumeSource )r`)rerfrfrgr8s z V1Volume.rbdcCs ||_dS)a# Sets the rbd of this V1Volume. RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md :param rbd: The rbd of this V1Volume. :type: V1RBDVolumeSource N)r`)rer8rfrfrgr8s cCs|jS)z Gets the scale_io of this V1Volume. ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. :return: The scale_io of this V1Volume. :rtype: V1ScaleIOVolumeSource )ra)rerfrfrgr9s zV1Volume.scale_iocCs ||_dS)z Sets the scale_io of this V1Volume. ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. :param scale_io: The scale_io of this V1Volume. :type: V1ScaleIOVolumeSource N)ra)rer9rfrfrgr9s cCs|jS)a Gets the secret of this V1Volume. Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret :return: The secret of this V1Volume. :rtype: V1SecretVolumeSource )rb)rerfrfrgr:s zV1Volume.secretcCs ||_dS)a Sets the secret of this V1Volume. Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret :param secret: The secret of this V1Volume. :type: V1SecretVolumeSource N)rb)rer:rfrfrgr:s cCs|jS)z Gets the storageos of this V1Volume. StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. :return: The storageos of this V1Volume. :rtype: V1StorageOSVolumeSource )rc)rerfrfrgr;s zV1Volume.storageoscCs ||_dS)z Sets the storageos of this V1Volume. StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. :param storageos: The storageos of this V1Volume. :type: V1StorageOSVolumeSource N)rc)rer;rfrfrgr;s cCs|jS)a Gets the vsphere_volume of this V1Volume. VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine :return: The vsphere_volume of this V1Volume. :rtype: V1VsphereVirtualDiskVolumeSource )rd)rerfrfrgr<s zV1Volume.vsphere_volumecCs ||_dS)a Sets the vsphere_volume of this V1Volume. VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine :param vsphere_volume: The vsphere_volume of this V1Volume. :type: V1VsphereVirtualDiskVolumeSource N)rd)rer<rfrfrgr<s cCsi}xt|jD]z\}}t||}t|trDttdd|||<qt|dr\|j||<qt|trttdd|j ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dr|jS|S)Nto_dict)hasattrrj)xrfrfrg sz"V1Volume.to_dict..rjcSs&t|ddr"|d|djfS|S)Nrjr)rkrj)itemrfrfrgrms) rrGgetattr isinstancelistmaprkrjdictitems)reresultattr_valuerfrfrgrjs     zV1Volume.to_dictcCs t|jS)z@ Returns the string representation of the model )rrj)rerfrfrgto_strszV1Volume.to_strcCs|jS)z* For `print` and `pprint` )rz)rerfrfrg__repr__"szV1Volume.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rqr__dict__)reotherrfrfrg__eq__(s zV1Volume.__eq__cCs ||k S)z< Returns true if both objects are not equal rf)rer}rfrfrg__ne__1szV1Volume.__ne__)NNNNNNNNNNNNNNNNNNNNNNNNNNNN)(__name__ __module__ __qualname____doc__rhpropertyr!setterr"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<rjrzr{r~rrfrfrfrgrs~ d                              r)rpprintrsixrreobjectrrfrfrfrg s