
    
                         S 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	K	Jr  SS
KJr  SSKJr  \R"                  " \R$                  R&                  5       " S S\R(                  5      5       rg)z%Command for deleting Stacks resource.    )absolute_import)division)unicode_literals)base)pretty_print)flags)messages_util)run_apps_operations)
exceptions)
console_ioc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Delete   z5Delete a Stacks resource and its associated bindings.z"          {description}
          zm          To delete a resources and the associated bindings

              $ {command} my-resource

         )DESCRIPTIONEXAMPLESc                 \    [         R                  " U5        [         R                  " U5        g)zPSet up arguments for this command.

Args:
  parser: An argparse.ArgumentParser.
N)r   AddNamePositionalArgAddServiceAccountArg)clsparsers     &lib/surface/stacks/resources/delete.pyArgsDelete.Args.   s      
v&	v&    c           	      8   UR                   nU R                  5       n[        R                  " SR	                  U5      SSS9  [
        R                  " X5       nUR                  5          UR                  US9n[        R                  " S5        [        R                  " [        R                  " UUSS95         SSS5        g! [        R                   a1  n[        R                  " [        R                   " U5      5        UeSnAff = f! , (       d  f       g= f)	zDelete a Stacks resource.zkResource [{}] will be deleted. This will also delete any underlying resources this Stacks resource created.T)messagethrow_if_unattendedcancel_on_no)name deleted)integration_typeintegration_nameactionN)r   ReleaseTrackr   PromptContinueformatr
   ConnectVerifyLocationDeleteIntegrationr   InfoSuccessr	   GetSuccessMessager   IntegrationsOperationErrorGetDeleteErrorMessage)selfargsresource_namerelease_trackclientresource_typeerrs          r   Run
Delete.Run8   s    IIM%%'MB
&
  
	$	$T	9V
00m0D
 	"++!.!. 	
 
:	9 22 -==mLM		 
:	9s1   D*C9A DD,DDD
D N)
__name__
__module____qualname____firstlineno____doc__detailed_helpclassmethodr   r7   __static_attributes__r9   r   r   r   r      s/    =	
- ' '
r   r   N)r>   
__future__r   r   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.runr   +googlecloudsdk.command_lib.run.integrationsr   r	   r
   "googlecloudsdk.command_lib.runappsr   googlecloudsdk.core.consoler   ReleaseTracksr%   ALPHACommandr   r9   r   r   <module>rK      s^    , &  ' ( 7 = E K 9 2 D%%++,6
T\\ 6
 -6
r   