範例 Airflow DAG,展示與 Google Cloud Functions 的互動。它會建立一個函數,然後將其刪除。
模組內容
-
tests.system.google.cloud.cloud_functions.example_functions.PROJECT_ID[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.ENV_ID[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.DAG_ID = 'gcp_function'[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.LOCATION = 'europe-west1'[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.SHORT_FUNCTION_NAME = 'hello_world'[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.FUNCTION_NAME[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.SOURCE_ARCHIVE_URL = 'gs://airflow-system-tests-resources/cloud-functions/main_function.zip'[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.ENTRYPOINT = 'hello_world'[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.RUNTIME = 'python38'[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.SOURCE_UPLOAD_URL = ''[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.ZIP_PATH = ''[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.repo[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.SOURCE_REPOSITORY = ()[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.VALIDATE_BODY = True[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.body[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.default_args: dict[str, Any][原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.deploy_function[原始碼]
-
tests.system.google.cloud.cloud_functions.example_functions.test_run[原始碼]