Class: Google::Apis::ThreatintelligenceV1beta::Association

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

Instance Method Summary collapse

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

#idString

Required. The ID of the association. Corresponds to the JSON property id

Returns:

  • (String)


312
313
314
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 312

def id
  @id
end

#typeString

Required. The type of the association. Corresponds to the JSON property type

Returns:

  • (String)


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