Skip to content

Commit ee5be6d

Browse files
authored
Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. (GoogleCloudPlatform#4022)
1 parent 3d77a5c commit ee5be6d

File tree

166 files changed

+176
-176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+176
-176
lines changed

appengine/flexible/tasks/create_app_engine_queue_task_test.py

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

1717
import create_app_engine_queue_task
1818

19-
TEST_PROJECT_ID = os.getenv('GCLOUD_PROJECT')
19+
TEST_PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT')
2020
TEST_LOCATION = os.getenv('TEST_QUEUE_LOCATION', 'us-central1')
2121
TEST_QUEUE_NAME = os.getenv('TEST_QUEUE_NAME', 'my-appengine-queue')
2222

appengine/flexible/tasks/snippets_test.py

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

2020
import snippets
2121

22-
TEST_PROJECT_ID = os.getenv('GCLOUD_PROJECT')
22+
TEST_PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT')
2323
TEST_LOCATION = os.getenv('TEST_QUEUE_LOCATION', 'us-central1')
2424
QUEUE_NAME_1 = "queue-{}".format(uuid.uuid4())
2525
QUEUE_NAME_2 = "queue-{}".format(uuid.uuid4())

appengine/standard/background/main_test.py

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

2121
import main
2222

23-
PROJECT = os.environ['GCLOUD_PROJECT']
23+
PROJECT = os.environ['GOOGLE_CLOUD_PROJECT']
2424

2525

2626
@pytest.fixture

appengine/standard/pubsub/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
app.config['PUBSUB_VERIFICATION_TOKEN'] = \
3131
os.environ['PUBSUB_VERIFICATION_TOKEN']
3232
app.config['PUBSUB_TOPIC'] = os.environ['PUBSUB_TOPIC']
33-
app.config['GCLOUD_PROJECT'] = os.environ['GOOGLE_CLOUD_PROJECT']
33+
app.config['GOOGLE_CLOUD_PROJECT'] = os.environ['GOOGLE_CLOUD_PROJECT']
3434

3535

3636
# Global list to storage messages received by this instance.
@@ -47,7 +47,7 @@ def index():
4747

4848
service = build('pubsub', 'v1')
4949
topic_path = 'projects/{project_id}/topics/{topic}'.format(
50-
project_id=app.config['GCLOUD_PROJECT'],
50+
project_id=app.config['GOOGLE_CLOUD_PROJECT'],
5151
topic=app.config['PUBSUB_TOPIC']
5252
)
5353
service.projects().topics().publish(

appengine/standard/storage/api-client/main_test.py

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

2020
import main
2121

22-
PROJECT = os.environ['GCLOUD_PROJECT']
22+
PROJECT = os.environ['GOOGLE_CLOUD_PROJECT']
2323

2424

2525
def test_get():

appengine/standard/storage/appengine-client/main_test.py

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

1919
import main
2020

21-
PROJECT = os.environ['GCLOUD_PROJECT']
21+
PROJECT = os.environ['GOOGLE_CLOUD_PROJECT']
2222

2323

2424
def test_get(testbed):

appengine/standard_python3/pubsub/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
app.config['PUBSUB_VERIFICATION_TOKEN'] = \
3333
os.environ['PUBSUB_VERIFICATION_TOKEN']
3434
app.config['PUBSUB_TOPIC'] = os.environ['PUBSUB_TOPIC']
35-
app.config['GCLOUD_PROJECT'] = os.environ['GOOGLE_CLOUD_PROJECT']
35+
app.config['GOOGLE_CLOUD_PROJECT'] = os.environ['GOOGLE_CLOUD_PROJECT']
3636

3737
# Global list to store messages, tokens, etc. received by this instance.
3838
MESSAGES = []
@@ -52,7 +52,7 @@ def index():
5252
# Consider initializing the publisher client outside this function
5353
# for better latency performance.
5454
publisher = pubsub_v1.PublisherClient()
55-
topic_path = publisher.topic_path(app.config['GCLOUD_PROJECT'],
55+
topic_path = publisher.topic_path(app.config['GOOGLE_CLOUD_PROJECT'],
5656
app.config['PUBSUB_TOPIC'])
5757
future = publisher.publish(topic_path, data)
5858
future.result()

appengine/standard_python37/pubsub/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
app.config['PUBSUB_VERIFICATION_TOKEN'] = \
3333
os.environ['PUBSUB_VERIFICATION_TOKEN']
3434
app.config['PUBSUB_TOPIC'] = os.environ['PUBSUB_TOPIC']
35-
app.config['GCLOUD_PROJECT'] = os.environ['GOOGLE_CLOUD_PROJECT']
35+
app.config['GOOGLE_CLOUD_PROJECT'] = os.environ['GOOGLE_CLOUD_PROJECT']
3636

3737
# Global list to store messages, tokens, etc. received by this instance.
3838
MESSAGES = []
@@ -52,7 +52,7 @@ def index():
5252
# Consider initializing the publisher client outside this function
5353
# for better latency performance.
5454
publisher = pubsub_v1.PublisherClient()
55-
topic_path = publisher.topic_path(app.config['GCLOUD_PROJECT'],
55+
topic_path = publisher.topic_path(app.config['GOOGLE_CLOUD_PROJECT'],
5656
app.config['PUBSUB_TOPIC'])
5757
future = publisher.publish(topic_path, data)
5858
future.result()

asset/cloud-client/quickstart_batchgetassetshistory_test.py

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

2525
import quickstart_batchgetassetshistory
2626

27-
PROJECT = os.environ['GCLOUD_PROJECT']
27+
PROJECT = os.environ['GOOGLE_CLOUD_PROJECT']
2828
BUCKET = 'assets-{}'.format(uuid.uuid4().hex)
2929

3030

asset/cloud-client/quickstart_deletefeed_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import quickstart_createfeed
2424
import quickstart_deletefeed
2525

26-
PROJECT = os.environ['GCLOUD_PROJECT']
26+
PROJECT = os.environ['GOOGLE_CLOUD_PROJECT']
2727
ASSET_NAME = 'assets-{}'.format(uuid.uuid4().hex)
2828
FEED_ID = 'feed-{}'.format(uuid.uuid4().hex)
2929
TOPIC = 'topic-{}'.format(uuid.uuid4().hex)

0 commit comments

Comments
 (0)