google-cloud-web_risk-v1beta1 0.2.0 → 0.2.1
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: 2ec76f197c9c80127e328972836f2745894f61d21584a23cdf6667662dc374fa
|
4
|
+
data.tar.gz: 21dba57ade682e255d991d57d7ebe24e0449cacba9e204a82328e00625c7ae6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a25bf1bcbdb68d270e0d8a04076a0005223c417d343d253c3f96bebe64d8df41e851bbd7f6992c4c0e2e84ebfd81ed6d97395ec66dd238753793b1ad8ee79037
|
7
|
+
data.tar.gz: 444cb3e6d1bd0009cb40653fbe47bc901266ef7cb6cca1bb561af2ba8f4402d7ed798b1cc60ca12a5ec870a94ca64bf66daca7028d459cd39cde4078896457c0
|
@@ -25,24 +25,24 @@ module Google
|
|
25
25
|
module V1beta1
|
26
26
|
module WebRiskService
|
27
27
|
##
|
28
|
-
# Client for the
|
28
|
+
# Client for the WebRiskService service.
|
29
29
|
#
|
30
30
|
# Web Risk v1beta1 API defines an interface to detect malicious URLs on your
|
31
31
|
# website and in client applications.
|
32
32
|
#
|
33
33
|
class Client
|
34
34
|
# @private
|
35
|
-
attr_reader :
|
35
|
+
attr_reader :web_risk_service_stub
|
36
36
|
|
37
37
|
##
|
38
|
-
# Configure the
|
38
|
+
# Configure the WebRiskService Client class.
|
39
39
|
#
|
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
|
-
# To modify the configuration for all
|
45
|
+
# To modify the configuration for all WebRiskService clients:
|
46
46
|
#
|
47
47
|
# ::Google::Cloud::WebRisk::V1beta1::WebRiskService::Client.configure do |config|
|
48
48
|
# config.timeout = 10.0
|
@@ -95,7 +95,7 @@ module Google
|
|
95
95
|
end
|
96
96
|
|
97
97
|
##
|
98
|
-
# Configure the
|
98
|
+
# Configure the WebRiskService Client instance.
|
99
99
|
#
|
100
100
|
# The configuration is set to the derived mode, meaning that values can be changed,
|
101
101
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
@@ -115,23 +115,23 @@ module Google
|
|
115
115
|
end
|
116
116
|
|
117
117
|
##
|
118
|
-
# Create a new
|
118
|
+
# Create a new WebRiskService client object.
|
119
119
|
#
|
120
120
|
# ## Examples
|
121
121
|
#
|
122
|
-
# To create a new
|
122
|
+
# To create a new WebRiskService client with the default
|
123
123
|
# configuration:
|
124
124
|
#
|
125
125
|
# client = ::Google::Cloud::WebRisk::V1beta1::WebRiskService::Client.new
|
126
126
|
#
|
127
|
-
# To create a new
|
127
|
+
# To create a new WebRiskService client with a custom
|
128
128
|
# configuration:
|
129
129
|
#
|
130
130
|
# client = ::Google::Cloud::WebRisk::V1beta1::WebRiskService::Client.new do |config|
|
131
131
|
# config.timeout = 10.0
|
132
132
|
# end
|
133
133
|
#
|
134
|
-
# @yield [config] Configure the
|
134
|
+
# @yield [config] Configure the WebRiskService client.
|
135
135
|
# @yieldparam config [Client::Configuration]
|
136
136
|
#
|
137
137
|
def initialize
|
@@ -156,7 +156,7 @@ module Google
|
|
156
156
|
@quota_project_id = @config.quota_project
|
157
157
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
158
158
|
|
159
|
-
@
|
159
|
+
@web_risk_service_stub = ::Gapic::ServiceStub.new(
|
160
160
|
::Google::Cloud::WebRisk::V1beta1::WebRiskServiceV1Beta1::Stub,
|
161
161
|
credentials: credentials,
|
162
162
|
endpoint: @config.endpoint,
|
@@ -224,7 +224,7 @@ module Google
|
|
224
224
|
options.apply_defaults metadata: @config.metadata,
|
225
225
|
retry_policy: @config.retry_policy
|
226
226
|
|
227
|
-
@
|
227
|
+
@web_risk_service_stub.call_rpc :compute_threat_list_diff, request, options: options do |response, operation|
|
228
228
|
yield response, operation if block_given?
|
229
229
|
return response
|
230
230
|
end
|
@@ -286,7 +286,7 @@ module Google
|
|
286
286
|
options.apply_defaults metadata: @config.metadata,
|
287
287
|
retry_policy: @config.retry_policy
|
288
288
|
|
289
|
-
@
|
289
|
+
@web_risk_service_stub.call_rpc :search_uris, request, options: options do |response, operation|
|
290
290
|
yield response, operation if block_given?
|
291
291
|
return response
|
292
292
|
end
|
@@ -353,7 +353,7 @@ module Google
|
|
353
353
|
options.apply_defaults metadata: @config.metadata,
|
354
354
|
retry_policy: @config.retry_policy
|
355
355
|
|
356
|
-
@
|
356
|
+
@web_risk_service_stub.call_rpc :search_hashes, request, options: options do |response, operation|
|
357
357
|
yield response, operation if block_given?
|
358
358
|
return response
|
359
359
|
end
|
@@ -362,9 +362,9 @@ module Google
|
|
362
362
|
end
|
363
363
|
|
364
364
|
##
|
365
|
-
# Configuration class for the
|
365
|
+
# Configuration class for the WebRiskService API.
|
366
366
|
#
|
367
|
-
# This class represents the configuration for
|
367
|
+
# This class represents the configuration for WebRiskService,
|
368
368
|
# providing control over timeouts, retry behavior, logging, transport
|
369
369
|
# parameters, and other low-level controls. Certain parameters can also be
|
370
370
|
# applied individually to specific RPCs. See
|
@@ -480,7 +480,7 @@ module Google
|
|
480
480
|
end
|
481
481
|
|
482
482
|
##
|
483
|
-
# Configuration RPC class for the
|
483
|
+
# Configuration RPC class for the WebRiskService API.
|
484
484
|
#
|
485
485
|
# Includes fields providing the configuration for each RPC in this service.
|
486
486
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
module WebRisk
|
24
24
|
module V1beta1
|
25
25
|
module WebRiskService
|
26
|
-
# Credentials for the
|
26
|
+
# Credentials for the WebRiskService API.
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
28
28
|
self.scope = [
|
29
29
|
"https://www.googleapis.com/auth/cloud-platform"
|
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|