
                             d Z ddlmZ ddlmZ ddlmZ ddl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  G d de	j                         Zy)z%Command for bigtable clusters delete.    )absolute_import)division)unicode_literalsN)clusters)base)	arguments)log)
console_ioc                   N    e Zd ZdZd ej
                  d      iZed        Zd Z	y)DeleteClusterzDelete a bigtable cluster.EXAMPLESzp          To delete a cluster, run:

            $ {command} my-cluster-id --instance=my-instance-id

          c                 0    t        j                  | d       y)z Register flags for this command.z	to deleteN)r   AddClusterResourceArg)parsers    'lib/surface/bigtable/clusters/delete.pyArgszDeleteCluster.Args+   s     ##FK8    c                 *   |j                   j                  j                         }t        j                  dj                  |j                               dd       t        j                  |      }t        j                  |j                         d       |S )zThis is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      Some value that we want to have printed later.
    z&You are about to delete cluster: [{0}]T)throw_if_unattendedcancel_on_nocluster)CONCEPTSr   Parser
   PromptContinueformatNamer   Deleter	   DeletedResource)selfargscluster_refresponses       r   RunzDeleteCluster.Run0   su     --''--/K0778H8H8JK  {+H((*I6Or   N)
__name__
__module____qualname____doc__textwrapdedentdetailed_helpstaticmethodr   r#    r   r   r   r      s=    " 
(//  - 9 9r   r   )r'   
__future__r   r   r   r(   googlecloudsdk.api_lib.bigtabler   googlecloudsdk.callioper   #googlecloudsdk.command_lib.bigtabler   googlecloudsdk.corer	   googlecloudsdk.core.consoler
   DeleteCommandr   r,   r   r   <module>r4      s7    , &  '  4 ( 9 # 2#D&& #r   