google-cloud-web_risk-v1beta1 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd485eac5c4fceee34b479afeb809a21f23692d9ad0679e6566f0d8c83256b67
|
4
|
+
data.tar.gz: 949f49c691988e3fe1828ef5f792558a3488fffba5d3ad12fda064af727534ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5413064d256d207044a1fdd8ef7c5d485fb3c99e4b3280e69ad3c61b1c7f47b20ba7ffba79bda69c760d80b3840ef71355bfbfe8cc1682f35f1520a1e7db89a
|
7
|
+
data.tar.gz: f585095d6737fc22f0c66683f674aa6f7d217c1cca452db7f375ea891000b859b7d370b11261ba56d9e3dd50809354eba73adfa1f4a2c235510ed94fb211d62b
|
@@ -40,13 +40,12 @@ module Google
|
|
40
40
|
# See {::Google::Cloud::WebRisk::V1beta1::WebRiskService::Client::Configuration}
|
41
41
|
# for a description of the configuration fields.
|
42
42
|
#
|
43
|
-
#
|
43
|
+
# @example
|
44
44
|
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
# end
|
45
|
+
# # Modify the configuration for all WebRiskService clients
|
46
|
+
# ::Google::Cloud::WebRisk::V1beta1::WebRiskService::Client.configure do |config|
|
47
|
+
# config.timeout = 10.0
|
48
|
+
# end
|
50
49
|
#
|
51
50
|
# @yield [config] Configure the Client client.
|
52
51
|
# @yieldparam config [Client::Configuration]
|
@@ -108,19 +107,15 @@ module Google
|
|
108
107
|
##
|
109
108
|
# Create a new WebRiskService client object.
|
110
109
|
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
# To create a new WebRiskService client with the default
|
114
|
-
# configuration:
|
115
|
-
#
|
116
|
-
# client = ::Google::Cloud::WebRisk::V1beta1::WebRiskService::Client.new
|
110
|
+
# @example
|
117
111
|
#
|
118
|
-
#
|
119
|
-
#
|
112
|
+
# # Create a client using the default configuration
|
113
|
+
# client = ::Google::Cloud::WebRisk::V1beta1::WebRiskService::Client.new
|
120
114
|
#
|
121
|
-
#
|
122
|
-
#
|
123
|
-
#
|
115
|
+
# # Create a client using a custom configuration
|
116
|
+
# client = ::Google::Cloud::WebRisk::V1beta1::WebRiskService::Client.new do |config|
|
117
|
+
# config.timeout = 10.0
|
118
|
+
# end
|
124
119
|
#
|
125
120
|
# @yield [config] Configure the WebRiskService client.
|
126
121
|
# @yieldparam config [Client::Configuration]
|
@@ -140,10 +135,9 @@ module Google
|
|
140
135
|
|
141
136
|
# Create credentials
|
142
137
|
credentials = @config.credentials
|
143
|
-
# Use self-signed JWT if the
|
138
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
144
139
|
# but only if the default endpoint does not have a region prefix.
|
145
|
-
enable_self_signed_jwt = @config.
|
146
|
-
@config.endpoint == Client.configure.endpoint &&
|
140
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
147
141
|
!@config.endpoint.split(".").first.include?("-")
|
148
142
|
credentials ||= Credentials.default scope: @config.scope,
|
149
143
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -218,7 +212,9 @@ module Google
|
|
218
212
|
options.apply_defaults timeout: @config.rpcs.compute_threat_list_diff.timeout,
|
219
213
|
metadata: metadata,
|
220
214
|
retry_policy: @config.rpcs.compute_threat_list_diff.retry_policy
|
221
|
-
|
215
|
+
|
216
|
+
options.apply_defaults timeout: @config.timeout,
|
217
|
+
metadata: @config.metadata,
|
222
218
|
retry_policy: @config.retry_policy
|
223
219
|
|
224
220
|
@web_risk_service_stub.call_rpc :compute_threat_list_diff, request, options: options do |response, operation|
|
@@ -280,7 +276,9 @@ module Google
|
|
280
276
|
options.apply_defaults timeout: @config.rpcs.search_uris.timeout,
|
281
277
|
metadata: metadata,
|
282
278
|
retry_policy: @config.rpcs.search_uris.retry_policy
|
283
|
-
|
279
|
+
|
280
|
+
options.apply_defaults timeout: @config.timeout,
|
281
|
+
metadata: @config.metadata,
|
284
282
|
retry_policy: @config.retry_policy
|
285
283
|
|
286
284
|
@web_risk_service_stub.call_rpc :search_uris, request, options: options do |response, operation|
|
@@ -347,7 +345,9 @@ module Google
|
|
347
345
|
options.apply_defaults timeout: @config.rpcs.search_hashes.timeout,
|
348
346
|
metadata: metadata,
|
349
347
|
retry_policy: @config.rpcs.search_hashes.retry_policy
|
350
|
-
|
348
|
+
|
349
|
+
options.apply_defaults timeout: @config.timeout,
|
350
|
+
metadata: @config.metadata,
|
351
351
|
retry_policy: @config.retry_policy
|
352
352
|
|
353
353
|
@web_risk_service_stub.call_rpc :search_hashes, request, options: options do |response, operation|
|
@@ -371,22 +371,21 @@ module Google
|
|
371
371
|
# Configuration can be applied globally to all clients, or to a single client
|
372
372
|
# on construction.
|
373
373
|
#
|
374
|
-
#
|
375
|
-
#
|
376
|
-
#
|
377
|
-
# to 20 seconds,
|
378
|
-
#
|
379
|
-
#
|
380
|
-
#
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
384
|
-
#
|
385
|
-
#
|
386
|
-
#
|
387
|
-
#
|
388
|
-
#
|
389
|
-
# end
|
374
|
+
# @example
|
375
|
+
#
|
376
|
+
# # Modify the global config, setting the timeout for
|
377
|
+
# # compute_threat_list_diff to 20 seconds,
|
378
|
+
# # and all remaining timeouts to 10 seconds.
|
379
|
+
# ::Google::Cloud::WebRisk::V1beta1::WebRiskService::Client.configure do |config|
|
380
|
+
# config.timeout = 10.0
|
381
|
+
# config.rpcs.compute_threat_list_diff.timeout = 20.0
|
382
|
+
# end
|
383
|
+
#
|
384
|
+
# # Apply the above configuration only to a new client.
|
385
|
+
# client = ::Google::Cloud::WebRisk::V1beta1::WebRiskService::Client.new do |config|
|
386
|
+
# config.timeout = 10.0
|
387
|
+
# config.rpcs.compute_threat_list_diff.timeout = 20.0
|
388
|
+
# end
|
390
389
|
#
|
391
390
|
# @!attribute [rw] endpoint
|
392
391
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-web_risk-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|