google-apis-safebrowsing_v5 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/safebrowsing_v5/classes.rb +19 -14
- data/lib/google/apis/safebrowsing_v5/gem_version.rb +3 -3
- data/lib/google/apis/safebrowsing_v5/service.rb +7 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df969cd167c5663ce803924cf83d784f72561ac430f16823c2cf0e5c0c715a3e
|
4
|
+
data.tar.gz: df849b134062c0cb15ebb35e0d60c1420d9382522ea2f7e33c622752e3fb7b08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11fa7507eedea7a08a7f241a866c21f6581d35f039fb900236957f2b8b880ad8d833139ce16e1dd5dc0d304cb75d1b35df9040d3aa9c012478bcd3a918847239
|
7
|
+
data.tar.gz: 56723375df0b3f51163f46c1d1a2249b48d49203a440e1380e8496ae637d15b9d949e61eec2fe537cdcf8d6cdc2c8f1837a6a54a1522a2d08ba1658ac30d2183
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-safebrowsing_v5
|
2
2
|
|
3
|
+
### v0.4.0 (2024-02-24)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.14.0
|
6
|
+
|
7
|
+
### v0.3.0 (2024-02-18)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240211
|
10
|
+
* Regenerated using generator version 0.13.1
|
11
|
+
|
3
12
|
### v0.2.0 (2024-01-23)
|
4
13
|
|
5
14
|
* Regenerated using generator version 0.13.0
|
data/OVERVIEW.md
CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://developers.google.com/safe-browsing/) may pr
|
|
83
83
|
|
84
84
|
## Supported Ruby versions
|
85
85
|
|
86
|
-
This library is supported on Ruby 2.
|
86
|
+
This library is supported on Ruby 2.7+.
|
87
87
|
|
88
|
-
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life.
|
88
|
+
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
89
|
|
90
90
|
## License
|
91
91
|
|
@@ -54,12 +54,13 @@ module Google
|
|
54
54
|
# compatibility: new threat types and threat attributes may be added by the
|
55
55
|
# server at any time; those additions are considered minor version changes. It
|
56
56
|
# is Google's policy not to expose minor version numbers in APIs (see https://
|
57
|
-
# cloud.google.com/apis/design/versioning), so clients
|
58
|
-
# receive FullHashDetail messages containing ThreatType
|
59
|
-
# ThreatAttribute enum values that are considered invalid by
|
60
|
-
# Therefore, it is the client's responsibility to check for the
|
61
|
-
# ThreatType and ThreatAttribute enum values; if any value
|
62
|
-
# the client MUST disregard the entire FullHashDetail
|
57
|
+
# cloud.google.com/apis/design/versioning for the versioning policy), so clients
|
58
|
+
# MUST be prepared to receive `FullHashDetail` messages containing `ThreatType`
|
59
|
+
# enum values or `ThreatAttribute` enum values that are considered invalid by
|
60
|
+
# the client. Therefore, it is the client's responsibility to check for the
|
61
|
+
# validity of all `ThreatType` and `ThreatAttribute` enum values; if any value
|
62
|
+
# is considered invalid, the client MUST disregard the entire `FullHashDetail`
|
63
|
+
# message.
|
63
64
|
class GoogleSecuritySafebrowsingV5FullHashFullHashDetail
|
64
65
|
include Google::Apis::Core::Hashable
|
65
66
|
|
@@ -85,20 +86,24 @@ module Google
|
|
85
86
|
end
|
86
87
|
end
|
87
88
|
|
88
|
-
# The response returned after searching threat hashes.
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
89
|
+
# The response returned after searching threat hashes. If nothing is found, the
|
90
|
+
# server will return an OK status (HTTP status code 200) with the `full_hashes`
|
91
|
+
# field empty, rather than returning a NOT_FOUND status (HTTP status code 404). *
|
92
|
+
# *What's new in V5**: There is a separation between FullHash and FullHashDetail.
|
93
|
+
# In the case when a hash represents a site having multiple threats (e.g. both
|
94
|
+
# MALWARE and SOCIAL_ENGINEERING), the full hash does not need to be sent twice
|
95
|
+
# as in V4. Furthermore, the cache duration has been simplified into a single `
|
96
|
+
# cache_duration` field.
|
92
97
|
class GoogleSecuritySafebrowsingV5SearchHashesResponse
|
93
98
|
include Google::Apis::Core::Hashable
|
94
99
|
|
95
|
-
# The client-side cache duration. The client
|
100
|
+
# The client-side cache duration. The client MUST add this duration to the
|
96
101
|
# current time to determine the expiration time. The expiration time then
|
97
102
|
# applies to every hash prefix queried by the client in the request, regardless
|
98
103
|
# of how many full hashes are returned in the response. Even if the server
|
99
|
-
# returns no full hashes for a particular hash prefix, this fact
|
100
|
-
# cached by the client. Important: the client
|
101
|
-
# will return the same cache duration for all responses. The server
|
104
|
+
# returns no full hashes for a particular hash prefix, this fact MUST also be
|
105
|
+
# cached by the client. Important: the client MUST NOT assume that the server
|
106
|
+
# will return the same cache duration for all responses. The server MAY choose
|
102
107
|
# different cache durations for different responses depending on the situation.
|
103
108
|
# Corresponds to the JSON property `cacheDuration`
|
104
109
|
# @return [String]
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module SafebrowsingV5
|
18
18
|
# Version of the google-apis-safebrowsing_v5 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.4.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240211"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -56,9 +56,14 @@ module Google
|
|
56
56
|
end
|
57
57
|
|
58
58
|
# Search for full hashes matching the specified prefixes. This is a custom
|
59
|
-
# method as
|
59
|
+
# method as defined by https://google.aip.dev/136 (the custom method refers to
|
60
|
+
# this method having a custom name within Google's general API development
|
61
|
+
# nomenclature; it does not refer to using a custom HTTP method).
|
60
62
|
# @param [Array<String>, String] hash_prefixes
|
61
|
-
# Required. The hash prefixes to be looked up.
|
63
|
+
# Required. The hash prefixes to be looked up. Clients MUST NOT send more than
|
64
|
+
# 1000 hash prefixes. However, following the URL processing procedure, clients
|
65
|
+
# SHOULD NOT need to send more than 30 hash prefixes. Currently each hash prefix
|
66
|
+
# is required to be exactly 4 bytes long. This MAY be relaxed in the future.
|
62
67
|
# @param [String] fields
|
63
68
|
# Selector specifying which fields to include in a partial response.
|
64
69
|
# @param [String] quota_user
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-safebrowsing_v5
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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: 2024-
|
11
|
+
date: 2024-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.14.0
|
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.14.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-safebrowsing_v5/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-safebrowsing_v5/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-safebrowsing_v5/v0.4.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-safebrowsing_v5
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
68
|
requirements:
|
69
69
|
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: '2.
|
71
|
+
version: '2.7'
|
72
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.6
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Safe Browsing API V5
|