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: //lib/google-cloud-sdk/lib/surface/tasks/queues/__pycache__/update.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 update` command.�)�absolute_import)�division)�unicode_literals)�
GetApiAdapter)�base)�	constants)�flags)�parsers)�logc�B��eZdZdZddd�Z�fd�Zed��Zd�Z�xZ	S)�Update�yUpdate a Cloud Tasks queue.

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

              $ {command} my-queue
                --clear-max-attempts --clear-max-retry-duration
                --clear-max-doublings --clear-min-backoff
                --clear-max-backoff
                --clear-max-dispatches-per-second
                --clear-max-concurrent-dispatches
                --clear-routing-override
         ��DESCRIPTION�EXAMPLESc�:��tt|�
|i|��d|_y�NF)�superr
�__init__�is_alpha��self�args�kwargs�	__class__s   ��"lib/surface/tasks/queues/update.pyrzUpdate.__init__5s���	�&�$� �$�1�&�1��D�M�c��tj|d�tj|�tj|�y)N�	to update)r	�AddQueueResourceArg�AddLocationFlag�AddUpdatePushQueueFlags��parsers r�ArgszUpdate.Args9s.��	���f�k�2�	���&�!�	�!�!�&�)rc��|j�tjjk(r
|j}ntj
}t
j|||j���t|j��}|j}t
j|j|j�}t
j|||jd|j���}t
j|||j���}|j�tjj k(r�|j"�|j"j$nd}t
j&|�}	|j)|||j*|j,||	d|	d|	d|	d|	d|	d	|	d
��}
�n3|j�tjjk(r�|j.�|j.j$nd}t
j&|�}	|j)|||j*|j,||j0|j|	d|	d|	d|	d|	d|	d	|	d
��}
nr|j$}t
j&|�}	|j)|||j*|j,||j0|	d|	d|	d|	d|	d|	d	|	d
�
�
}
t2j4j7dj9t
j:|j=����|
S)N��
release_trackT)�	is_updater*�http_uri_override�http_method_override�http_header_override�http_oauth_email_override�http_oauth_scope_override�http_oidc_email_override�http_oidc_audience_override)
�retry_config�rate_limits�app_engine_routing_overrider,r-r.r/r0r1r2)r3r4r5�stackdriver_logging_config�
queue_typer,r-r.r/r0r1r2)r3r4r5r6r,r-r.r/r0r1r2zUpdated queue [{}].)�ReleaseTrackr�BETA�typer�
PUSH_QUEUEr
�CheckUpdateArgsSpecifiedr�queues�
ParseQueue�queue�location�ParseCreateOrUpdateQueueArgs�messages�GetSpecifiedFieldsMask�ALPHA�appEngineHttpTarget�appEngineRoutingOverride�GetHttpTargetArgs�Patch�retryConfig�
rateLimits�appEngineHttpQueue�stackdriverLoggingConfigr�status�Print�format�GetConsolePromptString�RelativeName)rrr7�api�
queues_client�	queue_ref�queue_config�updated_fieldsr5�http_target_args�update_responses           r�Runz
Update.Run?sq������d�/�/�4�4�4��9�9�j��'�'�j��$�$�T�%/�37�3D�3D�3F�H���)�)�+�
,�C��J�J�M��"�"�4�:�:�t�}�}�=�I��7�7��������'�'�)�+�L��3�3��j��(9�(9�(;�=�N�����d�/�/�5�5�5��
-�
-�
9��
*�
*�
C�
C�?C�"�!�2�2�<�@��%�+�+�
�
�#�/�/�"�-�-�&A�,�-@�A�/�0F�G�/�0F�G�$4�)�%�%5�)�%�$4�4N�#O�&6�+�'�!,��o�(
�	�	�	�� 1� 1� 6� 6�	6��
,�
,�
8��
)�
)�
B�
B�>B�"�!�2�2�<�@��%�+�+�
�
�#�/�/�"�-�-�&A�%1�%J�%J�!�&�&�,�-@�A�/�0F�G�/�0F�G�$4�)�%�%5�)�%�$4�4N�#O�&6�+�'�%,��o�.%1�$I�$I�!� �2�2�<�@��%�+�+�
�
�#�/�/�"�-�-�&A�%1�%J�%J�,�-@�A�/�0F�G�/�0F�G�$4�)�%�%5�)�%�$4�4N�#O�&6�+�'�#,��o�*�J�J���*�1�1��&�&�y�'=�'=�'?�@�B�C��r)
�__name__�
__module__�__qualname__�__doc__�
detailed_helpr�staticmethodr'rY�
__classcell__�rs@rr
r
s8�����

�	�-�"��*��*�
frr
c�<��eZdZdZddd�Z�fd�Zed��Z�xZS)�
BetaUpdaterrrrc�:��tt|�
|i|��d|_yr)rrcrrrs   �rrzBetaUpdate.__init__�s���	�*�d�$�d�5�f�5��D�Mrc��tj|d�tj|�tj|tj
j��y�Nr!r))r	r"r#r$rr8r9r%s rr'zBetaUpdate.Args�s?��	���f�k�2�	���&�!�	�!�!��d�/�/�4�4�6r�	rZr[r\r]r^rr_r'r`ras@rrcrc�s2�����

�	�-�"��6��6rrcc�<��eZdZdZddd�Z�fd�Zed��Z�xZS)�AlphaUpdatez�Update a Cloud Tasks queue.

  The flags available to this command represent the fields of a queue that are
  mutable. Attempting to use this command on a different type of queue will
  result in an error.
  ra�          To update a Cloud Tasks queue:

              $ {command} my-queue
                --clear-max-attempts --clear-max-retry-duration
                --clear-max-doublings --clear-min-backoff
                --clear-max-backoff
                --clear-max-tasks-dispatched-per-second
                --clear-max-concurrent-tasks
                --clear-routing-override
         rc�:��tt|�
|i|��d|_y)NT)rrirrrs   �rrzAlphaUpdate.__init__�s���	�+�t�%�t�6�v�6��D�Mrc��tj|d�tj|�tj|tj
j��yrf)r	r"r#r$rr8rDr%s rr'zAlphaUpdate.Args�s<��	���f�k�2�	���&�!�	�!�!�&��8I�8I�8O�8O�Prrgras@rriri�s4�����

�	�-�"��Q��QrriN)r]�
__future__rrr�googlecloudsdk.api_lib.tasksr�googlecloudsdk.callioper� googlecloudsdk.command_lib.tasksrr	r
�googlecloudsdk.corer�
ReleaseTracksr8�GA�
UpdateCommandr
r9rcrDri�rr�<module>rus���,�&��'�6�(�6�2�4�#�����D�%�%�(�(�)�G�T�
�
�G�*�G�T����D�%�%�*�*�+� 6�� 6�,� 6�F����D�%�%�+�+�,� Q�&� Q�-� Qr