Ë
    €Ïµ	  ã                   ó†   — d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ  G d	„ d
ej                  «      Zy)z/Authenticate clusters using the Anthos client..é    )Úabsolute_import)Údivision)Úunicode_literals)Úbase)Úanthoscli_backend)Úflags)Ú
kube_flagsc                   ó.   — e Zd ZdZddiZed„ «       Zd„ Zy)ÚCreateLoginConfigz¥Generates a login configuration file.

   Generates the file containing configuration information developers
   will use to authenticate to an AWS Anthos cluster.
  ÚEXAMPLESaq  
      To generate the default login config file (kubectl-anthos-config.yaml) using
      the kubeconfig file 'my-kube-config.yaml':

        $ {command} --kubeconfig 'my-kube-config.yaml'

      To generate a config named 'myconfg.yaml' the --kubeconfig file 'my-kube-config.yaml':

        $ {command} --kubeconfig 'my-kube-config.yaml' --output 'myconfg.yaml'
      c                 óÜ   — t        j                  dd¬«      j                  | «       t        j                  «       j                  | «       t        j
                  «       j                  | «       y )NzXSpecifies the input kubeconfig file to access user cluster for login configuration data.T)Úrequired)r	   ÚGetKubeConfigFlagÚAddToParserr   ÚGetConfigOutputFileFlagÚGetMergeFromFlag)Úparsers    ú)lib/surface/anthos/create_login_config.pyÚArgszCreateLoginConfig.Args.   sT   € ä× Ñ ð "=ð +/ô0÷ 1<±¸FÔ0CÜ	×!Ñ!Ó#×/Ñ/°Ô7Ü	×ÑÓ×(Ñ(¨Õ0ó    c           	      óä   — t        j                  «       } |d|j                  |j                  |j                  |j
                  t        j                  «       ¬«      }t        j                  |«      S )Nzcreate-login-config)ÚcommandÚkube_configÚoutput_fileÚ
merge_fromÚshow_exec_errorÚenv)r   ÚAnthosAuthWrapperÚ
kubeconfigÚoutputr   r   ÚGetEnvArgsForCommandÚLoginResponseHandler)ÚselfÚargsÚcommand_executorÚresponses       r   ÚRunzCreateLoginConfig.Run7   s[   € Ü(×:Ñ:Ó<ÐÙØ%Ø—O‘OØ—K‘KØ—?‘?Ø×,Ñ,Ü×2Ñ2Ó4ô6€Hô ×1Ñ1°(Ó;Ð;r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Údetailed_helpÚstaticmethodr   r'   © r   r   r   r      s1   „ ñð ð 	
ð€-ð ñ1ó ð1ó	<r   r   N)r+   Ú
__future__r   r   r   Úgooglecloudsdk.callioper   Ú!googlecloudsdk.command_lib.anthosr   r   Ú(googlecloudsdk.command_lib.anthos.commonr	   ÚBinaryBackedCommandr   r.   r   r   Ú<module>r4      s1   ðñ 6Ý &Ý Ý 'å (Ý ?Ý 3Ý ?ô&<˜×0Ñ0õ &<r   