
                             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	0r\R                   " S
 S\R                  5      5       rg)z7Command to list environments in a project and location.    )environments_util)arg_parsers)base)flags)resource_args)	resourcesEXAMPLESz          To list the Cloud Composer environments under the project 'project-1'
          and in location 'us-central1', run:

            $ {command} --project=project-1 --locations=us-central1
        c                   B    \ rS rSrSr\r\S 5       r\S 5       r	S r
Srg)List%   zList the Cloud Composer environments under a project and location.

List environments that have not been successfully deleted. Prints a table
with the following columns:
* name
* location
* status
* creation timestamp
c                 t    [         R                  R                  U R                  SSS9nUR	                  5       $ )Nz(composer.projects.locations.environmentsv1)
collectionapi_version)r   REGISTRYParseRelativeNamenameSelfLink)environmentrs     )lib/surface/composer/environments/list.py_GetUriList._GetUri3   s:    ,,= 	- 	A
 ::<    c           
          [         R                  " U SS[        R                  " SSS9SSS9  U R                  R                  S5        U R                  R                  [        R                  5        g )Nzin which to list environmentsFT)default_universenon_default_universezXIf not specified, the location stored in the property  [composer/location] will be used.)
positionalrequiredpluralhelp_supplementzjtable[box](name.segment(5):label=NAME,name.segment(3):label=LOCATION,state:label=STATE,createTime:reverse))	r   AddLocationResourceArgr   ArgRequiredInUniversedisplay_info	AddFormat
AddUriFuncr   r   )parsers    r   Args	List.Args<   sk    (('22"
 1 !! #& ' ""4<<0r   c                     [         R                  " UR                  R                  R	                  5       SS5      n[
        R                  " UUR                  UR                  U R                  5       S9$ )Nz--locationszEOne or more locations in which to list environments must be provided.)limitrelease_track)
r   FallthroughToLocationPropertyCONCEPTS	locationsParseenvironments_api_utilr   	page_sizer+   ReleaseTrack)selfargslocation_refss      r   RunList.RunS   sa    77%%'OQM
 !%%jj'')	+ +r    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r(   r7   __static_attributes__r9   r   r   r   r   %   s9      -  1 1,
+r   r   N)r>   googlecloudsdk.api_lib.composerr   r1   googlecloudsdk.callioper   r   #googlecloudsdk.command_lib.composerr   r   googlecloudsdk.corer   r?   UniverseCompatibleListCommandr   r9   r   r   <module>rI      sW    > W / ( 5 = ) 	 7+4 7+ 7+r   