
    	                        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 recent_queries list' command.    N)util)base)logging_v2_messageszk        List recent queries for a parent resource (project, billing account, folder, or organization).
    zt        To list recent queries in a project, run:

          $ {command} --project=my-project --location=global
    )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)
List(   zLList Logging recent queries.

Lists recent queries in Google Cloud Logging.
parserreturnNc                 b    [         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.
z*parent resource for recent queries to listTz'Location of the recent queries to list.N)r   AddParentArgsAddBucketLocationArg)r   s    *lib/surface/logging/recent_queries/list.pyArgs	List.Args1   s+     	vKL?    argsc                     [         R                  " 5       nUR                  R                  [        R
                  " [         R                  " U5       SUR                   3S95      $ )a  This is what gets called when the user runs this command.

Lists recent queries using the Logging API.

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

Returns:
  A ListRecentQueriesResponse message.
z/locations/)parent)r   	GetClient projects_locations_recentQueriesr	   messages0LoggingProjectsLocationsRecentQueriesListRequestGetParentFromArgslocation)selfr   clients      r   RunList.Run>   sU     ^^F2277AA,,T23;t}}oN	
 r    )__name__
__module____qualname____firstlineno____doc__staticmethodargparseArgumentParserr   	Namespacer   ListRecentQueriesResponser   __static_attributes__r!   r   r   r	   r	   (   sN    
 
8** 
t 
 
h(( X-O-O r   r	   )r&   r(   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   0googlecloudsdk.generated_clients.apis.logging.v2r   r   DETAILED_HELPHiddenDefaultUniverseOnlyReleaseTracksReleaseTrackGAListCommandr	   detailed_helpr!   r   r   <module>r8      s     -  / ( \	
	  D%%(()%4 % *  %P # r   