tests.system.google.cloud.translate.example_translate_text

範例 Airflow DAG,其使用 Google Cloud 中的 V3 API 版本服務翻譯 Google Cloud Translate 中的文字。

模組內容

tests.system.google.cloud.translate.example_translate_text.DAG_ID = 'gcp_translate_text'[source]
tests.system.google.cloud.translate.example_translate_text.PROJECT_ID[source]
tests.system.google.cloud.translate.example_translate_text.ENV_ID[source]
tests.system.google.cloud.translate.example_translate_text.REGION = 'us-central1'[source]
tests.system.google.cloud.translate.example_translate_text.RESOURCE_DATA_BUCKET = 'airflow-system-tests-resources'[source]
tests.system.google.cloud.translate.example_translate_text.BATCH_TRANSLATE_SAMPLE_URI[source]
tests.system.google.cloud.translate.example_translate_text.BATCH_TRANSLATE_INPUT[source]
tests.system.google.cloud.translate.example_translate_text.DATA_SAMPLE_GCS_BUCKET_NAME[source]
tests.system.google.cloud.translate.example_translate_text.GCS_OUTPUT_DST[source]
tests.system.google.cloud.translate.example_translate_text.create_bucket[source]
tests.system.google.cloud.translate.example_translate_text.test_run[source]

這篇文章是否有幫助?