From 071b658c47c2e9feef0a12f164c4821a01d109f2 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) --- samples/snippets/beta_snippets_test.py | 2 +- samples/snippets/hybrid_glossaries/hybrid_tutorial.py | 2 +- samples/snippets/hybrid_glossaries/hybrid_tutorial_test.py | 2 +- samples/snippets/translate_v3_batch_translate_text_test.py | 2 +- .../translate_v3_batch_translate_text_with_glossary_test.py | 2 +- samples/snippets/translate_v3_create_glossary_test.py | 2 +- samples/snippets/translate_v3_delete_glossary_test.py | 2 +- samples/snippets/translate_v3_detect_language_test.py | 2 +- samples/snippets/translate_v3_get_glossary_test.py | 2 +- samples/snippets/translate_v3_get_supported_languages_test.py | 2 +- .../translate_v3_get_supported_languages_with_target_test.py | 2 +- samples/snippets/translate_v3_list_glossary_test.py | 2 +- samples/snippets/translate_v3_translate_text_test.py | 2 +- .../snippets/translate_v3_translate_text_with_glossary_test.py | 2 +- samples/snippets/translate_v3_translate_text_with_model_test.py | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/samples/snippets/beta_snippets_test.py b/samples/snippets/beta_snippets_test.py index 453fcb7e..a42ab08c 100644 --- a/samples/snippets/beta_snippets_test.py +++ b/samples/snippets/beta_snippets_test.py @@ -22,7 +22,7 @@ import beta_snippets -PROJECT_ID = os.environ['GCLOUD_PROJECT'] +PROJECT_ID = os.environ['GOOGLE_CLOUD_PROJECT'] @pytest.fixture(scope='function') diff --git a/samples/snippets/hybrid_glossaries/hybrid_tutorial.py b/samples/snippets/hybrid_glossaries/hybrid_tutorial.py index 1b320e5b..7d36174b 100644 --- a/samples/snippets/hybrid_glossaries/hybrid_tutorial.py +++ b/samples/snippets/hybrid_glossaries/hybrid_tutorial.py @@ -28,7 +28,7 @@ # [START translate_hybrid_project_id] # extract GCP project id -PROJECT_ID = os.environ['GCLOUD_PROJECT'] +PROJECT_ID = os.environ['GOOGLE_CLOUD_PROJECT'] # [END translate_hybrid_project_id] diff --git a/samples/snippets/hybrid_glossaries/hybrid_tutorial_test.py b/samples/snippets/hybrid_glossaries/hybrid_tutorial_test.py index f99be330..8df7cc35 100644 --- a/samples/snippets/hybrid_glossaries/hybrid_tutorial_test.py +++ b/samples/snippets/hybrid_glossaries/hybrid_tutorial_test.py @@ -23,7 +23,7 @@ from hybrid_tutorial import translate_text -PROJECT_ID = os.environ['GCLOUD_PROJECT'] +PROJECT_ID = os.environ['GOOGLE_CLOUD_PROJECT'] # VISION TESTS diff --git a/samples/snippets/translate_v3_batch_translate_text_test.py b/samples/snippets/translate_v3_batch_translate_text_test.py index 85d03e0b..e7919d02 100644 --- a/samples/snippets/translate_v3_batch_translate_text_test.py +++ b/samples/snippets/translate_v3_batch_translate_text_test.py @@ -21,7 +21,7 @@ import translate_v3_batch_translate_text -PROJECT_ID = os.environ["GCLOUD_PROJECT"] +PROJECT_ID = os.environ["GOOGLE_CLOUD_PROJECT"] @pytest.fixture(scope="function") diff --git a/samples/snippets/translate_v3_batch_translate_text_with_glossary_test.py b/samples/snippets/translate_v3_batch_translate_text_with_glossary_test.py index c2033ad3..1a1850ac 100644 --- a/samples/snippets/translate_v3_batch_translate_text_with_glossary_test.py +++ b/samples/snippets/translate_v3_batch_translate_text_with_glossary_test.py @@ -26,7 +26,7 @@ import translate_v3_delete_glossary -PROJECT_ID = os.environ["GCLOUD_PROJECT"] +PROJECT_ID = os.environ["GOOGLE_CLOUD_PROJECT"] GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv" diff --git a/samples/snippets/translate_v3_create_glossary_test.py b/samples/snippets/translate_v3_create_glossary_test.py index e133fd3f..a24f461e 100644 --- a/samples/snippets/translate_v3_create_glossary_test.py +++ b/samples/snippets/translate_v3_create_glossary_test.py @@ -24,7 +24,7 @@ import translate_v3_delete_glossary -PROJECT_ID = os.environ["GCLOUD_PROJECT"] +PROJECT_ID = os.environ["GOOGLE_CLOUD_PROJECT"] GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv" diff --git a/samples/snippets/translate_v3_delete_glossary_test.py b/samples/snippets/translate_v3_delete_glossary_test.py index 4309ca01..a88c16a3 100644 --- a/samples/snippets/translate_v3_delete_glossary_test.py +++ b/samples/snippets/translate_v3_delete_glossary_test.py @@ -20,7 +20,7 @@ import translate_v3_create_glossary import translate_v3_delete_glossary -PROJECT_ID = os.environ["GCLOUD_PROJECT"] +PROJECT_ID = os.environ["GOOGLE_CLOUD_PROJECT"] GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv" diff --git a/samples/snippets/translate_v3_detect_language_test.py b/samples/snippets/translate_v3_detect_language_test.py index 2e9df867..7e9540cc 100644 --- a/samples/snippets/translate_v3_detect_language_test.py +++ b/samples/snippets/translate_v3_detect_language_test.py @@ -17,7 +17,7 @@ import translate_v3_detect_language -PROJECT_ID = os.environ["GCLOUD_PROJECT"] +PROJECT_ID = os.environ["GOOGLE_CLOUD_PROJECT"] def test_detect_language(capsys): diff --git a/samples/snippets/translate_v3_get_glossary_test.py b/samples/snippets/translate_v3_get_glossary_test.py index a2df0a4b..96ea6b78 100644 --- a/samples/snippets/translate_v3_get_glossary_test.py +++ b/samples/snippets/translate_v3_get_glossary_test.py @@ -25,7 +25,7 @@ import translate_v3_get_glossary -PROJECT_ID = os.environ["GCLOUD_PROJECT"] +PROJECT_ID = os.environ["GOOGLE_CLOUD_PROJECT"] GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv" diff --git a/samples/snippets/translate_v3_get_supported_languages_test.py b/samples/snippets/translate_v3_get_supported_languages_test.py index 57ceeb20..4bdc0fa4 100644 --- a/samples/snippets/translate_v3_get_supported_languages_test.py +++ b/samples/snippets/translate_v3_get_supported_languages_test.py @@ -17,7 +17,7 @@ import translate_v3_get_supported_languages -PROJECT_ID = os.environ["GCLOUD_PROJECT"] +PROJECT_ID = os.environ["GOOGLE_CLOUD_PROJECT"] def test_list_languages(capsys): diff --git a/samples/snippets/translate_v3_get_supported_languages_with_target_test.py b/samples/snippets/translate_v3_get_supported_languages_with_target_test.py index 3b123d9f..8f3f52cf 100644 --- a/samples/snippets/translate_v3_get_supported_languages_with_target_test.py +++ b/samples/snippets/translate_v3_get_supported_languages_with_target_test.py @@ -17,7 +17,7 @@ import translate_v3_get_supported_languages_with_target as get_supported_langs -PROJECT_ID = os.environ["GCLOUD_PROJECT"] +PROJECT_ID = os.environ["GOOGLE_CLOUD_PROJECT"] def test_list_languages_with_target(capsys): diff --git a/samples/snippets/translate_v3_list_glossary_test.py b/samples/snippets/translate_v3_list_glossary_test.py index 04e93470..8f4eaa1a 100644 --- a/samples/snippets/translate_v3_list_glossary_test.py +++ b/samples/snippets/translate_v3_list_glossary_test.py @@ -25,7 +25,7 @@ import translate_v3_list_glossary -PROJECT_ID = os.environ["GCLOUD_PROJECT"] +PROJECT_ID = os.environ["GOOGLE_CLOUD_PROJECT"] GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv" diff --git a/samples/snippets/translate_v3_translate_text_test.py b/samples/snippets/translate_v3_translate_text_test.py index 8897b9b5..c93cb91f 100644 --- a/samples/snippets/translate_v3_translate_text_test.py +++ b/samples/snippets/translate_v3_translate_text_test.py @@ -17,7 +17,7 @@ import translate_v3_translate_text -PROJECT_ID = os.environ["GCLOUD_PROJECT"] +PROJECT_ID = os.environ["GOOGLE_CLOUD_PROJECT"] def test_translate_text(capsys): diff --git a/samples/snippets/translate_v3_translate_text_with_glossary_test.py b/samples/snippets/translate_v3_translate_text_with_glossary_test.py index bc5403c6..1caa9e6e 100644 --- a/samples/snippets/translate_v3_translate_text_with_glossary_test.py +++ b/samples/snippets/translate_v3_translate_text_with_glossary_test.py @@ -26,7 +26,7 @@ import translate_v3_translate_text_with_glossary -PROJECT_ID = os.environ["GCLOUD_PROJECT"] +PROJECT_ID = os.environ["GOOGLE_CLOUD_PROJECT"] GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv" diff --git a/samples/snippets/translate_v3_translate_text_with_model_test.py b/samples/snippets/translate_v3_translate_text_with_model_test.py index 16a5fc03..f1cd5968 100644 --- a/samples/snippets/translate_v3_translate_text_with_model_test.py +++ b/samples/snippets/translate_v3_translate_text_with_model_test.py @@ -18,7 +18,7 @@ import translate_v3_translate_text_with_model -PROJECT_ID = os.environ["GCLOUD_PROJECT"] +PROJECT_ID = os.environ["GOOGLE_CLOUD_PROJECT"] MODEL_ID = "TRL3128559826197068699"