Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatMatch
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatMatch
- 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
A match when checking a threat entry in the Safe Browsing threat lists.
Instance Attribute Summary collapse
-
#cache_duration ⇒ String
The cache lifetime for the returned match.
-
#platform_type ⇒ String
The platform type matching this threat.
-
#threat ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry
An individual threat; for example, a malicious URL or its hash representation.
-
#threat_entry_metadata ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadata
The metadata associated with a specific threat entry.
-
#threat_entry_type ⇒ String
The threat entry type matching this threat.
-
#threat_type ⇒ String
The threat type matching this threat.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatMatch
constructor
A new instance of GoogleSecuritySafebrowsingV4ThreatMatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatMatch
Returns a new instance of GoogleSecuritySafebrowsingV4ThreatMatch.
897 898 899 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 897 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cache_duration ⇒ String
The cache lifetime for the returned match. Clients must not cache this
response for more than this duration to avoid false positives.
Corresponds to the JSON property cacheDuration
868 869 870 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 868 def cache_duration @cache_duration end |
#platform_type ⇒ String
The platform type matching this threat.
Corresponds to the JSON property platformType
873 874 875 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 873 def platform_type @platform_type end |
#threat ⇒ 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 threat
879 880 881 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 879 def threat @threat end |
#threat_entry_metadata ⇒ Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadata
The metadata associated with a specific threat entry. The client is expected
to know the metadata key/value pairs associated with each threat type.
Corresponds to the JSON property threatEntryMetadata
885 886 887 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 885 def @threat_entry_metadata end |
#threat_entry_type ⇒ String
The threat entry type matching this threat.
Corresponds to the JSON property threatEntryType
890 891 892 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 890 def threat_entry_type @threat_entry_type end |
#threat_type ⇒ String
The threat type matching this threat.
Corresponds to the JSON property threatType
895 896 897 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 895 def threat_type @threat_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
902 903 904 905 906 907 908 909 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 902 def update!(**args) @cache_duration = args[:cache_duration] if args.key?(:cache_duration) @platform_type = args[:platform_type] if args.key?(:platform_type) @threat = args[:threat] if args.key?(:threat) @threat_entry_metadata = args[:threat_entry_metadata] if args.key?(:threat_entry_metadata) @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type) @threat_type = args[:threat_type] if args.key?(:threat_type) end |