class Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHit

Attributes

client_info[RW]

The client metadata associated with Safe Browsing API requests. Corresponds to the JSON property `clientInfo` @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo]

entry[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 `entry` @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry]

platform_type[RW]

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

resources[RW]

The resources related to the threat hit. Corresponds to the JSON property `resources` @return [Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitThreatSource>]

threat_type[RW]

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

user_info[RW]

Details about the user that encountered the threat. Corresponds to the JSON property `userInfo` @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitUserInfo]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/safebrowsing_v4/classes.rb, line 711
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 716
def update!(**args)
  @client_info = args[:client_info] if args.key?(:client_info)
  @entry = args[:entry] if args.key?(:entry)
  @platform_type = args[:platform_type] if args.key?(:platform_type)
  @resources = args[:resources] if args.key?(:resources)
  @threat_type = args[:threat_type] if args.key?(:threat_type)
  @user_info = args[:user_info] if args.key?(:user_info)
end