class_docstr: Invokes a deployed Cloud Function. To be used for testing purposes as very limited traffic is allowed.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:CloudFunctionDeployFunctionOperator`
  
  :param function_id: ID of the function to be called
  :param input_data: Input to be passed to the function
  :param location: The location where the function is located.
  :param project_id: Optional, Google Cloud Project project_id where the function belongs.
      If set to None or missing, the default project_id from the Google Cloud connection is used.
  :param impersonation_chain: Optional service account to impersonate using short-term
      credentials, or chained list of accounts required to get the access_token
      of the last account in the list, which will be impersonated in the request.
      If set as a string, the account must grant the originating account
      the Service Account Token Creator IAM role.
      If set as a sequence, the identities from the list must grant
      Service Account Token Creator IAM role to the directly preceding identity, with first
      account from the list granting this role to the originating account (templated).
  
  :return: None
class_docstr_tok: ["Invokes","a","deployed","Cloud","Function",".","To","be","used","for","testing","purposes","as","very","limited","traffic","is","allowed",".","..","seealso",":",":","For","more","information","on","how","to","use","this","operator",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/operator",":","CloudFunctionDeployFunctionOperator","`",":","param","function_id",":","ID","of","the","function","to","be","called",":","param","input_data",":","Input","to","be","passed","to","the","function",":","param","location",":","The","location","where","the","function","is","located",".",":","param","project_id",":","Optional",",","Google","Cloud","Project","project_id","where","the","function","belongs",".","If","set","to","None","or","missing",",","the","default","project_id","from","the","Google","Cloud","connection","is","used",".",":","param","impersonation_chain",":","Optional","service","account","to","impersonate","using","short-term","credentials",",","or","chained","list","of","accounts","required","to","get","the","access_token","of","the","last","account","in","the","list",",","which","will","be","impersonated","in","the","request",".","If","set","as","a","string",",","the","account","must","grant","the","originating","account","the","Service","Account","Token","Creator","IAM","role",".","If","set","as","a","sequence",",","the","identities","from","the","list","must","grant","Service","Account","Token","Creator","IAM","role","to","the","directly","preceding","identity",",","with","first","account","from","the","list","granting","this","role","to","the","originating","account","(","templated",")",".",":","return",":","None"]
code: def execute(self, context: Context):
      hook = CloudFunctionsHook(
          api_version=self.api_version,
          gcp_conn_id=self.gcp_conn_id,
          impersonation_chain=self.impersonation_chain,
      )
      self.log.info("Calling function %s.", self.function_id)
      result = hook.call_function(
          function_id=self.function_id,
          input_data=self.input_data,
          location=self.location,
          project_id=self.project_id,
      )
      self.log.info(
          "Function called successfully. Execution id %s",
          result.get("executionId"),
      )
      self.xcom_push(
          context=context,
          key="execution_id",
          value=result.get("executionId"),
      )
  
      project_id = self.project_id or hook.project_id
      if project_id:
          CloudFunctionsDetailsLink.persist(
              context=context,
              task_instance=self,
              location=self.location,
              project_id=project_id,
              function_name=self.function_id,
          )
  
      return result
  
imports: from __future__ import annotations
  import re
  from typing import TYPE_CHECKING, Any, Sequence
  from googleapiclient.errors import HttpError
  from airflow.exceptions import AirflowException
  from airflow.providers.google.cloud.hooks.functions import CloudFunctionsHook
  from airflow.providers.google.cloud.links.cloud_functions import CloudFunctionsDetailsLink, CloudFunctionsListLink
  from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
  from airflow.providers.google.cloud.utils.field_validator import GcpBodyFieldValidator, GcpFieldValidationException
  from airflow.version import version
label_desc: Use image node_id 2 for calling the CloudFunctionInvokeFunctionOperator obj's underlying member method code with example usage: obj.execute(context) and returns: result