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/functions/__pycache__/call.cpython-312.pyc
�

��p���dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddl
mZddl
mZd	d
iZej ej"j$�Gd�de	j&��Zej ej"j*�Gd
�de��Zej ej"j.�Gd�de��Zy)�.Triggers execution of a Google Cloud Function.�)�absolute_import)�division)�unicode_literals)�base)�flags)�util)�command�EXAMPLESa{
        To call a function, giving it 'Hello World!' in the message field of its event
        argument (depending on your environment you might need to escape
        characters in `--data` flag value differently), run:

            $ {command} helloWorld --data='{"message": "Hello World!"}'

        Note that this method has a limited quota which cannot be increased. It is
        intended for testing and debugging and should not be used in production.

        Calls to HTTP-triggered functions are sent as HTTP POST requests. To use other
        HTTP methods, use a dedicated HTTP request tool such as cURL or wget.

        c�0�eZdZdZeZed��Zd�Zd�Z	y)�Callrc���tj|d�|j�}tj|�tj|d��tj
|�y)z!Registers flags for this command.z
to executeT)�hiddenN)r�AddFunctionResourceArg�add_mutually_exclusive_group�AddDataFlag�AddGen2Flag�AddCloudEventsFlag)�parser�data_flag_groups  �lib/surface/functions/call.py�Argsz	Call.Args4sP��
� � ���6��9�9�;�O�	���o�&�
���f�T�*�	���_�-�c�J�tj||j��S�N)�
command_v1�Run�ReleaseTrack��self�argss  r�_RunV1zCall._RunV1?����>�>�$�� 1� 1� 3�4�4rc�J�tj||j��Sr)�
command_v2rrrs  r�_RunV2zCall._RunV2Br#rN)
�__name__�
__module__�__qualname__�__doc__�_DETAILED_HELP�
detailed_help�staticmethodrr"r&�rrr
r
.s&��6� �-��.��.�5�5rr
c� �eZdZdZed��Zy)�CallBetarc�X�tj|�tj|�y)z<Register beta (and implicitly alpha) flags for this command.N)r
rr�AddGcloudHttpTimeoutFlag)rs rrz
CallBeta.ArgsJs ��	�I�I�f��
�"�"�6�*rN)r'r(r)r*r-rr.rrr0r0Fs��6��+��+rr0c��eZdZdZy)�	CallAlpharN)r'r(r)r*r.rrr4r4Ss��6rr4N)r*�
__future__rrr�googlecloudsdk.callioper�$googlecloudsdk.command_lib.functionsrr	�,googlecloudsdk.command_lib.functions.v1.callr
r�,googlecloudsdk.command_lib.functions.v2.callr%r+�
ReleaseTracksr�GA�FunctionResourceCommandr
�BETAr0�ALPHAr4r.rr�<module>r?s���5�&��'�(�6�5�N�N��
���$����D�%�%�(�(�)�5�4�'�'�5�*�5�.����D�%�%�*�*�+�	+�t�	+�,�	+�����D�%�%�+�+�,�7��7�-�7r