
    !	                         S r SSKJr  SSKJr  SSKJr  SSKrSSKJr  SSKJ	r	  SSKJ
r
  SS	KJr  SS
KJr  SSKJr  SSKJr   " S S\R&                  5      rg)z%bigtable app profiles delete command.    )absolute_import)division)unicode_literalsN)	HttpError)app_profiles)util)base)	arguments)log)
console_ioc                   V    \ rS rSrSrS\R                  " S5      0r\S 5       r	S r
Srg)	DeleteAppProfile    zDelete a Bigtable app profile.EXAMPLESzy          To delete an app profile, run:

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

          c                 |    [         R                  " U S5        [         R                  " U 5      R                  S5        g )Nz	to deletedelete)r
   AddAppProfileResourceArgArgAdderAddForce)parsers    +lib/surface/bigtable/app_profiles/delete.pyArgsDeleteAppProfile.Args-   s+    &&v{;v''1    c                    UR                   R                  R                  5       n[        R                  " SR                  UR                  5       5      SSS9   [        R                  " X!R                  S9n[        R                  " UR                  5       S5        U$ ! [         a   n[        R                  " U5         SnAgSnAff = f)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   RunDeleteAppProfile.Run2   s     mm//557O3::  "	$ 	
$$_JJGh 
/..0-@o	  "
q!!"s   B 
C(CC N)__name__
__module____qualname____firstlineno____doc__textwrapdedentdetailed_helpstaticmethodr   r-   __static_attributes__r/   r   r   r   r       s;    & 
//  - 2 2r   r   )r4   
__future__r   r   r   r5   apitools.base.py.exceptionsr   googlecloudsdk.api_lib.bigtabler   r   googlecloudsdk.callioper	   #googlecloudsdk.command_lib.bigtabler
   googlecloudsdk.corer   googlecloudsdk.core.consoler   DeleteCommandr   r/   r   r   <module>rB      s=    , &  '  1 8 0 ( 9 # 2(t)) (r   