Class: Google::Apis::WebriskV1::GoogleCloudWebriskV1Submission
- Inherits:
-
Object
- Object
- Google::Apis::WebriskV1::GoogleCloudWebriskV1Submission
- 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
-
#threat_types ⇒ Array<String>
ThreatTypes found to be associated with the submitted URI after reviewing it.
-
#uri ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudWebriskV1Submission
constructor
A new instance of GoogleCloudWebriskV1Submission.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_types ⇒ Array<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
313 314 315 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 313 def threat_types @threat_types end |
#uri ⇒ String
Required. The URI that is being reported for malicious content to be analyzed.
Corresponds to the JSON property uri
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 |