Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatListDescriptor
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatListDescriptor
- 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
Overview
Describes an individual threat list. A list is defined by three parameters: the type of threat posed, the type of platform targeted by the threat, and the type of entries in the list.
Instance Attribute Summary collapse
-
#platform_type ⇒ String
The platform type targeted by the list's entries.
-
#threat_entry_type ⇒ String
The entry types contained in the list.
-
#threat_type ⇒ String
The threat type posed by the list's entries.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatListDescriptor
constructor
A new instance of GoogleSecuritySafebrowsingV4ThreatListDescriptor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatListDescriptor
Returns a new instance of GoogleSecuritySafebrowsingV4ThreatListDescriptor.
844 845 846 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 844 def initialize(**args) update!(**args) end |
Instance Attribute Details
#platform_type ⇒ String
The platform type targeted by the list's entries.
Corresponds to the JSON property platformType
832 833 834 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 832 def platform_type @platform_type end |
#threat_entry_type ⇒ String
The entry types contained in the list.
Corresponds to the JSON property threatEntryType
837 838 839 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 837 def threat_entry_type @threat_entry_type end |
#threat_type ⇒ String
The threat type posed by the list's entries.
Corresponds to the JSON property threatType
842 843 844 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 842 def threat_type @threat_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
849 850 851 852 853 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 849 def update!(**args) @platform_type = args[:platform_type] if args.key?(:platform_type) @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type) @threat_type = args[:threat_type] if args.key?(:threat_type) end |