
                         V   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  ej                  ej                  j                   ej                  j"                  ej                  j$                        ej&                   G d
 dej(                                      Zy)z/`gcloud api-gateway operations cancel` command.    )absolute_import)division)unicode_literals)
operations)base)operations_util)resource_args)
console_ioc                   0    e Zd ZdZdddZed        Zd Zy)Cancelz%Cancel a Cloud API Gateway operation.z{description}a9            To cancel a Cloud API Gateway operation named ``NAME'' in the ``us-central1''
          region, run:

            $ {command} NAME --location=us-central1

          To cancel a Cloud API Gateway operation with a resource name of ``RESOURCE'',
          run:

            $ {command} RESOURCE

          )DESCRIPTIONEXAMPLESc                 0    t        j                  | d       y )Ncancel)r	   AddOperationResourceArgs)parsers    ,lib/surface/api_gateway/operations/cancel.pyArgszCancel.Args5   s    **68<    c                 ,   t        j                         }|j                  j                  j	                         }t        j                  dj                  |j                               dd       |j                  |       t        j                  |d       y )Nz%The operation [{}] will be cancelled.T)messagethrow_if_unattendedcancel_on_noz Operation cancellation requested)r   OperationsClientCONCEPTS	operationParser
   PromptContinueformatRelativeNamer   r   $PrintOperationResultWithWaitEpilogue)selfargsclientoperation_refs       r   Runz
Cancel.Run9   sx    ((*FMM++113M7>>&&(* 	 MM- 88*,r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r&    r   r   r   r      s1     . 	-$ = =,r   r   N)r*   
__future__r   r   r   "googlecloudsdk.api_lib.api_gatewayr   googlecloudsdk.callioper   &googlecloudsdk.command_lib.api_gatewayr   r	   googlecloudsdk.core.consoler
   ReleaseTracksReleaseTrackALPHABETAGADefaultUniverseOnlyCommandr   r-   r   r   <module>r:      s     6 &  ' 9 ( B @ 2 D%%++T->->-C-C%%((*',T\\ ', *',r   