
    p                         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K
Jr   " S	 S
\R                  5      rg)z>A command that lists the resource collections for a given API.    )absolute_import)division)unicode_literals)base)
exceptions)flags)registryc                   .    \ rS rSrSr\S 5       rS rSrg)List   z)List the resource collections for an API.c                 2   [         R                  R                  U 5        [         R                  R                  U 5        U R	                  S[
        R                  SS9  [
        R                  R                  U 5        U R                  R                  S5        g )N--apiz/The name of the API to get the collections for.)	completerhelpz`
      table(
        full_name:sort=1:label=COLLECTION_NAME,
        detailed_path
      )
    )r   PAGE_SIZE_FLAGRemoveFromParserURI_FLAGadd_argumentr   APICompleterAPI_VERSION_FLAGAddToParserdisplay_info	AddFormat)parsers    )lib/surface/meta/apis/collections/list.pyArgs	List.Args   sz    ((0MM""6*
$$>  @ 
&&v.
!! # 	    c                     UR                   (       a(  UR                  (       d  [        R                  " SS5      e[        R
                  " UR                  UR                   S9$ )Nr   zGThe --api-version flag can only be specified when using the --api flag.)api_nameapi_version)r!   apir   RequiredArgumentExceptionr	   GetAPICollections)selfargss     r   RunList.Run/   sR    00
 
 %%txx262B2BD Dr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r'   __static_attributes__r)   r   r   r   r      s    1	 	Dr   r   N)r.   
__future__r   r   r   googlecloudsdk.callioper   r   $googlecloudsdk.command_lib.meta.apisr   $googlecloudsdk.command_lib.util.apisr	   ListCommandr   r)   r   r   <module>r6      s4     E &  ' ( . 6 9D4 Dr   