Class: Google::Apis::ContaineranalysisV1alpha1::VulnerabilityType
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::VulnerabilityType
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1alpha1/classes.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb
Overview
VulnerabilityType provides metadata about a security vulnerability.
Instance Attribute Summary collapse
-
#cvss_score ⇒ Float
The CVSS score for this Vulnerability.
-
#details ⇒ Array<Google::Apis::ContaineranalysisV1alpha1::Detail>
All information about the package to specifically identify this vulnerability.
-
#severity ⇒ String
Note provider assigned impact of the vulnerability Corresponds to the JSON property
severity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VulnerabilityType
constructor
A new instance of VulnerabilityType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VulnerabilityType
Returns a new instance of VulnerabilityType.
3903 3904 3905 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3903 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cvss_score ⇒ Float
The CVSS score for this Vulnerability.
Corresponds to the JSON property cvssScore
3889 3890 3891 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3889 def cvss_score @cvss_score end |
#details ⇒ Array<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
3896 3897 3898 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3896 def details @details end |
#severity ⇒ String
Note provider assigned impact of the vulnerability
Corresponds to the JSON property severity
3901 3902 3903 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3901 def severity @severity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3908 3909 3910 3911 3912 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3908 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 |