google-cloud-web_risk-v1 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 424f0ccbe950e1158aa54bdf777528a6bf3d6974ba8459075a1b4024b629e51b
|
4
|
+
data.tar.gz: aa5fd06b84bf5ea2a2d14f9c2ff7c4ec76a480f8065ea9d2d8a3aaade122fc4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b15ff974b12cb961caf814a43a43e17ebae68459329cd8272a4e8b4904adef178461d11c06191986787d08dc34b431f697bf305e4cc4c4fe633ab25b8e0b3ba9
|
7
|
+
data.tar.gz: 7e7c3e583eb65e51298c340d0cbe3c71783b567933e3a82530dfc3218bb96ee3883722997a1bb9b5c90861c14b66d0cc7efbfd103730038a0d8bf0090d932c3a
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::WebRisk::V1::WebRiskService::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all WebRiskService clients
|
48
|
+
# ::Google::Cloud::WebRisk::V1::WebRiskService::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
52
51
|
#
|
53
52
|
# @yield [config] Configure the Client client.
|
54
53
|
# @yieldparam config [Client::Configuration]
|
@@ -112,19 +111,15 @@ module Google
|
|
112
111
|
##
|
113
112
|
# Create a new WebRiskService client object.
|
114
113
|
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
# To create a new WebRiskService client with the default
|
118
|
-
# configuration:
|
119
|
-
#
|
120
|
-
# client = ::Google::Cloud::WebRisk::V1::WebRiskService::Client.new
|
114
|
+
# @example
|
121
115
|
#
|
122
|
-
#
|
123
|
-
#
|
116
|
+
# # Create a client using the default configuration
|
117
|
+
# client = ::Google::Cloud::WebRisk::V1::WebRiskService::Client.new
|
124
118
|
#
|
125
|
-
#
|
126
|
-
#
|
127
|
-
#
|
119
|
+
# # Create a client using a custom configuration
|
120
|
+
# client = ::Google::Cloud::WebRisk::V1::WebRiskService::Client.new do |config|
|
121
|
+
# config.timeout = 10.0
|
122
|
+
# end
|
128
123
|
#
|
129
124
|
# @yield [config] Configure the WebRiskService client.
|
130
125
|
# @yieldparam config [Client::Configuration]
|
@@ -144,10 +139,9 @@ module Google
|
|
144
139
|
|
145
140
|
# Create credentials
|
146
141
|
credentials = @config.credentials
|
147
|
-
# Use self-signed JWT if the
|
142
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
148
143
|
# but only if the default endpoint does not have a region prefix.
|
149
|
-
enable_self_signed_jwt = @config.
|
150
|
-
@config.endpoint == Client.configure.endpoint &&
|
144
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
151
145
|
!@config.endpoint.split(".").first.include?("-")
|
152
146
|
credentials ||= Credentials.default scope: @config.scope,
|
153
147
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -230,7 +224,9 @@ module Google
|
|
230
224
|
options.apply_defaults timeout: @config.rpcs.compute_threat_list_diff.timeout,
|
231
225
|
metadata: metadata,
|
232
226
|
retry_policy: @config.rpcs.compute_threat_list_diff.retry_policy
|
233
|
-
|
227
|
+
|
228
|
+
options.apply_defaults timeout: @config.timeout,
|
229
|
+
metadata: @config.metadata,
|
234
230
|
retry_policy: @config.retry_policy
|
235
231
|
|
236
232
|
@web_risk_service_stub.call_rpc :compute_threat_list_diff, request, options: options do |response, operation|
|
@@ -296,7 +292,9 @@ module Google
|
|
296
292
|
options.apply_defaults timeout: @config.rpcs.search_uris.timeout,
|
297
293
|
metadata: metadata,
|
298
294
|
retry_policy: @config.rpcs.search_uris.retry_policy
|
299
|
-
|
295
|
+
|
296
|
+
options.apply_defaults timeout: @config.timeout,
|
297
|
+
metadata: @config.metadata,
|
300
298
|
retry_policy: @config.retry_policy
|
301
299
|
|
302
300
|
@web_risk_service_stub.call_rpc :search_uris, request, options: options do |response, operation|
|
@@ -363,7 +361,9 @@ module Google
|
|
363
361
|
options.apply_defaults timeout: @config.rpcs.search_hashes.timeout,
|
364
362
|
metadata: metadata,
|
365
363
|
retry_policy: @config.rpcs.search_hashes.retry_policy
|
366
|
-
|
364
|
+
|
365
|
+
options.apply_defaults timeout: @config.timeout,
|
366
|
+
metadata: @config.metadata,
|
367
367
|
retry_policy: @config.retry_policy
|
368
368
|
|
369
369
|
@web_risk_service_stub.call_rpc :search_hashes, request, options: options do |response, operation|
|
@@ -437,7 +437,9 @@ module Google
|
|
437
437
|
options.apply_defaults timeout: @config.rpcs.create_submission.timeout,
|
438
438
|
metadata: metadata,
|
439
439
|
retry_policy: @config.rpcs.create_submission.retry_policy
|
440
|
-
|
440
|
+
|
441
|
+
options.apply_defaults timeout: @config.timeout,
|
442
|
+
metadata: @config.metadata,
|
441
443
|
retry_policy: @config.retry_policy
|
442
444
|
|
443
445
|
@web_risk_service_stub.call_rpc :create_submission, request, options: options do |response, operation|
|
@@ -461,22 +463,21 @@ module Google
|
|
461
463
|
# Configuration can be applied globally to all clients, or to a single client
|
462
464
|
# on construction.
|
463
465
|
#
|
464
|
-
#
|
465
|
-
#
|
466
|
-
#
|
467
|
-
# to 20 seconds,
|
468
|
-
#
|
469
|
-
#
|
470
|
-
#
|
471
|
-
#
|
472
|
-
#
|
473
|
-
#
|
474
|
-
#
|
475
|
-
#
|
476
|
-
#
|
477
|
-
#
|
478
|
-
#
|
479
|
-
# end
|
466
|
+
# @example
|
467
|
+
#
|
468
|
+
# # Modify the global config, setting the timeout for
|
469
|
+
# # compute_threat_list_diff to 20 seconds,
|
470
|
+
# # and all remaining timeouts to 10 seconds.
|
471
|
+
# ::Google::Cloud::WebRisk::V1::WebRiskService::Client.configure do |config|
|
472
|
+
# config.timeout = 10.0
|
473
|
+
# config.rpcs.compute_threat_list_diff.timeout = 20.0
|
474
|
+
# end
|
475
|
+
#
|
476
|
+
# # Apply the above configuration only to a new client.
|
477
|
+
# client = ::Google::Cloud::WebRisk::V1::WebRiskService::Client.new do |config|
|
478
|
+
# config.timeout = 10.0
|
479
|
+
# config.rpcs.compute_threat_list_diff.timeout = 20.0
|
480
|
+
# end
|
480
481
|
#
|
481
482
|
# @!attribute [rw] endpoint
|
482
483
|
# 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-v1
|
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
|