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

������dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddl	mZdd	l	mZdd
l
mZejej j"�Gd�dej$��Zejej j(�Gd
�de��Zejej j,�Gd�de��Zy)z$`gcloud tasks queues create command.�)�absolute_import)�division)�unicode_literals)�
GetApiAdapter)�base)�	constants)�flags)�parsers)�logc�0�eZdZdZddd�Zed��Zd�Zy)�Create�yCreate a Cloud Tasks queue.

  The flags available to this command represent the fields of a queue that are
  mutable.
  �"          {description}
          �s          To create a Cloud Tasks queue:

              $ {command} my-queue
                --max-attempts=10 --max-retry-duration=5s
                --max-doublings=4 --min-backoff=1s
                --max-backoff=10s
                --max-dispatches-per-second=100
                --max-concurrent-dispatches=10
                --routing-override=service:abc
         ��DESCRIPTION�EXAMPLESc��tj|d�tj|�tj|�y)N�	to create)r	�AddQueueResourceArg�AddLocationFlag�AddCreatePushQueueFlags��parsers �"lib/surface/tasks/queues/create.py�ArgszCreate.Args6s.��	���f�k�2�	���&�!�	�!�!�&�)�c
��|j�tjjk(r
|j}ntj
}t
|j��}|j}tj|j|j�}tj|�}tj|||j|j���}|j�tjjk(r@|j!|||j"|j$|j&|j(��}n�|j�tjjk(rV|j!|||j"|j$|j*|j,|j(|j��}nJ|j!|||j"|j$|j.|j(|j,��}t1j2tj4|j7��d�|S)N��
release_track)�retry_config�rate_limits�app_engine_http_target�http_target)r!r"�app_engine_http_queue�stackdriver_logging_configr$�
queue_type)r!r"�app_engine_routing_overrider$r&�queue)�ReleaseTrackr�BETA�typer�
PUSH_QUEUEr�queuesr
�
ParseQueuer)�location�ExtractLocationRefFromQueueRef�ParseCreateOrUpdateQueueArgs�messages�ALPHAr
�retryConfig�
rateLimits�appEngineHttpTarget�
httpTarget�appEngineHttpQueue�stackdriverLoggingConfig�appEngineRoutingOverrider�CreatedResource�GetConsolePromptString�RelativeName)	�self�argsr'�api�
queues_client�	queue_ref�location_ref�queue_config�create_responses	         r�Runz
Create.Run<s�������d�/�/�4�4�4��9�9�j��'�'�j�
��)�)�+�
,�C��J�J�M��"�"�4�:�:�t�}�}�=�I��9�9�)�D�L��7�7��j�#�,�,��'�'�)�+�L�����d�/�/�5�5�5�%�,�,�
�
�#�/�/�"�-�-�!-�!A�!A�"�-�-�
-�/�o�
�	�	�	�� 1� 1� 6� 6�	6�%�,�,�
�
�#�/�/�"�-�-� ,� ?� ?�%1�%J�%J�"�-�-�!�&�&�-�	�o�&�,�,�
�
�#�/�/�"�-�-�&2�&K�&K�"�-�-�%1�%J�%J�-�L�o�����&�&�y�'=�'=�'?�@�'�K��rN)�__name__�
__module__�__qualname__�__doc__�
detailed_help�staticmethodrrG�rrr
r
s1����

�	�-�"�*��*�
*rr
c�*�eZdZdZddd�Zed��Zy)�
BetaCreaterrrrc��tj|d�tj|�tj|tj
j��y�Nrr)r	rrrrr*r+rs rrzBetaCreate.Args�s<��	���f�k�2�	���&�!�	�!�!�&��8I�8I�8N�8N�OrN�rHrIrJrKrLrMrrNrrrPrPis.����

�	�-�"�P��PrrPc�*�eZdZdZddd�Zed��Zy)�AlphaCreaterrau          To create a Cloud Tasks queue:

              $ {command} my-queue
                --max-attempts=10 --max-retry-duration=5s
                --max-doublings=4 --min-backoff=1s
                --max-backoff=10s
                --max-tasks-dispatched-per-second=100
                --max-concurrent-tasks=10
                --routing-override=service:abc
          rc��tj|d�tj|�tj|tj
j��yrR)r	rrrrr*r4rs rrzAlphaCreate.Args�s<��	���f�k�2�	���&�!�	�!�!�&��8I�8I�8O�8O�PrNrSrNrrrUrU�s.����
�	�-�"�Q��QrrUN)rK�
__future__rrr�googlecloudsdk.api_lib.tasksr�googlecloudsdk.callioper� googlecloudsdk.command_lib.tasksrr	r
�googlecloudsdk.corer�
ReleaseTracksr*�GA�
CreateCommandr
r+rPr4rUrNrr�<module>r_s���+�'��'�6�(�6�2�4�#�����D�%�%�(�(�)�G�T�
�
�G�*�G�T����D�%�%�*�*�+�P��P�,�P�<����D�%�%�+�+�,�Q�&�Q�-�Qr