
                             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)zECommand to list all environments in the relevant Apigee 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 deployment environments.EXAMPLESz  To list all environments for the active Cloud Platform project, run:

      $ {command}

  To get a JSON array of all environments in an organization called ``my-org'',
  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 environments 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/environments/list.pyArgsz	List.Args*   sG    ++	 4@@BCE !!&)    c                     |j                   j                  j                         j                         }t        j
                  j                  |      S )zRun the list command.)CONCEPTSr   ParseAsDictr   EnvironmentsClientr   )selfargsidentifierss      r   RunzList.Run5   s:    --,,224;;=K$$))+66r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r#    r   r   r   r      s/    , 	- * *7r   r   N)r'   
__future__r   r   r   googlecloudsdk.api_libr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.apigeer   r	   ListCommandr   r*   r   r   <module>r0      s2    L &  ' ) ( 6 ;74 7r   