
    [jB<                     |    d Z 	 ddlmZ n# e$ r	 ddlmZ Y nw xY wddlZddlZddlZddlm	Z	  G 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.36
    Generated by: https://openapi-generator.tech
    )getfullargspec)
getargspecN)Configurationc                      e Zd ZdZ	 ddddddddZdddd	d
dddZd#dZed             Zej	        d             Zed             Z
e
j	        d             Z
ed             Zej	        d             Zed             Zej	        d             Zed             Zej	        d             Zed             Zej	        d             Zed             Zej	        d             Zd$dZd Zd  Zd! Zd" ZdS )%V1PodCertificateProjectionzNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    strintzdict[str, str])certificate_chain_pathcredential_bundle_pathkey_pathkey_typemax_expiration_secondssigner_nameuser_annotationscertificateChainPathcredentialBundlePathkeyPathkeyTypemaxExpirationSeconds
signerNameuserAnnotationsNc	                 (   |t          j                    }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        ||| _        ||| _        ||| _        || _        ||| _        || _        |	|| _        dS dS )z7V1PodCertificateProjection - a model defined in OpenAPIN)r   get_default_copylocal_vars_configuration_certificate_chain_path_credential_bundle_path	_key_path	_key_type_max_expiration_seconds_signer_name_user_annotationsdiscriminatorr
   r   r   r   r   r   r   )	selfr
   r   r   r   r   r   r   r   s	            s/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes/client/models/v1_pod_certificate_projection.py__init__z#V1PodCertificateProjection.__init__:   s    #+'4'E'G'G$(@%'+$'+$'+$ !%!!-*@D'!-*@D'$DM !-*@D'&'$4D!!! ('    c                     | j         S )a  Gets the certificate_chain_path of this V1PodCertificateProjection.  # noqa: E501

        Write the certificate chain at this path in the projected volume.  Most applications should use credentialBundlePath.  When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.  # noqa: E501

        :return: The certificate_chain_path of this V1PodCertificateProjection.  # noqa: E501
        :rtype: str
        r   r#   s    r$   r
   z1V1PodCertificateProjection.certificate_chain_pathV        ++r&   c                     || _         dS )a/  Sets the certificate_chain_path of this V1PodCertificateProjection.

        Write the certificate chain at this path in the projected volume.  Most applications should use credentialBundlePath.  When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.  # noqa: E501

        :param certificate_chain_path: The certificate_chain_path of this V1PodCertificateProjection.  # noqa: E501
        :type certificate_chain_path: str
        Nr(   )r#   r
   s     r$   r
   z1V1PodCertificateProjection.certificate_chain_patha        (>$$$r&   c                     | j         S )a_  Gets the credential_bundle_path of this V1PodCertificateProjection.  # noqa: E501

        Write the credential bundle at this path in the projected volume.  The credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key.  The remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates).  Using credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain.  If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key.  # noqa: E501

        :return: The credential_bundle_path of this V1PodCertificateProjection.  # noqa: E501
        :rtype: str
        r   r)   s    r$   r   z1V1PodCertificateProjection.credential_bundle_pathm   r*   r&   c                     || _         dS )a}  Sets the credential_bundle_path of this V1PodCertificateProjection.

        Write the credential bundle at this path in the projected volume.  The credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key.  The remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates).  Using credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain.  If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key.  # noqa: E501

        :param credential_bundle_path: The credential_bundle_path of this V1PodCertificateProjection.  # noqa: E501
        :type credential_bundle_path: str
        Nr.   )r#   r   s     r$   r   z1V1PodCertificateProjection.credential_bundle_pathx   r,   r&   c                     | j         S )a  Gets the key_path of this V1PodCertificateProjection.  # noqa: E501

        Write the key at this path in the projected volume.  Most applications should use credentialBundlePath.  When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.  # noqa: E501

        :return: The key_path of this V1PodCertificateProjection.  # noqa: E501
        :rtype: str
        r   r)   s    r$   r   z#V1PodCertificateProjection.key_path        ~r&   c                     || _         dS )a  Sets the key_path of this V1PodCertificateProjection.

        Write the key at this path in the projected volume.  Most applications should use credentialBundlePath.  When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.  # noqa: E501

        :param key_path: The key_path of this V1PodCertificateProjection.  # noqa: E501
        :type key_path: str
        Nr1   )r#   r   s     r$   r   z#V1PodCertificateProjection.key_path   s     "r&   c                     | j         S )a]  Gets the key_type of this V1PodCertificateProjection.  # noqa: E501

        The type of keypair Kubelet will generate for the pod.  Valid values are "RSA3072", "RSA4096", "ECDSAP256", "ECDSAP384", "ECDSAP521", and "ED25519".  # noqa: E501

        :return: The key_type of this V1PodCertificateProjection.  # noqa: E501
        :rtype: str
        )r   r)   s    r$   r   z#V1PodCertificateProjection.key_type   r2   r&   c                 N    | j         j        r|t          d          || _        dS )a_  Sets the key_type of this V1PodCertificateProjection.

        The type of keypair Kubelet will generate for the pod.  Valid values are "RSA3072", "RSA4096", "ECDSAP256", "ECDSAP384", "ECDSAP521", and "ED25519".  # noqa: E501

        :param key_type: The key_type of this V1PodCertificateProjection.  # noqa: E501
        :type key_type: str
        Nz0Invalid value for `key_type`, must not be `None`)r   client_side_validation
ValueErrorr   )r#   r   s     r$   r   z#V1PodCertificateProjection.key_type   s2     (? 	QHDTOPPP!r&   c                     | j         S )ap  Gets the max_expiration_seconds of this V1PodCertificateProjection.  # noqa: E501

        maxExpirationSeconds is the maximum lifetime permitted for the certificate.  Kubelet copies this value verbatim into the PodCertificateRequests it generates for this projection.  If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour).  The maximum allowable value is 7862400 (91 days).  The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour).  This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours.  # noqa: E501

        :return: The max_expiration_seconds of this V1PodCertificateProjection.  # noqa: E501
        :rtype: int
        r   r)   s    r$   r   z1V1PodCertificateProjection.max_expiration_seconds   r*   r&   c                     || _         dS )a  Sets the max_expiration_seconds of this V1PodCertificateProjection.

        maxExpirationSeconds is the maximum lifetime permitted for the certificate.  Kubelet copies this value verbatim into the PodCertificateRequests it generates for this projection.  If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour).  The maximum allowable value is 7862400 (91 days).  The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour).  This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours.  # noqa: E501

        :param max_expiration_seconds: The max_expiration_seconds of this V1PodCertificateProjection.  # noqa: E501
        :type max_expiration_seconds: int
        Nr9   )r#   r   s     r$   r   z1V1PodCertificateProjection.max_expiration_seconds   r,   r&   c                     | j         S )a	  Gets the signer_name of this V1PodCertificateProjection.  # noqa: E501

        Kubelet's generated CSRs will be addressed to this signer.  # noqa: E501

        :return: The signer_name of this V1PodCertificateProjection.  # noqa: E501
        :rtype: str
        )r    r)   s    r$   r   z&V1PodCertificateProjection.signer_name   s       r&   c                 N    | j         j        r|t          d          || _        dS )a  Sets the signer_name of this V1PodCertificateProjection.

        Kubelet's generated CSRs will be addressed to this signer.  # noqa: E501

        :param signer_name: The signer_name of this V1PodCertificateProjection.  # noqa: E501
        :type signer_name: str
        Nz3Invalid value for `signer_name`, must not be `None`)r   r6   r7   r    )r#   r   s     r$   r   z&V1PodCertificateProjection.signer_name   s5     (? 	TKDWRSSS'r&   c                     | j         S )av  Gets the user_annotations of this V1PodCertificateProjection.  # noqa: E501

        userAnnotations allow pod authors to pass additional information to the signer implementation.  Kubernetes does not restrict or validate this metadata in any way.  These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of the PodCertificateRequest objects that Kubelet creates.  Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field.  Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize.  # noqa: E501

        :return: The user_annotations of this V1PodCertificateProjection.  # noqa: E501
        :rtype: dict[str, str]
        r!   r)   s    r$   r   z+V1PodCertificateProjection.user_annotations   s     %%r&   c                     || _         dS )a  Sets the user_annotations of this V1PodCertificateProjection.

        userAnnotations allow pod authors to pass additional information to the signer implementation.  Kubernetes does not restrict or validate this metadata in any way.  These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of the PodCertificateRequest objects that Kubelet creates.  Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field.  Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize.  # noqa: E501

        :param user_annotations: The user_annotations of this V1PodCertificateProjection.  # noqa: E501
        :type user_annotations: dict[str, str]
        Nr>   )r#   r   s     r$   r   z+V1PodCertificateProjection.user_annotations   s     "2r&   Fc                    i }fdt          j        | j                  D ]\  }}t          | |          }r| j                            ||          n|}t          |t                    r$t          t          fd|                    ||<   mt          |t                    r6t          t          fd|
                                                    ||<    |          ||<   |S )z&Returns the model properties as a dictc                     t          | d          rUt          | j                  j        }t	          |          dk    r|                                 S |                               S | S )Nto_dict   )hasattrr   rB   argslen)xrE   	serializes     r$   convertz3V1PodCertificateProjection.to_dict.<locals>.convert   s[    q)$$ %ai005t99>>99;;&99Y///r&   c                      |           S )N )rG   rI   s    r$   <lambda>z4V1PodCertificateProjection.to_dict.<locals>.<lambda>  s    ggajj r&   c                 6    | d          | d                   fS )Nr   rC   rK   )itemrI   s    r$   rL   z4V1PodCertificateProjection.to_dict.<locals>.<lambda>  s    $q'7747+;+;!< r&   )six	iteritemsopenapi_typesgetattrattribute_mapget
isinstancelistmapdictitems)r#   rH   resultattr_valuerI   s    `    @r$   rB   z"V1PodCertificateProjection.to_dict   s   	 	 	 	 	 }T%788 	. 	.GD!D$''E9BL4%))$555D%&& .#C((((% %    t E4(( .#C<<<<KKMM% %    t
  'wu~~tr&   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatrB   r)   s    r$   to_strz!V1PodCertificateProjection.to_str  s    ~dllnn---r&   c                 *    |                                  S )zFor `print` and `pprint`)ra   r)   s    r$   __repr__z#V1PodCertificateProjection.__repr__  s    {{}}r&   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrU   r   rB   r#   others     r$   __eq__z!V1PodCertificateProjection.__eq__#  s5    %!;<< 	5||~~00r&   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTre   rf   s     r$   __ne__z!V1PodCertificateProjection.__ne__*  s5    %!;<< 	4||~~00r&   )NNNNNNNN)F)__name__
__module____qualname____doc__rQ   rS   r%   propertyr
   setterr   r   r   r   r   r   rB   ra   rc   rh   rj   rK   r&   r$   r   r      s`         #("'"', M #9"8"8#- M5 5 5 58 , , X, "	> 	> #"	> , , X, "	> 	> #"	>   X _	" 	" _	"   X _" " _" , , X, "	> 	> #"	> ! ! X! ( ( ( & & X& 	2 	2 	2   @. . .  1 1 11 1 1 1 1r&   r   )rn   inspectr   ImportErrorr   r_   rerO   kubernetes.client.configurationr   objectr   rK   r&   r$   <module>rv      s    5&&&&&&& 5 5 5444444445  				 



 9 9 9 9 9 9W1 W1 W1 W1 W1 W1 W1 W1 W1 W1s    