From 4b83e90bc8c1af826896bb7af8453a62e51e5960 Mon Sep 17 00:00:00 2001 From: Elton Chang <80650461+EltonChang1@users.noreply.github.com> Date: Wed, 1 Jul 2026 15:14:28 -0700 Subject: [PATCH] Fix Cloud Function invoke operator docs link --- .../google/docs/operators/cloud/functions.rst | 26 +++++++++++++++++++ .../google/cloud/operators/functions.py | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/providers/google/docs/operators/cloud/functions.rst b/providers/google/docs/operators/cloud/functions.rst index fd83451d8a77c..637101b897b47 100644 --- a/providers/google/docs/operators/cloud/functions.rst +++ b/providers/google/docs/operators/cloud/functions.rst @@ -179,6 +179,32 @@ See Google Cloud API documentation `to create a function `_. +.. _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 +`_. + + Reference --------- diff --git a/providers/google/src/airflow/providers/google/cloud/operators/functions.py b/providers/google/src/airflow/providers/google/cloud/operators/functions.py index 988578f3bab5e..419b8484e6409 100644 --- a/providers/google/src/airflow/providers/google/cloud/operators/functions.py +++ b/providers/google/src/airflow/providers/google/cloud/operators/functions.py @@ -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