View Source GoogleApi.WebRisk.V1.Model.GoogleCloudWebriskV1SearchHashesResponseThreatHash (google_api_web_risk v0.3.0)

Contains threat information on a matching hash.

Attributes

  • expireTime (type: DateTime.t, default: nil) - The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.
  • hash (type: String.t, default: nil) - A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.
  • threatTypes (type: list(String.t), default: nil) - The ThreatList this threat belongs to. This must contain at least one entry.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.WebRisk.V1.Model.GoogleCloudWebriskV1SearchHashesResponseThreatHash{
    expireTime: DateTime.t() | nil,
    hash: String.t() | nil,
    threatTypes: [String.t()] | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.