
    5                     2   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                  d	d
d       ej                  ej                  j                   ej                  j"                         G d dej$                                      Zy)z$Command to delete a fleet namespace.    )absolute_import)division)unicode_literals)client)base)deprecation_utils)	arg_utilsz447.0.0Tz%gcloud fleet scopes namespaces delete)remove_versionremovealt_commandc                   &    e Zd ZdZed        Zd Zy)Deletea  Delete a fleet namespace.

  This command can fail for the following reasons:
  * The project specified does not exist.
  * The namespace specified does not exist.
  * The caller does not have permission to access the given project or
  namespace.

  ## EXAMPLES

  To delete fleet namespace `NAMESPACE` in the active project:

    $ {command} NAMESPACE

  To delete fleet namespace `NAMESPACE` in project `PROJECT_ID`:

    $ {command} NAMESPACE --project=PROJECT_ID
  c                 4    | j                  dt        d       y )NNAMEz*Name of the fleet namespace to be deleted.)typehelp)add_argumentstr)parsers    0lib/surface/container/fleet/namespaces/delete.pyArgszDelete.Args5   s    
SK  M    c                     t        j                  |dd      }t        j                  | j	                               }|j                  ||j                        S )Nz	--projectT)use_defaults)release_track)r	   GetFromNamespacer   FleetClientReleaseTrackDeleteNamespacer   )selfargsprojectfleetclients       r   Runz
Delete.Run:   sF    (({NG$$43D3D3FGK&&w		::r   N)__name__
__module____qualname____doc__staticmethodr   r$    r   r   r   r      s"    & M M;r   r   N)r(   
__future__r   r   r   &googlecloudsdk.api_lib.container.fleetr   googlecloudsdk.callioper   googlecloudsdk.command_libr   $googlecloudsdk.command_lib.util.apisr	   DeprecateCommandAtVersionReleaseTracksr   ALPHABETADeleteCommandr   r*   r   r   <module>r5      s    + &  ' 9 ( 8 : -,,7
 D%%++T->->-C-CD;T ; E;r   