Class: Google::Apis::WebriskV1::GoogleCloudWebriskV1SearchUrisResponseThreatUri
- Inherits:
-
Object
- Object
- Google::Apis::WebriskV1::GoogleCloudWebriskV1SearchUrisResponseThreatUri
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/webrisk_v1/classes.rb,
lib/google/apis/webrisk_v1/representations.rb,
lib/google/apis/webrisk_v1/representations.rb
Overview
Contains threat information on a matching uri.
Instance Attribute Summary collapse
-
#expire_time ⇒ String
The cache lifetime for the returned match.
-
#threat_types ⇒ Array<String>
The ThreatList this threat belongs to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudWebriskV1SearchUrisResponseThreatUri
constructor
A new instance of GoogleCloudWebriskV1SearchUrisResponseThreatUri.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudWebriskV1SearchUrisResponseThreatUri
Returns a new instance of GoogleCloudWebriskV1SearchUrisResponseThreatUri.
294 295 296 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 294 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expire_time ⇒ String
The cache lifetime for the returned match. Clients must not cache this
response past this timestamp to avoid false positives.
Corresponds to the JSON property expireTime
287 288 289 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 287 def expire_time @expire_time end |
#threat_types ⇒ Array<String>
The ThreatList this threat belongs to.
Corresponds to the JSON property threatTypes
292 293 294 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 292 def threat_types @threat_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
299 300 301 302 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 299 def update!(**args) @expire_time = args[:expire_time] if args.key?(:expire_time) @threat_types = args[:threat_types] if args.key?(:threat_types) end |