
    3                     p   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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0r\R0                  " \R2                  R4                  \R2                  R6                  \R2                  R8                  5       " S S\R:                  5      5       rg)zCommand to delete an operation.    )absolute_import)division)unicode_literals)
exceptions)operations_util)util)base)resource_args)log)
console_ioEXAMPLESa            To delete a Dataproc Metastore operation with the name
          `operation-1` in location `us-central1`, run:

          $ {command} operation-1 --location=us-central1

          To delete multiple Dataproc Metastore services with the name
          `operation-1` and `operation-2` in the same location
          `us-central1`, run:

          $ {command} operation-1 operation-2 --location=us-central1
        c                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Delete2   z;Delete one or more completed Dataproc Metastore operations.c                 0    [         R                  " U SSS9  g )Nz	to deleteT)plural)r
   AddOperationResourceArg)parsers    *lib/surface/metastore/operations/delete.pyArgsDelete.Args9   s    ))&+dK    c                    UR                   R                  R                  5       n[        R                  " [
        R                  " SU Vs/ s H"  nSUR                  < SUR                  < S3PM$     sn5      SSSS9  SnU H[  n [        R                  " UR                  5       U R                  5       S	9  S n[&        R(                  " UR                  5       S
US9  M]     U(       a  [*        R,                  " S5      eg s  snf ! [        R                   a8  n[        R                   " U5      nUR"                  R$                  nSn S nANS nAff = f)Nz"Deleting the following operations:[z] in []TzDeletion aborted by user.)messagecancel_on_nocancel_stringthrow_if_unattendedF)release_track	operation)kindfailedzSome deletions did not succeed.)CONCEPTS
operationsParser   PromptContinuecommand_utilConstructListoperationsIdlocationsIdoperations_api_utilr   RelativeNameReleaseTrackapitools_exceptions	HttpErrorr   HttpExceptionpayloadstatus_messager   DeletedResourceapi_utilError)selfargsop_refsop_refencountered_errorsr#   eexcs           r   Run
Delete.Run=   s/   mm&&,,.G**0%3%F #)"5"5v7I7IJ%3
 1 " """!1B1B1D	F 




k&B  NN<== -3 !** "&&q)++!"s   
)D 3DE.EE N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r>   __static_attributes__r@   r   r   r   r   2   s&     D-L L>r   r   N)rE   
__future__r   r   r   apitools.base.pyr   r/    googlecloudsdk.api_lib.metastorer   r,   r   r5   googlecloudsdk.api_lib.utilgooglecloudsdk.callioper	   $googlecloudsdk.command_lib.metastorer
   r(   googlecloudsdk.corer   googlecloudsdk.core.consoler   rF   ReleaseTracksr.   ALPHABETAGADeleteCommandr   r@   r   r   <module>rW      s    & &  ' > S = 2 ( > E # 2 	" D%%++T->->-C-C%%((*%>T %>*%>r   