Index: discovery/googleapis/safebrowsing__v4.json |
diff --git a/discovery/googleapis/safebrowsing__v4.json b/discovery/googleapis/safebrowsing__v4.json |
index fcc4879840c54808deece22f501f3919a9dcb7a0..30121a06fb7dd56196dd96de7fb0140912cbf6cc 100644 |
--- a/discovery/googleapis/safebrowsing__v4.json |
+++ b/discovery/googleapis/safebrowsing__v4.json |
@@ -15,18 +15,45 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
- "uploadType": { |
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
+ "quotaUser": { |
+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pp": { |
+ "default": "true", |
+ "description": "Pretty-print response.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
+ "bearer_token": { |
+ "description": "OAuth bearer token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "oauth_token": { |
+ "description": "OAuth 2.0 token for the current user.", |
"location": "query", |
"type": "string" |
}, |
+ "upload_protocol": { |
+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "prettyPrint": { |
+ "default": "true", |
+ "description": "Returns response with indentations and line breaks.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
"fields": { |
"description": "Selector specifying which fields to include in a partial response.", |
"location": "query", |
"type": "string" |
}, |
- "callback": { |
- "description": "JSONP", |
+ "uploadType": { |
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
"location": "query", |
"type": "string" |
}, |
@@ -43,6 +70,11 @@ |
"location": "query", |
"type": "string" |
}, |
+ "callback": { |
+ "description": "JSONP", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"alt": { |
"default": "json", |
"description": "Data format for response.", |
@@ -68,38 +100,6 @@ |
"description": "OAuth access token.", |
"location": "query", |
"type": "string" |
- }, |
- "quotaUser": { |
- "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pp": { |
- "default": "true", |
- "description": "Pretty-print response.", |
- "location": "query", |
- "type": "boolean" |
- }, |
- "bearer_token": { |
- "description": "OAuth bearer token.", |
- "location": "query", |
- "type": "string" |
- }, |
- "oauth_token": { |
- "description": "OAuth 2.0 token for the current user.", |
- "location": "query", |
- "type": "string" |
- }, |
- "upload_protocol": { |
- "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
- "location": "query", |
- "type": "string" |
- }, |
- "prettyPrint": { |
- "default": "true", |
- "description": "Returns response with indentations and line breaks.", |
- "location": "query", |
- "type": "boolean" |
} |
}, |
"protocol": "rest", |
@@ -218,6 +218,11 @@ |
"encodedRequest" |
], |
"parameters": { |
+ "clientVersion": { |
+ "description": "The version of the client implementation.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"encodedRequest": { |
"description": "A serialized FetchThreatListUpdatesRequest proto.", |
"format": "byte", |
@@ -229,11 +234,6 @@ |
"description": "A client ID that uniquely identifies the client implementation of the Safe\nBrowsing API.", |
"location": "query", |
"type": "string" |
- }, |
- "clientVersion": { |
- "description": "The version of the client implementation.", |
- "location": "query", |
- "type": "string" |
} |
}, |
"path": "v4/encodedUpdates/{encodedRequest}", |
@@ -244,9 +244,176 @@ |
} |
} |
}, |
- "revision": "20170509", |
+ "revision": "20170608", |
"rootUrl": "https://safebrowsing.googleapis.com/", |
"schemas": { |
+ "ClientInfo": { |
+ "description": "The client metadata associated with Safe Browsing API requests.", |
+ "id": "ClientInfo", |
+ "properties": { |
+ "clientVersion": { |
+ "description": "The version of the client implementation.", |
+ "type": "string" |
+ }, |
+ "clientId": { |
+ "description": "A client ID that (hopefully) uniquely identifies the client implementation\nof the Safe Browsing API.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "FindThreatMatchesRequest": { |
+ "description": "Request to check entries against lists.", |
+ "id": "FindThreatMatchesRequest", |
+ "properties": { |
+ "threatInfo": { |
+ "$ref": "ThreatInfo", |
+ "description": "The lists and entries to be checked for matches." |
+ }, |
+ "client": { |
+ "$ref": "ClientInfo", |
+ "description": "The client metadata." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "ThreatInfo": { |
+ "description": "The information regarding one or more threats that a client submits when\nchecking for matches in threat lists.", |
+ "id": "ThreatInfo", |
+ "properties": { |
+ "threatEntryTypes": { |
+ "description": "The entry types to be checked.", |
+ "enumDescriptions": [ |
+ "Unspecified.", |
+ "A URL.", |
+ "An executable program.", |
+ "An IP range.", |
+ "Chrome extension.", |
+ "Filename.", |
+ "CERT" |
+ ], |
+ "items": { |
+ "enum": [ |
+ "THREAT_ENTRY_TYPE_UNSPECIFIED", |
+ "URL", |
+ "EXECUTABLE", |
+ "IP_RANGE", |
+ "CHROME_EXTENSION", |
+ "FILENAME", |
+ "CERT" |
+ ], |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ }, |
+ "threatTypes": { |
+ "description": "The threat types to be checked.", |
+ "enumDescriptions": [ |
+ "Unknown.", |
+ "Malware threat type.", |
+ "Social engineering threat type.", |
+ "Unwanted software threat type.", |
+ "Potentially harmful application threat type.", |
+ "Malicious binary threat type." |
+ ], |
+ "items": { |
+ "enum": [ |
+ "THREAT_TYPE_UNSPECIFIED", |
+ "MALWARE", |
+ "SOCIAL_ENGINEERING", |
+ "UNWANTED_SOFTWARE", |
+ "POTENTIALLY_HARMFUL_APPLICATION", |
+ "MALICIOUS_BINARY" |
+ ], |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ }, |
+ "platformTypes": { |
+ "description": "The platform types to be checked.", |
+ "enumDescriptions": [ |
+ "Unknown platform.", |
+ "Threat posed to Windows.", |
+ "Threat posed to Linux.", |
+ "Threat posed to Android.", |
+ "Threat posed to OS X.", |
+ "Threat posed to iOS.", |
+ "Threat posed to at least one of the defined platforms.", |
+ "Threat posed to all defined platforms.", |
+ "Threat posed to Chrome." |
+ ], |
+ "items": { |
+ "enum": [ |
+ "PLATFORM_TYPE_UNSPECIFIED", |
+ "WINDOWS", |
+ "LINUX", |
+ "ANDROID", |
+ "OSX", |
+ "IOS", |
+ "ANY_PLATFORM", |
+ "ALL_PLATFORMS", |
+ "CHROME" |
+ ], |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ }, |
+ "threatEntries": { |
+ "description": "The threat entries to be checked.", |
+ "items": { |
+ "$ref": "ThreatEntry" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "ThreatEntryMetadata": { |
+ "description": "The metadata associated with a specific threat entry. The client is expected\nto know the metadata key/value pairs associated with each threat type.", |
+ "id": "ThreatEntryMetadata", |
+ "properties": { |
+ "entries": { |
+ "description": "The metadata entries.", |
+ "items": { |
+ "$ref": "MetadataEntry" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "RawIndices": { |
+ "description": "A set of raw indices to remove from a local list.", |
+ "id": "RawIndices", |
+ "properties": { |
+ "indices": { |
+ "description": "The indices to remove from a lexicographically-sorted local list.", |
+ "items": { |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "RawHashes": { |
+ "description": "The uncompressed threat entries in hash format of a particular prefix length.\nHashes can be anywhere from 4 to 32 bytes in size. A large majority are 4\nbytes, but some hashes are lengthened if they collide with the hash of a\npopular URL.\n\nUsed for sending ThreatEntrySet to clients that do not support compression,\nor when sending non-4-byte hashes to clients that do support compression.", |
+ "id": "RawHashes", |
+ "properties": { |
+ "rawHashes": { |
+ "description": "The hashes, in binary format, concatenated into one long string. Hashes are\nsorted in lexicographic order. For JSON API users, hashes are\nbase64-encoded.", |
+ "format": "byte", |
+ "type": "string" |
+ }, |
+ "prefixSize": { |
+ "description": "The number of bytes for each prefix encoded below. This field can be\nanywhere from 4 (shortest prefix) to 32 (full SHA256 hash).", |
+ "format": "int32", |
+ "type": "integer" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
"FetchThreatListUpdatesResponse": { |
"id": "FetchThreatListUpdatesResponse", |
"properties": { |
@@ -265,9 +432,28 @@ |
}, |
"type": "object" |
}, |
+ "Checksum": { |
+ "description": "The expected state of a client's local database.", |
+ "id": "Checksum", |
+ "properties": { |
+ "sha256": { |
+ "description": "The SHA256 hash of the client state; that is, of the sorted list of all\nhashes present in the database.", |
+ "format": "byte", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
"FindFullHashesResponse": { |
"id": "FindFullHashesResponse", |
"properties": { |
+ "matches": { |
+ "description": "The full hashes that matched the requested prefixes.", |
+ "items": { |
+ "$ref": "ThreatMatch" |
+ }, |
+ "type": "array" |
+ }, |
"negativeCacheDuration": { |
"description": "For requested entities that did not match the threat list, how long to\ncache the response.", |
"format": "google-duration", |
@@ -277,25 +463,6 @@ |
"description": "The minimum duration the client must wait before issuing any find hashes\nrequest. If this field is not set, clients can issue a request as soon as\nthey want.", |
"format": "google-duration", |
"type": "string" |
- }, |
- "matches": { |
- "description": "The full hashes that matched the requested prefixes.", |
- "items": { |
- "$ref": "ThreatMatch" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "Checksum": { |
- "description": "The expected state of a client's local database.", |
- "id": "Checksum", |
- "properties": { |
- "sha256": { |
- "description": "The SHA256 hash of the client state; that is, of the sorted list of all\nhashes present in the database.", |
- "format": "byte", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -304,6 +471,18 @@ |
"description": "A set of threats that should be added or removed from a client's local\ndatabase.", |
"id": "ThreatEntrySet", |
"properties": { |
+ "rawIndices": { |
+ "$ref": "RawIndices", |
+ "description": "The raw removal indices for a local list." |
+ }, |
+ "rawHashes": { |
+ "$ref": "RawHashes", |
+ "description": "The raw SHA256-formatted entries." |
+ }, |
+ "riceHashes": { |
+ "$ref": "RiceDeltaEncoding", |
+ "description": "The encoded 4-byte prefixes of SHA256-formatted entries, using a\nGolomb-Rice encoding. The hashes are converted to uint32, sorted in\nascending order, then delta encoded and stored as encoded_data." |
+ }, |
"compressionType": { |
"description": "The compression type for the entries in this set.", |
"enum": [ |
@@ -321,18 +500,6 @@ |
"riceIndices": { |
"$ref": "RiceDeltaEncoding", |
"description": "The encoded local, lexicographically-sorted list indices, using a\nGolomb-Rice encoding. Used for sending compressed removal indices. The\nremoval indices (uint32) are sorted in ascending order, then delta encoded\nand stored as encoded_data." |
- }, |
- "rawIndices": { |
- "$ref": "RawIndices", |
- "description": "The raw removal indices for a local list." |
- }, |
- "rawHashes": { |
- "$ref": "RawHashes", |
- "description": "The raw SHA256-formatted entries." |
- }, |
- "riceHashes": { |
- "$ref": "RiceDeltaEncoding", |
- "description": "The encoded 4-byte prefixes of SHA256-formatted entries, using a\nGolomb-Rice encoding. The hashes are converted to uint32, sorted in\nascending order, then delta encoded and stored as encoded_data." |
} |
}, |
"type": "object" |
@@ -368,33 +535,6 @@ |
"description": "A single list update request.", |
"id": "ListUpdateRequest", |
"properties": { |
- "threatEntryType": { |
- "description": "The types of entries present in the list.", |
- "enum": [ |
- "THREAT_ENTRY_TYPE_UNSPECIFIED", |
- "URL", |
- "EXECUTABLE", |
- "IP_RANGE", |
- "CHROME_EXTENSION", |
- "FILENAME", |
- "CERT" |
- ], |
- "enumDescriptions": [ |
- "Unspecified.", |
- "A URL.", |
- "An executable program.", |
- "An IP range.", |
- "Chrome extension.", |
- "Filename.", |
- "CERT" |
- ], |
- "type": "string" |
- }, |
- "state": { |
- "description": "The current state of the client for the requested list (the encrypted\nclient state that was received from the last successful list update).", |
- "format": "byte", |
- "type": "string" |
- }, |
"platformType": { |
"description": "The type of platform at risk by entries present in the list.", |
"enum": [ |
@@ -428,20 +568,49 @@ |
"MALWARE", |
"SOCIAL_ENGINEERING", |
"UNWANTED_SOFTWARE", |
- "POTENTIALLY_HARMFUL_APPLICATION" |
+ "POTENTIALLY_HARMFUL_APPLICATION", |
+ "MALICIOUS_BINARY" |
], |
"enumDescriptions": [ |
"Unknown.", |
"Malware threat type.", |
"Social engineering threat type.", |
"Unwanted software threat type.", |
- "Potentially harmful application threat type." |
+ "Potentially harmful application threat type.", |
+ "Malicious binary threat type." |
], |
"type": "string" |
}, |
"constraints": { |
"$ref": "Constraints", |
"description": "The constraints associated with this request." |
+ }, |
+ "threatEntryType": { |
+ "description": "The types of entries present in the list.", |
+ "enum": [ |
+ "THREAT_ENTRY_TYPE_UNSPECIFIED", |
+ "URL", |
+ "EXECUTABLE", |
+ "IP_RANGE", |
+ "CHROME_EXTENSION", |
+ "FILENAME", |
+ "CERT" |
+ ], |
+ "enumDescriptions": [ |
+ "Unspecified.", |
+ "A URL.", |
+ "An executable program.", |
+ "An IP range.", |
+ "Chrome extension.", |
+ "Filename.", |
+ "CERT" |
+ ], |
+ "type": "string" |
+ }, |
+ "state": { |
+ "description": "The current state of the client for the requested list (the encrypted\nclient state that was received from the last successful list update).", |
+ "format": "byte", |
+ "type": "string" |
} |
}, |
"type": "object" |
@@ -468,6 +637,18 @@ |
"description": "An update to an individual list.", |
"id": "ListUpdateResponse", |
"properties": { |
+ "newClientState": { |
+ "description": "The new client state, in encrypted format. Opaque to clients.", |
+ "format": "byte", |
+ "type": "string" |
+ }, |
+ "removals": { |
+ "description": "A set of entries to remove from a local threat type's list. In practice,\nthis field is empty or contains exactly one ThreatEntrySet.", |
+ "items": { |
+ "$ref": "ThreatEntrySet" |
+ }, |
+ "type": "array" |
+ }, |
"platformType": { |
"description": "The platform type for which data is returned.", |
"enum": [ |
@@ -548,28 +729,18 @@ |
"MALWARE", |
"SOCIAL_ENGINEERING", |
"UNWANTED_SOFTWARE", |
- "POTENTIALLY_HARMFUL_APPLICATION" |
+ "POTENTIALLY_HARMFUL_APPLICATION", |
+ "MALICIOUS_BINARY" |
], |
"enumDescriptions": [ |
"Unknown.", |
"Malware threat type.", |
"Social engineering threat type.", |
"Unwanted software threat type.", |
- "Potentially harmful application threat type." |
+ "Potentially harmful application threat type.", |
+ "Malicious binary threat type." |
], |
"type": "string" |
- }, |
- "removals": { |
- "description": "A set of entries to remove from a local threat type's list. In practice,\nthis field is empty or contains exactly one ThreatEntrySet.", |
- "items": { |
- "$ref": "ThreatEntrySet" |
- }, |
- "type": "array" |
- }, |
- "newClientState": { |
- "description": "The new client state, in encrypted format. Opaque to clients.", |
- "format": "byte", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -616,6 +787,28 @@ |
"description": "A match when checking a threat entry in the Safe Browsing threat lists.", |
"id": "ThreatMatch", |
"properties": { |
+ "threatEntryType": { |
+ "description": "The threat entry type matching this threat.", |
+ "enum": [ |
+ "THREAT_ENTRY_TYPE_UNSPECIFIED", |
+ "URL", |
+ "EXECUTABLE", |
+ "IP_RANGE", |
+ "CHROME_EXTENSION", |
+ "FILENAME", |
+ "CERT" |
+ ], |
+ "enumDescriptions": [ |
+ "Unspecified.", |
+ "A URL.", |
+ "An executable program.", |
+ "An IP range.", |
+ "Chrome extension.", |
+ "Filename.", |
+ "CERT" |
+ ], |
+ "type": "string" |
+ }, |
"cacheDuration": { |
"description": "The cache lifetime for the returned match. Clients must not cache this\nresponse for more than this duration to avoid false positives.", |
"format": "google-duration", |
@@ -628,14 +821,16 @@ |
"MALWARE", |
"SOCIAL_ENGINEERING", |
"UNWANTED_SOFTWARE", |
- "POTENTIALLY_HARMFUL_APPLICATION" |
+ "POTENTIALLY_HARMFUL_APPLICATION", |
+ "MALICIOUS_BINARY" |
], |
"enumDescriptions": [ |
"Unknown.", |
"Malware threat type.", |
"Social engineering threat type.", |
"Unwanted software threat type.", |
- "Potentially harmful application threat type." |
+ "Potentially harmful application threat type.", |
+ "Malicious binary threat type." |
], |
"type": "string" |
}, |
@@ -672,28 +867,19 @@ |
"Threat posed to Chrome." |
], |
"type": "string" |
- }, |
- "threatEntryType": { |
- "description": "The threat entry type matching this threat.", |
- "enum": [ |
- "THREAT_ENTRY_TYPE_UNSPECIFIED", |
- "URL", |
- "EXECUTABLE", |
- "IP_RANGE", |
- "CHROME_EXTENSION", |
- "FILENAME", |
- "CERT" |
- ], |
- "enumDescriptions": [ |
- "Unspecified.", |
- "A URL.", |
- "An executable program.", |
- "An IP range.", |
- "Chrome extension.", |
- "Filename.", |
- "CERT" |
- ], |
- "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "ListThreatListsResponse": { |
+ "id": "ListThreatListsResponse", |
+ "properties": { |
+ "threatLists": { |
+ "description": "The lists available for download by the client.", |
+ "items": { |
+ "$ref": "ThreatListDescriptor" |
+ }, |
+ "type": "array" |
} |
}, |
"type": "object" |
@@ -725,19 +911,6 @@ |
}, |
"type": "object" |
}, |
- "ListThreatListsResponse": { |
- "id": "ListThreatListsResponse", |
- "properties": { |
- "threatLists": { |
- "description": "The lists available for download by the client.", |
- "items": { |
- "$ref": "ThreatListDescriptor" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
"FindThreatMatchesResponse": { |
"id": "FindThreatMatchesResponse", |
"properties": { |
@@ -755,6 +928,10 @@ |
"description": "An individual threat; for example, a malicious URL or its hash\nrepresentation. Only one of these fields should be set.", |
"id": "ThreatEntry", |
"properties": { |
+ "url": { |
+ "description": "A URL.", |
+ "type": "string" |
+ }, |
"digest": { |
"description": "The digest of an executable in SHA256 format. The API supports both\nbinary and hex digests. For JSON requests, digests are base64-encoded.", |
"format": "byte", |
@@ -764,10 +941,6 @@ |
"description": "A hash prefix, consisting of the most significant 4-32 bytes of a SHA256\nhash. This field is in binary format. For JSON requests, hashes are\nbase64-encoded.", |
"format": "byte", |
"type": "string" |
- }, |
- "url": { |
- "description": "A URL.", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -809,14 +982,16 @@ |
"MALWARE", |
"SOCIAL_ENGINEERING", |
"UNWANTED_SOFTWARE", |
- "POTENTIALLY_HARMFUL_APPLICATION" |
+ "POTENTIALLY_HARMFUL_APPLICATION", |
+ "MALICIOUS_BINARY" |
], |
"enumDescriptions": [ |
"Unknown.", |
"Malware threat type.", |
"Social engineering threat type.", |
"Unwanted software threat type.", |
- "Potentially harmful application threat type." |
+ "Potentially harmful application threat type.", |
+ "Malicious binary threat type." |
], |
"type": "string" |
}, |
@@ -861,171 +1036,6 @@ |
} |
}, |
"type": "object" |
- }, |
- "ClientInfo": { |
- "description": "The client metadata associated with Safe Browsing API requests.", |
- "id": "ClientInfo", |
- "properties": { |
- "clientId": { |
- "description": "A client ID that (hopefully) uniquely identifies the client implementation\nof the Safe Browsing API.", |
- "type": "string" |
- }, |
- "clientVersion": { |
- "description": "The version of the client implementation.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "ThreatInfo": { |
- "description": "The information regarding one or more threats that a client submits when\nchecking for matches in threat lists.", |
- "id": "ThreatInfo", |
- "properties": { |
- "threatEntryTypes": { |
- "description": "The entry types to be checked.", |
- "enumDescriptions": [ |
- "Unspecified.", |
- "A URL.", |
- "An executable program.", |
- "An IP range.", |
- "Chrome extension.", |
- "Filename.", |
- "CERT" |
- ], |
- "items": { |
- "enum": [ |
- "THREAT_ENTRY_TYPE_UNSPECIFIED", |
- "URL", |
- "EXECUTABLE", |
- "IP_RANGE", |
- "CHROME_EXTENSION", |
- "FILENAME", |
- "CERT" |
- ], |
- "type": "string" |
- }, |
- "type": "array" |
- }, |
- "threatTypes": { |
- "description": "The threat types to be checked.", |
- "enumDescriptions": [ |
- "Unknown.", |
- "Malware threat type.", |
- "Social engineering threat type.", |
- "Unwanted software threat type.", |
- "Potentially harmful application threat type." |
- ], |
- "items": { |
- "enum": [ |
- "THREAT_TYPE_UNSPECIFIED", |
- "MALWARE", |
- "SOCIAL_ENGINEERING", |
- "UNWANTED_SOFTWARE", |
- "POTENTIALLY_HARMFUL_APPLICATION" |
- ], |
- "type": "string" |
- }, |
- "type": "array" |
- }, |
- "platformTypes": { |
- "description": "The platform types to be checked.", |
- "enumDescriptions": [ |
- "Unknown platform.", |
- "Threat posed to Windows.", |
- "Threat posed to Linux.", |
- "Threat posed to Android.", |
- "Threat posed to OS X.", |
- "Threat posed to iOS.", |
- "Threat posed to at least one of the defined platforms.", |
- "Threat posed to all defined platforms.", |
- "Threat posed to Chrome." |
- ], |
- "items": { |
- "enum": [ |
- "PLATFORM_TYPE_UNSPECIFIED", |
- "WINDOWS", |
- "LINUX", |
- "ANDROID", |
- "OSX", |
- "IOS", |
- "ANY_PLATFORM", |
- "ALL_PLATFORMS", |
- "CHROME" |
- ], |
- "type": "string" |
- }, |
- "type": "array" |
- }, |
- "threatEntries": { |
- "description": "The threat entries to be checked.", |
- "items": { |
- "$ref": "ThreatEntry" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "FindThreatMatchesRequest": { |
- "description": "Request to check entries against lists.", |
- "id": "FindThreatMatchesRequest", |
- "properties": { |
- "client": { |
- "$ref": "ClientInfo", |
- "description": "The client metadata." |
- }, |
- "threatInfo": { |
- "$ref": "ThreatInfo", |
- "description": "The lists and entries to be checked for matches." |
- } |
- }, |
- "type": "object" |
- }, |
- "ThreatEntryMetadata": { |
- "description": "The metadata associated with a specific threat entry. The client is expected\nto know the metadata key/value pairs associated with each threat type.", |
- "id": "ThreatEntryMetadata", |
- "properties": { |
- "entries": { |
- "description": "The metadata entries.", |
- "items": { |
- "$ref": "MetadataEntry" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "RawIndices": { |
- "description": "A set of raw indices to remove from a local list.", |
- "id": "RawIndices", |
- "properties": { |
- "indices": { |
- "description": "The indices to remove from a lexicographically-sorted local list.", |
- "items": { |
- "format": "int32", |
- "type": "integer" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "RawHashes": { |
- "description": "The uncompressed threat entries in hash format of a particular prefix length.\nHashes can be anywhere from 4 to 32 bytes in size. A large majority are 4\nbytes, but some hashes are lengthened if they collide with the hash of a\npopular URL.\n\nUsed for sending ThreatEntrySet to clients that do not support compression,\nor when sending non-4-byte hashes to clients that do support compression.", |
- "id": "RawHashes", |
- "properties": { |
- "prefixSize": { |
- "description": "The number of bytes for each prefix encoded below. This field can be\nanywhere from 4 (shortest prefix) to 32 (full SHA256 hash).", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "rawHashes": { |
- "description": "The hashes, in binary format, concatenated into one long string. Hashes are\nsorted in lexicographic order. For JSON API users, hashes are\nbase64-encoded.", |
- "format": "byte", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
} |
}, |
"servicePath": "", |