
    *
                        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	d
Z ej                  ej                  j                        ej                   ej"                   G d dej$                                             Z ej                  ej                  j(                        ej                    G d dej$                                      Zy)z)Command to list locations in the Project.    )absolute_import)division)unicode_literals)	locations)utils)basez{description}z         To list all design center locations in project `my-project`, run:

          $ {command} --project=my-project
        )DESCRIPTIONEXAMPLESc                   *    e Zd ZdZeZed        Zd Zy)ListGAList Design Center locations.c                     | j                   j                  t        j                  dt        j
                  j                               y Nzdesigncenter.projects.locationsrelease_track)display_info
AddUriFuncapi_lib_utilsMakeGetUriFuncr   ReleaseTrackGAparsers    +lib/surface/design_center/locations/list.pyArgszListGA.Args+   s6    
""$$-++..	
    c                     t        j                  t        j                  j                        }t        j                         }|j                  |j                  |j                  |j                               S zRun the list command.r   )limit	page_sizeparent)apisLocationsClientr   r   r   r   GetProjectRefListr   r    RelativeNameselfargsclientproject_refs       r   Runz
ListGA.Run4   s\    !!0A0A0D0DEF--/K;;jj..'')   r   N	__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpstaticmethodr   r,    r   r   r   r   #   s#     & - r   r   c                   *    e Zd ZdZeZed        Zd Zy)	ListAlphar   c                     | j                   j                  t        j                  dt        j
                  j                               y r   )r   r   r   r   r   r   ALPHAr   s    r   r   zListAlpha.ArgsF   s6    
""$$-++11	
r   c                     t        j                  t        j                  j                        }t        j                         }|j                  |j                  |j                  |j                               S r   )r"   r#   r   r   r9   r   r$   r%   r   r    r&   r'   s       r   r,   zListAlpha.RunO   s\    !!0A0A0G0GHF--/K;;jj..'')   r   Nr-   r5   r   r   r7   r7   ?   s#     & - r   r7   N)r1   
__future__r   r   r   $googlecloudsdk.api_lib.design_centerr   r"   r   r   googlecloudsdk.callioper   r2   ReleaseTracksr   r   UniverseCompatibleHiddenListCommandr   r9   r7   r5   r   r   <module>rB      s    0 &  ' B G ( # D%%(()T    *2 D%%++,     -r   