Class: Google::Apis::ThreatintelligenceV1beta::Association
- Inherits:
-
Object
- Object
- Google::Apis::ThreatintelligenceV1beta::Association
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/threatintelligence_v1beta/classes.rb,
lib/google/apis/threatintelligence_v1beta/representations.rb,
lib/google/apis/threatintelligence_v1beta/representations.rb
Overview
Represents an association with a vulnerability.
Instance Attribute Summary collapse
-
#id ⇒ String
Required.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Association
constructor
A new instance of Association.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Association
Returns a new instance of Association.
319 320 321 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 319 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Required. The ID of the association.
Corresponds to the JSON property id
312 313 314 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 312 def id @id end |
#type ⇒ String
Required. The type of the association.
Corresponds to the JSON property type
317 318 319 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 317 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
324 325 326 327 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 324 def update!(**args) @id = args[:id] if args.key?(:id) @type = args[:type] if args.key?(:type) end |