o
    3Ihd                     @   s<   d Z ddlZddlZddlZddlmZ G dd deZdS )z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.33
    Generated by: https://openapi-generator.tech
    N)Configurationc                   @   s  e Zd ZdZ	 i dddddddd	d
dddddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2Zi dd3dd4dd5ddd
d
dd6dddd7dd8dddddd9dddd:dd;d d d"d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJd2ZddLdMZedNdO Zej	dPdO ZedQdR Z
e
j	dSdR Z
edTdU Zej	dVdU ZedWdX Zej	dYdX ZedZd[ Zej	d\d[ Zed]d^ Zej	d_d^ Zed`da Zej	dbda Zedcdd Zej	dedd Zedfdg Zej	dhdg Zedidj Zej	dkdj Zedldm Zej	dndm Zedodp Zej	dqdp Zedrds Zej	dtds Zedudv Zej	dwdv Zedxdy Zej	dzdy Zed{d| Zej	d}d| Zed~d Zej	dd Zedd Zej	dd Zedd Zej	dd Zedd Zej	dd Zedd Zej	dd Zedd Zej	dd Zedd Zej	dd Zedd Z e j	dd Z edd Z!e!j	dd Z!edd Z"e"j	dd Z"edd Z#e#j	dd Z#edd Z$e$j	dd Z$edd Z%e%j	dd Z%edd Z&e&j	dd Z&edd Z'e'j	dd Z'dd Z(dd Z)dd Z*dd Z+dd Z,dKS )V1VolumezNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    aws_elastic_block_store"V1AWSElasticBlockStoreVolumeSource
azure_diskV1AzureDiskVolumeSource
azure_fileV1AzureFileVolumeSourcecephfsV1CephFSVolumeSourcecinderV1CinderVolumeSource
config_mapV1ConfigMapVolumeSourcecsiV1CSIVolumeSourcedownward_apiV1DownwardAPIVolumeSource	empty_dirV1EmptyDirVolumeSource	ephemeralV1EphemeralVolumeSourcefcV1FCVolumeSourceflex_volumeV1FlexVolumeSourceflockerV1FlockerVolumeSourcegce_persistent_diskV1GCEPersistentDiskVolumeSourcegit_repoV1GitRepoVolumeSource	glusterfsV1GlusterfsVolumeSource	host_pathV1HostPathVolumeSourceV1ImageVolumeSourceV1ISCSIVolumeSourcestrV1NFSVolumeSource#V1PersistentVolumeClaimVolumeSource"V1PhotonPersistentDiskVolumeSourceV1PortworxVolumeSourceV1ProjectedVolumeSourceV1QuobyteVolumeSourceV1RBDVolumeSourceV1ScaleIOVolumeSourceV1SecretVolumeSourceV1StorageOSVolumeSource V1VsphereVirtualDiskVolumeSource)imageiscsinamenfspersistent_volume_claimphoton_persistent_diskportworx_volume	projectedquobyterbdscale_iosecret	storageosvsphere_volumeawsElasticBlockStore	azureDisk	azureFile	configMapdownwardAPIemptyDir
flexVolumegcePersistentDiskgitRepohostPathr4   r5   r6   r7   persistentVolumeClaimphotonPersistentDiskportworxVolumer;   r<   r=   scaleIOr?   r@   vsphereVolumeNc!           !      C   s  | du rt  } | | _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _!|durq|| _"|durx|| _#|dur|| _$|dur|| _%|dur|| _&|dur|| _'|dur|| _(|dur|| _)|	dur|	| _*|
dur|
| _+|dur|| _,|dur|| _-|dur|| _.|dur|| _/|dur|| _0|dur|| _1|dur|| _2|dur|| _3|dur|| _4|| _5|dur|| _6|dur|| _7|dur	|| _8|dur|| _9|dur|| _:|dur!|| _;|dur)|| _<|dur1|| _=|dur9|| _>|durA|| _?|durK|| _@dS dS )z%V1Volume - a model defined in OpenAPIN)Ar   local_vars_configuration_aws_elastic_block_store_azure_disk_azure_file_cephfs_cinder_config_map_csi_downward_api
_empty_dir
_ephemeral_fc_flex_volume_flocker_gce_persistent_disk	_git_repo
_glusterfs
_host_path_image_iscsi_name_nfs_persistent_volume_claim_photon_persistent_disk_portworx_volume
_projected_quobyte_rbd	_scale_io_secret
_storageos_vsphere_volumediscriminatorr   r   r   r
   r   r   r   r   r   r   r   r   r   r   r    r"   r$   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   )!selfr   r   r   r
   r   r   r   r   r   r   r   r   r   r   r    r"   r$   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rQ    rs   b/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/kubernetes/client/models/v1_volume.py__init__g   s   










zV1Volume.__init__c                 C      | j S )zGets the aws_elastic_block_store of this V1Volume.  # noqa: E501


        :return: The aws_elastic_block_store of this V1Volume.  # noqa: E501
        :rtype: V1AWSElasticBlockStoreVolumeSource
        rR   rr   rs   rs   rt   r         z V1Volume.aws_elastic_block_storec                 C   
   || _ dS )zSets the aws_elastic_block_store of this V1Volume.


        :param aws_elastic_block_store: The aws_elastic_block_store of this V1Volume.  # noqa: E501
        :type: V1AWSElasticBlockStoreVolumeSource
        Nrw   )rr   r   rs   rs   rt   r         
	c                 C   rv   )zGets the azure_disk of this V1Volume.  # noqa: E501


        :return: The azure_disk of this V1Volume.  # noqa: E501
        :rtype: V1AzureDiskVolumeSource
        rS   rx   rs   rs   rt   r      ry   zV1Volume.azure_diskc                 C   rz   )zSets the azure_disk of this V1Volume.


        :param azure_disk: The azure_disk of this V1Volume.  # noqa: E501
        :type: V1AzureDiskVolumeSource
        Nr|   )rr   r   rs   rs   rt   r      r{   c                 C   rv   )zGets the azure_file of this V1Volume.  # noqa: E501


        :return: The azure_file of this V1Volume.  # noqa: E501
        :rtype: V1AzureFileVolumeSource
        rT   rx   rs   rs   rt   r      ry   zV1Volume.azure_filec                 C   rz   )zSets the azure_file of this V1Volume.


        :param azure_file: The azure_file of this V1Volume.  # noqa: E501
        :type: V1AzureFileVolumeSource
        Nr}   )rr   r   rs   rs   rt   r      r{   c                 C   rv   )zGets the cephfs of this V1Volume.  # noqa: E501


        :return: The cephfs of this V1Volume.  # noqa: E501
        :rtype: V1CephFSVolumeSource
        rU   rx   rs   rs   rt   r
     ry   zV1Volume.cephfsc                 C   rz   )zSets the cephfs of this V1Volume.


        :param cephfs: The cephfs of this V1Volume.  # noqa: E501
        :type: V1CephFSVolumeSource
        Nr~   )rr   r
   rs   rs   rt   r
     r{   c                 C   rv   )zGets the cinder of this V1Volume.  # noqa: E501


        :return: The cinder of this V1Volume.  # noqa: E501
        :rtype: V1CinderVolumeSource
        rV   rx   rs   rs   rt   r      ry   zV1Volume.cinderc                 C   rz   )zSets the cinder of this V1Volume.


        :param cinder: The cinder of this V1Volume.  # noqa: E501
        :type: V1CinderVolumeSource
        Nr   )rr   r   rs   rs   rt   r   *  r{   c                 C   rv   )zGets the config_map of this V1Volume.  # noqa: E501


        :return: The config_map of this V1Volume.  # noqa: E501
        :rtype: V1ConfigMapVolumeSource
        rW   rx   rs   rs   rt   r   5  ry   zV1Volume.config_mapc                 C   rz   )zSets the config_map of this V1Volume.


        :param config_map: The config_map of this V1Volume.  # noqa: E501
        :type: V1ConfigMapVolumeSource
        Nr   )rr   r   rs   rs   rt   r   ?  r{   c                 C   rv   )zGets the csi of this V1Volume.  # noqa: E501


        :return: The csi of this V1Volume.  # noqa: E501
        :rtype: V1CSIVolumeSource
        rX   rx   rs   rs   rt   r   J  ry   zV1Volume.csic                 C   rz   )zSets the csi of this V1Volume.


        :param csi: The csi of this V1Volume.  # noqa: E501
        :type: V1CSIVolumeSource
        Nr   )rr   r   rs   rs   rt   r   T  r{   c                 C   rv   )zGets the downward_api of this V1Volume.  # noqa: E501


        :return: The downward_api of this V1Volume.  # noqa: E501
        :rtype: V1DownwardAPIVolumeSource
        rY   rx   rs   rs   rt   r   _  ry   zV1Volume.downward_apic                 C   rz   )zSets the downward_api of this V1Volume.


        :param downward_api: The downward_api of this V1Volume.  # noqa: E501
        :type: V1DownwardAPIVolumeSource
        Nr   )rr   r   rs   rs   rt   r   i  r{   c                 C   rv   )zGets the empty_dir of this V1Volume.  # noqa: E501


        :return: The empty_dir of this V1Volume.  # noqa: E501
        :rtype: V1EmptyDirVolumeSource
        rZ   rx   rs   rs   rt   r   t  ry   zV1Volume.empty_dirc                 C   rz   )zSets the empty_dir of this V1Volume.


        :param empty_dir: The empty_dir of this V1Volume.  # noqa: E501
        :type: V1EmptyDirVolumeSource
        Nr   )rr   r   rs   rs   rt   r   ~  r{   c                 C   rv   )zGets the ephemeral of this V1Volume.  # noqa: E501


        :return: The ephemeral of this V1Volume.  # noqa: E501
        :rtype: V1EphemeralVolumeSource
        r[   rx   rs   rs   rt   r     ry   zV1Volume.ephemeralc                 C   rz   )zSets the ephemeral of this V1Volume.


        :param ephemeral: The ephemeral of this V1Volume.  # noqa: E501
        :type: V1EphemeralVolumeSource
        Nr   )rr   r   rs   rs   rt   r     r{   c                 C   rv   )zGets the fc of this V1Volume.  # noqa: E501


        :return: The fc of this V1Volume.  # noqa: E501
        :rtype: V1FCVolumeSource
        r\   rx   rs   rs   rt   r     ry   zV1Volume.fcc                 C   rz   )zSets the fc of this V1Volume.


        :param fc: The fc of this V1Volume.  # noqa: E501
        :type: V1FCVolumeSource
        Nr   )rr   r   rs   rs   rt   r     r{   c                 C   rv   )zGets the flex_volume of this V1Volume.  # noqa: E501


        :return: The flex_volume of this V1Volume.  # noqa: E501
        :rtype: V1FlexVolumeSource
        r]   rx   rs   rs   rt   r     ry   zV1Volume.flex_volumec                 C   rz   )zSets the flex_volume of this V1Volume.


        :param flex_volume: The flex_volume of this V1Volume.  # noqa: E501
        :type: V1FlexVolumeSource
        Nr   )rr   r   rs   rs   rt   r     r{   c                 C   rv   )zGets the flocker of this V1Volume.  # noqa: E501


        :return: The flocker of this V1Volume.  # noqa: E501
        :rtype: V1FlockerVolumeSource
        r^   rx   rs   rs   rt   r     ry   zV1Volume.flockerc                 C   rz   )zSets the flocker of this V1Volume.


        :param flocker: The flocker of this V1Volume.  # noqa: E501
        :type: V1FlockerVolumeSource
        Nr   )rr   r   rs   rs   rt   r     r{   c                 C   rv   )zGets the gce_persistent_disk of this V1Volume.  # noqa: E501


        :return: The gce_persistent_disk of this V1Volume.  # noqa: E501
        :rtype: V1GCEPersistentDiskVolumeSource
        r_   rx   rs   rs   rt   r     ry   zV1Volume.gce_persistent_diskc                 C   rz   )zSets the gce_persistent_disk of this V1Volume.


        :param gce_persistent_disk: The gce_persistent_disk of this V1Volume.  # noqa: E501
        :type: V1GCEPersistentDiskVolumeSource
        Nr   )rr   r   rs   rs   rt   r     r{   c                 C   rv   )zGets the git_repo of this V1Volume.  # noqa: E501


        :return: The git_repo of this V1Volume.  # noqa: E501
        :rtype: V1GitRepoVolumeSource
        r`   rx   rs   rs   rt   r      ry   zV1Volume.git_repoc                 C   rz   )zSets the git_repo of this V1Volume.


        :param git_repo: The git_repo of this V1Volume.  # noqa: E501
        :type: V1GitRepoVolumeSource
        Nr   )rr   r    rs   rs   rt   r      r{   c                 C   rv   )zGets the glusterfs of this V1Volume.  # noqa: E501


        :return: The glusterfs of this V1Volume.  # noqa: E501
        :rtype: V1GlusterfsVolumeSource
        ra   rx   rs   rs   rt   r"     ry   zV1Volume.glusterfsc                 C   rz   )zSets the glusterfs of this V1Volume.


        :param glusterfs: The glusterfs of this V1Volume.  # noqa: E501
        :type: V1GlusterfsVolumeSource
        Nr   )rr   r"   rs   rs   rt   r"     r{   c                 C   rv   )zGets the host_path of this V1Volume.  # noqa: E501


        :return: The host_path of this V1Volume.  # noqa: E501
        :rtype: V1HostPathVolumeSource
        rb   rx   rs   rs   rt   r$     ry   zV1Volume.host_pathc                 C   rz   )zSets the host_path of this V1Volume.


        :param host_path: The host_path of this V1Volume.  # noqa: E501
        :type: V1HostPathVolumeSource
        Nr   )rr   r$   rs   rs   rt   r$   &  r{   c                 C   rv   )zGets the image of this V1Volume.  # noqa: E501


        :return: The image of this V1Volume.  # noqa: E501
        :rtype: V1ImageVolumeSource
        rc   rx   rs   rs   rt   r4   1  ry   zV1Volume.imagec                 C   rz   )zSets the image of this V1Volume.


        :param image: The image of this V1Volume.  # noqa: E501
        :type: V1ImageVolumeSource
        Nr   )rr   r4   rs   rs   rt   r4   ;  r{   c                 C   rv   )zGets the iscsi of this V1Volume.  # noqa: E501


        :return: The iscsi of this V1Volume.  # noqa: E501
        :rtype: V1ISCSIVolumeSource
        rd   rx   rs   rs   rt   r5   F  ry   zV1Volume.iscsic                 C   rz   )zSets the iscsi of this V1Volume.


        :param iscsi: The iscsi of this V1Volume.  # noqa: E501
        :type: V1ISCSIVolumeSource
        Nr   )rr   r5   rs   rs   rt   r5   P  r{   c                 C   rv   )a9  Gets the name of this V1Volume.  # noqa: E501

        name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names  # noqa: E501

        :return: The name of this V1Volume.  # noqa: E501
        :rtype: str
        )re   rx   rs   rs   rt   r6   [  s   	zV1Volume.namec                 C   s"   | j jr|du rtd|| _dS )a.  Sets the name of this V1Volume.

        name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names  # noqa: E501

        :param name: The name of this V1Volume.  # noqa: E501
        :type: str
        Nz,Invalid value for `name`, must not be `None`)rQ   client_side_validation
ValueErrorre   )rr   r6   rs   rs   rt   r6   f  s   	
c                 C   rv   )zGets the nfs of this V1Volume.  # noqa: E501


        :return: The nfs of this V1Volume.  # noqa: E501
        :rtype: V1NFSVolumeSource
        rf   rx   rs   rs   rt   r7   t  ry   zV1Volume.nfsc                 C   rz   )zSets the nfs of this V1Volume.


        :param nfs: The nfs of this V1Volume.  # noqa: E501
        :type: V1NFSVolumeSource
        Nr   )rr   r7   rs   rs   rt   r7   ~  r{   c                 C   rv   )zGets the persistent_volume_claim of this V1Volume.  # noqa: E501


        :return: The persistent_volume_claim of this V1Volume.  # noqa: E501
        :rtype: V1PersistentVolumeClaimVolumeSource
        rg   rx   rs   rs   rt   r8     ry   z V1Volume.persistent_volume_claimc                 C   rz   )zSets the persistent_volume_claim of this V1Volume.


        :param persistent_volume_claim: The persistent_volume_claim of this V1Volume.  # noqa: E501
        :type: V1PersistentVolumeClaimVolumeSource
        Nr   )rr   r8   rs   rs   rt   r8     r{   c                 C   rv   )zGets the photon_persistent_disk of this V1Volume.  # noqa: E501


        :return: The photon_persistent_disk of this V1Volume.  # noqa: E501
        :rtype: V1PhotonPersistentDiskVolumeSource
        rh   rx   rs   rs   rt   r9     ry   zV1Volume.photon_persistent_diskc                 C   rz   )zSets the photon_persistent_disk of this V1Volume.


        :param photon_persistent_disk: The photon_persistent_disk of this V1Volume.  # noqa: E501
        :type: V1PhotonPersistentDiskVolumeSource
        Nr   )rr   r9   rs   rs   rt   r9     r{   c                 C   rv   )zGets the portworx_volume of this V1Volume.  # noqa: E501


        :return: The portworx_volume of this V1Volume.  # noqa: E501
        :rtype: V1PortworxVolumeSource
        ri   rx   rs   rs   rt   r:     ry   zV1Volume.portworx_volumec                 C   rz   )zSets the portworx_volume of this V1Volume.


        :param portworx_volume: The portworx_volume of this V1Volume.  # noqa: E501
        :type: V1PortworxVolumeSource
        Nr   )rr   r:   rs   rs   rt   r:     r{   c                 C   rv   )zGets the projected of this V1Volume.  # noqa: E501


        :return: The projected of this V1Volume.  # noqa: E501
        :rtype: V1ProjectedVolumeSource
        rj   rx   rs   rs   rt   r;     ry   zV1Volume.projectedc                 C   rz   )zSets the projected of this V1Volume.


        :param projected: The projected of this V1Volume.  # noqa: E501
        :type: V1ProjectedVolumeSource
        Nr   )rr   r;   rs   rs   rt   r;     r{   c                 C   rv   )zGets the quobyte of this V1Volume.  # noqa: E501


        :return: The quobyte of this V1Volume.  # noqa: E501
        :rtype: V1QuobyteVolumeSource
        rk   rx   rs   rs   rt   r<     ry   zV1Volume.quobytec                 C   rz   )zSets the quobyte of this V1Volume.


        :param quobyte: The quobyte of this V1Volume.  # noqa: E501
        :type: V1QuobyteVolumeSource
        Nr   )rr   r<   rs   rs   rt   r<     r{   c                 C   rv   )zGets the rbd of this V1Volume.  # noqa: E501


        :return: The rbd of this V1Volume.  # noqa: E501
        :rtype: V1RBDVolumeSource
        rl   rx   rs   rs   rt   r=     ry   zV1Volume.rbdc                 C   rz   )zSets the rbd of this V1Volume.


        :param rbd: The rbd of this V1Volume.  # noqa: E501
        :type: V1RBDVolumeSource
        Nr   )rr   r=   rs   rs   rt   r=     r{   c                 C   rv   )zGets the scale_io of this V1Volume.  # noqa: E501


        :return: The scale_io of this V1Volume.  # noqa: E501
        :rtype: V1ScaleIOVolumeSource
        rm   rx   rs   rs   rt   r>     ry   zV1Volume.scale_ioc                 C   rz   )zSets the scale_io of this V1Volume.


        :param scale_io: The scale_io of this V1Volume.  # noqa: E501
        :type: V1ScaleIOVolumeSource
        Nr   )rr   r>   rs   rs   rt   r>     r{   c                 C   rv   )zGets the secret of this V1Volume.  # noqa: E501


        :return: The secret of this V1Volume.  # noqa: E501
        :rtype: V1SecretVolumeSource
        rn   rx   rs   rs   rt   r?     ry   zV1Volume.secretc                 C   rz   )zSets the secret of this V1Volume.


        :param secret: The secret of this V1Volume.  # noqa: E501
        :type: V1SecretVolumeSource
        Nr   )rr   r?   rs   rs   rt   r?   &  r{   c                 C   rv   )zGets the storageos of this V1Volume.  # noqa: E501


        :return: The storageos of this V1Volume.  # noqa: E501
        :rtype: V1StorageOSVolumeSource
        ro   rx   rs   rs   rt   r@   1  ry   zV1Volume.storageosc                 C   rz   )zSets the storageos of this V1Volume.


        :param storageos: The storageos of this V1Volume.  # noqa: E501
        :type: V1StorageOSVolumeSource
        Nr   )rr   r@   rs   rs   rt   r@   ;  r{   c                 C   rv   )zGets the vsphere_volume of this V1Volume.  # noqa: E501


        :return: The vsphere_volume of this V1Volume.  # noqa: E501
        :rtype: V1VsphereVirtualDiskVolumeSource
        rp   rx   rs   rs   rt   rA   F  ry   zV1Volume.vsphere_volumec                 C   rz   )zSets the vsphere_volume of this V1Volume.


        :param vsphere_volume: The vsphere_volume of this V1Volume.  # noqa: E501
        :type: V1VsphereVirtualDiskVolumeSource
        Nr   )rr   rA   rs   rs   rt   rA   P  r{   c                 C   s   i }t | jD ]=\}}t| |}t|tr"ttdd |||< qt|dr.| ||< qt|t	rAt	tdd |
 ||< q|||< q|S )z&Returns the model properties as a dictc                 S   s   t | dr	|  S | S )Nto_dicthasattrr   )xrs   rs   rt   <lambda>c  s    z"V1Volume.to_dict.<locals>.<lambda>r   c                 S   s&   t | d dr| d | d  fS | S )N   r   r   r   )itemrs   rs   rt   r   j  s   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr   r   dictitems)rr   resultattr_valuers   rs   rt   r   [  s"   




zV1Volume.to_dictc                 C   s   t |  S )z.Returns the string representation of the model)pprintpformatr   rx   rs   rs   rt   to_strs  s   zV1Volume.to_strc                 C   s   |   S )zFor `print` and `pprint`)r   rx   rs   rs   rt   __repr__w  s   zV1Volume.__repr__c                 C   s   t |tsdS |  | kS )z&Returns true if both objects are equalFr   r   r   rr   otherrs   rs   rt   __eq__{     
zV1Volume.__eq__c                 C   s   t |tsdS |  | kS )z*Returns true if both objects are not equalTr   r   rs   rs   rt   __ne__  r   zV1Volume.__ne__) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN)-__name__
__module____qualname____doc__r   attribute_mapru   propertyr   setterr   r   r
   r   r   r   r   r   r   r   r   r   r   r    r"   r$   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   r   r   r   r   r   rs   rs   rs   rt   r      s   	
"	

"e
	


	


	


	


	


	


	


	


	


	


	


	


	


	


	


	


	


	


	





	


	


	


	


	


	


	


	


	


	


	

r   )r   r   rer   kubernetes.client.configurationr   objectr   rs   rs   rs   rt   <module>   s   
