google-cloud-webrisk 0.4.1 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +2 -6
- data/LICENSE +1 -1
- data/README.md +7 -2
- data/lib/google/cloud/webrisk.rb +7 -2
- data/lib/google/cloud/webrisk/v1beta1.rb +2 -2
- data/lib/google/cloud/webrisk/v1beta1/credentials.rb +1 -1
- data/lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb +1 -1
- data/lib/google/cloud/webrisk/v1beta1/doc/google/protobuf/timestamp.rb +1 -1
- data/lib/google/cloud/webrisk/v1beta1/web_risk_service_v1_beta1_client.rb +4 -1
- data/lib/google/cloud/webrisk/v1beta1/webrisk_pb.rb +19 -25
- data/lib/google/cloud/webrisk/v1beta1/webrisk_services_pb.rb +22 -28
- data/lib/google/cloud/webrisk/version.rb +1 -1
- metadata +11 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b07ada1b78bc56db6ee4389eb156d1aad2f4e7640200df6ad55bfdd72a2f478
|
4
|
+
data.tar.gz: a0112bd9a049ac0a9550794e6dbed4bec311637d3b58fcc8f9c972c8c8db5b1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84672fd8d2b13586cbb65b08177a890d0978fb1ca53cecba92775184d7adeaba9341f111260a1bfc9833ac62848ce4e8de1cdf18ff2cb4c384470606fd2ffd22
|
7
|
+
data.tar.gz: 8f2c25f32dece08b526f1eb4d66f06b76a10777a6b0f276220b55776fc36cd4ab1bbec6d056ac1f079262833abfbd1492ed1ecfa2ce7e4b05a2ec2a63eeb8de7
|
data/AUTHENTICATION.md
CHANGED
@@ -95,7 +95,8 @@ client = Google::Cloud::Webrisk.new
|
|
95
95
|
|
96
96
|
### Configuration
|
97
97
|
|
98
|
-
The **Project ID** and **Credentials JSON** can be configured
|
98
|
+
The **Project ID** and the path to the **Credentials JSON** file can be configured
|
99
|
+
instead of placing them in environment variables or providing them as arguments.
|
99
100
|
|
100
101
|
```ruby
|
101
102
|
require "google/cloud/webrisk"
|
@@ -170,8 +171,3 @@ Developers service account.
|
|
170
171
|
|
171
172
|
The key file you download will be used by this library to authenticate API
|
172
173
|
requests and should be stored in a secure location.
|
173
|
-
|
174
|
-
## Troubleshooting
|
175
|
-
|
176
|
-
If you're having trouble authenticating you can ask for help by following the
|
177
|
-
{file:TROUBLESHOOTING.md Troubleshooting Guide}.
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
# Ruby Client for Web Risk API
|
1
|
+
# Ruby Client for Web Risk API
|
2
|
+
|
3
|
+
**This library is deprecated, and will no longer receive updates. Please use the
|
4
|
+
[`google-cloud-web_risk`](https://rubygems.org/gems/google-cloud-web_risk)
|
5
|
+
library instead. For detailed information on the differences, see the
|
6
|
+
[migration guide](https://googleapis.dev/ruby/google-cloud-web_risk/latest/file.MIGRATING.html).**
|
2
7
|
|
3
8
|
[Web Risk API][Product Documentation]:
|
4
9
|
|
@@ -24,7 +29,7 @@ $ gem install google-cloud-webrisk
|
|
24
29
|
to see other available methods on the client.
|
25
30
|
- Read the [Web Risk API Product documentation][Product Documentation]
|
26
31
|
to learn more about the product and see How-to Guides.
|
27
|
-
- View this
|
32
|
+
- View this {file:https://github.com/googleapis/google-cloud-ruby/blob/master/README.md repository's main README}
|
28
33
|
to see the full list of Cloud APIs that we cover.
|
29
34
|
|
30
35
|
[Client Library Documentation]: https://googleapis.dev/ruby/google-cloud-webrisk/latest
|
data/lib/google/cloud/webrisk.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2020 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -21,7 +21,12 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for Web Risk API
|
24
|
+
# # Ruby Client for Web Risk API
|
25
|
+
#
|
26
|
+
# **This library is deprecated, and will no longer receive updates. Please use the
|
27
|
+
# [`google-cloud-web_risk`](https://rubygems.org/gems/google-cloud-web_risk)
|
28
|
+
# library instead. For detailed information on the differences, see the
|
29
|
+
# [migration guide](https://googleapis.dev/ruby/google-cloud-web_risk/latest/file.MIGRATING.html).**
|
25
30
|
#
|
26
31
|
# [Web Risk API][Product Documentation]:
|
27
32
|
#
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2020 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for Web Risk API
|
24
|
+
# # Ruby Client for Web Risk API
|
25
25
|
#
|
26
26
|
# [Web Risk API][Product Documentation]:
|
27
27
|
#
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2020 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -137,6 +137,9 @@ module Google
|
|
137
137
|
google_api_client.freeze
|
138
138
|
|
139
139
|
headers = { :"x-goog-api-client" => google_api_client }
|
140
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
141
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
142
|
+
end
|
140
143
|
headers.merge!(metadata) unless metadata.nil?
|
141
144
|
client_config_file = Pathname.new(__dir__).join(
|
142
145
|
"web_risk_service_v1_beta1_client_config.json"
|
@@ -93,29 +93,23 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
|
-
module Google
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
RiceDeltaEncoding = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.RiceDeltaEncoding").msgclass
|
116
|
-
ThreatType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ThreatType").enummodule
|
117
|
-
CompressionType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.CompressionType").enummodule
|
118
|
-
end
|
119
|
-
end
|
120
|
-
end
|
96
|
+
module Google::Cloud::Webrisk::V1beta1
|
97
|
+
ComputeThreatListDiffRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest").msgclass
|
98
|
+
ComputeThreatListDiffRequest::Constraints = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints").msgclass
|
99
|
+
ComputeThreatListDiffResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse").msgclass
|
100
|
+
ComputeThreatListDiffResponse::Checksum = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum").msgclass
|
101
|
+
ComputeThreatListDiffResponse::ResponseType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType").enummodule
|
102
|
+
SearchUrisRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchUrisRequest").msgclass
|
103
|
+
SearchUrisResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchUrisResponse").msgclass
|
104
|
+
SearchUrisResponse::ThreatUri = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchUrisResponse.ThreatUri").msgclass
|
105
|
+
SearchHashesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchHashesRequest").msgclass
|
106
|
+
SearchHashesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchHashesResponse").msgclass
|
107
|
+
SearchHashesResponse::ThreatHash = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchHashesResponse.ThreatHash").msgclass
|
108
|
+
ThreatEntryAdditions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ThreatEntryAdditions").msgclass
|
109
|
+
ThreatEntryRemovals = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ThreatEntryRemovals").msgclass
|
110
|
+
RawIndices = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.RawIndices").msgclass
|
111
|
+
RawHashes = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.RawHashes").msgclass
|
112
|
+
RiceDeltaEncoding = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.RiceDeltaEncoding").msgclass
|
113
|
+
ThreatType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ThreatType").enummodule
|
114
|
+
CompressionType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.CompressionType").enummodule
|
121
115
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/cloud/webrisk/v1beta1/webrisk.proto for package '
|
2
|
+
# Source: google/cloud/webrisk/v1beta1/webrisk.proto for package 'Google::Cloud::WebRisk::V1beta1'
|
3
3
|
# Original file comments:
|
4
4
|
# Copyright 2019 Google LLC.
|
5
5
|
#
|
@@ -21,36 +21,30 @@
|
|
21
21
|
require 'grpc'
|
22
22
|
require 'google/cloud/webrisk/v1beta1/webrisk_pb'
|
23
23
|
|
24
|
-
module Google
|
25
|
-
module
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
# Web Risk v1beta1 API defines an interface to detect malicious URLs on your
|
30
|
-
# website and in client applications.
|
31
|
-
class Service
|
24
|
+
module Google::Cloud::Webrisk::V1beta1
|
25
|
+
module WebRiskServiceV1Beta1
|
26
|
+
# Web Risk v1beta1 API defines an interface to detect malicious URLs on your
|
27
|
+
# website and in client applications.
|
28
|
+
class Service
|
32
29
|
|
33
|
-
|
30
|
+
include GRPC::GenericService
|
34
31
|
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1'
|
38
35
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
end
|
50
|
-
|
51
|
-
Stub = Service.rpc_stub_class
|
52
|
-
end
|
53
|
-
end
|
36
|
+
# Gets the most recent threat list diffs.
|
37
|
+
rpc :ComputeThreatListDiff, ComputeThreatListDiffRequest, ComputeThreatListDiffResponse
|
38
|
+
# This method is used to check whether a URI is on a given threatList.
|
39
|
+
rpc :SearchUris, SearchUrisRequest, SearchUrisResponse
|
40
|
+
# Gets the full hashes that match the requested hash prefix.
|
41
|
+
# This is used after a hash prefix is looked up in a threatList
|
42
|
+
# and there is a match. The client side threatList only holds partial hashes
|
43
|
+
# so the client must query this method to determine if there is a full
|
44
|
+
# hash match of a threat.
|
45
|
+
rpc :SearchHashes, SearchHashesRequest, SearchHashesResponse
|
54
46
|
end
|
47
|
+
|
48
|
+
Stub = Service.rpc_stub_class
|
55
49
|
end
|
56
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-webrisk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.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:
|
11
|
+
date: 2021-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '5.
|
73
|
+
version: '5.14'
|
74
74
|
type: :development
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: '5.
|
80
|
+
version: '5.14'
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: redcarpet
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,7 +134,8 @@ dependencies:
|
|
134
134
|
- - "~>"
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0.9'
|
137
|
-
description:
|
137
|
+
description: This library is deprecated, and will no longer receive updates. Please
|
138
|
+
use google-cloud-web_risk instead.
|
138
139
|
email: googleapis-packages@google.com
|
139
140
|
executables: []
|
140
141
|
extensions: []
|
@@ -158,7 +159,9 @@ homepage: https://github.com/googleapis/googleapis
|
|
158
159
|
licenses:
|
159
160
|
- Apache-2.0
|
160
161
|
metadata: {}
|
161
|
-
post_install_message:
|
162
|
+
post_install_message: The google-cloud-webrisk library is deprecated. Please use google-cloud-web_risk
|
163
|
+
instead. See https://googleapis.dev/ruby/google-cloud-web_risk/latest/file.MIGRATING.html
|
164
|
+
for detailed information on the differences.
|
162
165
|
rdoc_options: []
|
163
166
|
require_paths:
|
164
167
|
- lib
|
@@ -173,8 +176,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
176
|
- !ruby/object:Gem::Version
|
174
177
|
version: '0'
|
175
178
|
requirements: []
|
176
|
-
rubygems_version: 3.
|
179
|
+
rubygems_version: 3.2.17
|
177
180
|
signing_key:
|
178
181
|
specification_version: 4
|
179
|
-
summary: API Client library for Web Risk API
|
182
|
+
summary: Obsolete API Client library for Web Risk API
|
180
183
|
test_files: []
|