class Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatMatch

A match when checking a threat entry in the Safe Browsing threat lists.

Attributes

cache_duration[RW]

The cache lifetime for the returned match. Clients must not cache this response for more than this duration to avoid false positives. Corresponds to the JSON property `cacheDuration` @return [String]

platform_type[RW]

The platform type matching this threat. Corresponds to the JSON property `platformType` @return [String]

threat[RW]

An individual threat; for example, a malicious URL or its hash representation. Only one of these fields should be set. Corresponds to the JSON property `threat` @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry]

threat_entry_metadata[RW]

The metadata associated with a specific threat entry. The client is expected to know the metadata key/value pairs associated with each threat type. Corresponds to the JSON property `threatEntryMetadata` @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadata]

threat_entry_type[RW]

The threat entry type matching this threat. Corresponds to the JSON property `threatEntryType` @return [String]

threat_type[RW]

The threat type matching this threat. Corresponds to the JSON property `threatType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/safebrowsing_v4/classes.rb, line 897
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/safebrowsing_v4/classes.rb, line 902
def update!(**args)
  @cache_duration = args[:cache_duration] if args.key?(:cache_duration)
  @platform_type = args[:platform_type] if args.key?(:platform_type)
  @threat = args[:threat] if args.key?(:threat)
  @threat_entry_metadata = args[:threat_entry_metadata] if args.key?(:threat_entry_metadata)
  @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type)
  @threat_type = args[:threat_type] if args.key?(:threat_type)
end