Class ThreatHash (1.0.1)

ThreatHash(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Contains threat information on a matching hash.

Attributes

NameDescription
threat_types Sequence[.webrisk.ThreatType]
The ThreatList this threat belongs to. This must contain at least one entry.
hash bytes
A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.
expire_time .timestamp.Timestamp
The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.