Skip to content

Commit ab5972c

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

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

+1-7
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)