+
    i
                     X    R t ^ RIHt ^ RIHt ^ RIHt  ! R R]P
                  4      tR# )zGoogle API key support.
This module provides authentication using the `API key`_.
.. _API key:
    https://cloud.google.com/docs/authentication/api-keys/
)_helpers)credentials)
exceptionsc                      a a ] tR t^t oRtV 3R lt]R 4       t]R 4       t]	P                  ! ]P                  4      R 4       tR	R ltR tRtVtV ;t# )
Credentialsz]API key credentials.
These credentials use API key to provide authorization to applications.
c                t   < \         \        V `  4        V'       g   \        P                  ! R4      hWn        R# )zr
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   &&f/Users/igloo/.openclaw/workspace/scratch/fb_ad_env/lib/python3.14/site-packages/google/auth/api_key.pyr	   Credentials.__init__   s,     	k4)+))*TUU
    c                    R # )F r   s   &r   expiredCredentials.expired+   s    r   c                    R # )Tr   r   s   &r   validCredentials.valid/   s    r   c                    R # Nr   )r   requests   &&r   refreshCredentials.refresh3   s    r   c                8    T;'       g    V P                   VR&   R# )zApply 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   applyCredentials.apply7   s     %*$7$7TZZ !r   c                (    V P                  V4       R# )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_requestCredentials.before_request@   s     	

7r   r   r   )__name__
__module____qualname____firstlineno____doc__r	   propertyr   r   r   copy_docstringr   r   r   r!   r&   __static_attributes____classdictcell____classcell__)r   __classdict__s   @@r   r   r      sk     
     [445 68 r   r   N)r,   google.authr   r   r   r   r   r   r   <module>r4      s'    ! # "2+)) 2r   