API documentation for webrisk_v1.types
package.
Classes
CompressionType
The ways in which threat entry sets can be compressed.
ComputeThreatListDiffRequest
Describes an API diff request. .. attribute:: threat_type
Required. The threat list to update. Only a single ThreatType should be specified.
ComputeThreatListDiffResponse
CreateSubmissionRequest
Request to send a potentially phishy URI to WebRisk. .. attribute:: parent
Required. The name of the project that is making the submission. This string is in the format "projects/{project_number}".
:type: str
RawHashes
The uncompressed threat entries in hash format. 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 URI.
Used for sending ThreatEntryAdditons to clients that do not support compression, or when sending non-4-byte hashes to clients that do support compression.
RawIndices
A set of raw indices to remove from a local list. .. attribute:: indices
The indices to remove from a lexicographically-sorted local list.
:type: Sequence[int]
RiceDeltaEncoding
The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or compressed removal indices.
SearchHashesRequest
Request to return full hashes matched by the provided hash prefixes.
SearchHashesResponse
SearchUrisRequest
Request to check URI entries against threatLists. .. attribute:: uri
Required. The URI to be checked for matches.
:type: str
SearchUrisResponse
Submission
Wraps a URI that might be displaying phishing content. .. attribute:: uri
Required. The URI that is being reported for phishing content to be analyzed.
:type: str
ThreatEntryAdditions
Contains the set of entries to add to a local database. May contain a combination of compressed and raw data in a single response.
ThreatEntryRemovals
Contains the set of entries to remove from a local database. .. attribute:: raw_indices
The raw removal indices for a local list.
ThreatType
The type of threat. This maps dirrectly to the threat list a threat may belong to.