
                             S r SSKJr  SSKJr  SSKJr  SSKrSSKJr  SSKJ	r	  SSK
Jr   " S	 S
\	R                  5      rg)z"Command for spanner sessions list.    )absolute_import)division)unicode_literalsN)database_sessions)base)resource_argsc                   V    \ rS rSrSrS\R                  " S5      0r\S 5       r	S r
Srg)	List   zDList the Cloud Spanner sessions contained within the given database.EXAMPLESz        To list the sessions for a given Cloud Spanner database, run:

          $ {command} --instance=my-instance-id --database=my-database-id
        c                 R    [         R                  " U SSS9  U R                  SSSS9  g)zSee base class.zin which to list sessionsF)
positionalz--server-filterzAn expression for filtering the results of the request on the server. Filter rules are case insensitive. The fields eligible for filtering are: * labels.key where key is the name of a label.)requiredhelpN)r   AddDatabaseResourceArgadd_argument)parsers    .lib/surface/spanner/databases/sessions/list.pyArgs	List.Args(   s:     ((+? 	>	  ?    c                     [         R                  " UR                  R                  R	                  5       UR
                  5      $ )zThis is what gets called when the user runs this command.

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

Returns:
  Some value that we want to have printed later.
)r   r
   CONCEPTSdatabaseParseserver_filter)selfargss     r   RunList.Run6   s5     !!$--"8"8">">"@"&"4"46 6r    N)__name__
__module____qualname____firstlineno____doc__textwrapdedentdetailed_helpstaticmethodr   r   __static_attributes__r!   r   r   r
   r
      s;    L 
//  - ? ?6r   r
   )r&   
__future__r   r   r   r'   googlecloudsdk.api_lib.spannerr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.spannerr   ListCommandr
   r!   r   r   <module>r1      s1    ) &  '  < ( <%64 %6r   