Class: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetailsReference

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1/classes.rb,
lib/google/apis/osconfig_v1/representations.rb,
lib/google/apis/osconfig_v1/representations.rb

Overview

A reference for this vulnerability.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VulnerabilityReportVulnerabilityDetailsReference

Returns a new instance of VulnerabilityReportVulnerabilityDetailsReference.



3463
3464
3465
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3463

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

Instance Attribute Details

#sourceString

The source of the reference e.g. NVD. Corresponds to the JSON property source

Returns:

  • (String)


3456
3457
3458
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3456

def source
  @source
end

#urlString

The url of the reference. Corresponds to the JSON property url

Returns:

  • (String)


3461
3462
3463
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3461

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3468
3469
3470
3471
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3468

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