Class: Google::Apis::ContaineranalysisV1alpha1::VulnerabilityAssessmentNote

Inherits:
Object
  • Object
show all
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

A single VulnerabilityAssessmentNote represents one particular product's vulnerability assessment for one CVE. Multiple VulnerabilityAssessmentNotes together form a Vex statement. Please go/sds-vex-example for a sample Vex statement in the CSAF format.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VulnerabilityAssessmentNote

Returns a new instance of VulnerabilityAssessmentNote.



7271
7272
7273
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 7271

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

Instance Attribute Details

#assessmentGoogle::Apis::ContaineranalysisV1alpha1::Assessment

Assessment provides all information that is related to a single vulnerability for this product. Corresponds to the JSON property assessment



7238
7239
7240
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 7238

def assessment
  @assessment
end

#language_codeString

Identifies the language used by this document, corresponding to IETF BCP 47 / RFC 5646. Corresponds to the JSON property languageCode

Returns:

  • (String)


7244
7245
7246
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 7244

def language_code
  @language_code
end

#long_descriptionString

A detailed description of this Vex. Corresponds to the JSON property longDescription

Returns:

  • (String)


7249
7250
7251
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 7249

def long_description
  @long_description
end

#productGoogle::Apis::ContaineranalysisV1alpha1::Product

Product contains information about a product and how to uniquely identify it. Corresponds to the JSON property product



7254
7255
7256
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 7254

def product
  @product
end

#publisherGoogle::Apis::ContaineranalysisV1alpha1::Publisher

Publisher contains information about the publisher of this Note. Corresponds to the JSON property publisher



7259
7260
7261
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 7259

def publisher
  @publisher
end

#short_descriptionString

A one sentence description of this Vex. Corresponds to the JSON property shortDescription

Returns:

  • (String)


7264
7265
7266
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 7264

def short_description
  @short_description
end

#titleString

The title of the note. E.g. Vex-Debian-11.4 Corresponds to the JSON property title

Returns:

  • (String)


7269
7270
7271
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 7269

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7276
7277
7278
7279
7280
7281
7282
7283
7284
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 7276

def update!(**args)
  @assessment = args[:assessment] if args.key?(:assessment)
  @language_code = args[:language_code] if args.key?(:language_code)
  @long_description = args[:long_description] if args.key?(:long_description)
  @product = args[:product] if args.key?(:product)
  @publisher = args[:publisher] if args.key?(:publisher)
  @short_description = args[:short_description] if args.key?(:short_description)
  @title = args[:title] if args.key?(:title)
end