google-cloud-web_risk-v1 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/lib/google/cloud/web_risk/v1/version.rb +1 -1
- data/lib/google/cloud/web_risk/v1/web_risk_service/client.rb +8 -3
- data/lib/google/cloud/webrisk/v1/webrisk_pb.rb +1 -0
- data/lib/google/cloud/webrisk/v1/webrisk_services_pb.rb +2 -1
- data/proto_docs/google/cloud/webrisk/v1/webrisk.rb +14 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4a1e42a4e53cb1cc7bb49da3a6d93e8b6d1fe12d13a6625aa47b4b37079d7b2
|
4
|
+
data.tar.gz: 4f102663e3699e6d4c49471dd85ddf90f8f75f74895c716e124f32fe430e7599
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91995f126535a48f2f96c267f15ff441608506e1ec9390edf5887e969da80e1c22850ef3d8c4651d3dd9e9a69fe1899b3d24a31150a0ff7fe0a900db754b2adb
|
7
|
+
data.tar.gz: d49f8bb4a0f765044999c38ea3d78b68325e84984b9781bf1955bcc012b1ef5ab3037cc8c486e5ef6af524edb5c49db8b1de8f02a3572c27e73ed6cc5bbf3db7
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
@@ -80,7 +80,7 @@ module Google
|
|
80
80
|
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
81
81
|
}
|
82
82
|
|
83
|
-
default_config.rpcs.create_submission.timeout =
|
83
|
+
default_config.rpcs.create_submission.timeout = 600.0
|
84
84
|
|
85
85
|
default_config
|
86
86
|
end
|
@@ -186,7 +186,9 @@ module Google
|
|
186
186
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
187
187
|
#
|
188
188
|
# @param threat_type [::Google::Cloud::WebRisk::V1::ThreatType]
|
189
|
-
# Required. The threat list to update. Only a single ThreatType should be specified
|
189
|
+
# Required. The threat list to update. Only a single ThreatType should be specified
|
190
|
+
# per request. If you want to handle multiple ThreatTypes, you must make one
|
191
|
+
# request per ThreatType.
|
190
192
|
# @param version_token [::String]
|
191
193
|
# The current version token of the client for the requested list (the
|
192
194
|
# client version that was received from the last successful diff).
|
@@ -360,6 +362,8 @@ module Google
|
|
360
362
|
# @param hash_prefix [::String]
|
361
363
|
# A hash prefix, consisting of the most significant 4-32 bytes of a SHA256
|
362
364
|
# hash. For JSON requests, this field is base64-encoded.
|
365
|
+
# Note that if this parameter is provided by a URI, it must be encoded using
|
366
|
+
# the web safe base64 variant (RFC 4648).
|
363
367
|
# @param threat_types [::Array<::Google::Cloud::WebRisk::V1::ThreatType>]
|
364
368
|
# Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
|
365
369
|
#
|
@@ -425,7 +429,8 @@ module Google
|
|
425
429
|
# content, the site will be added to the [Google's Social Engineering
|
426
430
|
# lists](https://support.google.com/webmasters/answer/6350487/) in order to
|
427
431
|
# protect users that could get exposed to this threat in the future. Only
|
428
|
-
# projects
|
432
|
+
# allowlisted projects can use this method during Early Access. Please reach
|
433
|
+
# out to Sales or your customer engineer to obtain access.
|
429
434
|
#
|
430
435
|
# @overload create_submission(request, options = nil)
|
431
436
|
# Pass arguments to `create_submission` via a request object, either of type
|
@@ -94,6 +94,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
94
94
|
value :MALWARE, 1
|
95
95
|
value :SOCIAL_ENGINEERING, 2
|
96
96
|
value :UNWANTED_SOFTWARE, 3
|
97
|
+
value :SOCIAL_ENGINEERING_EXTENDED_COVERAGE, 4
|
97
98
|
end
|
98
99
|
add_enum "google.cloud.webrisk.v1.CompressionType" do
|
99
100
|
value :COMPRESSION_TYPE_UNSPECIFIED, 0
|
@@ -58,7 +58,8 @@ module Google
|
|
58
58
|
# content, the site will be added to the [Google's Social Engineering
|
59
59
|
# lists](https://support.google.com/webmasters/answer/6350487/) in order to
|
60
60
|
# protect users that could get exposed to this threat in the future. Only
|
61
|
-
# projects
|
61
|
+
# allowlisted projects can use this method during Early Access. Please reach
|
62
|
+
# out to Sales or your customer engineer to obtain access.
|
62
63
|
rpc :CreateSubmission, ::Google::Cloud::WebRisk::V1::CreateSubmissionRequest, ::Google::Cloud::WebRisk::V1::Submission
|
63
64
|
end
|
64
65
|
|
@@ -24,7 +24,9 @@ module Google
|
|
24
24
|
# Describes an API diff request.
|
25
25
|
# @!attribute [rw] threat_type
|
26
26
|
# @return [::Google::Cloud::WebRisk::V1::ThreatType]
|
27
|
-
# Required. The threat list to update. Only a single ThreatType should be specified
|
27
|
+
# Required. The threat list to update. Only a single ThreatType should be specified
|
28
|
+
# per request. If you want to handle multiple ThreatTypes, you must make one
|
29
|
+
# request per ThreatType.
|
28
30
|
# @!attribute [rw] version_token
|
29
31
|
# @return [::String]
|
30
32
|
# The current version token of the client for the requested list (the
|
@@ -130,7 +132,7 @@ module Google
|
|
130
132
|
|
131
133
|
# @!attribute [rw] threat
|
132
134
|
# @return [::Google::Cloud::WebRisk::V1::SearchUrisResponse::ThreatUri]
|
133
|
-
# The threat list matches. This
|
135
|
+
# The threat list matches. This might be empty if the URI is on no list.
|
134
136
|
class SearchUrisResponse
|
135
137
|
include ::Google::Protobuf::MessageExts
|
136
138
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -154,6 +156,8 @@ module Google
|
|
154
156
|
# @return [::String]
|
155
157
|
# A hash prefix, consisting of the most significant 4-32 bytes of a SHA256
|
156
158
|
# hash. For JSON requests, this field is base64-encoded.
|
159
|
+
# Note that if this parameter is provided by a URI, it must be encoded using
|
160
|
+
# the web safe base64 variant (RFC 4648).
|
157
161
|
# @!attribute [rw] threat_types
|
158
162
|
# @return [::Array<::Google::Cloud::WebRisk::V1::ThreatType>]
|
159
163
|
# Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
|
@@ -280,10 +284,10 @@ module Google
|
|
280
284
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
281
285
|
end
|
282
286
|
|
283
|
-
# Wraps a URI that might be displaying
|
287
|
+
# Wraps a URI that might be displaying malicious content.
|
284
288
|
# @!attribute [rw] uri
|
285
289
|
# @return [::String]
|
286
|
-
# Required. The URI that is being reported for
|
290
|
+
# Required. The URI that is being reported for malicious content to be analyzed.
|
287
291
|
class Submission
|
288
292
|
include ::Google::Protobuf::MessageExts
|
289
293
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -302,10 +306,10 @@ module Google
|
|
302
306
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
303
307
|
end
|
304
308
|
|
305
|
-
# The type of threat. This maps
|
309
|
+
# The type of threat. This maps directly to the threat list a threat may
|
306
310
|
# belong to.
|
307
311
|
module ThreatType
|
308
|
-
#
|
312
|
+
# No entries should match this threat type. This threat type is unused.
|
309
313
|
THREAT_TYPE_UNSPECIFIED = 0
|
310
314
|
|
311
315
|
# Malware targeting any platform.
|
@@ -316,6 +320,10 @@ module Google
|
|
316
320
|
|
317
321
|
# Unwanted software targeting any platform.
|
318
322
|
UNWANTED_SOFTWARE = 3
|
323
|
+
|
324
|
+
# A list of extended coverage social engineering URIs targeting any
|
325
|
+
# platform.
|
326
|
+
SOCIAL_ENGINEERING_EXTENDED_COVERAGE = 4
|
319
327
|
end
|
320
328
|
|
321
329
|
# The ways in which threat entry sets can be compressed.
|
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.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-19 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.12'
|
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.12'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|