
    	                     &   S 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                  R                  5      \R                   " S S\R                  5      5       5       rg)	z"api-gateway gateways list command.    )gateways)common_args)base)resource_argsc                   <    \ rS rSrSrSSS.rSr\S 5       rS r	S	r
g
)List   zList API Gateways.z{description}z          To list all gateways, run:

            $ {command}

          To list all gateways within the 'us-central1' location:

            $ {command} --location=us-central1
          )DESCRIPTIONEXAMPLESz
    table(
      name.segment(5):label=GATEWAY_ID,
      name.segment(3):label=LOCATION,
      displayName,
      state,
      createTime.date(),
      updateTime.date()
    )c                     [         R                  " U SSSS9  [        R                  R	                  U 5        U R
                  R                  [        R                  5        g )Nzgateways will be listed from-F)defaultrequired)	r   AddLocationResourceArgr   URI_FLAGRemoveFromParserdisplay_info	AddFormatr   LIST_FORMAT)parsers    (lib/surface/api_gateway/gateways/list.pyArgs	List.Args8   sI    (()G14279
 	MM""6*
!!$"2"23    c                 .   UR                   R                  R                  5       n[        R                  " UR
                  5      n[        R                  " 5       R                  UR                  5       UR                  UR                  UR                  US9$ )N)filterslimit	page_sizesort_by)CONCEPTSlocationParser   ParseSortByArgr   r   GatewayClientr   RelativeNamefilterr   r   )selfargs
parent_refr   s       r   RunList.RunB   sr    ''--/J((6G!!#(()@)@)B15/3zz37>>18	 ) : :r    N)__name__
__module____qualname____firstlineno____doc__detailed_helpr   staticmethodr   r*   __static_attributes__r,   r   r   r   r      s8      	-	+ 4 4:r   r   N)r1   "googlecloudsdk.api_lib.api_gatewayr   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   &googlecloudsdk.command_lib.api_gatewayr   ReleaseTracksReleaseTrackALPHABETAGADefaultUniverseOnlyListCommandr   r,   r   r   <module>r@      s}     ) 8 3 ( @ D%%++T->->-C-C%%((*.:4 .: *.:r   