
                             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l	mZ  G d	 d
ej                        Zy)zDCommand to list all Apigee API proxies in the relevant organization.    )absolute_import)division)unicode_literals)apigee)base)defaults)resource_argsc                   .    e Zd ZdZddiZed        Zd Zy)Listz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           	          t        j                  | ddddt        j                         g       | j                  j                  d       y )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Argsz	List.Args.   sG    ++	 4@@BCE !!&)    c                     |j                   j                  j                         j                         }t        j
                  j                  |      }d|vrg S d |d   D        S )zRun the list command.proxiesc              3   &   K   | ]	  }|d      yw)nameN ).0items     r   	<genexpr>zList.Run.<locals>.<genexpr>@   s     7%6TDL%6s   )CONCEPTSr   ParseAsDictr   
APIsClientr   )selfargsidentifiersresults       r   RunzList.Run9   sV    --,,224;;=K##K0Fi7VI%677r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r+   r   r   r   r   r      s/      -" * *8r   r   N)r/   
__future__r   r   r   googlecloudsdk.api_libr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.apigeer   r	   ListCommandr   r   r   r   <module>r7      s2    K &  ' ) ( 6 ;&84 &8r   