blob: 2be885b1be6e3f8a21a92c94dd1a4e117b5981ad [file] [log] [blame]
:py:mod:`tests.system.providers.google.cloud.cloud_functions.example_functions`
===============================================================================
.. py:module:: tests.system.providers.google.cloud.cloud_functions.example_functions
.. autoapi-nested-parse::
Example Airflow DAG that displays interactions with Google Cloud Functions.
It creates a function and then deletes it.
This DAG relies on the following OS environment variables
https://airflow.apache.org/concepts.html#variables
* PROJECT_ID - Google Cloud Project to use for the Cloud Function.
* LOCATION - Google Cloud Functions region where the function should be
created.
* ENTRYPOINT - Name of the executable function in the source code.
* and one of the below:
* SOURCE_ARCHIVE_URL - Path to the zipped source in Google Cloud Storage
* SOURCE_UPLOAD_URL - Generated upload URL for the zipped source and ZIP_PATH - Local path to
the zipped source archive
* SOURCE_REPOSITORY - The URL pointing to the hosted repository where the function
is defined in a supported Cloud Source Repository URL format
https://cloud.google.com/functions/docs/reference/rest/v1/projects.locations.functions#SourceRepository
Module Contents
---------------
.. py:data:: PROJECT_ID
.. py:data:: DAG_ID
:annotation: = example_gcp_function
.. py:data:: SHORT_FUNCTION_NAME
:annotation: = hello
.. py:data:: LOCATION
:annotation: = europe-west1
.. py:data:: FUNCTION_NAME
.. py:data:: SOURCE_ARCHIVE_URL
:annotation: =
.. py:data:: SOURCE_UPLOAD_URL
:annotation: =
.. py:data:: repo
:annotation: = test-repo
.. py:data:: SOURCE_REPOSITORY
.. py:data:: ZIP_PATH
:annotation: =
.. py:data:: ENTRYPOINT
:annotation: = helloWorld
.. py:data:: RUNTIME
:annotation: = nodejs14
.. py:data:: VALIDATE_BODY
:annotation: = True
.. py:data:: body
.. py:data:: default_args
:annotation: :dict[str, Any]
.. py:data:: deploy_task
.. py:data:: test_run