
                             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)zDCommand to list all Apigee API proxies in the relevant organization.    )absolute_import)division)unicode_literals)apigee)base)defaults)resource_argsc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	List   zList Apigee API proxies.EXAMPLESad    To list all API proxies for the active Cloud Platform project, run:

      $ {command}

  To list all API proxies in an organization called ``my-org'', run:

      $ {command} --organization=my-org

  To list all API proxies in an organization called ``my-org'', formatted as a
  JSON array, run:

      $ {command} --organization=my-org --format=json
  c           	          [         R                  " U SSSS[        R                  " 5       /S9  U R                  R                  S5        g )NorganizationzApigee organization whose API proxies should be listed. If unspecified, the Cloud Platform project's associated organization will be used.FT)
positionalrequiredfallthroughslist)r	   AddSingleResourceArgumentr   !GCPProductOrganizationFallthroughdisplay_info	AddFormat)parsers    lib/surface/apigee/apis/list.pyArgs	List.Args.   sG    ++	 4@@BCE !!&)    c                     UR                   R                  R                  5       R                  5       n[        R
                  R                  U5      nSU;  a  / $ S US    5       $ )zRun the list command.proxiesc              3   *   #    U  H	  oS    v   M     g7f)nameN ).0items     r   	<genexpr>List.Run.<locals>.<genexpr>@   s     7%6TL%6s   )CONCEPTSr   ParseAsDictr   
APIsClientr   )selfargsidentifiersresults       r   RunList.Run9   sV    --,,224;;=K##K0Fi7VI%677r   r!   N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r.   __static_attributes__r!   r   r   r   r      s/      -" * *8r   r   N)r4   
__future__r   r   r   googlecloudsdk.api_libr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.apigeer   r	   ListCommandr   r!   r   r   <module>r=      s2    K &  ' ) ( 6 ;&84 &8r   