Class: Google::Apis::OsconfigV1alpha::VulnerabilityReportVulnerabilityDetailsReference

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1alpha/classes.rb,
lib/google/apis/osconfig_v1alpha/representations.rb,
lib/google/apis/osconfig_v1alpha/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.



2773
2774
2775
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2773

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)


2766
2767
2768
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2766

def source
  @source
end

#urlString

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

Returns:

  • (String)


2771
2772
2773
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2771

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2778
2779
2780
2781
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2778

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