
                         *   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                   ej                  j"                        ej$                   G d dej&                                      Zy)z)Command to delete the specified pipeline.    )absolute_import)division)unicode_literals)	pipelines)base)flags)
console_ioz{description}z         To delete the pipeline `my-pipeline` in location `us-central1`, run:

          $ {command} my-pipeline --location=us-central1
        )DESCRIPTIONEXAMPLESc                   *    e Zd ZdZeZed        Zd Zy)DeletezDelete an Eventarc pipeline.c                 r    t        j                  |dd       t        j                  j	                  |       y )NzPipeline to delete.T)required)r   AddPipelineResourceArgr   
ASYNC_FLAGAddToParser)clsparsers     (lib/surface/eventarc/pipelines/delete.pyArgszDelete.Args+   s'    	  )>NOO'    c                 P   t        j                         }|j                  j                  j	                         }t        j                  dj                  |j                  |j                        dd       |j                  |      }|j                  r|S |j                  |d|      S )zRun the delete command.zIThe following pipeline will be deleted.
[{name}] in location [{location}])namelocationT)messagethrow_if_unattendedcancel_on_noDeleting)r   PipelineClientV1CONCEPTSpipelineParser	   PromptContinueformatpipelinesIdlocationsIdr   async_WaitFor)selfargsclientpipeline_ref	operations        r   Runz
Delete.Run0   s    '')F==))//1L006!--%11 17 1
 !
 l+I{{>>)Z>>r   N)	__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpclassmethodr   r.    r   r   r   r   $   s#     % -( (?r   r   N)r2   
__future__r   r   r   googlecloudsdk.api_lib.eventarcr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.eventarcr   googlecloudsdk.core.consoler	   r3   ReleaseTracksReleaseTrackBETAGADefaultUniverseOnlyDeleteCommandr   r6   r   r   <module>rB      s    0 &  ' 5 ( 5 2 # D%%**D,=,=,@,@A?T ?  B?r   