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/workflows/__pycache__/run.cpython-312.pyc
�

��i����dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddl
mZdd	lm
Z
dd
lmZddlmZdZe	j$e	j&e	j(j*�Gd
�de	j,���Ze	j&e	j(j0�Gd�de��Ze	j&e	j(j4�Gd�de��Zy)�:Execute a workflow and wait for the execution to complete.�)�absolute_import)�division)�unicode_literals)�cache)�	workflows)�base)�labels_util)�flags)�hooks)�	resourcesz:workflowexecutions.projects.locations.workflows.executionsc�X�eZdZdZddd�Zed��Zed��Zd�Zd�Z	d	�Z
d
�Zd�Zy)
�Runr�
{description}a:        To execute a workflow named my-workflow with the data that will be passed to the workflow, run:

          $ {command} my-workflow `--data=my-data`

        To add two labels {foo: bar, baz: qux} to the execution, run:

          $ {command} my-workflow `--data=my-data` `--labels=foo=bar,baz=qux`
        ��DESCRIPTION�EXAMPLESc�\�tj|d��tj|�y)Nz
to execute)�verb)r�AddWorkflowResourceArg�
AddDataArg��parsers �lib/surface/workflows/run.py�
CommonArgszRun.CommonArgs4s ��	� � ��l�;�	���V��c���tj|�tj|�tj|�tj
|�t
j|�y�N)rrr�
AddLoggingArg�AddDisableOverflowBufferArg�AddExecutionHistoryLevelArgr
�AddCreateLabelsFlagsrs r�ArgszRun.Args9sF���N�N�6��	�����	�%�%�f�-�	�%�%�f�-��$�$�V�,rc��|jSr��call_log_level��self�argss  r�CallLogLevelzRun.CallLogLevelA������rc��|jSr)�execution_history_levelr's  r�ExecutionHistoryLevelzRun.ExecutionHistoryLevelDs���'�'�'rc�,�tj|�Sr)r�ParseExecutionLabelsr's  r�Labelsz
Run.LabelsGs���%�%�d�+�+rc��|jSr)�,disable_concurrency_quota_overflow_bufferingr's  r�OverflowBufferingDisabledzRun.OverflowBufferingDisabledJs���<�<�<rc
�@�tjd|d�tj|j	��}tj|�}tj|�}|j||j|j|�|j|�|j|�|j|��}tj|j �t"j$j'|j t(��}|j+|�S)z@Execute a workflow and wait for the completion of the execution.N)�
collection)r�print_default_location_warningr�ReleaseTrackToApiVersion�ReleaseTrackr�
ParseWorkflow�WorkflowExecutionClient�Create�datar*r.r1r4r�cache_execution_id�namer
�REGISTRY�Parse�EXECUTION_COLLECTION�WaitForExecution)r(r)�api_version�workflow_ref�client�	execution�
execution_refs       rrzRun.RunMs���	�(�(��t�T�:��4�4�T�5F�5F�5H�I�K��&�&�t�,�L�
�
.�
.�{�
;�F��
�
���	�	����$���"�"�4�(����D���&�&�t�,�
�I�
���Y�^�^�,��&�&�,�,����#7�-��M��"�"�=�1�1rN)
�__name__�
__module__�__qualname__�__doc__�
detailed_help�staticmethodrr#r*r.r1r4r�rrrr sZ��C���	
�-������-��-��(�,�=�2rrc�B�eZdZdZddd�Zed��Zd�Zd�Zd�Z	d	�Z
y
)�BetaRunrr��        To execute a workflow named my-workflow with the data that will be passed to the workflow, run:

          $ {command} my-workflow --data=my-data
        rc�X�tj|�tj|�yr)rrr�AddBetaLoggingArgrs rr#zBetaRun.Argsqs���N�N�6��	���F�#rc��|jSrr%r's  rr*zBetaRun.CallLogLevelvr+rc��yrrOr's  rr.zBetaRun.ExecutionHistoryLevely���rc��yrrOr's  rr1zBetaRun.Labels|rWrc��y�NFrOr's  rr4z!BetaRun.OverflowBufferingDisabled���rN�rIrJrKrLrMrNr#r*r.r1r4rOrrrQrQbs>��B���		�-��$��$����rrQc�B�eZdZdZddd�Zed��Zd�Zd�Zd�Z	d	�Z
y
)�AlphaRunrrrRrc�.�tj|�yr)rrrs rr#z
AlphaRun.Args�s���N�N�6�rc��yrrOr's  rr*zAlphaRun.CallLogLevel�rWrc��yrrOr's  rr.zAlphaRun.ExecutionHistoryLevel�rWrc��yrrOr's  rr1zAlphaRun.Labels�rWrc��yrZrOr's  rr4z"AlphaRun.OverflowBufferingDisabled�r[rNr\rOrrr^r^�s>��B���		�-��������rr^N)rL�
__future__rrr� googlecloudsdk.api_lib.workflowsrr�googlecloudsdk.callioper	�$googlecloudsdk.command_lib.util.argsr
�$googlecloudsdk.command_lib.workflowsrr�googlecloudsdk.corer
rB�DefaultUniverseOnly�
ReleaseTracksr9�GA�DescribeCommandr�BETArQ�ALPHAr^rOrr�<module>rps���A�&��'�2�6�(�<�6�6�)�S���������D�%�%�(�(�)�=2�$�
�
�=2�*��=2�@����D�%�%�*�*�+��c��,��@����D�%�%�+�+�,��s��-�r