
                             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	lmZ  G d
 de	j                         Zy)zCommand to delete an operation.    )absolute_import)division)unicode_literals)
datafusion)base)resource_args)log)
console_ioc                   &    e Zd ZdZed        Zd Zy)DeletezDelete a completed Data Fusion operation.

  ## EXAMPLES

  To delete operation `my-operation` in project `my-project` and location
  `my-location`, run:

    $ {command} my-operation --project=my-project --location=my-location
  c                 0    t        j                  | d       y )NzThe operation to delete.)r   AddOperationResourceArg)parsers    ,lib/surface/data_fusion/operations/delete.pyArgszDelete.Args'   s    ))&2LM    c                    t        j                         }|j                  j                  j	                         }t        j                  dj                  |j                               ddd       |j                  j                  |j                               }|j                  j                  j                  |       t        j                   |j                         d       y )Nz'{0}' will be deletedTzDeletion aborted by user.)messagecancel_on_nocancel_stringthrow_if_unattended)name	operation)kind)df
DatafusionCONCEPTSr   Parser
   PromptContinueformatNamemessages2DatafusionProjectsLocationsOperationsDeleteRequestRelativeNameclientprojects_locations_operationsr   r	   DeletedResource)selfargsr   op_refreqs        r   Runz
Delete.Run+   s    J]]$$**,F'..v{{}=1 	" 


P
P  " Q $C 33::3?++-K@r   N)__name__
__module____qualname____doc__staticmethodr   r,    r   r   r   r      s#     N NAr   r   N)r0   
__future__r   r   r   "googlecloudsdk.api_lib.data_fusionr   r   googlecloudsdk.callioper   &googlecloudsdk.command_lib.data_fusionr   googlecloudsdk.corer	   googlecloudsdk.core.consoler
   DeleteCommandr   r2   r   r   <module>r:      s6    & &  ' ? ( @ # 2AT Ar   