
    	                     *   S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SS	S
.r\R                  " \R                  R                  \R                  R                  \R                  R                   5       " S S\R"                  5      5       rg)z#services api-keys describe command.    )absolute_import)division)unicode_literals)apikeys)base)common_flagsDescribe an API key's metadata.a          To describe an API key using Key:

          $ {command} 1234
                OR
          $ {command} projects/myproject/locations/global/keys/1234

        To describe an API key with key and project:

          $ {command} 1234 --project=myproject

        To describe an API key with key, project, and location:

            $ {command} 1234 --project=myproject --location=global
        )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)
DescribeGa/   r	   c                 0    [         R                  " U SSS9  g )Nzto describev2)parsersuffixapi_version)r   key_flag)r   s    )lib/surface/services/api_keys/describe.pyArgsDescribeGa.Args6   s    4P    c                    [         R                  " U R                  5       5      nUR                  nUR                  R
                  R                  5       nUR                  UR                  5       S9nUR                  R                  U5      $ )zRun command.

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

Returns:
  The metadata of API key.
)name)r   GetClientInstanceReleaseTrackMESSAGES_MODULECONCEPTSkeyParse&ApikeysProjectsLocationsKeysGetRequestRelativeNameprojects_locations_keysGet)selfargsclientmessageskey_refrequests         r   RunDescribeGa.Run:   sx     &&t'8'8':;F%%Hmm%%'G==!!# > %G))--g66r    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r+   __static_attributes__r-   r   r   r   r   /   s%     (-Q Q7r   r   N)r2   
__future__r   r   r   googlecloudsdk.api_lib.servicesr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.servicesr   r3   ReleaseTracksr   ALPHABETAGADescribeCommandr   r-   r   r   <module>r@      s    * &  ' 3 ( < 	.		, D%%++T->->-C-C%%((*7%% 7*7r   