Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatInfo
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatInfo
- 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
Overview
The information regarding one or more threats that a client submits when checking for matches in threat lists.
Instance Attribute Summary collapse
-
#platform_types ⇒ Array<String>
The platform types to be checked.
-
#threat_entries ⇒ Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry>
The threat entries to be checked.
-
#threat_entry_types ⇒ Array<String>
The entry types to be checked.
-
#threat_types ⇒ Array<String>
The threat types to be checked.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatInfo
constructor
A new instance of GoogleSecuritySafebrowsingV4ThreatInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatInfo
Returns a new instance of GoogleSecuritySafebrowsingV4ThreatInfo.
814 815 816 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 814 def initialize(**args) update!(**args) end |
Instance Attribute Details
#platform_types ⇒ Array<String>
The platform types to be checked.
Corresponds to the JSON property platformTypes
797 798 799 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 797 def platform_types @platform_types end |
#threat_entries ⇒ Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry>
The threat entries to be checked.
Corresponds to the JSON property threatEntries
802 803 804 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 802 def threat_entries @threat_entries end |
#threat_entry_types ⇒ Array<String>
The entry types to be checked.
Corresponds to the JSON property threatEntryTypes
807 808 809 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 807 def threat_entry_types @threat_entry_types end |
#threat_types ⇒ Array<String>
The threat types to be checked.
Corresponds to the JSON property threatTypes
812 813 814 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 812 def threat_types @threat_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
819 820 821 822 823 824 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 819 def update!(**args) @platform_types = args[:platform_types] if args.key?(:platform_types) @threat_entries = args[:threat_entries] if args.key?(:threat_entries) @threat_entry_types = args[:threat_entry_types] if args.key?(:threat_entry_types) @threat_types = args[:threat_types] if args.key?(:threat_types) end |