
    	                     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 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)
exceptions)deprecation_utils)util)
propertiesz447.0.0Tz)gcloud fleet scopes rbacrolebindings list)remove_versionremovealt_commandc                   &    e Zd ZdZed        Zd Zy)Lista~  List RBAC RoleBindings in a fleet namespace.

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

  ## EXAMPLES

  The following command lists RBAC RoleBindings in namespace `NAMESPACE` in
  project `PROJECT_ID`:

    $ {command} --namespace=NAMESPACE --project=PROJECT_ID

  c                     | j                   j                  t        j                         | j	                  dt
        dd       y )Nz--namespaceTz;Name of the fleet namespace to list RBAC RoleBindings from.)typerequiredhelp)display_info	AddFormatr
   RB_LIST_FORMATadd_argumentstr)parsers    ?lib/surface/container/fleet/namespaces/rbacrolebindings/list.pyArgsz	List.Args3   s>     !!$"5"56
J	  L    c                 P   t        j                  | j                               }|j                  }|2t        j
                  j                  j                  j                         }|j                  d      r|j                  ||j                        S t        j                  dd      )N)release_track	namespacezNamespace parent is required.)r   FleetClientReleaseTrackprojectr   VALUEScoreGetIsKnownAndSpecifiedListRBACRoleBindingsr    calliope_exceptionsRequiredArgumentException)selfargsfleetclientr#   s       r   RunzList.Run=   s    $$43D3D3FGKllG!!&&..224g,--gt~~FF

7
746 6r   N)__name__
__module____qualname____doc__staticmethodr   r.    r   r   r   r      s"     L L6r   r   N)r2   
__future__r   r   r   &googlecloudsdk.api_lib.container.fleetr   googlecloudsdk.callioper   r   r)   googlecloudsdk.command_libr	   *googlecloudsdk.command_lib.container.fleetr
   googlecloudsdk.corer   DeprecateCommandAtVersionReleaseTracksr"   ALPHABETAListCommandr   r4   r   r   <module>r@      s    5 &  ' 9 ( E 8 ; * -,,;
 D%%++T->->-C-CD"64 "6 E"6r   