
    	                     t    S r SSKJr  SSKJr  SSKJr  \R                   " S S\R                  5      5       rg)z.Authenticate clusters using the Anthos client.    )base)anthoscli_backend)flagsc                   .    \ rS rSrSr\S 5       rS rSrg)Token   z#Creates a token for authentication.c                    [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        [         R
                  " 5       R                  U 5        [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        g )N)r   GetTypeFlagAddToParserGetAwsStsRegionFlagGetTokenClusterFlagGetIdTokenFlagGetAccessTokenFlagGetAccessTokenExpiryFlagGetRefreshTokenFlagGetClientIdFlagGetClientSecretFlag"GetIdpCertificateAuthorityDataFlagGetIdpIssuerUrlFlagGetKubeconfigPathFlagGetTokenUserFlag)parsers     lib/surface/anthos/auth/token.pyArgs
Token.Args   s-   	##F+	++F3	++F3	&&v.	**62	""$008	++F3	''/	++F3	,,.::6B	++F3	!--f5	((0    c                    [         R                  " 5       nU" SUR                  UR                  UR                  UR
                  UR                  UR                  UR                  UR                  UR                  UR                  UR                  UR                  UR                  [         R                  " 5       S9nU R!                  U5      $ )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!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   GetEnvArgsForCommand _DefaultOperationResponseHandler)selfargscommand_executorresponses       r   Run	Token.Run*   s    (::<  99**&& 44((..(('+'J'J**,,YY2246H  00::r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r6   __static_attributes__r8   r   r   r   r      s    +1 1;r   r   N)	r=   googlecloudsdk.callioper   !googlecloudsdk.command_lib.anthosr   r   HiddenBinaryBackedCommandr   r8   r   r   <module>rD      s8    5 ( ? 3 ';D$$ '; ';r   