Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions providers/google/docs/operators/cloud/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,32 @@ See Google Cloud API documentation `to create a function
<https://cloud.google.com/functions/docs/reference/rest/v1/projects.locations.functions/create>`_.


.. _howto/operator:CloudFunctionInvokeFunctionOperator:

CloudFunctionInvokeFunctionOperator
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Use the operator to invoke a deployed function in Google Cloud Functions.

For parameter definition, take a look at
:class:`~airflow.providers.google.cloud.operators.functions.CloudFunctionInvokeFunctionOperator`.

Using the operator
""""""""""""""""""

.. exampleinclude:: /../../google/tests/system/google/cloud/cloud_functions/example_functions.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gcf_invoke_function]
:end-before: [END howto_operator_gcf_invoke_function]

More information
""""""""""""""""

See Google Cloud Functions API documentation to `call a function
<https://cloud.google.com/functions/docs/reference/rest/v1/projects.locations.functions/call>`_.


Reference
---------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class CloudFunctionInvokeFunctionOperator(GoogleCloudBaseOperator):

.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudFunctionDeployFunctionOperator`
:ref:`howto/operator:CloudFunctionInvokeFunctionOperator`

:param function_id: ID of the function to be called
:param input_data: Input to be passed to the function
Expand Down