google-cloud-web_risk-v1 0.1.1 → 0.2.4
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: a6021b8fa753e9a3356f21aeb1f4fd2b57e4e5adec889b3743d49ddf963975fc
|
4
|
+
data.tar.gz: a6ccd63f10db7af0ac166db0e63d7db0fc2e519c75375d9d0e59b5d9a17c8982
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0530aecfb52158712038947d72c59a0f205e28315af73260c0444a6849d1f9245abbf1899414e3e84caec6e1877118d95104fa4e30ca33080c66bf301d794a2c
|
7
|
+
data.tar.gz: 72178ece844ba5dc5d1561a3313e58ec332ed16750c964679f5d3ab89e6cf62b48cda2fd6ed4ae7ecd4aeb86d96e350106bbeb1fa6aa893712ea109c2ca07a93
|
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?
|
@@ -155,7 +157,8 @@ module Google
|
|
155
157
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
156
158
|
credentials = Credentials.new credentials, scope: @config.scope
|
157
159
|
end
|
158
|
-
@quota_project_id =
|
160
|
+
@quota_project_id = @config.quota_project
|
161
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
159
162
|
|
160
163
|
@web_risk_service_stub = ::Gapic::ServiceStub.new(
|
161
164
|
::Google::Cloud::WebRisk::V1::WebRiskService::Stub,
|
@@ -524,24 +527,28 @@ module Google
|
|
524
527
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
525
528
|
# trigger a retry.
|
526
529
|
# @return [::Hash]
|
530
|
+
# @!attribute [rw] quota_project
|
531
|
+
# A separate project against which to charge quota.
|
532
|
+
# @return [::String]
|
527
533
|
#
|
528
534
|
class Configuration
|
529
535
|
extend ::Gapic::Config
|
530
536
|
|
531
|
-
config_attr :endpoint,
|
532
|
-
config_attr :credentials,
|
537
|
+
config_attr :endpoint, "webrisk.googleapis.com", ::String
|
538
|
+
config_attr :credentials, nil do |value|
|
533
539
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
534
540
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
535
541
|
allowed.any? { |klass| klass === value }
|
536
542
|
end
|
537
|
-
config_attr :scope,
|
538
|
-
config_attr :lib_name,
|
539
|
-
config_attr :lib_version,
|
540
|
-
config_attr(:channel_args,
|
541
|
-
config_attr :interceptors,
|
542
|
-
config_attr :timeout,
|
543
|
-
config_attr :metadata,
|
544
|
-
config_attr :retry_policy,
|
543
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
544
|
+
config_attr :lib_name, nil, ::String, nil
|
545
|
+
config_attr :lib_version, nil, ::String, nil
|
546
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
547
|
+
config_attr :interceptors, nil, ::Array, nil
|
548
|
+
config_attr :timeout, nil, ::Numeric, nil
|
549
|
+
config_attr :metadata, nil, ::Hash, nil
|
550
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
551
|
+
config_attr :quota_project, nil, ::String, nil
|
545
552
|
|
546
553
|
# @private
|
547
554
|
def initialize parent_config = nil
|
@@ -557,7 +564,7 @@ module Google
|
|
557
564
|
def rpcs
|
558
565
|
@rpcs ||= begin
|
559
566
|
parent_rpcs = nil
|
560
|
-
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)
|
561
568
|
Rpcs.new parent_rpcs
|
562
569
|
end
|
563
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.
|
4
|
+
version: 0.2.4
|
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-07 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
|
@@ -58,14 +58,42 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '5.
|
61
|
+
version: '5.14'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '5.
|
68
|
+
version: '5.14'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest-focus
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest-rg
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.2'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.2'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: rake
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,7 +162,6 @@ files:
|
|
134
162
|
- LICENSE.md
|
135
163
|
- README.md
|
136
164
|
- lib/google-cloud-web_risk-v1.rb
|
137
|
-
- lib/google/cloud/common_resources_pb.rb
|
138
165
|
- lib/google/cloud/web_risk/v1.rb
|
139
166
|
- lib/google/cloud/web_risk/v1/version.rb
|
140
167
|
- lib/google/cloud/web_risk/v1/web_risk_service.rb
|
@@ -167,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
194
|
- !ruby/object:Gem::Version
|
168
195
|
version: '0'
|
169
196
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
197
|
+
rubygems_version: 3.1.3
|
171
198
|
signing_key:
|
172
199
|
specification_version: 4
|
173
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
|