Class: Google::Apis::WebriskV1::GoogleCloudWebriskV1Submission

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

Wraps a URI that might be displaying malicious content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudWebriskV1Submission

Returns a new instance of GoogleCloudWebriskV1Submission.



320
321
322
# File 'lib/google/apis/webrisk_v1/classes.rb', line 320

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#threat_typesArray<String>

ThreatTypes found to be associated with the submitted URI after reviewing it. This may be empty if the URI was not added to any list. Corresponds to the JSON property threatTypes

Returns:

  • (Array<String>)


313
314
315
# File 'lib/google/apis/webrisk_v1/classes.rb', line 313

def threat_types
  @threat_types
end

#uriString

Required. The URI that is being reported for malicious content to be analyzed. Corresponds to the JSON property uri

Returns:

  • (String)


318
319
320
# File 'lib/google/apis/webrisk_v1/classes.rb', line 318

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



325
326
327
328
# File 'lib/google/apis/webrisk_v1/classes.rb', line 325

def update!(**args)
  @threat_types = args[:threat_types] if args.key?(:threat_types)
  @uri = args[:uri] if args.key?(:uri)
end