| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/surface/anthos/auth/__pycache__/ |
Upload File : |
�
��'
� � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ej
G d� d ej � � � � Zd
S )z.Authenticate clusters using the Anthos client.� )�absolute_import)�division)�unicode_literals)�base)�anthoscli_backend)�flagsc �. � e Zd ZdZed� � � Zd� ZdS )�Tokenz#Creates a token for authentication.c �� � t j � � � | � � t j � � � | � � t j � � � | � � t j � � � | � � t j � � � | � � t j � � � | � � t j � � � | � � t j � � � | � � t j
� � � | � � t j � � � | � � t j � � � | � � t j
� � � | � � t j � � � | � � d S )N)r �GetTypeFlag�AddToParser�GetAwsStsRegionFlag�GetTokenClusterFlag�GetIdTokenFlag�GetAccessTokenFlag�GetAccessTokenExpiryFlag�GetRefreshTokenFlag�GetClientIdFlag�GetClientSecretFlag�"GetIdpCertificateAuthorityDataFlag�GetIdpIssuerUrlFlag�GetKubeconfigPathFlag�GetTokenUserFlag)�parsers � lib/surface/anthos/auth/token.py�Argsz
Token.Args s� � � ����#�#�F�+�+�+� ����+�+�F�3�3�3� ����+�+�F�3�3�3� ����&�&�v�.�.�.� ����*�*�6�2�2�2� �"�$�$�0�0��8�8�8� ����+�+�F�3�3�3� ����'�'��/�/�/� ����+�+�F�3�3�3� �,�.�.�:�:�6�B�B�B� ����+�+�F�3�3�3� ��!�!�-�-�f�5�5�5� ����(�(��0�0�0�0�0� c �* � t j � � } |d|j |j |j |j |j |j |j |j |j
|j |j |j
|j t j � � �� � }| � |� � S )N�token)�command�
token_type�cluster�aws_sts_region�id_token�access_token�access_token_expiry�
refresh_token� client_id�
client_secret�idp_certificate_authority_data�idp_issuer_url�kubeconfig_path�user�env)r �AnthosAuthWrapper�typer"