google-cloud-web_risk-v1 0.2.0 → 0.2.5
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: 3fa056ea8c46c89466acb12649d3eb74bca4cd05257690ecdeec8dd99dd0afc2
|
4
|
+
data.tar.gz: 5efaad265d89c04c81de5909b819857627e6e939022687196058ef926f7a0819
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a24216600a9ebb3ad97a9974ecde4eff34b67f4a58bc3d165925019f44ffd53e0ddc717adbe4f45debb582b4e793a6aca496e36510f495904141e19edd4dd58d
|
7
|
+
data.tar.gz: 3dd58496b9403fd3b95cf4bad09743a7947ca21df852b5f45cd64c7589d6d045cfc938d1b9e267907076d863d27cbef946f97acd8e00a84b17c530f9ceaaaf7b
|
data/README.md
CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
18
18
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/webrisk.googleapis.com)
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
22
23
|
|
23
24
|
## Quick Start
|
@@ -33,6 +34,9 @@ response = client.compute_threat_list_diff request
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-web_risk-v1/latest)
|
34
35
|
for class and method documentation.
|
35
36
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/web-risk)
|
38
|
+
for general usage information.
|
39
|
+
|
36
40
|
## Enabling Logging
|
37
41
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
@@ -71,7 +71,7 @@ module Google
|
|
71
71
|
initial_delay: 0.1,
|
72
72
|
max_delay: 60.0,
|
73
73
|
multiplier: 1.3,
|
74
|
-
retry_codes: [
|
74
|
+
retry_codes: [4, 14]
|
75
75
|
}
|
76
76
|
|
77
77
|
default_config.rpcs.search_uris.timeout = 600.0
|
@@ -79,7 +79,7 @@ module Google
|
|
79
79
|
initial_delay: 0.1,
|
80
80
|
max_delay: 60.0,
|
81
81
|
multiplier: 1.3,
|
82
|
-
retry_codes: [
|
82
|
+
retry_codes: [4, 14]
|
83
83
|
}
|
84
84
|
|
85
85
|
default_config.rpcs.search_hashes.timeout = 600.0
|
@@ -87,9 +87,11 @@ module Google
|
|
87
87
|
initial_delay: 0.1,
|
88
88
|
max_delay: 60.0,
|
89
89
|
multiplier: 1.3,
|
90
|
-
retry_codes: [
|
90
|
+
retry_codes: [4, 14]
|
91
91
|
}
|
92
92
|
|
93
|
+
default_config.rpcs.create_submission.timeout = 60.0
|
94
|
+
|
93
95
|
default_config
|
94
96
|
end
|
95
97
|
yield @configure if block_given?
|
@@ -534,7 +536,7 @@ module Google
|
|
534
536
|
|
535
537
|
config_attr :endpoint, "webrisk.googleapis.com", ::String
|
536
538
|
config_attr :credentials, nil do |value|
|
537
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
539
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
538
540
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
539
541
|
allowed.any? { |klass| klass === value }
|
540
542
|
end
|
@@ -562,7 +564,7 @@ module Google
|
|
562
564
|
def rpcs
|
563
565
|
@rpcs ||= begin
|
564
566
|
parent_rpcs = nil
|
565
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
567
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
566
568
|
Rpcs.new parent_rpcs
|
567
569
|
end
|
568
570
|
end
|
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.2.
|
4
|
+
version: 0.2.5
|
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-
|
11
|
+
date: 2020-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,7 +162,6 @@ files:
|
|
162
162
|
- LICENSE.md
|
163
163
|
- README.md
|
164
164
|
- lib/google-cloud-web_risk-v1.rb
|
165
|
-
- lib/google/cloud/common_resources_pb.rb
|
166
165
|
- lib/google/cloud/web_risk/v1.rb
|
167
166
|
- lib/google/cloud/web_risk/v1/version.rb
|
168
167
|
- lib/google/cloud/web_risk/v1/web_risk_service.rb
|
@@ -195,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
194
|
- !ruby/object:Gem::Version
|
196
195
|
version: '0'
|
197
196
|
requirements: []
|
198
|
-
rubygems_version: 3.
|
197
|
+
rubygems_version: 3.1.3
|
199
198
|
signing_key:
|
200
199
|
specification_version: 4
|
201
200
|
summary: API Client library for the Web Risk V1 API
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/common_resources.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/api/resource_pb'
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
module Google
|
13
|
-
module Cloud
|
14
|
-
end
|
15
|
-
end
|