Skip to content

Commit 77d87e6

Browse files
kurtisvgbusunkim96
authored andcommitted
Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. [(#4022)](GoogleCloudPlatform/python-docs-samples#4022)
1 parent 10584ac commit 77d87e6

9 files changed

+9
-9
lines changed

packages/google-cloud-dialogflow/samples/snippets/create_document_test.py

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

2323
import document_management
2424

25-
PROJECT_ID = os.getenv('GCLOUD_PROJECT')
25+
PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT')
2626
KNOWLEDGE_BASE_NAME = 'knowledge_{}'.format(uuid.uuid4())
2727
DOCUMENT_DISPLAY_NAME = 'test_document_{}'.format(uuid.uuid4())
2828
pytest.KNOWLEDGE_BASE_ID = None

packages/google-cloud-dialogflow/samples/snippets/create_knowledge_base_test.py

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

2323
import knowledge_base_management
2424

25-
PROJECT_ID = os.getenv('GCLOUD_PROJECT')
25+
PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT')
2626
KNOWLEDGE_BASE_NAME = 'knowledge_{}'.format(uuid.uuid4())
2727
pytest.KNOWLEDGE_BASE_ID = None
2828

packages/google-cloud-dialogflow/samples/snippets/detect_intent_audio_test.py

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

2121
DIRNAME = os.path.realpath(os.path.dirname(__file__))
22-
PROJECT_ID = os.getenv('GCLOUD_PROJECT')
22+
PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT')
2323
SESSION_ID = 'test_{}'.format(uuid.uuid4())
2424
AUDIOS = [
2525
'{0}/resources/book_a_room.wav'.format(DIRNAME),

packages/google-cloud-dialogflow/samples/snippets/detect_intent_knowledge_test.py

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

2020
import detect_intent_knowledge
2121

22-
PROJECT_ID = os.getenv('GCLOUD_PROJECT')
22+
PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT')
2323
SESSION_ID = 'session_{}'.format(uuid.uuid4())
2424
KNOWLEDGE_BASE_ID = 'MjEwMjE4MDQ3MDQwMDc0NTQ3Mg'
2525
TEXTS = ['Where is my data stored?']

packages/google-cloud-dialogflow/samples/snippets/detect_intent_stream_test.py

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

1919
from detect_intent_stream import detect_intent_stream
2020

21-
PROJECT_ID = os.getenv('GCLOUD_PROJECT')
21+
PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT')
2222
SESSION_ID = 'test_{}'.format(uuid.uuid4())
2323
AUDIO_FILE_PATH = '{0}/resources/book_a_room.wav'.format(
2424
os.path.realpath(os.path.dirname(__file__)),

packages/google-cloud-dialogflow/samples/snippets/detect_intent_texts_test.py

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

1919
from detect_intent_texts import detect_intent_texts
2020

21-
PROJECT_ID = os.getenv('GCLOUD_PROJECT')
21+
PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT')
2222
SESSION_ID = 'test_{}'.format(uuid.uuid4())
2323
TEXTS = ["hello", "book a meeting room", "Mountain View",
2424
"tomorrow", "10 AM", "2 hours", "10 people", "A", "yes"]

packages/google-cloud-dialogflow/samples/snippets/detect_intent_with_sentiment_analysis_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from detect_intent_with_sentiment_analysis import \
2020
detect_intent_with_sentiment_analysis
2121

22-
PROJECT_ID = os.getenv('GCLOUD_PROJECT')
22+
PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT')
2323
SESSION_ID = 'test_{}'.format(uuid.uuid4())
2424
TEXTS = ["hello", "book a meeting room", "Mountain View",
2525
"tomorrow", "10 AM", "2 hours", "10 people", "A", "yes"]

packages/google-cloud-dialogflow/samples/snippets/detect_intent_with_texttospeech_response_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from detect_intent_with_texttospeech_response import \
2020
detect_intent_with_texttospeech_response
2121

22-
PROJECT_ID = os.getenv('GCLOUD_PROJECT')
22+
PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT')
2323
SESSION_ID = 'test_{}'.format(uuid.uuid4())
2424
TEXTS = ["hello"]
2525

packages/google-cloud-dialogflow/samples/snippets/intent_management_test.py

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

2020
import intent_management
2121

22-
PROJECT_ID = os.getenv('GCLOUD_PROJECT')
22+
PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT')
2323
INTENT_DISPLAY_NAME = 'test_{}'.format(uuid.uuid4())
2424
MESSAGE_TEXTS = [
2525
'fake_message_text_for_testing_1',

0 commit comments

Comments
 (0)