
                             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Delete operation command.    )absolute_import)division)unicode_literals)dataproc)base)flags)log)
console_ioc                   &    e Zd ZdZed        Zd Zy)DeletezDelete the record of an inactive operation.

  Delete the record of an inactive operation.

  ## EXAMPLES

  To delete the record of an operation, run:

    $ {command} operation_id
  c                     t        j                  | j                               }t        j                  |d|j
                         y )Ndelete)dpDataprocReleaseTrackr   AddOperationResourceArgapi_version)clsparserr   s      )lib/surface/dataproc/operations/delete.pyArgszDelete.Args)   s1    {{3++-.H	!!&(H4H4HI    c                    t        j                  | j                               }|j                  j                  j                         }|j                  j                  |j                               }t        j                  dj                  |j                        dd       |j                  j                  j                  |       t        j                   |j                         y )N)namez$The operation '{0}' will be deleted.TzDeletion aborted by user.)messagecancel_on_nocancel_string)r   r   r   CONCEPTS	operationParsemessages.DataprocProjectsRegionsOperationsDeleteRequestRelativeNamer
   PromptContinueformatclientprojects_regions_operationsr   r	   DeletedResource)selfargsr   operation_refrequests        r   Runz
Delete.Run.   s    {{4,,./HMM++113MNN'') O +G 6==dnnM13
 OO//66w? 'r   N)__name__
__module____qualname____doc__classmethodr   r-    r   r   r   r      s"    	 J J(r   r   N)r1   
__future__r   r   r   googlecloudsdk.api_lib.dataprocr   r   googlecloudsdk.callioper   #googlecloudsdk.command_lib.dataprocr   googlecloudsdk.corer	   googlecloudsdk.core.consoler
   DeleteCommandr   r3   r   r   <module>r;      s4       &  ' : ( 5 # 2"(T "(r   