class Google::Apis::OndemandscanningV1beta1::VulnerabilityOccurrence
An occurrence of a severity vulnerability on a resource.
Attributes
Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity. Corresponds to the JSON property `cvssScore` @return [Float]
The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue
level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues. Corresponds to the JSON property `effectiveSeverity` @return [String]
Output only. Whether at least one of the affected packages has a fix available. Corresponds to the JSON property `fixAvailable` @return [Boolean]
Output only. Whether at least one of the affected packages has a fix available. Corresponds to the JSON property `fixAvailable` @return [Boolean]
Output only. A detailed description of this vulnerability. Corresponds to the JSON property `longDescription` @return [String]
Required. The set of affected locations and their fixes (if available) within the associated resource. Corresponds to the JSON property `packageIssue` @return [Array<Google::Apis::OndemandscanningV1beta1::PackageIssue>]
Output only. The note provider assigned severity of this vulnerability. Corresponds to the JSON property `severity` @return [String]
Output only. A one sentence description of this vulnerability. Corresponds to the JSON property `shortDescription` @return [String]
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/ondemandscanning_v1beta1/classes.rb, line 2196 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/ondemandscanning_v1beta1/classes.rb, line 2201 def update!(**args) @cvss_score = args[:cvss_score] if args.key?(:cvss_score) @effective_severity = args[:effective_severity] if args.key?(:effective_severity) @fix_available = args[:fix_available] if args.key?(:fix_available) @long_description = args[:long_description] if args.key?(:long_description) @package_issue = args[:package_issue] if args.key?(:package_issue) @related_urls = args[:related_urls] if args.key?(:related_urls) @severity = args[:severity] if args.key?(:severity) @short_description = args[:short_description] if args.key?(:short_description) @type = args[:type] if args.key?(:type) end