Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. [(#4022)](GoogleClo…
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtisvg authored and danoscarmike committed Jul 31, 2020
1 parent 1473fcf commit 071b658
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion samples/snippets/beta_snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import beta_snippets


PROJECT_ID = os.environ['GCLOUD_PROJECT']
PROJECT_ID = os.environ['GOOGLE_CLOUD_PROJECT']


@pytest.fixture(scope='function')
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/hybrid_glossaries/hybrid_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]


Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/hybrid_glossaries/hybrid_tutorial_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/translate_v3_batch_translate_text_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/translate_v3_create_glossary_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/translate_v3_delete_glossary_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/translate_v3_detect_language_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/translate_v3_get_glossary_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/translate_v3_list_glossary_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/translate_v3_translate_text_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down

0 comments on commit 071b658

Please sign in to comment.