
    6	                         d 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 d	d
dZ ej                  ej                  j                          G d dej"                               Zy)z3Command to delete the specified channel connection.    )absolute_import)division)unicode_literals)channel_connections)base)flags)
console_ioz{description}z        To delete the channel connection ``my-channel-connection'' in location ``us-central1'', run:

          $ {command} my-channel-connection --location=us-central1
        )DESCRIPTIONEXAMPLESc                   *    e Zd ZdZeZed        Zd Zy)Deletez&Delete an Eventarc channel connection.c                 n    t        j                  |d       t        j                  j	                  |       y )NzChannel connection to delete.)r   AddChannelConnectionResourceArgr   
ASYNC_FLAGAddToParser)clsparsers     2lib/surface/eventarc/channel_connections/delete.pyArgszDelete.Args,   s(    	))&*IKOO'    c                    t        j                         }|j                  j                  j	                         }|j                         j                         }t        j                  dj                  |j                         |      dd       |j                  |      }|j                  r|S |j                  |d|      S )NzSThe following channel connection will be deleted.
[{name}] in location [{location}])namelocationT)messagethrow_if_unattendedcancel_on_noDeleting)r   ChannelConnectionClientV1CONCEPTSchannel_connectionParseParentNamer	   PromptContinueformatr   async_WaitFor)selfargsclientchannel_connection_reflocation_name	operations         r   Runz
Delete.Run2   s     ::<F!]]==CCE*11388:M55;V0557+ 6< 6- ! 45I{{>>)Z1GHHr   N)	__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpclassmethodr   r.    r   r   r   r   &   s"    . -( (
Ir   r   N)r2   
__future__r   r   r   googlecloudsdk.api_lib.eventarcr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.eventarcr   googlecloudsdk.core.consoler	   r3   ReleaseTracksReleaseTrackGADeleteCommandr   r6   r   r   <module>r@      sm    : &  ' ? ( 5 2 				 D%%(()IT I *Ir   