
                         >   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 dd	lmZ  e
j                  d
dd       ej                   ej"                  j$                  ej"                  j&                         G d dej(                                      Zy)z.Command to show fleet namespaces in a project.    )absolute_import)division)unicode_literals)client)base)deprecation_utils)util)
propertiesz447.0.0Tz#gcloud fleet scopes namespaces list)remove_versionremovealt_commandc                   &    e Zd ZdZed        Zd Zy)Lista  List fleet namespaces in a project.

  This command can fail for the following reasons:
  * The project specified does not exist.
  * The user does not have access to the project specified.

  ## EXAMPLES

  The following command lists namespaces in the active project:

    $ {command}

  The following command lists namespaces in project `PROJECT_ID`:

    $ {command} --project=PROJECT_ID
  c                 V    | j                   j                  t        j                         y )N)display_info	AddFormatr	   NS_LIST_FORMAT)parsers    .lib/surface/container/fleet/namespaces/list.pyArgsz	List.Args4   s     !!$"5"56    c                     t        j                  | j                               }|j                  }|2t        j
                  j                  j                  j                         }|j                  |      S )N)release_track)	r   FleetClientReleaseTrackprojectr
   VALUEScoreGetListNamespaces)selfargsfleetclientr   s       r   RunzList.Run9   sZ    $$43D3D3FGKllG!!&&..224g%%g..r   N)__name__
__module____qualname____doc__staticmethodr   r$    r   r   r   r      s     " 7 7/r   r   N)r(   
__future__r   r   r   &googlecloudsdk.api_lib.container.fleetr   googlecloudsdk.callioper   googlecloudsdk.command_libr   *googlecloudsdk.command_lib.container.fleetr	   googlecloudsdk.corer
   DeprecateCommandAtVersionReleaseTracksr   ALPHABETAListCommandr   r*   r   r   <module>r6      s    5 &  ' 9 ( 8 ; * -,,5
 D%%++T->->-C-CD/4 / E/r   