
                         z    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	\R                  5      rg
)z/The gcloud datastore operations cancel command.    )
operations)base)flags)
properties)	resources)
console_ioc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	Cancel   z;Cancel a currently-running Cloud Datastore admin operation.EXAMPLESz          To cancel the currently-running operation with id `exampleId`, run:

            $ {command} exampleId

          or

            $ {command} projects/your-project-id/operations/exampleId
      c                 2    [         R                  " U S5        g)zhRegister flags for this command.

Args:
  parser: argparse.ArgumentParser, the parser for this command.
cancelN)r   AddOperationNameFlag)parsers    *lib/surface/datastore/operations/cancel.pyArgsCancel.Args*   s     
vx0    c                 @   [         R                  R                  UR                  S[        R
                  R                  R                  R                  0SS9R                  5       n[        R                  " SR                  U5      SS9  [        R                  " U5      $ )N
projectsIdzdatastore.projects.operations)params
collectionz%The operation [{}] will be cancelled.T)messagecancel_on_no)r   REGISTRYParsenamer   VALUEScoreproject	GetOrFailRelativeNamer   PromptContinueformatr   CancelOperation)selfargsr   s      r   Run
Cancel.Run3   s    ##		*++0088BB
 3 $ 4
 5ALN 	 7>>tD %%d++r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r(   __static_attributes__r*   r   r   r
   r
      s/    C 
- 1 1,r   r
   N)r/    googlecloudsdk.api_lib.datastorer   googlecloudsdk.callioper   $googlecloudsdk.command_lib.datastorer   googlecloudsdk.corer   r   googlecloudsdk.core.consoler   Commandr
   r*   r   r   <module>r9      s.    6 8 ( 6 * ) 2$,T\\ $,r   