
                             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dZ ej                  ej                  j                        ej                    G d dej"                                      Zy)zBCommand to list all channel connections in a project and location.    )absolute_import)division)unicode_literals)channel_connections)base)flagsz{description}a          To list all channel connections in location ``us-central1'', run:

          $ {command} --location=us-central1

        To list all channel connections in all locations, run:

          $ {command} --location=-

        or

          $ {command}
        )DESCRIPTIONEXAMPLESzTtable(
    name.scope("channelConnections"):label=NAME,
    channel:label=CHANNEL
)
c                   *    e Zd ZdZeZed        Zd Zy)Listz"List Eventarc channel connections.c                     t        j                  | ddd       t        j                  |        | j                  j	                  t
               | j                  j                  t        j                         y )Nz\Location for which to list channel connections. This should be one of the supported regions.FT)requiredallow_aggregation)	r   AddLocationResourceArgAddProjectResourceArgdisplay_info	AddFormat_FORMAT
AddUriFuncr   GetChannelConnectionsURI)parsers    0lib/surface/eventarc/channel_connections/list.pyArgsz	List.Args;   s]    	  	" 
'
!!'*
""#6#O#OP    c                    t        j                         }|j                  j                  j	                          |j                  j
                  j	                         }|j                  ||j                  |j                        S )N)	r   ChannelConnectionClientV1CONCEPTSprojectParselocationr   limit	page_size)selfargsclientlocation_refs       r   RunzList.RunH   sY     ::<FMM!==))//1L;;|TZZ@@r   N)	__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpstaticmethodr   r'    r   r   r   r   4   s&     + -
Q 
QAr   r   N)r+   
__future__r   r   r   googlecloudsdk.api_lib.eventarcr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.eventarcr   r,   r   ReleaseTracksReleaseTrackGADefaultUniverseOnlyListCommandr   r/   r   r   <module>r9      s    I &  ' ? ( 5 			& D%%(()A4 A  *Ar   