
                         J   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  \
R                  \
R                   " \
R"                  R$                  \
R"                  R&                  5      \
R(                   " S
 S\
R*                  5      5       5       5       rg)zList Workflows.    )absolute_import)division)unicode_literals)
list_pager)client_util)base)	run_flags)
propertiesc                   .    \ rS rSrSr\S 5       rS rSrg)List   z4List all Cloud Build runs in a Google Cloud project.c                 h    [         R                  " U S5        U R                  R                  S5        g )NFz
        table(
            name.segment(5):label=ID,
            name.segment(3):label=REGION,
            createTime.date('%Y-%m-%dT%H:%M:%S%Oz', undefined='-')
        )
    )r	   AddsRegionResourceArgdisplay_info	AddFormat)parsers    $lib/surface/builds/workflows/list.pyArgs	List.Args"   s+    ##FE2
!! # 	    c           	         [         R                  " 5       n[         R                  " 5       nUR                  R                  R                  5       nU(       a  UR                  5       nOVUR                  =(       d2    [        R                  R                  R                  R                  5       nSR                  U5      n[        R                  " UR                  UR!                  XQR"                  S9SUR$                  SUR&                  S9$ )z9This is what gets called when the user runs this command.zprojects/{}/locations/-)parentfilter	workflowspageSize)field
batch_sizebatch_size_attributelimit)r   GetClientInstanceGetMessagesModuleCONCEPTSregionParseRelativeNameprojectr
   VALUEScore	GetOrFailformatr   YieldFromListprojects_locations_workflows/CloudbuildProjectsLocationsWorkflowsListRequestr   	page_sizer   )selfargsclientmessages
region_refr   r&   s          r   RunList.Run-   s    **,F,,.H%%++-J&&(fJ
 1 1 6 6 > > H H Jg(//8f##++@@++ 	A 	/>>'jj r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r4   __static_attributes__r6   r   r   r   r      s     =	 	r   r   N)r;   
__future__r   r   r   apitools.base.pyr   $googlecloudsdk.api_lib.cloudbuild.v2r   googlecloudsdk.callioper   %googlecloudsdk.command_lib.cloudbuildr	   googlecloudsdk.corer
   HiddenReleaseTracksReleaseTrackALPHABETAUniverseCompatibleListCommandr   r6   r   r   <module>rK      s     &  ' ' < ( ; * D%%++T->->-C-CD!4 !  E !r   