
    <                         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0r " S S\R.                  5      rg)zCommand to delete an operation.    )absolute_import)division)unicode_literals)
exceptions)operations_util)base)resource_args)util)log)
console_ioEXAMPLESze          To delete the operation ``operation-1'', run:

            $ {command} operation-1
        c                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Delete*   aB  Delete one or more completed Cloud Composer operations.

Delete operations that are done. If more than one operation is specified,
all deletes will be attempted. If any of the deletes fail, those operations
and their failure messages will be listed on the standard error, and the
command will exit with a non-zero status.
c                 0    [         R                  " U SSS9  g )Nz	to deleteT)plural)r	   AddOperationResourceArg)parsers    )lib/surface/composer/operations/delete.pyArgsDelete.Args5   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 HL  n [        R                  " X0R                  5       S	9  S n[$        R&                  " UR)                  5       S
US9  MN     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   ReleaseTrackapitools_exceptions	HttpErrorr   HttpExceptionpayloadstatus_messager   DeletedResourceRelativeNameError)selfargsop_refsop_refencountered_errorsr#   eexcs           r   Run
Delete.Run9   s"   mm&&,,.G**1%4%F #)"5"5v7I7IJ%4
 1 " """69J9J9LM 




k&B  @AA +4 !** "&&q)++!"s   
)C1$C66E
.D==E N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r=   __static_attributes__r?   r   r   r   r   *   s(      -L LBr   r   N)rD   
__future__r   r   r   apitools.base.pyr   r.   googlecloudsdk.api_lib.composerr   r,   googlecloudsdk.api_lib.utilgooglecloudsdk.callioper   #googlecloudsdk.command_lib.composerr	   r
   r(   googlecloudsdk.corer   googlecloudsdk.core.consoler   rE   DeleteCommandr   r?   r   r   <module>rR      sP    & &  ' > R 2 ( = D # 2 	*BT *Br   