From f3f2fd5b30fd06f7512abaca0dbb830134d4e113 Mon Sep 17 00:00:00 2001 From: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com> Date: Tue, 9 Jun 2020 14:34:27 -0700 Subject: [PATCH] Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. [(#4022)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/4022) --- .../google-cloud-translate/samples/snippets/dataset_test.py | 2 +- packages/google-cloud-translate/samples/snippets/model_test.py | 2 +- .../google-cloud-translate/samples/snippets/predict_test.py | 2 +- .../translate_v3_batch_translate_text_with_model_test.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/google-cloud-translate/samples/snippets/dataset_test.py b/packages/google-cloud-translate/samples/snippets/dataset_test.py index 29e3e5c9fe97..4430ec5400e0 100644 --- a/packages/google-cloud-translate/samples/snippets/dataset_test.py +++ b/packages/google-cloud-translate/samples/snippets/dataset_test.py @@ -21,7 +21,7 @@ import automl_translation_dataset -project_id = os.environ["GCLOUD_PROJECT"] +project_id = os.environ["GOOGLE_CLOUD_PROJECT"] compute_region = "us-central1" diff --git a/packages/google-cloud-translate/samples/snippets/model_test.py b/packages/google-cloud-translate/samples/snippets/model_test.py index 0d37a85c6740..e19a50ea7376 100644 --- a/packages/google-cloud-translate/samples/snippets/model_test.py +++ b/packages/google-cloud-translate/samples/snippets/model_test.py @@ -22,7 +22,7 @@ import automl_translation_model -project_id = os.environ["GCLOUD_PROJECT"] +project_id = os.environ["GOOGLE_CLOUD_PROJECT"] compute_region = "us-central1" diff --git a/packages/google-cloud-translate/samples/snippets/predict_test.py b/packages/google-cloud-translate/samples/snippets/predict_test.py index f9d98dfb053c..d00a4658d7bb 100644 --- a/packages/google-cloud-translate/samples/snippets/predict_test.py +++ b/packages/google-cloud-translate/samples/snippets/predict_test.py @@ -18,7 +18,7 @@ import automl_translation_predict -project_id = os.environ["GCLOUD_PROJECT"] +project_id = os.environ["GOOGLE_CLOUD_PROJECT"] compute_region = "us-central1" diff --git a/packages/google-cloud-translate/samples/snippets/translate_v3_batch_translate_text_with_model_test.py b/packages/google-cloud-translate/samples/snippets/translate_v3_batch_translate_text_with_model_test.py index a7801f604024..4d0def04df3e 100644 --- a/packages/google-cloud-translate/samples/snippets/translate_v3_batch_translate_text_with_model_test.py +++ b/packages/google-cloud-translate/samples/snippets/translate_v3_batch_translate_text_with_model_test.py @@ -21,7 +21,7 @@ import translate_v3_batch_translate_text_with_model -PROJECT_ID = os.environ["GCLOUD_PROJECT"] +PROJECT_ID = os.environ["GOOGLE_CLOUD_PROJECT"] MODEL_ID = "TRL3128559826197068699"