Class: Google::Apis::ContaineranalysisV1beta1::VulnerabilityAssessmentNote

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

Overview

A single VulnerabilityAssessmentNote represents one particular product's vulnerability assessment for one CVE.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VulnerabilityAssessmentNote

Returns a new instance of VulnerabilityAssessmentNote.



6332
6333
6334
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6332

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

Instance Attribute Details

#assessmentGoogle::Apis::ContaineranalysisV1beta1::Assessment

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



6299
6300
6301
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6299

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)


6305
6306
6307
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6305

def language_code
  @language_code
end

#long_descriptionString

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

Returns:

  • (String)


6310
6311
6312
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6310

def long_description
  @long_description
end

#productGoogle::Apis::ContaineranalysisV1beta1::Product

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



6315
6316
6317
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6315

def product
  @product
end

#publisherGoogle::Apis::ContaineranalysisV1beta1::Publisher

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



6320
6321
6322
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6320

def publisher
  @publisher
end

#short_descriptionString

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

Returns:

  • (String)


6325
6326
6327
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6325

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)


6330
6331
6332
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6330

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6337
6338
6339
6340
6341
6342
6343
6344
6345
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6337

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