
    %                         d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 dd	d
Z ej                  ej                  j                         G d dej                               Zy)z1Command to list all the Jobs in a given Pipeline.    )absolute_import)division)unicode_literals)util)base)flagsz{description}z         To list all the jobs within a pipeline ``pipeline-1'' in project ``project-1'' and region ``us-central1'', run:

          $ {command} --pipeline=pipeline-1 --project=project-1 --region=us-central1
        )DESCRIPTIONEXAMPLESc                   *    e Zd ZdZeZed        Zd Zy)Listz=List Jobs within a pipeline in a specific project and region.c                     | j                   j                  t        j                         t	        j
                  |        y )N)display_info
AddUriFuncr   	GetJobURIr   AddListJobsFlags)parsers    .lib/surface/datapipelines/pipeline/job/list.pyArgsz	List.Args+   s(    
""4>>2	6"    c                     t        j                         }|j                  j                  j	                         }|j                  |j                  |j                  |j                               S )zRun the list command.)limit	page_sizepipeline)	r   
JobsClientCONCEPTSr   Parser   r   r   RelativeName)selfargsclientpipeline_refs       r   RunzList.Run0   sV    __F==))//1L;;jj..**,  . .r   N)	__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpstaticmethodr   r"    r   r   r   r   %   s!    E -# #.r   r   N)r&   
__future__r   r   r   $googlecloudsdk.api_lib.datapipelinesr   googlecloudsdk.callioper   (googlecloudsdk.command_lib.datapipelinesr   r'   ReleaseTracksReleaseTrackBETAListCommandr   r*   r   r   <module>r3      sg    8 &  ' 5 ( : 				 D%%**+.4 . ,.r   