Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/site-packages/google/auth/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/site-packages/google/auth/__pycache__/metrics.cpython-38.pyc
U

O��g��@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�@/opt/cppython/lib/python3.8/site-packages/google/auth/metrics.py�python_and_auth_lib_version-sr	cCsd�t�tt�S�Nz{} {} {})rr	�REQUEST_TYPE_ACCESS_TOKEN�CRED_TYPE_SA_MDSrrrr�token_request_access_token_mds5s
�r
cCsd�t�tt�Sr
)rr	�REQUEST_TYPE_ID_TOKENrrrrr�token_request_id_token_mds=s
�rcCsd�t�tt�Sr
)rr	r�CRED_TYPE_SA_IMPERSONATErrrr�&token_request_access_token_impersonateEs
�rcCsd�t�tt�Sr
)rr	rrrrrr�"token_request_id_token_impersonateOs
�rcCsd�t�tt�Sr
)rr	r�CRED_TYPE_SA_ASSERTIONrrrr�'token_request_access_token_sa_assertionXs
�rcCsd�t�tt�Sr
)rr	rrrrrr�#token_request_id_token_sa_assertionas
�rcCsd�t�t�S�N�{} {})rr	�CRED_TYPE_USERrrrr�token_request_userisrcCsd�t�t�Sr)rr	�REQUEST_TYPE_MDS_PINGrrrr�mds_pingqsrcCsd�t�t�Sr)rr	�REQUEST_TYPE_REAUTH_STARTrrrr�reauth_startwsrcCsd�t�t�Sr)rr	�REQUEST_TYPE_REAUTH_CONTINUErrrr�reauth_continue}srcCs2d�t�t�}|��D]\}}d�|||�}q|S)Nrz{} {}/{})rr	�BYOID_HEADER_SECTION�items)Zmetrics_options�header�key�valuerrr�byoid_metrics_header�sr%cCs2|sdSt|kr||t<n|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)�headersZmetric_header_valuerrr�add_metric_header�s

r))�__doc__rZgoogle.authrr'r rrrrrrrZCRED_TYPE_SA_JWTrrr	r
rrrrrrrrrr%r)rrrr�<module>s6
		

F1le Man4ger