
    "                         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
  G d d	ej                        Zd
ddde_        y)z3Implements the command for SSHing into an instance.    )absolute_import)division)unicode_literals)client)base)
propertiesc                   (     e Zd ZdZ fdZd Z xZS )DescribeProfile3Describe the OS Login profile for the current user.c                 ,    t        t        | 
  |i | y )N)superr
   __init__)selfargskwargs	__class__s      0lib/surface/compute/os_login/describe_profile.pyr   zDescribeProfile.__init__   s    	/4)4:6:    c                 6   t        j                  | j                               }t        j                  j
                  j                  j                         xs2 t        j                  j                  j                  j                         }|j                  |      S )z$See ssh_utils.BaseSSHCLICommand.Run.)r   OsloginClientReleaseTrackr   VALUESauthimpersonate_service_accountGetcoreaccountGetLoginProfile)r   r   oslogin_client
user_emails       r   RunzDescribeProfile.Run!   sr    ))$*;*;*=>N##((DDHHJ :&&++33779 ))*55r   )__name__
__module____qualname____doc__r   r!   __classcell__)r   s   @r   r
   r
      s    ;;6r   r
   r   z
      *{command}* displays the OS Login profile for the currently
      authenticated user, including Posix accounts and SSH keys
      associated with the user.
      a6  
      To show all of the information about your OS Login profile, including
      POSIX account information and stored SSH public keys, run:

        $ {command}

      To show all of the information in a different format, such as JSON, use
      the `--format` flag:

        $ {command} --format=json
      )briefDESCRIPTIONEXAMPLESN)r%   
__future__r   r   r   googlecloudsdk.api_lib.osloginr   googlecloudsdk.callioper   googlecloudsdk.corer   Commandr
   detailed_help r   r   <module>r1      sF     : &  ' 1 ( *6dll 6 C



! r   