
                            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  ej                  ej                  j                  ej                  j                  ej                  j                         G d dej                               Zy	)
z!services api-keys lookup command.    )absolute_import)division)unicode_literals)apikeys)basec                   &    e Zd ZdZed        Zd Zy)LookupzLook up resource name of a key string.

  Look up resource name of a key string.

  ## EXAMPLES

   Look up resource name of a key string named my-key-string:

    $ {command} my-key-string
  c                 *    | j                  dd       y )N
key_stringzKey string of the key)help)add_argument)parsers    'lib/surface/services/api_keys/lookup.pyArgszLookup.Args(   s    
+BC    c                     t        j                         }|j                  }|j                  |j                        }|j
                  j                  |      S )zRun command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      Resource name and its parent name.
    )	keyString)r   GetClientInstanceMESSAGES_MODULEApikeysKeysLookupKeyRequestr   keys	LookupKey)selfargsclientmessagesrequests        r   Runz
Lookup.Run,   sI     &&(F%%H22T__2MG;;  ))r   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r	   r	      s"    	 D D*r   r	   N)r"   
__future__r   r   r   googlecloudsdk.api_lib.servicesr   googlecloudsdk.callioper   ReleaseTracksReleaseTrackALPHABETAGACommandr	   r$   r   r   <module>r.      sp    ( &  ' 3 ( T..33T5F5F5I5I*T\\ **r   