Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit d487a50

Browse files
authored
Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. [(#4022)](GoogleCloudPlatform/python-docs-samples#4022)
1 parent 6ccc4a4 commit d487a50

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

samples/snippets/v3/alerts-client/noxfile_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
3434
# build specific Cloud project. You can also use your own string
3535
# to use your own Cloud project.
36-
# 'gcloud_project_env': 'GCLOUD_PROJECT',
36+
# 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
3737
'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
3838

3939
# A dictionary you want to inject into your test. Don't put any

samples/snippets/v3/alerts-client/snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def project_id():
239239
Returns:
240240
str -- the project name
241241
"""
242-
project_id = os.environ['GCLOUD_PROJECT']
242+
project_id = os.environ['GOOGLE_CLOUD_PROJECT']
243243

244244
if not project_id:
245245
raise MissingProjectIdError(

samples/snippets/v3/api-client/custom_metric_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from custom_metric import write_timeseries_value
3838

3939

40-
PROJECT = os.environ['GCLOUD_PROJECT']
40+
PROJECT = os.environ['GOOGLE_CLOUD_PROJECT']
4141
PROJECT_RESOURCE = "projects/{}".format(PROJECT)
4242

4343
""" Custom metric domain for all custom metrics"""

samples/snippets/v3/api-client/list_resources_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
import list_resources
3030

31-
PROJECT = os.environ['GCLOUD_PROJECT']
31+
PROJECT = os.environ['GOOGLE_CLOUD_PROJECT']
3232
METRIC = 'compute.googleapis.com/instance/cpu/usage_time'
3333

3434

samples/snippets/v3/cloud-client/noxfile_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
3434
# build specific Cloud project. You can also use your own string
3535
# to use your own Cloud project.
36-
# 'gcloud_project_env': 'GCLOUD_PROJECT',
36+
# 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
3737
'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
3838

3939
# A dictionary you want to inject into your test. Don't put any

samples/snippets/v3/cloud-client/quickstart_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import quickstart
2222

2323

24-
PROJECT = os.environ['GCLOUD_PROJECT']
24+
PROJECT = os.environ['GOOGLE_CLOUD_PROJECT']
2525

2626

2727
@pytest.fixture

samples/snippets/v3/cloud-client/snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from google.cloud import monitoring_v3
2222

2323

24-
PROJECT_ID = os.environ['GCLOUD_PROJECT']
24+
PROJECT_ID = os.environ['GOOGLE_CLOUD_PROJECT']
2525

2626

2727
def create_metric_descriptor(project_id):

samples/snippets/v3/cloud-client/snippets_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import snippets
2323

2424

25-
PROJECT_ID = os.environ['GCLOUD_PROJECT']
25+
PROJECT_ID = os.environ['GOOGLE_CLOUD_PROJECT']
2626

2727

2828
@pytest.fixture(scope="function")

samples/snippets/v3/uptime-check-client/snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def project_id():
109109
Returns:
110110
str -- the project name
111111
"""
112-
project_id = os.environ['GCLOUD_PROJECT']
112+
project_id = os.environ['GOOGLE_CLOUD_PROJECT']
113113

114114
if not project_id:
115115
raise MissingProjectIdError(

0 commit comments

Comments
 (0)