1
1
# -*- coding: utf-8 -*-
2
2
#
3
- # Copyright 2019 Google LLC
3
+ # Copyright 2020 Google LLC
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
36
36
from google .cloud .webrisk_v1beta1 .proto import webrisk_pb2_grpc
37
37
38
38
39
- _GAPIC_LIBRARY_VERSION = pkg_resources .get_distribution ("google-cloud-webrisk" , ).version
39
+ _GAPIC_LIBRARY_VERSION = pkg_resources .get_distribution ("google-cloud-webrisk" ).version
40
40
41
41
42
42
class WebRiskServiceV1Beta1Client (object ):
@@ -159,12 +159,12 @@ def __init__(
159
159
self .transport = transport
160
160
else :
161
161
self .transport = web_risk_service_v1_beta1_grpc_transport .WebRiskServiceV1Beta1GrpcTransport (
162
- address = api_endpoint , channel = channel , credentials = credentials ,
162
+ address = api_endpoint , channel = channel , credentials = credentials
163
163
)
164
164
165
165
if client_info is None :
166
166
client_info = google .api_core .gapic_v1 .client_info .ClientInfo (
167
- gapic_version = _GAPIC_LIBRARY_VERSION ,
167
+ gapic_version = _GAPIC_LIBRARY_VERSION
168
168
)
169
169
else :
170
170
client_info .gapic_version = _GAPIC_LIBRARY_VERSION
@@ -175,7 +175,7 @@ def __init__(
175
175
# (Ordinarily, these are the defaults specified in the `*_config.py`
176
176
# file next to this one.)
177
177
self ._method_configs = google .api_core .gapic_v1 .config .parse_method_configs (
178
- client_config ["interfaces" ][self ._INTERFACE_NAME ],
178
+ client_config ["interfaces" ][self ._INTERFACE_NAME ]
179
179
)
180
180
181
181
# Save a dictionary of cached API call functions.
@@ -316,7 +316,7 @@ def search_uris(
316
316
client_info = self ._client_info ,
317
317
)
318
318
319
- request = webrisk_pb2 .SearchUrisRequest (uri = uri , threat_types = threat_types , )
319
+ request = webrisk_pb2 .SearchUrisRequest (uri = uri , threat_types = threat_types )
320
320
return self ._inner_api_calls ["search_uris" ](
321
321
request , retry = retry , timeout = timeout , metadata = metadata
322
322
)
@@ -382,7 +382,7 @@ def search_hashes(
382
382
)
383
383
384
384
request = webrisk_pb2 .SearchHashesRequest (
385
- threat_types = threat_types , hash_prefix = hash_prefix ,
385
+ threat_types = threat_types , hash_prefix = hash_prefix
386
386
)
387
387
return self ._inner_api_calls ["search_hashes" ](
388
388
request , retry = retry , timeout = timeout , metadata = metadata
0 commit comments