class Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1VulnerabilityDetails

Details of a vulnerability Occurrence.

Attributes

cvss_score[RW]

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]

effective_severity[RW]

The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. 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]

long_description[RW]

Output only. A detailed description of this vulnerability. Corresponds to the JSON property `longDescription` @return [String]

package_issue[RW]

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::ContaineranalysisV1beta1::PackageIssue>]

severity[RW]

Output only. The note provider assigned Severity of the vulnerability. Corresponds to the JSON property `severity` @return [String]

short_description[RW]

Output only. A one sentence description of this vulnerability. Corresponds to the JSON property `shortDescription` @return [String]

type[RW]

The type of package; whether native or non native(ruby gems, node.js packages etc) Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/containeranalysis_v1beta1/classes.rb, line 1937
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/containeranalysis_v1beta1/classes.rb, line 1942
def update!(**args)
  @cvss_score = args[:cvss_score] if args.key?(:cvss_score)
  @effective_severity = args[:effective_severity] if args.key?(:effective_severity)
  @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