
                         ,   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  \R                  " \R                  R                   \R                  R"                  5      \R$                   " S
 S\R&                  5      5       5       rg)zICommand for creating or replacing an application from YAML specification.    )base)pretty_print)deprecation_util)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   z<Delete a Cloud Run Integration and its associated resources.z"          {description}
          z          To delete a redis integration and the associated resources

              $ {command} my-redis-integration

         )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/run/integrations/delete.pyArgsDelete.Args-   s      
v&	v&    c           	         [         R                  " 5         [         R                  " 5         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 Cloud Run Integration.z_Integration [{}] will be deleted. This will also delete any resources this integration created.T)messagethrow_if_unattendedcancel_on_no)name deleted)integration_typeintegration_nameactionN)r   CheckIfEndOfSaleAppliesDeprecationNoticer   ReleaseTrackr
   PromptContinueformatr   ConnectVerifyLocationDeleteIntegrationr   InfoSuccessr   GetSuccessMessager	   IntegrationsOperationErrorGetDeleteErrorMessage)selfargsr!   release_trackclientr    errs          r   Run
Delete.Run7   s   ,,.&&(yy%%'ML
&!
"  
	$	$T	9V
!339I3J
 	"++!1!1 	
 
:	9 22 -==>NOP		 
:	9s1   D5C-#A D5-D2,D--D22D55
E N)
__name__
__module____qualname____firstlineno____doc__detailed_helpclassmethodr   r5   __static_attributes__r7   r   r   r   r      s2     E	
- ' '
r   r   N)r<   googlecloudsdk.callioper   googlecloudsdk.command_lib.runr   +googlecloudsdk.command_lib.run.integrationsr   r   r   r   "googlecloudsdk.command_lib.runappsr	   googlecloudsdk.core.consoler
   ReleaseTracksr%   ALPHABETADefaultUniverseOnlyCommandr   r7   r   r   <module>rJ      sx    P ) 7 H = E K 9 2 D%%++T->->-C-CD8
T\\ 8
  E8
r   