Class: Google::Apis::ContaineranalysisV1alpha1::VulnerabilityType

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/containeranalysis_v1alpha1/classes.rb,
generated/google/apis/containeranalysis_v1alpha1/representations.rb,
generated/google/apis/containeranalysis_v1alpha1/representations.rb

Overview

VulnerabilityType provides metadata about a security vulnerability.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VulnerabilityType

Returns a new instance of VulnerabilityType.



2819
2820
2821
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2819

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

Instance Attribute Details

#cvss_scoreFloat

The CVSS score for this Vulnerability. Corresponds to the JSON property cvssScore

Returns:

  • (Float)


2805
2806
2807
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2805

def cvss_score
  @cvss_score
end

#detailsArray<Google::Apis::ContaineranalysisV1alpha1::Detail>

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in. Corresponds to the JSON property details



2812
2813
2814
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2812

def details
  @details
end

#severityString

Note provider assigned impact of the vulnerability Corresponds to the JSON property severity

Returns:

  • (String)


2817
2818
2819
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2817

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2824
2825
2826
2827
2828
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2824

def update!(**args)
  @cvss_score = args[:cvss_score] if args.key?(:cvss_score)
  @details = args[:details] if args.key?(:details)
  @severity = args[:severity] if args.key?(:severity)
end