tests.system.google.cloud.translate.example_translate_text
Google Cloud中,使用 V3 API 版本服务,在 Google Cloud Translate 中翻译文本的 Airflow DAG 示例。
模块内容
-
tests.system.google.cloud.translate.example_translate_text.DAG_ID = 'gcp_translate_text'[源代码]
-
tests.system.google.cloud.translate.example_translate_text.PROJECT_ID[源代码]
-
tests.system.google.cloud.translate.example_translate_text.ENV_ID[源代码]
-
tests.system.google.cloud.translate.example_translate_text.REGION = 'us-central1'[源代码]
-
tests.system.google.cloud.translate.example_translate_text.RESOURCE_DATA_BUCKET = 'airflow-system-tests-resources'[源代码]
-
tests.system.google.cloud.translate.example_translate_text.BATCH_TRANSLATE_SAMPLE_URI = 'gs://airflow-system-tests-resources/translate/V3/text_batch/inputs/translate_sample_de_1.txt'[源代码]
-
tests.system.google.cloud.translate.example_translate_text.BATCH_TRANSLATE_INPUT[源代码]
-
tests.system.google.cloud.translate.example_translate_text.DATA_SAMPLE_GCS_BUCKET_NAME = ''[源代码]
-
tests.system.google.cloud.translate.example_translate_text.GCS_OUTPUT_DST[源代码]
-
tests.system.google.cloud.translate.example_translate_text.create_bucket[源代码]
-
tests.system.google.cloud.translate.example_translate_text.test_run[源代码]