§
    Âi
  ã                   óT   — d Z ddlmZ ddlmZ ddlmZ  G d„ dej        ¦  «        ZdS )zšGoogle API key support.
This module provides authentication using the `API key`_.
.. _API key:
    https://cloud.google.com/docs/authentication/api-keys/
é    )Ú_helpers)Úcredentials)Ú
exceptionsc                   ó˜   ‡ — e Zd ZdZˆ fd„Zed„ ¦   «         Zed„ ¦   «         Z ej	        e
j        ¦  «        d„ ¦   «         Zd	d„Zd„ Zˆ xZS )
ÚCredentialszeAPI key credentials.
    These credentials use API key to provide authorization to applications.
    c                 ó�   •— t          t          | ¦  «                             ¦   «          |st          j        d¦  «        ‚|| _        dS )zš
        Args:
            token (str): API key string
        Raises:
            ValueError: If the provided API key is not a non-empty string.
        z(Token must be a non-empty API key stringN)Úsuperr   Ú__init__r   ÚInvalidValueÚtoken)Úselfr   Ú	__class__s     €ú]/var/www/html/jarvis.com/web/backend/venv/lib/python3.11/site-packages/google/auth/api_key.pyr
   zCredentials.__init__   sG   ø€ õ 	�k˜4Ñ Ô ×)Ò)Ñ+Ô+Ð+Øð 	VÝÔ)Ð*TÑUÔUÐUØˆŒ
ˆ
ˆ
ó    c                 ó   — dS )NF© ©r   s    r   ÚexpiredzCredentials.expired+   s   € àˆur   c                 ó   — dS )NTr   r   s    r   ÚvalidzCredentials.valid/   s   € àˆtr   c                 ó   — d S ©Nr   )r   Úrequests     r   ÚrefreshzCredentials.refresh3   s   € àˆr   Nc                 ó   — |p| j         |d<   dS )zêApply the API key token to the x-goog-api-key header.
        Args:
            headers (Mapping): The HTTP request headers.
            token (Optional[str]): If specified, overrides the current access
                token.
        zx-goog-api-keyN)r   )r   Úheadersr   s      r   ÚapplyzCredentials.apply7   s   € ð %*Ð$7¨T¬ZˆÐ Ñ!Ð!Ð!r   c                 ó0   — |                       |¦  «         dS )a  Performs credential-specific before request logic.
        Refreshes the credentials if necessary, then calls :meth:`apply` to
        apply the token to the x-goog-api-key header.
        Args:
            request (google.auth.transport.Request): The object used to make
                HTTP requests.
            method (str): The request's HTTP method or the RPC method being
                invoked.
            url (str): The request's URI or the RPC service's URI.
            headers (Mapping): The request's headers.
        N)r   )r   r   ÚmethodÚurlr   s        r   Úbefore_requestzCredentials.before_request@   s   € ð 	�
Š
�7ÑÔÐÐÐr   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   Úpropertyr   r   r   Úcopy_docstringr   r   r   r   r!   Ú__classcell__)r   s   @r   r   r      sÇ   ø€ € € € € ðð ð
ð 
ð 
ð 
ð 
ð ðð ñ „Xðð ðð ñ „Xðð €XÔ˜[Ô4Ñ5Ô5ðð ñ 6Ô5ðð8ð 8ð 8ð 8ðð ð ð ð ð ð r   r   N)r%   Úgoogle.authr   r   r   r   r   r   r   ú<module>r*      s~   ððð ð !Ð  Ð  Ð  Ð  Ð  Ø #Ð #Ð #Ð #Ð #Ð #Ø "Ð "Ð "Ð "Ð "Ð "ð2ð 2ð 2ð 2ð 2�+Ô)ñ 2ô 2ð 2ð 2ð 2r   