|
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__/ |
U
O��g� � @ s� d Z ddlZddlmZ dZdZdZdZdZd Z d
Z
dZdZd
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/uzcred-type/saz
cred-type/jwtz
cred-type/mdsz
cred-type/impc C s d� t�� tj�S )Nzgl-python/{} auth/{})�format�platform�python_versionr �__version__� r r �@/opt/cppython/lib/python3.8/site-packages/google/auth/metrics.py�python_and_auth_lib_version- s r c C s d� t� tt�S �Nz{} {} {})r r �REQUEST_TYPE_ACCESS_TOKEN�CRED_TYPE_SA_MDSr r r r �token_request_access_token_mds5 s
�r
c C s d� t� tt�S r
)r r �REQUEST_TYPE_ID_TOKENr r r r r �token_request_id_token_mds= s
�r c C s d� t� tt�S r
)r r r �CRED_TYPE_SA_IMPERSONATEr r r r �&token_request_access_token_impersonateE s
�r c C s d� t� tt�S r
)r r r r r r r r �"token_request_id_token_impersonateO s
�r c C s d� t� tt�S r
)r r r �CRED_TYPE_SA_ASSERTIONr r r r �'token_request_access_token_sa_assertionX s
�r c C s d� t� tt�S r
)r r r r r r r r �#token_request_id_token_sa_assertiona s
�r c C s d� t� t�S �N�{} {})r r �CRED_TYPE_USERr r r r �token_request_useri s r c C s d� t� t�S r )r r �REQUEST_TYPE_MDS_PINGr r r r �mds_pingq s r c C s d� t� t�S r )r r �REQUEST_TYPE_REAUTH_STARTr r r r �reauth_startw s r c C s d� t� t�S r )r r �REQUEST_TYPE_REAUTH_CONTINUEr r r r �reauth_continue} s r c C s2 d� t� t�}| �� D ]\}}d� |||�}q|S )Nr z{} {}/{})r r �BYOID_HEADER_SECTION�items)Zmetrics_options�header�key�valuer r r �byoid_metrics_header� s r% c C s2 |sdS t | kr|| t <