Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ab5972c

Browse filesBrowse files
authored
Removes revoked API key (GoogleCloudPlatform#1923)
* Removes revoked API key * Removes old labels
1 parent fb144e4 commit ab5972c
Copy full SHA for ab5972c

File tree

Expand file treeCollapse file tree

1 file changed

+1
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-7
lines changed

‎iot/api-client/beta-features/gateway/gateway.py

Copy file name to clipboardExpand all lines: iot/api-client/beta-features/gateway/gateway.py
+1-7Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,12 @@ def get_client(service_account_json):
109109
api_scopes = ['https://www.googleapis.com/auth/cloud-platform']
110110
api_version = 'v1'
111111
discovery_api = 'https://cloudiot.googleapis.com/$discovery/rest'
112-
labels = 'CLOUD_IOT_ALPHA'
113112

114-
# Used to authorize the request for the discovery document
115-
# Generated from https://console.cloud.google.com/apis/credentials
116-
# TODO(class) remove before publish
117-
key = 'AIzaSyCE3D0dO5rO67-VbACI0IPS6KIg888MTzg'
118113
service_name = 'cloudiotcore'
119114
credentials = service_account.Credentials.from_service_account_file(
120115
service_account_json)
121116
scoped_credentials = credentials.with_scopes(api_scopes)
122-
discovery_url = '{}?version={}&key={}&labels={}'.format(
123-
discovery_api, api_version, key, labels)
117+
discovery_url = '{}?version={}'.format(discovery_api, api_version)
124118

125119
return discovery.build(
126120
service_name,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.