class Google::Apis::WebriskV1::GoogleCloudWebriskV1SearchHashesResponseThreatHash
Contains threat information on a matching hash.
Attributes
expire_time[RW]
The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives. Corresponds to the JSON property `expireTime` @return [String]
hash_prop[RW]
A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded. Corresponds to the JSON property `hash` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]
threat_types[RW]
The ThreatList this threat belongs to. This must contain at least one entry. Corresponds to the JSON property `threatTypes` @return [Array<String>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/webrisk_v1/classes.rb, line 248 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/webrisk_v1/classes.rb, line 253 def update!(**args) @expire_time = args[:expire_time] if args.key?(:expire_time) @hash_prop = args[:hash_prop] if args.key?(:hash_prop) @threat_types = args[:threat_types] if args.key?(:threat_types) end