HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //usr/lib/google-cloud-sdk/lib/surface/datastore/operations/__pycache__/cancel.cpython-312.pyc
�

�����dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZdd	lm
Z
dd
lmZGd�dej �Zy
)z/The gcloud datastore operations cancel command.�)�absolute_import)�division)�unicode_literals)�
operations)�base)�flags)�
properties)�	resources)�
console_ioc�.�eZdZdZddiZed��Zd�Zy)�Cancelz;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�0�tj|d�y)ztRegister flags for this command.

    Args:
      parser: argparse.ArgumentParser, the parser for this command.
    �cancelN)r�AddOperationNameFlag)�parsers �*lib/surface/datastore/operations/cancel.py�ArgszCancel.Args-s��
���v�x�0�c�H�tjj|jdtj
jjjid��j�}tjdj|�d��tj|�S)N�
projectsIdzdatastore.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�argsrs   r�Runz
Cancel.Run6s������#�#��	�	��*�+�+�0�0�8�8�B�B�
�3�$�4�
5A�L�N�	����7�>�>�t�D����%�%�d�+�+rN)�__name__�
__module__�__qualname__�__doc__�
detailed_help�staticmethodrr)�rrr
r
s/��C��
��-��1��1�,rr
N)r-�
__future__rrr� googlecloudsdk.api_lib.datastorer�googlecloudsdk.callioper�$googlecloudsdk.command_lib.datastorer�googlecloudsdk.corer	r
�googlecloudsdk.core.consoler�Commandr
r0rr�<module>r8s5��6�&��'�7�(�6�*�)�2�$,�T�\�\�$,r