@googleapis/safebrowsing 2.0.2 → 4.0.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.
- package/CHANGELOG.md +29 -0
- package/build/index.js +4 -3
- package/build/index.js.map +1 -1
- package/build/v4.d.ts +195 -195
- package/build/v4.js +15 -14
- package/build/v4.js.map +1 -1
- package/package.json +6 -6
- package/v4.ts +244 -261
package/v4.ts
CHANGED
|
@@ -136,14 +136,10 @@ export namespace safebrowsing_v4 {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
/**
|
|
140
|
-
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
141
|
-
*/
|
|
142
|
-
export interface Schema$GoogleProtobufEmpty {}
|
|
143
139
|
/**
|
|
144
140
|
* The expected state of a client's local database.
|
|
145
141
|
*/
|
|
146
|
-
export interface Schema$
|
|
142
|
+
export interface Schema$Checksum {
|
|
147
143
|
/**
|
|
148
144
|
* The SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database.
|
|
149
145
|
*/
|
|
@@ -152,7 +148,7 @@ export namespace safebrowsing_v4 {
|
|
|
152
148
|
/**
|
|
153
149
|
* The client metadata associated with Safe Browsing API requests.
|
|
154
150
|
*/
|
|
155
|
-
export interface Schema$
|
|
151
|
+
export interface Schema$ClientInfo {
|
|
156
152
|
/**
|
|
157
153
|
* A client ID that (hopefully) uniquely identifies the client implementation of the Safe Browsing API.
|
|
158
154
|
*/
|
|
@@ -162,48 +158,10 @@ export namespace safebrowsing_v4 {
|
|
|
162
158
|
*/
|
|
163
159
|
clientVersion?: string | null;
|
|
164
160
|
}
|
|
165
|
-
/**
|
|
166
|
-
* Describes a Safe Browsing API update request. Clients can request updates for multiple lists in a single request. The server may not respond to all requests, if the server has no updates for that list. NOTE: Field index 2 is unused. NEXT: 5
|
|
167
|
-
*/
|
|
168
|
-
export interface Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest {
|
|
169
|
-
/**
|
|
170
|
-
* The client metadata.
|
|
171
|
-
*/
|
|
172
|
-
client?: Schema$GoogleSecuritySafebrowsingV4ClientInfo;
|
|
173
|
-
/**
|
|
174
|
-
* The requested threat list updates.
|
|
175
|
-
*/
|
|
176
|
-
listUpdateRequests?: Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest[];
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* A single list update request.
|
|
180
|
-
*/
|
|
181
|
-
export interface Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest {
|
|
182
|
-
/**
|
|
183
|
-
* The constraints associated with this request.
|
|
184
|
-
*/
|
|
185
|
-
constraints?: Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints;
|
|
186
|
-
/**
|
|
187
|
-
* The type of platform at risk by entries present in the list.
|
|
188
|
-
*/
|
|
189
|
-
platformType?: string | null;
|
|
190
|
-
/**
|
|
191
|
-
* The current state of the client for the requested list (the encrypted client state that was received from the last successful list update).
|
|
192
|
-
*/
|
|
193
|
-
state?: string | null;
|
|
194
|
-
/**
|
|
195
|
-
* The types of entries present in the list.
|
|
196
|
-
*/
|
|
197
|
-
threatEntryType?: string | null;
|
|
198
|
-
/**
|
|
199
|
-
* The type of threat posed by entries present in the list.
|
|
200
|
-
*/
|
|
201
|
-
threatType?: string | null;
|
|
202
|
-
}
|
|
203
161
|
/**
|
|
204
162
|
* The constraints for this update.
|
|
205
163
|
*/
|
|
206
|
-
export interface Schema$
|
|
164
|
+
export interface Schema$Constraints {
|
|
207
165
|
/**
|
|
208
166
|
* A client's physical location, expressed as a ISO 31166-1 alpha-2 region code.
|
|
209
167
|
*/
|
|
@@ -229,65 +187,45 @@ export namespace safebrowsing_v4 {
|
|
|
229
187
|
*/
|
|
230
188
|
supportedCompressions?: string[] | null;
|
|
231
189
|
}
|
|
232
|
-
export interface Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse {
|
|
233
|
-
/**
|
|
234
|
-
* The list updates requested by the clients. The number of responses here may be less than the number of requests sent by clients. This is the case, for example, if the server has no updates for a particular list.
|
|
235
|
-
*/
|
|
236
|
-
listUpdateResponses?: Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse[];
|
|
237
|
-
/**
|
|
238
|
-
* The minimum duration the client must wait before issuing any update request. If this field is not set clients may update as soon as they want.
|
|
239
|
-
*/
|
|
240
|
-
minimumWaitDuration?: string | null;
|
|
241
|
-
}
|
|
242
190
|
/**
|
|
243
|
-
*
|
|
191
|
+
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
244
192
|
*/
|
|
245
|
-
export interface Schema$
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* The expected SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database after applying the provided update. If the client state doesn't match the expected state, the client must disregard this update and retry later.
|
|
252
|
-
*/
|
|
253
|
-
checksum?: Schema$GoogleSecuritySafebrowsingV4Checksum;
|
|
254
|
-
/**
|
|
255
|
-
* The new client state, in encrypted format. Opaque to clients.
|
|
256
|
-
*/
|
|
257
|
-
newClientState?: string | null;
|
|
258
|
-
/**
|
|
259
|
-
* The platform type for which data is returned.
|
|
260
|
-
*/
|
|
261
|
-
platformType?: string | null;
|
|
193
|
+
export interface Schema$Empty {}
|
|
194
|
+
/**
|
|
195
|
+
* Describes a Safe Browsing API update request. Clients can request updates for multiple lists in a single request. The server may not respond to all requests, if the server has no updates for that list. NOTE: Field index 2 is unused. NEXT: 5
|
|
196
|
+
*/
|
|
197
|
+
export interface Schema$FetchThreatListUpdatesRequest {
|
|
262
198
|
/**
|
|
263
|
-
*
|
|
199
|
+
* The client metadata.
|
|
264
200
|
*/
|
|
265
|
-
|
|
201
|
+
client?: Schema$ClientInfo;
|
|
266
202
|
/**
|
|
267
|
-
* The
|
|
203
|
+
* The requested threat list updates.
|
|
268
204
|
*/
|
|
269
|
-
|
|
205
|
+
listUpdateRequests?: Schema$ListUpdateRequest[];
|
|
206
|
+
}
|
|
207
|
+
export interface Schema$FetchThreatListUpdatesResponse {
|
|
270
208
|
/**
|
|
271
|
-
* The
|
|
209
|
+
* The list updates requested by the clients. The number of responses here may be less than the number of requests sent by clients. This is the case, for example, if the server has no updates for a particular list.
|
|
272
210
|
*/
|
|
273
|
-
|
|
211
|
+
listUpdateResponses?: Schema$ListUpdateResponse[];
|
|
274
212
|
/**
|
|
275
|
-
* The
|
|
213
|
+
* The minimum duration the client must wait before issuing any update request. If this field is not set clients may update as soon as they want.
|
|
276
214
|
*/
|
|
277
|
-
|
|
215
|
+
minimumWaitDuration?: string | null;
|
|
278
216
|
}
|
|
279
217
|
/**
|
|
280
218
|
* Request to return full hashes matched by the provided hash prefixes.
|
|
281
219
|
*/
|
|
282
|
-
export interface Schema$
|
|
220
|
+
export interface Schema$FindFullHashesRequest {
|
|
283
221
|
/**
|
|
284
222
|
* Client metadata associated with callers of higher-level APIs built on top of the client's implementation.
|
|
285
223
|
*/
|
|
286
|
-
apiClient?: Schema$
|
|
224
|
+
apiClient?: Schema$ClientInfo;
|
|
287
225
|
/**
|
|
288
226
|
* The client metadata.
|
|
289
227
|
*/
|
|
290
|
-
client?: Schema$
|
|
228
|
+
client?: Schema$ClientInfo;
|
|
291
229
|
/**
|
|
292
230
|
* The current client states for each of the client's local threat lists.
|
|
293
231
|
*/
|
|
@@ -295,13 +233,13 @@ export namespace safebrowsing_v4 {
|
|
|
295
233
|
/**
|
|
296
234
|
* The lists and hashes to be checked.
|
|
297
235
|
*/
|
|
298
|
-
threatInfo?: Schema$
|
|
236
|
+
threatInfo?: Schema$ThreatInfo;
|
|
299
237
|
}
|
|
300
|
-
export interface Schema$
|
|
238
|
+
export interface Schema$FindFullHashesResponse {
|
|
301
239
|
/**
|
|
302
240
|
* The full hashes that matched the requested prefixes.
|
|
303
241
|
*/
|
|
304
|
-
matches?: Schema$
|
|
242
|
+
matches?: Schema$ThreatMatch[];
|
|
305
243
|
/**
|
|
306
244
|
* The minimum duration the client must wait before issuing any find hashes request. If this field is not set, clients can issue a request as soon as they want.
|
|
307
245
|
*/
|
|
@@ -314,32 +252,107 @@ export namespace safebrowsing_v4 {
|
|
|
314
252
|
/**
|
|
315
253
|
* Request to check entries against lists.
|
|
316
254
|
*/
|
|
317
|
-
export interface Schema$
|
|
255
|
+
export interface Schema$FindThreatMatchesRequest {
|
|
318
256
|
/**
|
|
319
257
|
* The client metadata.
|
|
320
258
|
*/
|
|
321
|
-
client?: Schema$
|
|
259
|
+
client?: Schema$ClientInfo;
|
|
322
260
|
/**
|
|
323
261
|
* The lists and entries to be checked for matches.
|
|
324
262
|
*/
|
|
325
|
-
threatInfo?: Schema$
|
|
263
|
+
threatInfo?: Schema$ThreatInfo;
|
|
326
264
|
}
|
|
327
|
-
export interface Schema$
|
|
265
|
+
export interface Schema$FindThreatMatchesResponse {
|
|
328
266
|
/**
|
|
329
267
|
* The threat list matches.
|
|
330
268
|
*/
|
|
331
|
-
matches?: Schema$
|
|
269
|
+
matches?: Schema$ThreatMatch[];
|
|
332
270
|
}
|
|
333
|
-
export interface Schema$
|
|
271
|
+
export interface Schema$ListThreatListsResponse {
|
|
334
272
|
/**
|
|
335
273
|
* The lists available for download by the client.
|
|
336
274
|
*/
|
|
337
|
-
threatLists?: Schema$
|
|
275
|
+
threatLists?: Schema$ThreatListDescriptor[];
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* A single list update request.
|
|
279
|
+
*/
|
|
280
|
+
export interface Schema$ListUpdateRequest {
|
|
281
|
+
/**
|
|
282
|
+
* The constraints associated with this request.
|
|
283
|
+
*/
|
|
284
|
+
constraints?: Schema$Constraints;
|
|
285
|
+
/**
|
|
286
|
+
* The type of platform at risk by entries present in the list.
|
|
287
|
+
*/
|
|
288
|
+
platformType?: string | null;
|
|
289
|
+
/**
|
|
290
|
+
* The current state of the client for the requested list (the encrypted client state that was received from the last successful list update).
|
|
291
|
+
*/
|
|
292
|
+
state?: string | null;
|
|
293
|
+
/**
|
|
294
|
+
* The types of entries present in the list.
|
|
295
|
+
*/
|
|
296
|
+
threatEntryType?: string | null;
|
|
297
|
+
/**
|
|
298
|
+
* The type of threat posed by entries present in the list.
|
|
299
|
+
*/
|
|
300
|
+
threatType?: string | null;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* An update to an individual list.
|
|
304
|
+
*/
|
|
305
|
+
export interface Schema$ListUpdateResponse {
|
|
306
|
+
/**
|
|
307
|
+
* A set of entries to add to a local threat type's list. Repeated to allow for a combination of compressed and raw data to be sent in a single response.
|
|
308
|
+
*/
|
|
309
|
+
additions?: Schema$ThreatEntrySet[];
|
|
310
|
+
/**
|
|
311
|
+
* The expected SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database after applying the provided update. If the client state doesn't match the expected state, the client must disregard this update and retry later.
|
|
312
|
+
*/
|
|
313
|
+
checksum?: Schema$Checksum;
|
|
314
|
+
/**
|
|
315
|
+
* The new client state, in encrypted format. Opaque to clients.
|
|
316
|
+
*/
|
|
317
|
+
newClientState?: string | null;
|
|
318
|
+
/**
|
|
319
|
+
* The platform type for which data is returned.
|
|
320
|
+
*/
|
|
321
|
+
platformType?: string | null;
|
|
322
|
+
/**
|
|
323
|
+
* A set of entries to remove from a local threat type's list. In practice, this field is empty or contains exactly one ThreatEntrySet.
|
|
324
|
+
*/
|
|
325
|
+
removals?: Schema$ThreatEntrySet[];
|
|
326
|
+
/**
|
|
327
|
+
* The type of response. This may indicate that an action is required by the client when the response is received.
|
|
328
|
+
*/
|
|
329
|
+
responseType?: string | null;
|
|
330
|
+
/**
|
|
331
|
+
* The format of the threats.
|
|
332
|
+
*/
|
|
333
|
+
threatEntryType?: string | null;
|
|
334
|
+
/**
|
|
335
|
+
* The threat type for which data is returned.
|
|
336
|
+
*/
|
|
337
|
+
threatType?: string | null;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* A single metadata entry.
|
|
341
|
+
*/
|
|
342
|
+
export interface Schema$MetadataEntry {
|
|
343
|
+
/**
|
|
344
|
+
* The metadata entry key. For JSON requests, the key is base64-encoded.
|
|
345
|
+
*/
|
|
346
|
+
key?: string | null;
|
|
347
|
+
/**
|
|
348
|
+
* The metadata entry value. For JSON requests, the value is base64-encoded.
|
|
349
|
+
*/
|
|
350
|
+
value?: string | null;
|
|
338
351
|
}
|
|
339
352
|
/**
|
|
340
353
|
* The uncompressed threat entries in hash format of a particular prefix length. Hashes can be anywhere from 4 to 32 bytes in size. A large majority are 4 bytes, but some hashes are lengthened if they collide with the hash of a popular URL. Used for sending ThreatEntrySet to clients that do not support compression, or when sending non-4-byte hashes to clients that do support compression.
|
|
341
354
|
*/
|
|
342
|
-
export interface Schema$
|
|
355
|
+
export interface Schema$RawHashes {
|
|
343
356
|
/**
|
|
344
357
|
* The number of bytes for each prefix encoded below. This field can be anywhere from 4 (shortest prefix) to 32 (full SHA256 hash).
|
|
345
358
|
*/
|
|
@@ -352,7 +365,7 @@ export namespace safebrowsing_v4 {
|
|
|
352
365
|
/**
|
|
353
366
|
* A set of raw indices to remove from a local list.
|
|
354
367
|
*/
|
|
355
|
-
export interface Schema$
|
|
368
|
+
export interface Schema$RawIndices {
|
|
356
369
|
/**
|
|
357
370
|
* The indices to remove from a lexicographically-sorted local list.
|
|
358
371
|
*/
|
|
@@ -361,7 +374,7 @@ export namespace safebrowsing_v4 {
|
|
|
361
374
|
/**
|
|
362
375
|
* The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or compressed removal indices.
|
|
363
376
|
*/
|
|
364
|
-
export interface Schema$
|
|
377
|
+
export interface Schema$RiceDeltaEncoding {
|
|
365
378
|
/**
|
|
366
379
|
* The encoded deltas that are encoded using the Golomb-Rice coder.
|
|
367
380
|
*/
|
|
@@ -382,7 +395,7 @@ export namespace safebrowsing_v4 {
|
|
|
382
395
|
/**
|
|
383
396
|
* An individual threat; for example, a malicious URL or its hash representation. Only one of these fields should be set.
|
|
384
397
|
*/
|
|
385
|
-
export interface Schema$
|
|
398
|
+
export interface Schema$ThreatEntry {
|
|
386
399
|
/**
|
|
387
400
|
* The digest of an executable in SHA256 format. The API supports both binary and hex digests. For JSON requests, digests are base64-encoded.
|
|
388
401
|
*/
|
|
@@ -399,29 +412,16 @@ export namespace safebrowsing_v4 {
|
|
|
399
412
|
/**
|
|
400
413
|
* The metadata associated with a specific threat entry. The client is expected to know the metadata key/value pairs associated with each threat type.
|
|
401
414
|
*/
|
|
402
|
-
export interface Schema$
|
|
415
|
+
export interface Schema$ThreatEntryMetadata {
|
|
403
416
|
/**
|
|
404
417
|
* The metadata entries.
|
|
405
418
|
*/
|
|
406
|
-
entries?: Schema$
|
|
407
|
-
}
|
|
408
|
-
/**
|
|
409
|
-
* A single metadata entry.
|
|
410
|
-
*/
|
|
411
|
-
export interface Schema$GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry {
|
|
412
|
-
/**
|
|
413
|
-
* The metadata entry key. For JSON requests, the key is base64-encoded.
|
|
414
|
-
*/
|
|
415
|
-
key?: string | null;
|
|
416
|
-
/**
|
|
417
|
-
* The metadata entry value. For JSON requests, the value is base64-encoded.
|
|
418
|
-
*/
|
|
419
|
-
value?: string | null;
|
|
419
|
+
entries?: Schema$MetadataEntry[];
|
|
420
420
|
}
|
|
421
421
|
/**
|
|
422
422
|
* A set of threats that should be added or removed from a client's local database.
|
|
423
423
|
*/
|
|
424
|
-
export interface Schema$
|
|
424
|
+
export interface Schema$ThreatEntrySet {
|
|
425
425
|
/**
|
|
426
426
|
* The compression type for the entries in this set.
|
|
427
427
|
*/
|
|
@@ -429,29 +429,29 @@ export namespace safebrowsing_v4 {
|
|
|
429
429
|
/**
|
|
430
430
|
* The raw SHA256-formatted entries.
|
|
431
431
|
*/
|
|
432
|
-
rawHashes?: Schema$
|
|
432
|
+
rawHashes?: Schema$RawHashes;
|
|
433
433
|
/**
|
|
434
434
|
* The raw removal indices for a local list.
|
|
435
435
|
*/
|
|
436
|
-
rawIndices?: Schema$
|
|
436
|
+
rawIndices?: Schema$RawIndices;
|
|
437
437
|
/**
|
|
438
438
|
* The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data.
|
|
439
439
|
*/
|
|
440
|
-
riceHashes?: Schema$
|
|
440
|
+
riceHashes?: Schema$RiceDeltaEncoding;
|
|
441
441
|
/**
|
|
442
442
|
* The encoded local, lexicographically-sorted list indices, using a Golomb-Rice encoding. Used for sending compressed removal indices. The removal indices (uint32) are sorted in ascending order, then delta encoded and stored as encoded_data.
|
|
443
443
|
*/
|
|
444
|
-
riceIndices?: Schema$
|
|
444
|
+
riceIndices?: Schema$RiceDeltaEncoding;
|
|
445
445
|
}
|
|
446
|
-
export interface Schema$
|
|
446
|
+
export interface Schema$ThreatHit {
|
|
447
447
|
/**
|
|
448
448
|
* Client-reported identification.
|
|
449
449
|
*/
|
|
450
|
-
clientInfo?: Schema$
|
|
450
|
+
clientInfo?: Schema$ClientInfo;
|
|
451
451
|
/**
|
|
452
452
|
* The threat entry responsible for the hit. Full hash should be reported for hash-based hits.
|
|
453
453
|
*/
|
|
454
|
-
entry?: Schema$
|
|
454
|
+
entry?: Schema$ThreatEntry;
|
|
455
455
|
/**
|
|
456
456
|
* The platform type reported.
|
|
457
457
|
*/
|
|
@@ -459,7 +459,7 @@ export namespace safebrowsing_v4 {
|
|
|
459
459
|
/**
|
|
460
460
|
* The resources related to the threat hit.
|
|
461
461
|
*/
|
|
462
|
-
resources?: Schema$
|
|
462
|
+
resources?: Schema$ThreatSource[];
|
|
463
463
|
/**
|
|
464
464
|
* The threat type reported.
|
|
465
465
|
*/
|
|
@@ -467,46 +467,12 @@ export namespace safebrowsing_v4 {
|
|
|
467
467
|
/**
|
|
468
468
|
* Details about the user that encountered the threat.
|
|
469
469
|
*/
|
|
470
|
-
userInfo?: Schema$
|
|
471
|
-
}
|
|
472
|
-
/**
|
|
473
|
-
* A single resource related to a threat hit.
|
|
474
|
-
*/
|
|
475
|
-
export interface Schema$GoogleSecuritySafebrowsingV4ThreatHitThreatSource {
|
|
476
|
-
/**
|
|
477
|
-
* Referrer of the resource. Only set if the referrer is available.
|
|
478
|
-
*/
|
|
479
|
-
referrer?: string | null;
|
|
480
|
-
/**
|
|
481
|
-
* The remote IP of the resource in ASCII format. Either IPv4 or IPv6.
|
|
482
|
-
*/
|
|
483
|
-
remoteIp?: string | null;
|
|
484
|
-
/**
|
|
485
|
-
* The type of source reported.
|
|
486
|
-
*/
|
|
487
|
-
type?: string | null;
|
|
488
|
-
/**
|
|
489
|
-
* The URL of the resource.
|
|
490
|
-
*/
|
|
491
|
-
url?: string | null;
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* Details about the user that encountered the threat.
|
|
495
|
-
*/
|
|
496
|
-
export interface Schema$GoogleSecuritySafebrowsingV4ThreatHitUserInfo {
|
|
497
|
-
/**
|
|
498
|
-
* The UN M.49 region code associated with the user's location.
|
|
499
|
-
*/
|
|
500
|
-
regionCode?: string | null;
|
|
501
|
-
/**
|
|
502
|
-
* Unique user identifier defined by the client.
|
|
503
|
-
*/
|
|
504
|
-
userId?: string | null;
|
|
470
|
+
userInfo?: Schema$UserInfo;
|
|
505
471
|
}
|
|
506
472
|
/**
|
|
507
473
|
* The information regarding one or more threats that a client submits when checking for matches in threat lists.
|
|
508
474
|
*/
|
|
509
|
-
export interface Schema$
|
|
475
|
+
export interface Schema$ThreatInfo {
|
|
510
476
|
/**
|
|
511
477
|
* The platform types to be checked.
|
|
512
478
|
*/
|
|
@@ -514,7 +480,7 @@ export namespace safebrowsing_v4 {
|
|
|
514
480
|
/**
|
|
515
481
|
* The threat entries to be checked.
|
|
516
482
|
*/
|
|
517
|
-
threatEntries?: Schema$
|
|
483
|
+
threatEntries?: Schema$ThreatEntry[];
|
|
518
484
|
/**
|
|
519
485
|
* The entry types to be checked.
|
|
520
486
|
*/
|
|
@@ -527,7 +493,7 @@ export namespace safebrowsing_v4 {
|
|
|
527
493
|
/**
|
|
528
494
|
* Describes an individual threat list. A list is defined by three parameters: the type of threat posed, the type of platform targeted by the threat, and the type of entries in the list.
|
|
529
495
|
*/
|
|
530
|
-
export interface Schema$
|
|
496
|
+
export interface Schema$ThreatListDescriptor {
|
|
531
497
|
/**
|
|
532
498
|
* The platform type targeted by the list's entries.
|
|
533
499
|
*/
|
|
@@ -544,7 +510,7 @@ export namespace safebrowsing_v4 {
|
|
|
544
510
|
/**
|
|
545
511
|
* A match when checking a threat entry in the Safe Browsing threat lists.
|
|
546
512
|
*/
|
|
547
|
-
export interface Schema$
|
|
513
|
+
export interface Schema$ThreatMatch {
|
|
548
514
|
/**
|
|
549
515
|
* The cache lifetime for the returned match. Clients must not cache this response for more than this duration to avoid false positives.
|
|
550
516
|
*/
|
|
@@ -556,11 +522,11 @@ export namespace safebrowsing_v4 {
|
|
|
556
522
|
/**
|
|
557
523
|
* The threat matching this threat.
|
|
558
524
|
*/
|
|
559
|
-
threat?: Schema$
|
|
525
|
+
threat?: Schema$ThreatEntry;
|
|
560
526
|
/**
|
|
561
527
|
* Optional metadata associated with this threat.
|
|
562
528
|
*/
|
|
563
|
-
threatEntryMetadata?: Schema$
|
|
529
|
+
threatEntryMetadata?: Schema$ThreatEntryMetadata;
|
|
564
530
|
/**
|
|
565
531
|
* The threat entry type matching this threat.
|
|
566
532
|
*/
|
|
@@ -570,6 +536,40 @@ export namespace safebrowsing_v4 {
|
|
|
570
536
|
*/
|
|
571
537
|
threatType?: string | null;
|
|
572
538
|
}
|
|
539
|
+
/**
|
|
540
|
+
* A single resource related to a threat hit.
|
|
541
|
+
*/
|
|
542
|
+
export interface Schema$ThreatSource {
|
|
543
|
+
/**
|
|
544
|
+
* Referrer of the resource. Only set if the referrer is available.
|
|
545
|
+
*/
|
|
546
|
+
referrer?: string | null;
|
|
547
|
+
/**
|
|
548
|
+
* The remote IP of the resource in ASCII format. Either IPv4 or IPv6.
|
|
549
|
+
*/
|
|
550
|
+
remoteIp?: string | null;
|
|
551
|
+
/**
|
|
552
|
+
* The type of source reported.
|
|
553
|
+
*/
|
|
554
|
+
type?: string | null;
|
|
555
|
+
/**
|
|
556
|
+
* The URL of the resource.
|
|
557
|
+
*/
|
|
558
|
+
url?: string | null;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Details about the user that encountered the threat.
|
|
562
|
+
*/
|
|
563
|
+
export interface Schema$UserInfo {
|
|
564
|
+
/**
|
|
565
|
+
* The UN M.49 region code associated with the user's location.
|
|
566
|
+
*/
|
|
567
|
+
regionCode?: string | null;
|
|
568
|
+
/**
|
|
569
|
+
* Unique user identifier defined by the client.
|
|
570
|
+
*/
|
|
571
|
+
userId?: string | null;
|
|
572
|
+
}
|
|
573
573
|
|
|
574
574
|
export class Resource$Encodedfullhashes {
|
|
575
575
|
context: APIRequestContext;
|
|
@@ -639,7 +639,7 @@ export namespace safebrowsing_v4 {
|
|
|
639
639
|
get(
|
|
640
640
|
params?: Params$Resource$Encodedfullhashes$Get,
|
|
641
641
|
options?: MethodOptions
|
|
642
|
-
): GaxiosPromise<Schema$
|
|
642
|
+
): GaxiosPromise<Schema$FindFullHashesResponse>;
|
|
643
643
|
get(
|
|
644
644
|
params: Params$Resource$Encodedfullhashes$Get,
|
|
645
645
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -649,32 +649,30 @@ export namespace safebrowsing_v4 {
|
|
|
649
649
|
params: Params$Resource$Encodedfullhashes$Get,
|
|
650
650
|
options:
|
|
651
651
|
| MethodOptions
|
|
652
|
-
| BodyResponseCallback<Schema$
|
|
653
|
-
callback: BodyResponseCallback<Schema$
|
|
652
|
+
| BodyResponseCallback<Schema$FindFullHashesResponse>,
|
|
653
|
+
callback: BodyResponseCallback<Schema$FindFullHashesResponse>
|
|
654
654
|
): void;
|
|
655
655
|
get(
|
|
656
656
|
params: Params$Resource$Encodedfullhashes$Get,
|
|
657
|
-
callback: BodyResponseCallback<Schema$
|
|
658
|
-
): void;
|
|
659
|
-
get(
|
|
660
|
-
callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>
|
|
657
|
+
callback: BodyResponseCallback<Schema$FindFullHashesResponse>
|
|
661
658
|
): void;
|
|
659
|
+
get(callback: BodyResponseCallback<Schema$FindFullHashesResponse>): void;
|
|
662
660
|
get(
|
|
663
661
|
paramsOrCallback?:
|
|
664
662
|
| Params$Resource$Encodedfullhashes$Get
|
|
665
|
-
| BodyResponseCallback<Schema$
|
|
663
|
+
| BodyResponseCallback<Schema$FindFullHashesResponse>
|
|
666
664
|
| BodyResponseCallback<Readable>,
|
|
667
665
|
optionsOrCallback?:
|
|
668
666
|
| MethodOptions
|
|
669
667
|
| StreamMethodOptions
|
|
670
|
-
| BodyResponseCallback<Schema$
|
|
668
|
+
| BodyResponseCallback<Schema$FindFullHashesResponse>
|
|
671
669
|
| BodyResponseCallback<Readable>,
|
|
672
670
|
callback?:
|
|
673
|
-
| BodyResponseCallback<Schema$
|
|
671
|
+
| BodyResponseCallback<Schema$FindFullHashesResponse>
|
|
674
672
|
| BodyResponseCallback<Readable>
|
|
675
673
|
):
|
|
676
674
|
| void
|
|
677
|
-
| GaxiosPromise<Schema$
|
|
675
|
+
| GaxiosPromise<Schema$FindFullHashesResponse>
|
|
678
676
|
| GaxiosPromise<Readable> {
|
|
679
677
|
let params = (paramsOrCallback ||
|
|
680
678
|
{}) as Params$Resource$Encodedfullhashes$Get;
|
|
@@ -709,14 +707,12 @@ export namespace safebrowsing_v4 {
|
|
|
709
707
|
context: this.context,
|
|
710
708
|
};
|
|
711
709
|
if (callback) {
|
|
712
|
-
createAPIRequest<Schema$
|
|
710
|
+
createAPIRequest<Schema$FindFullHashesResponse>(
|
|
713
711
|
parameters,
|
|
714
712
|
callback as BodyResponseCallback<unknown>
|
|
715
713
|
);
|
|
716
714
|
} else {
|
|
717
|
-
return createAPIRequest<Schema$
|
|
718
|
-
parameters
|
|
719
|
-
);
|
|
715
|
+
return createAPIRequest<Schema$FindFullHashesResponse>(parameters);
|
|
720
716
|
}
|
|
721
717
|
}
|
|
722
718
|
}
|
|
@@ -804,7 +800,7 @@ export namespace safebrowsing_v4 {
|
|
|
804
800
|
get(
|
|
805
801
|
params?: Params$Resource$Encodedupdates$Get,
|
|
806
802
|
options?: MethodOptions
|
|
807
|
-
): GaxiosPromise<Schema$
|
|
803
|
+
): GaxiosPromise<Schema$FetchThreatListUpdatesResponse>;
|
|
808
804
|
get(
|
|
809
805
|
params: Params$Resource$Encodedupdates$Get,
|
|
810
806
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -814,32 +810,32 @@ export namespace safebrowsing_v4 {
|
|
|
814
810
|
params: Params$Resource$Encodedupdates$Get,
|
|
815
811
|
options:
|
|
816
812
|
| MethodOptions
|
|
817
|
-
| BodyResponseCallback<Schema$
|
|
818
|
-
callback: BodyResponseCallback<Schema$
|
|
813
|
+
| BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>,
|
|
814
|
+
callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>
|
|
819
815
|
): void;
|
|
820
816
|
get(
|
|
821
817
|
params: Params$Resource$Encodedupdates$Get,
|
|
822
|
-
callback: BodyResponseCallback<Schema$
|
|
818
|
+
callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>
|
|
823
819
|
): void;
|
|
824
820
|
get(
|
|
825
|
-
callback: BodyResponseCallback<Schema$
|
|
821
|
+
callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>
|
|
826
822
|
): void;
|
|
827
823
|
get(
|
|
828
824
|
paramsOrCallback?:
|
|
829
825
|
| Params$Resource$Encodedupdates$Get
|
|
830
|
-
| BodyResponseCallback<Schema$
|
|
826
|
+
| BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>
|
|
831
827
|
| BodyResponseCallback<Readable>,
|
|
832
828
|
optionsOrCallback?:
|
|
833
829
|
| MethodOptions
|
|
834
830
|
| StreamMethodOptions
|
|
835
|
-
| BodyResponseCallback<Schema$
|
|
831
|
+
| BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>
|
|
836
832
|
| BodyResponseCallback<Readable>,
|
|
837
833
|
callback?:
|
|
838
|
-
| BodyResponseCallback<Schema$
|
|
834
|
+
| BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>
|
|
839
835
|
| BodyResponseCallback<Readable>
|
|
840
836
|
):
|
|
841
837
|
| void
|
|
842
|
-
| GaxiosPromise<Schema$
|
|
838
|
+
| GaxiosPromise<Schema$FetchThreatListUpdatesResponse>
|
|
843
839
|
| GaxiosPromise<Readable> {
|
|
844
840
|
let params = (paramsOrCallback ||
|
|
845
841
|
{}) as Params$Resource$Encodedupdates$Get;
|
|
@@ -874,12 +870,12 @@ export namespace safebrowsing_v4 {
|
|
|
874
870
|
context: this.context,
|
|
875
871
|
};
|
|
876
872
|
if (callback) {
|
|
877
|
-
createAPIRequest<Schema$
|
|
873
|
+
createAPIRequest<Schema$FetchThreatListUpdatesResponse>(
|
|
878
874
|
parameters,
|
|
879
875
|
callback as BodyResponseCallback<unknown>
|
|
880
876
|
);
|
|
881
877
|
} else {
|
|
882
|
-
return createAPIRequest<Schema$
|
|
878
|
+
return createAPIRequest<Schema$FetchThreatListUpdatesResponse>(
|
|
883
879
|
parameters
|
|
884
880
|
);
|
|
885
881
|
}
|
|
@@ -975,7 +971,7 @@ export namespace safebrowsing_v4 {
|
|
|
975
971
|
find(
|
|
976
972
|
params?: Params$Resource$Fullhashes$Find,
|
|
977
973
|
options?: MethodOptions
|
|
978
|
-
): GaxiosPromise<Schema$
|
|
974
|
+
): GaxiosPromise<Schema$FindFullHashesResponse>;
|
|
979
975
|
find(
|
|
980
976
|
params: Params$Resource$Fullhashes$Find,
|
|
981
977
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -985,32 +981,30 @@ export namespace safebrowsing_v4 {
|
|
|
985
981
|
params: Params$Resource$Fullhashes$Find,
|
|
986
982
|
options:
|
|
987
983
|
| MethodOptions
|
|
988
|
-
| BodyResponseCallback<Schema$
|
|
989
|
-
callback: BodyResponseCallback<Schema$
|
|
984
|
+
| BodyResponseCallback<Schema$FindFullHashesResponse>,
|
|
985
|
+
callback: BodyResponseCallback<Schema$FindFullHashesResponse>
|
|
990
986
|
): void;
|
|
991
987
|
find(
|
|
992
988
|
params: Params$Resource$Fullhashes$Find,
|
|
993
|
-
callback: BodyResponseCallback<Schema$
|
|
994
|
-
): void;
|
|
995
|
-
find(
|
|
996
|
-
callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>
|
|
989
|
+
callback: BodyResponseCallback<Schema$FindFullHashesResponse>
|
|
997
990
|
): void;
|
|
991
|
+
find(callback: BodyResponseCallback<Schema$FindFullHashesResponse>): void;
|
|
998
992
|
find(
|
|
999
993
|
paramsOrCallback?:
|
|
1000
994
|
| Params$Resource$Fullhashes$Find
|
|
1001
|
-
| BodyResponseCallback<Schema$
|
|
995
|
+
| BodyResponseCallback<Schema$FindFullHashesResponse>
|
|
1002
996
|
| BodyResponseCallback<Readable>,
|
|
1003
997
|
optionsOrCallback?:
|
|
1004
998
|
| MethodOptions
|
|
1005
999
|
| StreamMethodOptions
|
|
1006
|
-
| BodyResponseCallback<Schema$
|
|
1000
|
+
| BodyResponseCallback<Schema$FindFullHashesResponse>
|
|
1007
1001
|
| BodyResponseCallback<Readable>,
|
|
1008
1002
|
callback?:
|
|
1009
|
-
| BodyResponseCallback<Schema$
|
|
1003
|
+
| BodyResponseCallback<Schema$FindFullHashesResponse>
|
|
1010
1004
|
| BodyResponseCallback<Readable>
|
|
1011
1005
|
):
|
|
1012
1006
|
| void
|
|
1013
|
-
| GaxiosPromise<Schema$
|
|
1007
|
+
| GaxiosPromise<Schema$FindFullHashesResponse>
|
|
1014
1008
|
| GaxiosPromise<Readable> {
|
|
1015
1009
|
let params = (paramsOrCallback || {}) as Params$Resource$Fullhashes$Find;
|
|
1016
1010
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -1044,14 +1038,12 @@ export namespace safebrowsing_v4 {
|
|
|
1044
1038
|
context: this.context,
|
|
1045
1039
|
};
|
|
1046
1040
|
if (callback) {
|
|
1047
|
-
createAPIRequest<Schema$
|
|
1041
|
+
createAPIRequest<Schema$FindFullHashesResponse>(
|
|
1048
1042
|
parameters,
|
|
1049
1043
|
callback as BodyResponseCallback<unknown>
|
|
1050
1044
|
);
|
|
1051
1045
|
} else {
|
|
1052
|
-
return createAPIRequest<Schema$
|
|
1053
|
-
parameters
|
|
1054
|
-
);
|
|
1046
|
+
return createAPIRequest<Schema$FindFullHashesResponse>(parameters);
|
|
1055
1047
|
}
|
|
1056
1048
|
}
|
|
1057
1049
|
}
|
|
@@ -1060,7 +1052,7 @@ export namespace safebrowsing_v4 {
|
|
|
1060
1052
|
/**
|
|
1061
1053
|
* Request body metadata
|
|
1062
1054
|
*/
|
|
1063
|
-
requestBody?: Schema$
|
|
1055
|
+
requestBody?: Schema$FindFullHashesRequest;
|
|
1064
1056
|
}
|
|
1065
1057
|
|
|
1066
1058
|
export class Resource$Threathits {
|
|
@@ -1134,7 +1126,7 @@ export namespace safebrowsing_v4 {
|
|
|
1134
1126
|
create(
|
|
1135
1127
|
params?: Params$Resource$Threathits$Create,
|
|
1136
1128
|
options?: MethodOptions
|
|
1137
|
-
): GaxiosPromise<Schema$
|
|
1129
|
+
): GaxiosPromise<Schema$Empty>;
|
|
1138
1130
|
create(
|
|
1139
1131
|
params: Params$Resource$Threathits$Create,
|
|
1140
1132
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -1142,31 +1134,28 @@ export namespace safebrowsing_v4 {
|
|
|
1142
1134
|
): void;
|
|
1143
1135
|
create(
|
|
1144
1136
|
params: Params$Resource$Threathits$Create,
|
|
1145
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
1146
|
-
callback: BodyResponseCallback<Schema$
|
|
1137
|
+
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
|
|
1138
|
+
callback: BodyResponseCallback<Schema$Empty>
|
|
1147
1139
|
): void;
|
|
1148
1140
|
create(
|
|
1149
1141
|
params: Params$Resource$Threathits$Create,
|
|
1150
|
-
callback: BodyResponseCallback<Schema$
|
|
1142
|
+
callback: BodyResponseCallback<Schema$Empty>
|
|
1151
1143
|
): void;
|
|
1152
|
-
create(callback: BodyResponseCallback<Schema$
|
|
1144
|
+
create(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
1153
1145
|
create(
|
|
1154
1146
|
paramsOrCallback?:
|
|
1155
1147
|
| Params$Resource$Threathits$Create
|
|
1156
|
-
| BodyResponseCallback<Schema$
|
|
1148
|
+
| BodyResponseCallback<Schema$Empty>
|
|
1157
1149
|
| BodyResponseCallback<Readable>,
|
|
1158
1150
|
optionsOrCallback?:
|
|
1159
1151
|
| MethodOptions
|
|
1160
1152
|
| StreamMethodOptions
|
|
1161
|
-
| BodyResponseCallback<Schema$
|
|
1153
|
+
| BodyResponseCallback<Schema$Empty>
|
|
1162
1154
|
| BodyResponseCallback<Readable>,
|
|
1163
1155
|
callback?:
|
|
1164
|
-
| BodyResponseCallback<Schema$
|
|
1156
|
+
| BodyResponseCallback<Schema$Empty>
|
|
1165
1157
|
| BodyResponseCallback<Readable>
|
|
1166
|
-
):
|
|
1167
|
-
| void
|
|
1168
|
-
| GaxiosPromise<Schema$GoogleProtobufEmpty>
|
|
1169
|
-
| GaxiosPromise<Readable> {
|
|
1158
|
+
): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
|
|
1170
1159
|
let params = (paramsOrCallback ||
|
|
1171
1160
|
{}) as Params$Resource$Threathits$Create;
|
|
1172
1161
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -1197,12 +1186,12 @@ export namespace safebrowsing_v4 {
|
|
|
1197
1186
|
context: this.context,
|
|
1198
1187
|
};
|
|
1199
1188
|
if (callback) {
|
|
1200
|
-
createAPIRequest<Schema$
|
|
1189
|
+
createAPIRequest<Schema$Empty>(
|
|
1201
1190
|
parameters,
|
|
1202
1191
|
callback as BodyResponseCallback<unknown>
|
|
1203
1192
|
);
|
|
1204
1193
|
} else {
|
|
1205
|
-
return createAPIRequest<Schema$
|
|
1194
|
+
return createAPIRequest<Schema$Empty>(parameters);
|
|
1206
1195
|
}
|
|
1207
1196
|
}
|
|
1208
1197
|
}
|
|
@@ -1212,7 +1201,7 @@ export namespace safebrowsing_v4 {
|
|
|
1212
1201
|
/**
|
|
1213
1202
|
* Request body metadata
|
|
1214
1203
|
*/
|
|
1215
|
-
requestBody?: Schema$
|
|
1204
|
+
requestBody?: Schema$ThreatHit;
|
|
1216
1205
|
}
|
|
1217
1206
|
|
|
1218
1207
|
export class Resource$Threatlists {
|
|
@@ -1275,7 +1264,7 @@ export namespace safebrowsing_v4 {
|
|
|
1275
1264
|
list(
|
|
1276
1265
|
params?: Params$Resource$Threatlists$List,
|
|
1277
1266
|
options?: MethodOptions
|
|
1278
|
-
): GaxiosPromise<Schema$
|
|
1267
|
+
): GaxiosPromise<Schema$ListThreatListsResponse>;
|
|
1279
1268
|
list(
|
|
1280
1269
|
params: Params$Resource$Threatlists$List,
|
|
1281
1270
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -1285,32 +1274,30 @@ export namespace safebrowsing_v4 {
|
|
|
1285
1274
|
params: Params$Resource$Threatlists$List,
|
|
1286
1275
|
options:
|
|
1287
1276
|
| MethodOptions
|
|
1288
|
-
| BodyResponseCallback<Schema$
|
|
1289
|
-
callback: BodyResponseCallback<Schema$
|
|
1277
|
+
| BodyResponseCallback<Schema$ListThreatListsResponse>,
|
|
1278
|
+
callback: BodyResponseCallback<Schema$ListThreatListsResponse>
|
|
1290
1279
|
): void;
|
|
1291
1280
|
list(
|
|
1292
1281
|
params: Params$Resource$Threatlists$List,
|
|
1293
|
-
callback: BodyResponseCallback<Schema$
|
|
1294
|
-
): void;
|
|
1295
|
-
list(
|
|
1296
|
-
callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4ListThreatListsResponse>
|
|
1282
|
+
callback: BodyResponseCallback<Schema$ListThreatListsResponse>
|
|
1297
1283
|
): void;
|
|
1284
|
+
list(callback: BodyResponseCallback<Schema$ListThreatListsResponse>): void;
|
|
1298
1285
|
list(
|
|
1299
1286
|
paramsOrCallback?:
|
|
1300
1287
|
| Params$Resource$Threatlists$List
|
|
1301
|
-
| BodyResponseCallback<Schema$
|
|
1288
|
+
| BodyResponseCallback<Schema$ListThreatListsResponse>
|
|
1302
1289
|
| BodyResponseCallback<Readable>,
|
|
1303
1290
|
optionsOrCallback?:
|
|
1304
1291
|
| MethodOptions
|
|
1305
1292
|
| StreamMethodOptions
|
|
1306
|
-
| BodyResponseCallback<Schema$
|
|
1293
|
+
| BodyResponseCallback<Schema$ListThreatListsResponse>
|
|
1307
1294
|
| BodyResponseCallback<Readable>,
|
|
1308
1295
|
callback?:
|
|
1309
|
-
| BodyResponseCallback<Schema$
|
|
1296
|
+
| BodyResponseCallback<Schema$ListThreatListsResponse>
|
|
1310
1297
|
| BodyResponseCallback<Readable>
|
|
1311
1298
|
):
|
|
1312
1299
|
| void
|
|
1313
|
-
| GaxiosPromise<Schema$
|
|
1300
|
+
| GaxiosPromise<Schema$ListThreatListsResponse>
|
|
1314
1301
|
| GaxiosPromise<Readable> {
|
|
1315
1302
|
let params = (paramsOrCallback || {}) as Params$Resource$Threatlists$List;
|
|
1316
1303
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -1341,14 +1328,12 @@ export namespace safebrowsing_v4 {
|
|
|
1341
1328
|
context: this.context,
|
|
1342
1329
|
};
|
|
1343
1330
|
if (callback) {
|
|
1344
|
-
createAPIRequest<Schema$
|
|
1331
|
+
createAPIRequest<Schema$ListThreatListsResponse>(
|
|
1345
1332
|
parameters,
|
|
1346
1333
|
callback as BodyResponseCallback<unknown>
|
|
1347
1334
|
);
|
|
1348
1335
|
} else {
|
|
1349
|
-
return createAPIRequest<Schema$
|
|
1350
|
-
parameters
|
|
1351
|
-
);
|
|
1336
|
+
return createAPIRequest<Schema$ListThreatListsResponse>(parameters);
|
|
1352
1337
|
}
|
|
1353
1338
|
}
|
|
1354
1339
|
}
|
|
@@ -1426,7 +1411,7 @@ export namespace safebrowsing_v4 {
|
|
|
1426
1411
|
fetch(
|
|
1427
1412
|
params?: Params$Resource$Threatlistupdates$Fetch,
|
|
1428
1413
|
options?: MethodOptions
|
|
1429
|
-
): GaxiosPromise<Schema$
|
|
1414
|
+
): GaxiosPromise<Schema$FetchThreatListUpdatesResponse>;
|
|
1430
1415
|
fetch(
|
|
1431
1416
|
params: Params$Resource$Threatlistupdates$Fetch,
|
|
1432
1417
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -1436,32 +1421,32 @@ export namespace safebrowsing_v4 {
|
|
|
1436
1421
|
params: Params$Resource$Threatlistupdates$Fetch,
|
|
1437
1422
|
options:
|
|
1438
1423
|
| MethodOptions
|
|
1439
|
-
| BodyResponseCallback<Schema$
|
|
1440
|
-
callback: BodyResponseCallback<Schema$
|
|
1424
|
+
| BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>,
|
|
1425
|
+
callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>
|
|
1441
1426
|
): void;
|
|
1442
1427
|
fetch(
|
|
1443
1428
|
params: Params$Resource$Threatlistupdates$Fetch,
|
|
1444
|
-
callback: BodyResponseCallback<Schema$
|
|
1429
|
+
callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>
|
|
1445
1430
|
): void;
|
|
1446
1431
|
fetch(
|
|
1447
|
-
callback: BodyResponseCallback<Schema$
|
|
1432
|
+
callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>
|
|
1448
1433
|
): void;
|
|
1449
1434
|
fetch(
|
|
1450
1435
|
paramsOrCallback?:
|
|
1451
1436
|
| Params$Resource$Threatlistupdates$Fetch
|
|
1452
|
-
| BodyResponseCallback<Schema$
|
|
1437
|
+
| BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>
|
|
1453
1438
|
| BodyResponseCallback<Readable>,
|
|
1454
1439
|
optionsOrCallback?:
|
|
1455
1440
|
| MethodOptions
|
|
1456
1441
|
| StreamMethodOptions
|
|
1457
|
-
| BodyResponseCallback<Schema$
|
|
1442
|
+
| BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>
|
|
1458
1443
|
| BodyResponseCallback<Readable>,
|
|
1459
1444
|
callback?:
|
|
1460
|
-
| BodyResponseCallback<Schema$
|
|
1445
|
+
| BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>
|
|
1461
1446
|
| BodyResponseCallback<Readable>
|
|
1462
1447
|
):
|
|
1463
1448
|
| void
|
|
1464
|
-
| GaxiosPromise<Schema$
|
|
1449
|
+
| GaxiosPromise<Schema$FetchThreatListUpdatesResponse>
|
|
1465
1450
|
| GaxiosPromise<Readable> {
|
|
1466
1451
|
let params = (paramsOrCallback ||
|
|
1467
1452
|
{}) as Params$Resource$Threatlistupdates$Fetch;
|
|
@@ -1496,12 +1481,12 @@ export namespace safebrowsing_v4 {
|
|
|
1496
1481
|
context: this.context,
|
|
1497
1482
|
};
|
|
1498
1483
|
if (callback) {
|
|
1499
|
-
createAPIRequest<Schema$
|
|
1484
|
+
createAPIRequest<Schema$FetchThreatListUpdatesResponse>(
|
|
1500
1485
|
parameters,
|
|
1501
1486
|
callback as BodyResponseCallback<unknown>
|
|
1502
1487
|
);
|
|
1503
1488
|
} else {
|
|
1504
|
-
return createAPIRequest<Schema$
|
|
1489
|
+
return createAPIRequest<Schema$FetchThreatListUpdatesResponse>(
|
|
1505
1490
|
parameters
|
|
1506
1491
|
);
|
|
1507
1492
|
}
|
|
@@ -1513,7 +1498,7 @@ export namespace safebrowsing_v4 {
|
|
|
1513
1498
|
/**
|
|
1514
1499
|
* Request body metadata
|
|
1515
1500
|
*/
|
|
1516
|
-
requestBody?: Schema$
|
|
1501
|
+
requestBody?: Schema$FetchThreatListUpdatesRequest;
|
|
1517
1502
|
}
|
|
1518
1503
|
|
|
1519
1504
|
export class Resource$Threatmatches {
|
|
@@ -1585,7 +1570,7 @@ export namespace safebrowsing_v4 {
|
|
|
1585
1570
|
find(
|
|
1586
1571
|
params?: Params$Resource$Threatmatches$Find,
|
|
1587
1572
|
options?: MethodOptions
|
|
1588
|
-
): GaxiosPromise<Schema$
|
|
1573
|
+
): GaxiosPromise<Schema$FindThreatMatchesResponse>;
|
|
1589
1574
|
find(
|
|
1590
1575
|
params: Params$Resource$Threatmatches$Find,
|
|
1591
1576
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -1595,32 +1580,32 @@ export namespace safebrowsing_v4 {
|
|
|
1595
1580
|
params: Params$Resource$Threatmatches$Find,
|
|
1596
1581
|
options:
|
|
1597
1582
|
| MethodOptions
|
|
1598
|
-
| BodyResponseCallback<Schema$
|
|
1599
|
-
callback: BodyResponseCallback<Schema$
|
|
1583
|
+
| BodyResponseCallback<Schema$FindThreatMatchesResponse>,
|
|
1584
|
+
callback: BodyResponseCallback<Schema$FindThreatMatchesResponse>
|
|
1600
1585
|
): void;
|
|
1601
1586
|
find(
|
|
1602
1587
|
params: Params$Resource$Threatmatches$Find,
|
|
1603
|
-
callback: BodyResponseCallback<Schema$
|
|
1588
|
+
callback: BodyResponseCallback<Schema$FindThreatMatchesResponse>
|
|
1604
1589
|
): void;
|
|
1605
1590
|
find(
|
|
1606
|
-
callback: BodyResponseCallback<Schema$
|
|
1591
|
+
callback: BodyResponseCallback<Schema$FindThreatMatchesResponse>
|
|
1607
1592
|
): void;
|
|
1608
1593
|
find(
|
|
1609
1594
|
paramsOrCallback?:
|
|
1610
1595
|
| Params$Resource$Threatmatches$Find
|
|
1611
|
-
| BodyResponseCallback<Schema$
|
|
1596
|
+
| BodyResponseCallback<Schema$FindThreatMatchesResponse>
|
|
1612
1597
|
| BodyResponseCallback<Readable>,
|
|
1613
1598
|
optionsOrCallback?:
|
|
1614
1599
|
| MethodOptions
|
|
1615
1600
|
| StreamMethodOptions
|
|
1616
|
-
| BodyResponseCallback<Schema$
|
|
1601
|
+
| BodyResponseCallback<Schema$FindThreatMatchesResponse>
|
|
1617
1602
|
| BodyResponseCallback<Readable>,
|
|
1618
1603
|
callback?:
|
|
1619
|
-
| BodyResponseCallback<Schema$
|
|
1604
|
+
| BodyResponseCallback<Schema$FindThreatMatchesResponse>
|
|
1620
1605
|
| BodyResponseCallback<Readable>
|
|
1621
1606
|
):
|
|
1622
1607
|
| void
|
|
1623
|
-
| GaxiosPromise<Schema$
|
|
1608
|
+
| GaxiosPromise<Schema$FindThreatMatchesResponse>
|
|
1624
1609
|
| GaxiosPromise<Readable> {
|
|
1625
1610
|
let params = (paramsOrCallback ||
|
|
1626
1611
|
{}) as Params$Resource$Threatmatches$Find;
|
|
@@ -1655,14 +1640,12 @@ export namespace safebrowsing_v4 {
|
|
|
1655
1640
|
context: this.context,
|
|
1656
1641
|
};
|
|
1657
1642
|
if (callback) {
|
|
1658
|
-
createAPIRequest<Schema$
|
|
1643
|
+
createAPIRequest<Schema$FindThreatMatchesResponse>(
|
|
1659
1644
|
parameters,
|
|
1660
1645
|
callback as BodyResponseCallback<unknown>
|
|
1661
1646
|
);
|
|
1662
1647
|
} else {
|
|
1663
|
-
return createAPIRequest<Schema$
|
|
1664
|
-
parameters
|
|
1665
|
-
);
|
|
1648
|
+
return createAPIRequest<Schema$FindThreatMatchesResponse>(parameters);
|
|
1666
1649
|
}
|
|
1667
1650
|
}
|
|
1668
1651
|
}
|
|
@@ -1672,6 +1655,6 @@ export namespace safebrowsing_v4 {
|
|
|
1672
1655
|
/**
|
|
1673
1656
|
* Request body metadata
|
|
1674
1657
|
*/
|
|
1675
|
-
requestBody?: Schema$
|
|
1658
|
+
requestBody?: Schema$FindThreatMatchesRequest;
|
|
1676
1659
|
}
|
|
1677
1660
|
}
|