
                             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
S.r\R                  " \R                  R                   5       " S S\R"                  5      5       rg)z(Command to delete the specified channel.    )absolute_import)division)unicode_literals)channels)base)flags)
console_ioz{description}z         To delete the channel `my-channel` in location `us-central1`, run:

          $ {command} my-channel --location=us-central1
        )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Delete&   zDelete an Eventarc channel.c                 n    [         R                  " USSS9  [        R                  R	                  U5        g )NzChannel to delete.T)required)r   AddChannelResourceArgr   
ASYNC_FLAGAddToParser)clsparsers     'lib/surface/eventarc/channels/delete.pyArgsDelete.Args,   s'    	(<tLOO'    c                    [         R                  " 5       nUR                  R                  R	                  5       nUR                  5       R                  5       n[        R                  " SR                  UR                  5       US9SSS9  UR                  U5      nUR                  (       a  U$ UR                  USU5      $ )zRun the delete command.zHThe following channel will be deleted.
[{name}] in location [{location}])namelocationT)messagethrow_if_unattendedcancel_on_noDeleting)r   ChannelClientV1CONCEPTSchannelParseParentNamer	   PromptContinueformatr   async_WaitFor)selfargsclientchannel_reflocation_name	operations         r   Run
Delete.Run1   s    %%'F--''--/K&&(--/M5&%**,+  - ! k*I{{>>)Z==r    N)__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpclassmethodr   r1   __static_attributes__r3   r   r   r   r   &   s!    # -( (>r   r   N)r8   
__future__r   r   r   googlecloudsdk.api_lib.eventarcr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.eventarcr   googlecloudsdk.core.consoler	   r9   ReleaseTracksReleaseTrackGADeleteCommandr   r3   r   r   <module>rF      sh    / &  ' 4 ( 5 2 				 D%%(()>T > *>r   