Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHit
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHit
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/safebrowsing_v4/classes.rb,
lib/google/apis/safebrowsing_v4/representations.rb,
lib/google/apis/safebrowsing_v4/representations.rb
Instance Attribute Summary collapse
-
#client_info ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo
The client metadata associated with Safe Browsing API requests.
-
#entry ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry
An individual threat; for example, a malicious URL or its hash representation.
-
#platform_type ⇒ String
The platform type reported.
-
#resources ⇒ Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitThreatSource>
The resources related to the threat hit.
-
#threat_type ⇒ String
The threat type reported.
-
#user_info ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitUserInfo
Details about the user that encountered the threat.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatHit
constructor
A new instance of GoogleSecuritySafebrowsingV4ThreatHit.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatHit
Returns a new instance of GoogleSecuritySafebrowsingV4ThreatHit.
710 711 712 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 710 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_info ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo
The client metadata associated with Safe Browsing API requests.
Corresponds to the JSON property clientInfo
682 683 684 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 682 def client_info @client_info end |
#entry ⇒ Google::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
688 689 690 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 688 def entry @entry end |
#platform_type ⇒ String
The platform type reported.
Corresponds to the JSON property platformType
693 694 695 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 693 def platform_type @platform_type end |
#resources ⇒ Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitThreatSource>
The resources related to the threat hit.
Corresponds to the JSON property resources
698 699 700 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 698 def resources @resources end |
#threat_type ⇒ String
The threat type reported.
Corresponds to the JSON property threatType
703 704 705 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 703 def threat_type @threat_type end |
#user_info ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitUserInfo
Details about the user that encountered the threat.
Corresponds to the JSON property userInfo
708 709 710 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 708 def user_info @user_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
715 716 717 718 719 720 721 722 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 715 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 |