HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberPanel/lib/python3.10/site-packages/google/auth/__pycache__/metrics.cpython-310.pyc
o

��h��@s�dZddlZddlmZdZdZdZdZdZd	Z	d
Z
dZdZd
Z
dZdZdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�ZdS)*z� We use x-goog-api-client header to report metrics. This module provides
the constants and helper methods to construct x-goog-api-client header.
�N)�versionzx-goog-api-clientzgoogle-byoid-sdkzauth-request-type/atzauth-request-type/itzauth-request-type/mdszauth-request-type/re-startzauth-request-type/re-contzcred-type/uzcred-type/saz
cred-type/jwtz
cred-type/mdsz
cred-type/impcCsd�t��tj�S)Nzgl-python/{} auth/{})�format�platform�python_versionr�__version__�rr�I/usr/local/CyberPanel/lib/python3.10/site-packages/google/auth/metrics.py�python_and_auth_lib_version-sr	cC�d�t�tt�S�Nz{} {} {})rr	�REQUEST_TYPE_ACCESS_TOKEN�CRED_TYPE_SA_MDSrrrr�token_request_access_token_mds5��rcCr
r)rr	�REQUEST_TYPE_ID_TOKENr
rrrr�token_request_id_token_mds=rrcCr
r)rr	r�CRED_TYPE_SA_IMPERSONATErrrr�&token_request_access_token_impersonateEs
�rcCr
r)rr	rrrrrr�"token_request_id_token_impersonateOrrcCr
r)rr	r�CRED_TYPE_SA_ASSERTIONrrrr�'token_request_access_token_sa_assertionXrrcCr
r)rr	rrrrrr�#token_request_id_token_sa_assertionarrcC�d�t�t�S�N�{} {})rr	�CRED_TYPE_USERrrrr�token_request_useri�rcCrr)rr	�REQUEST_TYPE_MDS_PINGrrrr�mds_pingqrrcCrr)rr	�REQUEST_TYPE_REAUTH_STARTrrrr�reauth_startwrr!cCrr)rr	�REQUEST_TYPE_REAUTH_CONTINUErrrr�reauth_continue}rr#cCs2d�t�t�}|��D]\}}d�|||�}q|S)Nrz{} {}/{})rr	�BYOID_HEADER_SECTION�items)�metrics_options�header�key�valuerrr�byoid_metrics_header�sr*cCs4|sdSt|vr||t<dS|td|7<dS)a�Add x-goog-api-client header with the given value.

    Args:
        headers (Mapping[str, str]): The headers to which we will add the
            metric header.
        metric_header_value (Optional[str]): If value is None, do nothing;
            if headers already has a x-goog-api-client header, append the value
            to the existing header; otherwise add a new x-goog-api-client
            header with the given value.
    N� )�API_CLIENT_HEADER)�headers�metric_header_valuerrr�add_metric_header�s
r/)�__doc__r�google.authrr,r$rrrr r"rr�CRED_TYPE_SA_JWTr
rr	rrrrrrrrr!r#r*r/rrrr�<module>s8