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__/pause.cpython-312.pyc
�

��,���dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddl	mZdd	lm
Z
Gd
�dej�Zy)
z$`gcloud tasks queues pause` command.�)�absolute_import)�division)�unicode_literals)�
GetApiAdapter)�base)�flags)�parsers)�logc�0�eZdZdZddd�Zed��Zd�Zy)�Pausez�Pause a queue.

  If a queue is paused then the system will stop executing the tasks in the
  queue until it is resumed. Tasks can still be added when the queue is paused.
  z"          {description}
          zI          To pause a queue:

              $ {command} my-queue
         )�DESCRIPTION�EXAMPLESc�Z�tj|d�tj|�y)Nzto pause)r�AddQueueResourceArg�AddLocationFlag)�parsers �!lib/surface/tasks/queues/pause.py�Argsz
Pause.Args-s ��	���f�j�1�	���&�!�c�^�t|j��j}tj|j
|j�}|j|�tjjdjtj|j����y)NzPaused queue [{}].)r�ReleaseTrack�queuesr	�
ParseQueue�queue�locationrr
�status�Print�format�GetConsolePromptString�RelativeName)�self�args�
queues_client�	queue_refs    r�Runz	Pause.Run2s|��!�$�"3�"3�"5�6�=�=�M��"�"�4�:�:�t�}�}�=�I����	�"��J�J���)�0�0��&�&�y�'=�'=�'?�@�B�CrN)�__name__�
__module__�__qualname__�__doc__�
detailed_help�staticmethodrr%�rrrrs2����
�		�-��"��"�CrrN)r)�
__future__rrr�googlecloudsdk.api_lib.tasksr�googlecloudsdk.callioper� googlecloudsdk.command_lib.tasksrr	�googlecloudsdk.corer
�Commandrr,rr�<module>r3s4��+�&��'�6�(�2�4�#�C�D�L�L�Cr