Skip to content

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 02f7216 commit 50b543a
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
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
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
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
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
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
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
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
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
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
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 50b543a

Please sign in to comment.