
    (	                         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K
Jr  SS	KJr  S
S0r " S S\R                  5      rg)zList workflow template command.    )absolute_import)division)unicode_literals)	constants)dataproc)util)base)flagsEXAMPLESzt      To list all workflow-templates from region 'us-central1' run:

        $ {command} --region=us-central1
      c                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)List&   zList workflow templates.c                     [         R                  R                  U 5        [         R                  R	                  U [
        R                  5        [        R                  " U 5        U R                  R                  S5        g )Nz
          table(
            id:label=ID,
            jobs.len():label=JOBS,
            updateTime:label=UPDATE_TIME,
            version:label=VERSION
          )
    )r	   URI_FLAGRemoveFromParserPAGE_SIZE_FLAG
SetDefaultr   DEFAULT_PAGE_SIZEr
   AddRegionFlagdisplay_info	AddFormat)parsers    /lib/surface/dataproc/workflow_templates/list.pyArgs	List.Args+   sY     	MM""6*""69+F+FG	
!! # 	    c           
      L   [         R                  " U R                  5       5      nUR                  n[        R
                  " U5      nUR                  UR                  5       S9n[        R                  " SUR                  R                  UUR                  SUR                  SS9$ )N)parentz4The following workflow templates are unreachable: %s	templatespageSize)limitfield
batch_sizebatch_size_attribute)dpDataprocReleaseTrackmessagesr   ParseRegion3DataprocProjectsRegionsWorkflowTemplatesListRequestRelativeName YieldFromListWithUnreachableListclient"projects_regions_workflowTemplatesr!   	page_size)selfargsr   r(   
region_refrequests         r   RunList.Run:   s    {{4,,./H  H!!(+JJJ&&( K *G 00>::jj>>') )r    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r4   __static_attributes__r6   r   r   r   r   &   s!     -	 	)r   r   N)r;   
__future__r   r   r   googlecloudsdk.api_lib.dataprocr   r   r%   r   googlecloudsdk.callioper	   #googlecloudsdk.command_lib.dataprocr
   r<   ListCommandr   r6   r   r   <module>rE      sG    & &  ' 6 : 0 ( 5 	
$)4 $)r   