Class: Google::Apis::WebriskV1::GoogleCloudWebriskV1SearchUrisResponseThreatUri

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_timeString

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

Returns:

  • (String)


287
288
289
# File 'lib/google/apis/webrisk_v1/classes.rb', line 287

def expire_time
  @expire_time
end

#threat_typesArray<String>

The ThreatList this threat belongs to. Corresponds to the JSON property threatTypes

Returns:

  • (Array<String>)


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