File tree 1 file changed +1
-7
lines changed
iot/api-client/beta-features/gateway
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -109,18 +109,12 @@ def get_client(service_account_json):
109
109
api_scopes = ['https://www.googleapis.com/auth/cloud-platform' ]
110
110
api_version = 'v1'
111
111
discovery_api = 'https://cloudiot.googleapis.com/$discovery/rest'
112
- labels = 'CLOUD_IOT_ALPHA'
113
112
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'
118
113
service_name = 'cloudiotcore'
119
114
credentials = service_account .Credentials .from_service_account_file (
120
115
service_account_json )
121
116
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 )
124
118
125
119
return discovery .build (
126
120
service_name ,
You can’t perform that action at this time.
0 commit comments