Skip to content
This repository has been archived by the owner on Dec 31, 2023. 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 Jun 9, 2020
1 parent 6ccc4a4 commit d487a50
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion samples/snippets/v3/alerts-client/noxfile_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
# build specific Cloud project. You can also use your own string
# to use your own Cloud project.
# 'gcloud_project_env': 'GCLOUD_PROJECT',
# 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',

# A dictionary you want to inject into your test. Don't put any
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/v3/alerts-client/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def project_id():
Returns:
str -- the project name
"""
project_id = os.environ['GCLOUD_PROJECT']
project_id = os.environ['GOOGLE_CLOUD_PROJECT']

if not project_id:
raise MissingProjectIdError(
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/v3/api-client/custom_metric_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from custom_metric import write_timeseries_value


PROJECT = os.environ['GCLOUD_PROJECT']
PROJECT = os.environ['GOOGLE_CLOUD_PROJECT']
PROJECT_RESOURCE = "projects/{}".format(PROJECT)

""" Custom metric domain for all custom metrics"""
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/v3/api-client/list_resources_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import list_resources

PROJECT = os.environ['GCLOUD_PROJECT']
PROJECT = os.environ['GOOGLE_CLOUD_PROJECT']
METRIC = 'compute.googleapis.com/instance/cpu/usage_time'


Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/v3/cloud-client/noxfile_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
# build specific Cloud project. You can also use your own string
# to use your own Cloud project.
# 'gcloud_project_env': 'GCLOUD_PROJECT',
# 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',

# A dictionary you want to inject into your test. Don't put any
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/v3/cloud-client/quickstart_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import quickstart


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


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/v3/cloud-client/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from google.cloud import monitoring_v3


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


def create_metric_descriptor(project_id):
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/v3/cloud-client/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import 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/v3/uptime-check-client/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def project_id():
Returns:
str -- the project name
"""
project_id = os.environ['GCLOUD_PROJECT']
project_id = os.environ['GOOGLE_CLOUD_PROJECT']

if not project_id:
raise MissingProjectIdError(
Expand Down

0 comments on commit d487a50

Please sign in to comment.