Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHit

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/safebrowsing_v4/classes.rb,
generated/google/apis/safebrowsing_v4/representations.rb,
generated/google/apis/safebrowsing_v4/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatHit

Returns a new instance of GoogleSecuritySafebrowsingV4ThreatHit.



707
708
709
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 707

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#client_infoGoogle::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo

The client metadata associated with Safe Browsing API requests. Corresponds to the JSON property clientInfo



679
680
681
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 679

def client_info
  @client_info
end

#entryGoogle::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry

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



685
686
687
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 685

def entry
  @entry
end

#platform_typeString

The platform type reported. Corresponds to the JSON property platformType

Returns:

  • (String)


690
691
692
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 690

def platform_type
  @platform_type
end

#resourcesArray<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitThreatSource>

The resources related to the threat hit. Corresponds to the JSON property resources



695
696
697
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 695

def resources
  @resources
end

#threat_typeString

The threat type reported. Corresponds to the JSON property threatType

Returns:

  • (String)


700
701
702
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 700

def threat_type
  @threat_type
end

#user_infoGoogle::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitUserInfo

Details about the user that encountered the threat. Corresponds to the JSON property userInfo



705
706
707
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 705

def 
  @user_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



712
713
714
715
716
717
718
719
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 712

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