Skip to content

Commit b11bfcb

Browse files
yoshi-automationsofisl
authored andcommitted
fix(safebrowsing): update the API
#### safebrowsing:v5 The following keys were changed: - schemas.GoogleSecuritySafebrowsingV5SearchHashesResponse.properties.cacheDuration.description
1 parent 86387b3 commit b11bfcb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

discovery/safebrowsing-v5.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
}
122122
}
123123
},
124-
"revision": "20240505",
124+
"revision": "20240428",
125125
"rootUrl": "https://safebrowsing.googleapis.com/",
126126
"schemas": {
127127
"GoogleSecuritySafebrowsingV5FullHash": {
@@ -190,7 +190,7 @@
190190
"id": "GoogleSecuritySafebrowsingV5SearchHashesResponse",
191191
"properties": {
192192
"cacheDuration": {
193-
"description": "The client-side cache duration. The client MUST add this duration to the current time to determine the expiration time. The expiration time then applies to every hash prefix queried by the client in the request, regardless of how many full hashes are returned in the response. Even if the server returns no full hashes for a particular hash prefix, this fact MUST also be cached by the client. If and only if the field `full_hashes` is empty, the client MAY increase the `cache_duration` to determine a new expiration that is later than that specified by the server. In any case, the increased cache duration must not be longer than 24 hours. Important: the client MUST NOT assume that the server will return the same cache duration for all responses. The server MAY choose different cache durations for different responses depending on the situation.",
193+
"description": "The client-side cache duration. The client MUST add this duration to the current time to determine the expiration time. The expiration time then applies to every hash prefix queried by the client in the request, regardless of how many full hashes are returned in the response. Even if the server returns no full hashes for a particular hash prefix, this fact MUST also be cached by the client. Important: the client MUST NOT assume that the server will return the same cache duration for all responses. The server MAY choose different cache durations for different responses depending on the situation.",
194194
"format": "google-duration",
195195
"type": "string"
196196
},

src/apis/safebrowsing/v5.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export namespace safebrowsing_v5 {
155155
*/
156156
export interface Schema$GoogleSecuritySafebrowsingV5SearchHashesResponse {
157157
/**
158-
* The client-side cache duration. The client MUST add this duration to the current time to determine the expiration time. The expiration time then applies to every hash prefix queried by the client in the request, regardless of how many full hashes are returned in the response. Even if the server returns no full hashes for a particular hash prefix, this fact MUST also be cached by the client. If and only if the field `full_hashes` is empty, the client MAY increase the `cache_duration` to determine a new expiration that is later than that specified by the server. In any case, the increased cache duration must not be longer than 24 hours. Important: the client MUST NOT assume that the server will return the same cache duration for all responses. The server MAY choose different cache durations for different responses depending on the situation.
158+
* The client-side cache duration. The client MUST add this duration to the current time to determine the expiration time. The expiration time then applies to every hash prefix queried by the client in the request, regardless of how many full hashes are returned in the response. Even if the server returns no full hashes for a particular hash prefix, this fact MUST also be cached by the client. Important: the client MUST NOT assume that the server will return the same cache duration for all responses. The server MAY choose different cache durations for different responses depending on the situation.
159159
*/
160160
cacheDuration?: string | null;
161161
/**

0 commit comments

Comments
 (0)