
    R                         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  \	R                  " \	R                  R                  5       " S S	\	R                  5      5       rg
)zList session templates command.    )
list_pager)	constants)dataproc)util)base)flagsc                   .    \ rS rSrSr\S 5       rS rSrg)List   zList session templates.

## EXAMPLES

The following command lists all session templates in Dataproc's
'us-central1' region:

  $ {command} --location=us-central1
c                     [         R                  " U 5        [        R                  R	                  U [
        R                  5        U R                  R                  S5        U R                  R                  S 5        g )NzI
          table(
            name.basename():label=NAME
          )
    c                     U R                   $ )N)name)resources    .lib/surface/dataproc/session_templates/list.py<lambda>List.Args.<locals>.<lambda>1   s    HMM    )
r   AddLocationFlagr   PAGE_SIZE_FLAG
SetDefaultr   DEFAULT_PAGE_SIZEdisplay_info	AddFormat
AddUriFunc)parsers    r   Args	List.Args'   s\    	&!""69+F+FG
!! # 	 ""#ABr   c           	      ,   [         R                  " 5       nUR                  n[        R                  " U5      nUR                  UR                  5       S9n[        R                  " UR                  R                  UUR                  SUR                  SS9$ )N)parentsessionTemplatespageSize)limitfield
batch_sizebatch_size_attribute)dpDataprocmessagesr    ParseProjectsLocationsForSession4DataprocProjectsLocationsSessionTemplatesListRequestRelativeNamer   YieldFromListclient#projects_locations_sessionTemplatesr"   	page_size)selfargsr   r(   locationrequests         r   RunList.Run3   s    {{}H  H44X>HKK$$& L (G ##;;jj >>') )r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r4   __static_attributes__r6   r   r   r
   r
      s"     	C 	C)r   r
   N)r;   apitools.base.pyr   googlecloudsdk.api_lib.dataprocr   r   r&   r   googlecloudsdk.callioper   #googlecloudsdk.command_lib.dataprocr   ReleaseTracksReleaseTrackBETAListCommandr
   r6   r   r   <module>rF      sV    & ( 5 : 0 ( 5 D%%**+&)4 &) ,&)r   