Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Side by Side Diff: discovery/googleapis/safebrowsing__v4.json

Issue 2039113004: Api-roll 37: 2016-06-06 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « discovery/googleapis/prediction__v1.6.json ('k') | discovery/googleapis/sheets__v4.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "basePath": "", 2 "basePath": "",
3 "baseUrl": "https://safebrowsing.googleapis.com/", 3 "baseUrl": "https://safebrowsing.googleapis.com/",
4 "batchPath": "batch", 4 "batchPath": "batch",
5 "description": "Enables client applications to check web resources (most com monly URLs) against Google-generated lists of unsafe web resources.", 5 "description": "Enables client applications to check web resources (most com monly URLs) against Google-generated lists of unsafe web resources.",
6 "discoveryVersion": "v1", 6 "discoveryVersion": "v1",
7 "documentationLink": "https://developers.google.com/safe-browsing/", 7 "documentationLink": "https://developers.google.com/safe-browsing/",
8 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/sNqN0JiWP8e28tYjOdGK7QuKa18\"", 8 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/Yoew02BLq1-_QyzwsVjtSdddocY\"",
9 "icons": { 9 "icons": {
10 "x16": "http://www.google.com/images/icons/product/search-16.gif", 10 "x16": "http://www.google.com/images/icons/product/search-16.gif",
11 "x32": "http://www.google.com/images/icons/product/search-32.gif" 11 "x32": "http://www.google.com/images/icons/product/search-32.gif"
12 }, 12 },
13 "id": "safebrowsing:v4", 13 "id": "safebrowsing:v4",
14 "kind": "discovery#restDescription", 14 "kind": "discovery#restDescription",
15 "name": "safebrowsing", 15 "name": "safebrowsing",
16 "ownerDomain": "google.com", 16 "ownerDomain": "google.com",
17 "ownerName": "Google", 17 "ownerName": "Google",
18 "parameters": { 18 "parameters": {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 "httpMethod": "GET", 151 "httpMethod": "GET",
152 "id": "safebrowsing.threatLists.list", 152 "id": "safebrowsing.threatLists.list",
153 "path": "v4/threatLists", 153 "path": "v4/threatLists",
154 "response": { 154 "response": {
155 "$ref": "ListThreatListsResponse" 155 "$ref": "ListThreatListsResponse"
156 } 156 }
157 } 157 }
158 } 158 }
159 } 159 }
160 }, 160 },
161 "revision": "20160428", 161 "revision": "20160520",
162 "rootUrl": "https://safebrowsing.googleapis.com/", 162 "rootUrl": "https://safebrowsing.googleapis.com/",
163 "schemas": { 163 "schemas": {
164 "FindThreatMatchesRequest": { 164 "FindThreatMatchesRequest": {
165 "description": "Request to check entries against lists.", 165 "description": "Request to check entries against lists.",
166 "id": "FindThreatMatchesRequest", 166 "id": "FindThreatMatchesRequest",
167 "properties": { 167 "properties": {
168 "client": { 168 "client": {
169 "$ref": "ClientInfo", 169 "$ref": "ClientInfo",
170 "description": "The client metadata." 170 "description": "The client metadata."
171 }, 171 },
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 }, 216 },
217 "type": "array" 217 "type": "array"
218 }, 218 },
219 "platformTypes": { 219 "platformTypes": {
220 "description": "The platform types to be checked.", 220 "description": "The platform types to be checked.",
221 "enumDescriptions": [ 221 "enumDescriptions": [
222 "Unknown platform.", 222 "Unknown platform.",
223 "Threat posed to Windows.", 223 "Threat posed to Windows.",
224 "Threat posed to Linux.", 224 "Threat posed to Linux.",
225 "Threat posed to Android.", 225 "Threat posed to Android.",
226 "Threat posed to OSX.", 226 "Threat posed to OS X.",
227 "Threat posed to iOS.", 227 "Threat posed to iOS.",
228 "Threat posed to at least one of the defined platforms." , 228 "Threat posed to at least one of the defined platforms." ,
229 "Threat posed to all defined platforms.", 229 "Threat posed to all defined platforms.",
230 "Threat posed to Chrome." 230 "Threat posed to Chrome."
231 ], 231 ],
232 "items": { 232 "items": {
233 "enum": [ 233 "enum": [
234 "PLATFORM_TYPE_UNSPECIFIED", 234 "PLATFORM_TYPE_UNSPECIFIED",
235 "WINDOWS", 235 "WINDOWS",
236 "LINUX", 236 "LINUX",
237 "ANDROID", 237 "ANDROID",
238 "OSX", 238 "OSX",
239 "IOS", 239 "IOS",
240 "ANY_PLATFORM", 240 "ANY_PLATFORM",
241 "ALL_PLATFORMS", 241 "ALL_PLATFORMS",
242 "CHROME" 242 "CHROME"
243 ], 243 ],
244 "type": "string" 244 "type": "string"
245 }, 245 },
246 "type": "array" 246 "type": "array"
247 }, 247 },
248 "threatEntryTypes": { 248 "threatEntryTypes": {
249 "description": "The entry types to be checked.", 249 "description": "The entry types to be checked.",
250 "enumDescriptions": [ 250 "enumDescriptions": [
251 "Unspecified.", 251 "Unspecified.",
252 "A host-suffix/path-prefix URL expression; for example, \"foo.bar.com/baz/\".", 252 "A URL.",
253 "The digest of a binary.", 253 "An executable program.",
254 "An IP range." 254 "An IP range."
255 ], 255 ],
256 "items": { 256 "items": {
257 "enum": [ 257 "enum": [
258 "THREAT_ENTRY_TYPE_UNSPECIFIED", 258 "THREAT_ENTRY_TYPE_UNSPECIFIED",
259 "URL_EXPRESSION", 259 "URL",
260 "BINARY_DIGEST", 260 "EXECUTABLE",
261 "IP_RANGE" 261 "IP_RANGE"
262 ], 262 ],
263 "type": "string" 263 "type": "string"
264 }, 264 },
265 "type": "array" 265 "type": "array"
266 }, 266 },
267 "threatEntries": { 267 "threatEntries": {
268 "description": "The threat entries to be checked.", 268 "description": "The threat entries to be checked.",
269 "items": { 269 "items": {
270 "$ref": "ThreatEntry" 270 "$ref": "ThreatEntry"
271 }, 271 },
272 "type": "array" 272 "type": "array"
273 } 273 }
274 }, 274 },
275 "type": "object" 275 "type": "object"
276 }, 276 },
277 "ThreatEntry": { 277 "ThreatEntry": {
278 "description": "An individual threat; for example, a malicious URL o r its hash representation. Only one of these fields should be set.", 278 "description": "An individual threat; for example, a malicious URL o r its hash representation. Only one of these fields should be set.",
279 "id": "ThreatEntry", 279 "id": "ThreatEntry",
280 "properties": { 280 "properties": {
281 "hash": { 281 "hash": {
282 "description": "A hash prefix, consisting of the most signif icant 4-32 bytes of a SHA256 hash.", 282 "description": "A hash prefix, consisting of the most signif icant 4-32 bytes of a SHA256 hash. This field is in binary format.",
283 "format": "byte", 283 "format": "byte",
284 "type": "string" 284 "type": "string"
285 }, 285 },
286 "url": { 286 "url": {
287 "description": "A URL.", 287 "description": "A URL.",
288 "type": "string" 288 "type": "string"
289 },
290 "digest": {
291 "description": "The digest of an executable in SHA256 format . The API supports both binary and hex digests.",
292 "format": "byte",
293 "type": "string"
289 } 294 }
290 }, 295 },
291 "type": "object" 296 "type": "object"
292 }, 297 },
293 "FindThreatMatchesResponse": { 298 "FindThreatMatchesResponse": {
294 "description": "Response type for requests to find threat matches.",
295 "id": "FindThreatMatchesResponse", 299 "id": "FindThreatMatchesResponse",
296 "properties": { 300 "properties": {
297 "matches": { 301 "matches": {
298 "description": "The threat list matches.", 302 "description": "The threat list matches.",
299 "items": { 303 "items": {
300 "$ref": "ThreatMatch" 304 "$ref": "ThreatMatch"
301 }, 305 },
302 "type": "array" 306 "type": "array"
303 } 307 }
304 }, 308 },
(...skipping 26 matching lines...) Expand all
331 "ANY_PLATFORM", 335 "ANY_PLATFORM",
332 "ALL_PLATFORMS", 336 "ALL_PLATFORMS",
333 "CHROME" 337 "CHROME"
334 ], 338 ],
335 "type": "string" 339 "type": "string"
336 }, 340 },
337 "threatEntryType": { 341 "threatEntryType": {
338 "description": "The threat entry type matching this threat." , 342 "description": "The threat entry type matching this threat." ,
339 "enum": [ 343 "enum": [
340 "THREAT_ENTRY_TYPE_UNSPECIFIED", 344 "THREAT_ENTRY_TYPE_UNSPECIFIED",
341 "URL_EXPRESSION", 345 "URL",
342 "BINARY_DIGEST", 346 "EXECUTABLE",
343 "IP_RANGE" 347 "IP_RANGE"
344 ], 348 ],
345 "type": "string" 349 "type": "string"
346 }, 350 },
347 "threat": { 351 "threat": {
348 "$ref": "ThreatEntry", 352 "$ref": "ThreatEntry",
349 "description": "The threat matching this threat." 353 "description": "The threat matching this threat."
350 }, 354 },
351 "threatEntryMetadata": { 355 "threatEntryMetadata": {
352 "$ref": "ThreatEntryMetadata", 356 "$ref": "ThreatEntryMetadata",
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 "ANY_PLATFORM", 439 "ANY_PLATFORM",
436 "ALL_PLATFORMS", 440 "ALL_PLATFORMS",
437 "CHROME" 441 "CHROME"
438 ], 442 ],
439 "type": "string" 443 "type": "string"
440 }, 444 },
441 "threatEntryType": { 445 "threatEntryType": {
442 "description": "The types of entries present in the list.", 446 "description": "The types of entries present in the list.",
443 "enum": [ 447 "enum": [
444 "THREAT_ENTRY_TYPE_UNSPECIFIED", 448 "THREAT_ENTRY_TYPE_UNSPECIFIED",
445 "URL_EXPRESSION", 449 "URL",
446 "BINARY_DIGEST", 450 "EXECUTABLE",
447 "IP_RANGE" 451 "IP_RANGE"
448 ], 452 ],
449 "type": "string" 453 "type": "string"
450 }, 454 },
451 "state": { 455 "state": {
452 "description": "The current state of the client for the requ ested list (the encrypted ClientState that was sent to the client from the previ ous update request).", 456 "description": "The current state of the client for the requ ested list (the encrypted client state that was received from the last successfu l list update).",
453 "format": "byte", 457 "format": "byte",
454 "type": "string" 458 "type": "string"
455 }, 459 },
456 "constraints": { 460 "constraints": {
457 "$ref": "Constraints", 461 "$ref": "Constraints",
458 "description": "The constraints associated with this request ." 462 "description": "The constraints associated with this request ."
459 } 463 }
460 }, 464 },
461 "type": "object" 465 "type": "object"
462 }, 466 },
(...skipping 29 matching lines...) Expand all
492 "RICE" 496 "RICE"
493 ], 497 ],
494 "type": "string" 498 "type": "string"
495 }, 499 },
496 "type": "array" 500 "type": "array"
497 } 501 }
498 }, 502 },
499 "type": "object" 503 "type": "object"
500 }, 504 },
501 "FetchThreatListUpdatesResponse": { 505 "FetchThreatListUpdatesResponse": {
502 "description": "Response type for threat list update requests.",
503 "id": "FetchThreatListUpdatesResponse", 506 "id": "FetchThreatListUpdatesResponse",
504 "properties": { 507 "properties": {
505 "listUpdateResponses": { 508 "listUpdateResponses": {
506 "description": "The list updates requested by the clients.", 509 "description": "The list updates requested by the clients.",
507 "items": { 510 "items": {
508 "$ref": "ListUpdateResponse" 511 "$ref": "ListUpdateResponse"
509 }, 512 },
510 "type": "array" 513 "type": "array"
511 }, 514 },
512 "minimumWaitDuration": { 515 "minimumWaitDuration": {
(...skipping 15 matching lines...) Expand all
528 "SOCIAL_ENGINEERING", 531 "SOCIAL_ENGINEERING",
529 "UNWANTED_SOFTWARE", 532 "UNWANTED_SOFTWARE",
530 "POTENTIALLY_HARMFUL_APPLICATION" 533 "POTENTIALLY_HARMFUL_APPLICATION"
531 ], 534 ],
532 "type": "string" 535 "type": "string"
533 }, 536 },
534 "threatEntryType": { 537 "threatEntryType": {
535 "description": "The format of the threats.", 538 "description": "The format of the threats.",
536 "enum": [ 539 "enum": [
537 "THREAT_ENTRY_TYPE_UNSPECIFIED", 540 "THREAT_ENTRY_TYPE_UNSPECIFIED",
538 "URL_EXPRESSION", 541 "URL",
539 "BINARY_DIGEST", 542 "EXECUTABLE",
540 "IP_RANGE" 543 "IP_RANGE"
541 ], 544 ],
542 "type": "string" 545 "type": "string"
543 }, 546 },
544 "platformType": { 547 "platformType": {
545 "description": "The platform type for which data is returned .", 548 "description": "The platform type for which data is returned .",
546 "enum": [ 549 "enum": [
547 "PLATFORM_TYPE_UNSPECIFIED", 550 "PLATFORM_TYPE_UNSPECIFIED",
548 "WINDOWS", 551 "WINDOWS",
549 "LINUX", 552 "LINUX",
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 "RiceDeltaEncoding": { 661 "RiceDeltaEncoding": {
659 "description": "The Rice-Golomb encoded data. Used for sending compr essed 4-byte hashes or compressed removal indices.", 662 "description": "The Rice-Golomb encoded data. Used for sending compr essed 4-byte hashes or compressed removal indices.",
660 "id": "RiceDeltaEncoding", 663 "id": "RiceDeltaEncoding",
661 "properties": { 664 "properties": {
662 "firstValue": { 665 "firstValue": {
663 "description": "The offset of the first entry in the encoded data, or, if only a single integer was encoded, that single integer's value.", 666 "description": "The offset of the first entry in the encoded data, or, if only a single integer was encoded, that single integer's value.",
664 "format": "int64", 667 "format": "int64",
665 "type": "string" 668 "type": "string"
666 }, 669 },
667 "riceParameter": { 670 "riceParameter": {
668 "description": "The Golomb-Rice parameter which is a number between 2 and 28. This field is missing (that is, zero) if num_entries is zero." , 671 "description": "The Golomb-Rice parameter, which is a number between 2 and 28. This field is missing (that is, zero) if `num_entries` is zer o.",
669 "format": "int32", 672 "format": "int32",
670 "type": "integer" 673 "type": "integer"
671 }, 674 },
672 "numEntries": { 675 "numEntries": {
673 "description": "The number of entries that are delta encoded in the encoded data. If only a single integer was encoded, this will be zero an d the single value will be stored in first_value.", 676 "description": "The number of entries that are delta encoded in the encoded data. If only a single integer was encoded, this will be zero an d the single value will be stored in `first_value`.",
674 "format": "int32", 677 "format": "int32",
675 "type": "integer" 678 "type": "integer"
676 }, 679 },
677 "encodedData": { 680 "encodedData": {
678 "description": "The encoded deltas that are encoded using th e Golomb-Rice coder.", 681 "description": "The encoded deltas that are encoded using th e Golomb-Rice coder.",
679 "format": "byte", 682 "format": "byte",
680 "type": "string" 683 "type": "string"
681 } 684 }
682 }, 685 },
683 "type": "object" 686 "type": "object"
(...skipping 27 matching lines...) Expand all
711 "type": "array" 714 "type": "array"
712 }, 715 },
713 "threatInfo": { 716 "threatInfo": {
714 "$ref": "ThreatInfo", 717 "$ref": "ThreatInfo",
715 "description": "The lists and hashes to be checked." 718 "description": "The lists and hashes to be checked."
716 } 719 }
717 }, 720 },
718 "type": "object" 721 "type": "object"
719 }, 722 },
720 "FindFullHashesResponse": { 723 "FindFullHashesResponse": {
721 "description": "Response type for requests to find full hashes.",
722 "id": "FindFullHashesResponse", 724 "id": "FindFullHashesResponse",
723 "properties": { 725 "properties": {
724 "matches": { 726 "matches": {
725 "description": "The full hashes that matched the requested p refixes.", 727 "description": "The full hashes that matched the requested p refixes.",
726 "items": { 728 "items": {
727 "$ref": "ThreatMatch" 729 "$ref": "ThreatMatch"
728 }, 730 },
729 "type": "array" 731 "type": "array"
730 }, 732 },
731 "minimumWaitDuration": { 733 "minimumWaitDuration": {
732 "description": "The minimum duration the client must wait be fore issuing any find hashes request. If this field is not set, clients can issu e a request as soon as they want.", 734 "description": "The minimum duration the client must wait be fore issuing any find hashes request. If this field is not set, clients can issu e a request as soon as they want.",
733 "type": "string" 735 "type": "string"
734 }, 736 },
735 "negativeCacheDuration": { 737 "negativeCacheDuration": {
736 "description": "For requested entities that did not match th e threat list, how long to cache the response.", 738 "description": "For requested entities that did not match th e threat list, how long to cache the response.",
737 "type": "string" 739 "type": "string"
738 } 740 }
739 }, 741 },
740 "type": "object" 742 "type": "object"
741 }, 743 },
742 "ListThreatListsResponse": { 744 "ListThreatListsResponse": {
743 "description": "A collection of lists available for download by the client.",
744 "id": "ListThreatListsResponse", 745 "id": "ListThreatListsResponse",
745 "properties": { 746 "properties": {
746 "threatLists": { 747 "threatLists": {
747 "description": "The lists available for download by the clie nt.", 748 "description": "The lists available for download by the clie nt.",
748 "items": { 749 "items": {
749 "$ref": "ThreatListDescriptor" 750 "$ref": "ThreatListDescriptor"
750 }, 751 },
751 "type": "array" 752 "type": "array"
752 } 753 }
753 }, 754 },
(...skipping 26 matching lines...) Expand all
780 "ANY_PLATFORM", 781 "ANY_PLATFORM",
781 "ALL_PLATFORMS", 782 "ALL_PLATFORMS",
782 "CHROME" 783 "CHROME"
783 ], 784 ],
784 "type": "string" 785 "type": "string"
785 }, 786 },
786 "threatEntryType": { 787 "threatEntryType": {
787 "description": "The entry types contained in the list.", 788 "description": "The entry types contained in the list.",
788 "enum": [ 789 "enum": [
789 "THREAT_ENTRY_TYPE_UNSPECIFIED", 790 "THREAT_ENTRY_TYPE_UNSPECIFIED",
790 "URL_EXPRESSION", 791 "URL",
791 "BINARY_DIGEST", 792 "EXECUTABLE",
792 "IP_RANGE" 793 "IP_RANGE"
793 ], 794 ],
794 "type": "string" 795 "type": "string"
795 } 796 }
796 }, 797 },
797 "type": "object" 798 "type": "object"
798 } 799 }
799 }, 800 },
800 "servicePath": "", 801 "servicePath": "",
801 "title": "Safe Browsing APIs", 802 "title": "Safe Browsing APIs",
802 "version": "v4" 803 "version": "v4"
803 } 804 }
OLDNEW
« no previous file with comments | « discovery/googleapis/prediction__v1.6.json ('k') | discovery/googleapis/sheets__v4.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698