File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
iot/api-client/beta-features/gateway Expand file tree Collapse file tree 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):
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 ,
You can’t perform that action at this time.
0 commit comments