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/tasks/queues/__pycache__/purge.cpython-312.pyc
�

������dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddl	mZdd	lm
Z
dd
lmZGd�dej �Zy
)z$`gcloud tasks queues purge` command.�)�absolute_import)�division)�unicode_literals)�
GetApiAdapter)�base)�flags)�parsers)�log)�
console_ioc�0�eZdZdZddd�Zed��Zd�Zy)�PurgeaDPurge a queue by deleting all of its tasks.

  This command purges a queue by deleting all of its tasks. Purge operations can
  take up to one minute to take effect. Tasks might be dispatched before the
  purge takes effect. A purge is irreversible. All tasks created before this
  command is run are permanently deleted.
  z"          {description}
          zI          To purge a queue:

              $ {command} my-queue
         )�DESCRIPTION�EXAMPLESc�Z�tj|d�tj|�y)Nzto purge)r�AddQueueResourceArg�AddLocationFlag)�parsers �!lib/surface/tasks/queues/purge.py�Argsz
Purge.Args0s ��	���f�j�1�	���&�!�c��t|j��j}tj|j
|j�}tj|j��}tjddj|���|j|�tjjdj|��y)NTz$Are you sure you want to purge: [{}])�cancel_on_no�
prompt_stringzPurged queue [{}].)r�ReleaseTrack�queuesr	�
ParseQueue�queue�location�GetConsolePromptString�RelativeNamer�PromptContinue�formatr
r
�status�Print)�self�args�
queues_client�	queue_ref�queue_shorts     r�Runz	Purge.Run5s���!�$�"3�"3�"5�6�=�=�M��"�"�4�:�:�t�}�}�=�I��0�0��1G�1G�1I�J�K�����<�C�C�������	�"��J�J���)�0�0��=�>rN)�__name__�
__module__�__qualname__�__doc__�
detailed_help�staticmethodrr*�rrr
r
s1����
�		�-��"��"�	?rr
N)r.�
__future__rrr�googlecloudsdk.api_lib.tasksr�googlecloudsdk.callioper� googlecloudsdk.command_lib.tasksrr	�googlecloudsdk.corer
�googlecloudsdk.core.consoler�Commandr
r1rr�<module>r9s5��+�&��'�6�(�2�4�#�2�!?�D�L�L�!?r