
    	                        S r SSK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                  5       " S	 S
\R                  5      5       5       5       r\	\l        g)z$'logging saved_queries get' command.    N)util)base)logging_v2_messagesz        Get a saved query.
    zw        To get a saved query in a project, run:

          $ {command} ID --project=PROJECT_ID --location=LOCATION
    )DESCRIPTIONEXAMPLESc                       \ rS rSrSr\S\R                  SS4S j5       rS\R                  S\
R                  4S jrS	rg)
Get(   zQGet a Logging saved query.

Gets a saved query resource in Google Cloud Logging.
parserreturnNc                     U R                  SSS9  [        R                  " U S5        [        R                  " U SS5        g)zRegisters flags for this command.

Args:
  parser: An argparse.ArgumentParser object. The parser that will be used to
    parse the command line arguments.
IDzID of the saved query to get.)helpzsaved query to getTz#Location of the saved query to get.N)add_argumentr   AddParentArgsAddBucketLocationArg)r   s    (lib/surface/logging/saved_queries/get.pyArgsGet.Args1   s?     #BCv34;    argsc           	          [         R                  " 5       nUR                  R                  [        R
                  " [         R                  " U5       SUR                   SUR                   3S95      $ )zThis is what gets called when the user runs this command.

Gets a saved query using the Logging API.

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

Returns:
  Saved query get operation.
z/locations/z/savedQueries/)name)	r   	GetClientprojects_locations_savedQueriesr	   messages.LoggingProjectsLocationsSavedQueriesGetRequestGetParentFromArgslocationr   )selfr   clients      r   RunGet.Run?   sb     ^^F1155??))$/0DMM? 	+	
 r    )__name__
__module____qualname____firstlineno____doc__staticmethodargparseArgumentParserr   	Namespacer   
SavedQueryr"   __static_attributes__r$   r   r   r	   r	   (   sN    
 8** t  h(( X-@-@ r   r	   )r)   r+   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   0googlecloudsdk.generated_clients.apis.logging.v2r   r   DETAILED_HELPHiddenDefaultUniverseOnlyReleaseTracksReleaseTrackGACommandr	   detailed_helpr$   r   r   <module>r;      s     +  / ( \	
	  D%%(()($,, ( *  (V " r   