
    q
                     ^    S r SSKrSSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z>A command that lists the resource collections for a given API.    N)base)flags)registryc                   .    \ rS rSrSr\S 5       rS rSrg)List   z5List the methods of a resource collection for an API.c                    [         R                  R                  U 5        [         R                  R                  U 5        [         R                  " S[
        R                  SS9nUR                  U 5        [
        R                  R                  U 5        [         R                  " S[
        R                  SS9nUR                  U 5        U R                  R                  S5        g )Nz--collectionzjThe name of the collection for which to list methods.
If left blank, returns methods from all collections.)	completerhelpz--apizThe name of the API to get the methods for. If `--api-version` is also supplied, then returns methods from specified version, otherwise returns methods from all versions of this API.z
      table(
        name:sort=1,
        detailed_path:optional,
        http_method,
        request_type,
        response_type
      )
    )r   PAGE_SIZE_FLAGRemoveFromParserURI_FLAGArgumentr   CollectionCompleterAddToParserAPI_VERSION_FLAGAPICompleterdisplay_info	AddFormat)parsercollection_flagapi_flags      %lib/surface/meta/apis/methods/list.pyArgs	List.Args   s    ((0MM""6*mm++DEO
 '	&&v.}}$$IKH  
!! # 	    c                    UR                   (       Gd  UR                  (       a-  [        R                  " UR                  UR                  5      /nON[        R
                  " 5        Vs/ s H.  n[        R                  " UR                  UR                  5      PM0     nn[        [        R                  R                  U5      5      nU Vs/ s H,  n[        R                  " UR                  UR                  S9PM.     nn[        [        R                  R                  U5      5      nU$ [        R                  " UR                   UR                  S9$ s  snf s  snf )N)api_version)
collectionapir   GetAPICollectionsr   
GetAllAPIsnameversionlist	itertoolschainfrom_iterable
GetMethods	full_name)selfargscollectionsr    r   methodss         r   RunList.Run9   s   ???	11$((D<L<LMN  **,
, &&sxx=, 	 
 66{CDk $/0#.Z $$Z%9%91;1G1GI#.  0 Y__227;<gntD<L<LMM

0s   (5E3E N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r/   __static_attributes__r1   r   r   r   r      s    =	 	6Nr   r   )
r6   r&   googlecloudsdk.callioper   $googlecloudsdk.command_lib.meta.apisr   $googlecloudsdk.command_lib.util.apisr   ListCommandr   r1   r   r   <module>r=      s-     E  ( 6 9/N4 /Nr   