
                         j   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  e
j                  e
j                  j                         G d	 d
e
j                                Z e
j                  e
j                  j$                  e
j                  j&                         G d de             Zy)z3`gcloud service-directory namespaces list` command.    )absolute_import)division)unicode_literals)
namespaces)common_args)base)resource_argsc                   4    e Zd ZdZddiZed        Zd Zd Zy)ListLists namespaces.EXAMPLESzl          To list Service Directory namespaces, run:

            $ {command} --location=us-east1
          c                     t        j                  | dd       t        j                  j	                  |        t        j
                  j	                  |        y )Nzto list.F)
positional)r	   AddLocationResourceArgr   
LIMIT_FLAGRemoveFromParserURI_FLAG)parsers    0lib/surface/service_directory/namespaces/list.pyArgsz	List.Args(   s8    ((NOO$$V,MM""6*    c                    t        j                  | j                               }|j                  j                  j                         }t        j                  |j                        }|j                  ||j                  ||j                        S N)r   NamespacesClientGetReleaseTrackCONCEPTSlocationParser   ParseSortByArgsort_byr   filter	page_size)selfargsclientlocation_reforder_bys        r   RunzList.Run.   sd    (()=)=)?@F==))//1L))$,,7H;;|T[[(DNNKKr   c                 6    t         j                  j                  S r   )r   ReleaseTrackGAr#   s    r   r   zList.GetReleaseTrack5   s    r   N)	__name__
__module____qualname____doc__detailed_helpstaticmethodr   r(   r    r   r   r   r      s5     - + +
L r   r   c                       e Zd ZdZd Zy)ListBetar   c                 6    t         j                  j                  S r   )r   r*   BETAr,   s    r   r   zListBeta.GetReleaseTrack=   s    !!!r   N)r-   r.   r/   r0   r   r3   r   r   r5   r5   9   s
    "r   r5   N)r0   
__future__r   r   r   (googlecloudsdk.api_lib.service_directoryr   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   ,googlecloudsdk.command_lib.service_directoryr	   ReleaseTracksr*   r+   ListCommandr   ALPHAr7   r5   r3   r   r   <module>r@      s    : &  ' ? 3 ( F D%%(() 4   * : D%%++T->->-C-CD"t " E"r   