
    !	                         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 ddlmZ ddlmZ  G d dej&                        Zy)z%bigtable app profiles delete command.    )absolute_import)division)unicode_literalsN)	HttpError)app_profiles)util)base)	arguments)log)
console_ioc                   N    e Zd ZdZd ej
                  d      iZed        Zd Z	y)DeleteAppProfilezDelete a Bigtable app profile.EXAMPLESzy          To delete an app profile, run:

            $ {command} my-app-profile-id --instance=my-instance-id

          c                 x    t        j                  | d       t        j                  |       j                  d       y )Nz	to deletedelete)r
   AddAppProfileResourceArgArgAdderAddForce)parsers    +lib/surface/bigtable/app_profiles/delete.pyArgszDeleteAppProfile.Args-   s+    &&v{;v''1    c                    |j                   j                  j                         }t        j                  dj                  |j                               dd       	 t        j                  ||j                        }t        j                  |j                         d       |S # t        $ r}t        j                  |       Y d}~yd}~ww xY w)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 app profile: [{}]T)throw_if_unattendedcancel_on_no)forcezapp profileN)CONCEPTSapp_profileParser   PromptContinueformatNamer   Deleter   r   DeletedResourcer   r   FormatErrorMessages)selfargsapp_profile_refresponsees        r   RunzDeleteAppProfile.Run2   s     mm//557O3::  "	$ 	
$$_DJJGh 
/..0-@o	  "
q!!"s   !B" "	C
+CC
N)
__name__
__module____qualname____doc__textwrapdedentdetailed_helpstaticmethodr   r+    r   r   r   r       s=    & 
(//  - 2 2r   r   )r/   
__future__r   r   r   r0   apitools.base.py.exceptionsr   googlecloudsdk.api_lib.bigtabler   r   googlecloudsdk.callioper	   #googlecloudsdk.command_lib.bigtabler
   googlecloudsdk.corer   googlecloudsdk.core.consoler   DeleteCommandr   r4   r   r   <module>r=      s=    , &  '  1 8 0 ( 9 # 2(t)) (r   