google-apis-safebrowsing_v5 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1181116a9a437fb1c1f5a58fae6b36e91e2b8217ccf22d554675c0bcc911596
|
4
|
+
data.tar.gz: ff03770e5e035cca234f74b02e70c9b4bcdcf9cfa93bb1521f2411b1504d7499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3775677a46454eb8183eaa2dd438f97f9ad121f5cf4d4c4d5fc1735118f10a2116f0e26c649ce7cd63b8d30223ab6ac7b692acb855129e8d1a964cca8a86dca6
|
7
|
+
data.tar.gz: 7f2dcc3800848dc6d1a0a31b2b6ce7020b1ff972910bb4c33a972f99dd29aa0bbce7f0f8073ee8b2118f9a66559e6fba7f831b1d665e2177cc37bf2ba8a94f2d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-safebrowsing_v5
|
2
2
|
|
3
|
+
### v0.3.0 (2024-02-18)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240211
|
6
|
+
* Regenerated using generator version 0.13.1
|
7
|
+
|
8
|
+
### v0.2.0 (2024-01-23)
|
9
|
+
|
10
|
+
* Regenerated using generator version 0.13.0
|
11
|
+
|
3
12
|
### v0.1.0 (2023-10-08)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20230923
|
@@ -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.3.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.13.1"
|
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
|
@@ -36,6 +36,8 @@ module Google
|
|
36
36
|
#
|
37
37
|
# @see https://developers.google.com/safe-browsing/
|
38
38
|
class SafebrowsingService < Google::Apis::Core::BaseService
|
39
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://safebrowsing.$UNIVERSE_DOMAIN$/"
|
40
|
+
|
39
41
|
# @return [String]
|
40
42
|
# API key. Your API key identifies your project and provides you with API access,
|
41
43
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
@@ -47,16 +49,21 @@ module Google
|
|
47
49
|
attr_accessor :quota_user
|
48
50
|
|
49
51
|
def initialize
|
50
|
-
super(
|
52
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
51
53
|
client_name: 'google-apis-safebrowsing_v5',
|
52
54
|
client_version: Google::Apis::SafebrowsingV5::GEM_VERSION)
|
53
55
|
@batch_path = 'batch'
|
54
56
|
end
|
55
57
|
|
56
58
|
# Search for full hashes matching the specified prefixes. This is a custom
|
57
|
-
# 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).
|
58
62
|
# @param [Array<String>, String] hash_prefixes
|
59
|
-
# 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.
|
60
67
|
# @param [String] fields
|
61
68
|
# Selector specifying which fields to include in a partial response.
|
62
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.3.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:
|
11
|
+
date: 2024-02-18 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.12.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.12.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.3.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.5.3
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Safe Browsing API V5
|