
                         (   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	S
.rSrS r\R                  " \R                  R                   \R                  R"                  5      \R$                   " S S\R&                  5      5       5       rg)z8Command to list all pipelines in a project and location.    )absolute_import)division)unicode_literals)	pipelines)base)flagsz{description}z        To list all pipelines in location ``us-central1'', run:

          $ {command} --location=us-central1

        To list all pipelines in all locations, run:

          $ {command} --location=-

        or

          $ {command}
        )DESCRIPTIONEXAMPLESap  table(
    name.scope("pipelines"):label=NAME,
    name.scope("locations").segment(0):label=LOCATION,
    loggingConfig.logSeverity:label=LOGGING_CONFIG,
    inputPayloadFormat():label=INPUT_PAYLOAD_FORMAT,
    retryPolicy.maxAttempts:label=MAX_RETRY_ATTEMPTS,
    retryPolicy.minRetryDelay:label=MIN_RETRY_DELAY,
    retryPolicy.maxRetryDelay:label=MAX_RETRY_DELAY
)
c                     U R                  S5      nUc  gUR                  S5      b  gUR                  S5      b  gUR                  S5      b  gg	)
z9Generate an input payload format string for the pipeline.inputPayloadFormatNonejsonJsonavroAvroprotobufProtobufzUnknown Format)get)pipelineinput_payload_formats     &lib/surface/eventarc/pipelines/list.py_InputPayloadFormatr   7   sZ    !&:;!f%1f%1j)5	    c                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)ListE   zList Eventarc pipelines.c                 0   [         R                  " U SSSS9  [         R                  " U 5        U R                  R	                  [
        5        U R                  R                  [        R                  5        U R                  R                  S[        05        g )NzRLocation for which to list pipelines. This should be one of the supported regions.FT)requiredallow_aggregationr   )r   AddLocationResourceArgAddProjectResourceArgdisplay_info	AddFormat_FORMAT
AddUriFuncr   GetPipelineURIAddTransformsr   )parsers    r   Args	List.ArgsL   s{    	  	 
'
!!'*
""9#;#;<
%%1' r   c                     [         R                  " 5       nUR                  R                  R	                  5       nUR                  X1R                  UR                  5      $ )N)r   PipelineClientV1CONCEPTSlocationParser   limit	page_size)selfargsclientlocation_refs       r   RunList.Run\   sA    '')F==))//1L;;|ZZ@@r    N)__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpstaticmethodr)   r6   __static_attributes__r8   r   r   r   r   E   s$     ! - Ar   r   N)r=   
__future__r   r   r   googlecloudsdk.api_lib.eventarcr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.eventarcr   r>   r$   r   ReleaseTracksReleaseTrackBETAGADefaultUniverseOnlyListCommandr   r8   r   r   <module>rL      s    ? &  ' 5 ( 5 #"
 D%%**D,=,=,@,@AA4 A  BAr   