From b11bfcbe006131454b4c49286fd9696022b25dfe Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Wed, 8 May 2024 01:23:35 +0000 Subject: [PATCH] fix(safebrowsing): update the API #### safebrowsing:v5 The following keys were changed: - schemas.GoogleSecuritySafebrowsingV5SearchHashesResponse.properties.cacheDuration.description --- discovery/safebrowsing-v5.json | 4 ++-- src/apis/safebrowsing/v5.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/discovery/safebrowsing-v5.json b/discovery/safebrowsing-v5.json index 23cc41581b..096b339b65 100644 --- a/discovery/safebrowsing-v5.json +++ b/discovery/safebrowsing-v5.json @@ -121,7 +121,7 @@ } } }, - "revision": "20240505", + "revision": "20240428", "rootUrl": "https://safebrowsing.googleapis.com/", "schemas": { "GoogleSecuritySafebrowsingV5FullHash": { @@ -190,7 +190,7 @@ "id": "GoogleSecuritySafebrowsingV5SearchHashesResponse", "properties": { "cacheDuration": { - "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.", + "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.", "format": "google-duration", "type": "string" }, diff --git a/src/apis/safebrowsing/v5.ts b/src/apis/safebrowsing/v5.ts index 8986c2ed84..68ad2e4d9c 100644 --- a/src/apis/safebrowsing/v5.ts +++ b/src/apis/safebrowsing/v5.ts @@ -155,7 +155,7 @@ export namespace safebrowsing_v5 { */ export interface Schema$GoogleSecuritySafebrowsingV5SearchHashesResponse { /** - * 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. + * 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. */ cacheDuration?: string | null; /**