Class: Google::Apis::ContaineranalysisV1alpha1::VexAssessment

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

VexAssessment provides all publisher provided Vex information that is related to this vulnerability.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VexAssessment

Returns a new instance of VexAssessment.



6561
6562
6563
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6561

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

Instance Attribute Details

#cveString

Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Corresponds to the JSON property cve

Returns:

  • (String)


6530
6531
6532
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6530

def cve
  @cve
end

#note_nameString

The VulnerabilityAssessment note from which this VexAssessment was generated. This will be of the form: projects/[PROJECT_ID]/notes/[NOTE_ID]. Corresponds to the JSON property noteName

Returns:

  • (String)


6536
6537
6538
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6536

def note_name
  @note_name
end

Holds a list of references associated with this vulnerability item and assessment. These uris have additional information about the vulnerability and the assessment itself. E.g. Link to a document which details how this assessment concluded the state of this vulnerability. Corresponds to the JSON property relatedUris



6544
6545
6546
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6544

def related_uris
  @related_uris
end

#remediationsArray<Google::Apis::ContaineranalysisV1alpha1::Remediation>

Specifies details on how to handle (and presumably, fix) a vulnerability. Corresponds to the JSON property remediations



6549
6550
6551
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6549

def remediations
  @remediations
end

#stateString

Provides the state of this Vulnerability assessment. Corresponds to the JSON property state

Returns:

  • (String)


6554
6555
6556
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6554

def state
  @state
end

#threatsArray<Google::Apis::ContaineranalysisV1alpha1::Threat>

Contains information about this vulnerability, this will change with time. Corresponds to the JSON property threats



6559
6560
6561
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6559

def threats
  @threats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6566
6567
6568
6569
6570
6571
6572
6573
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6566

def update!(**args)
  @cve = args[:cve] if args.key?(:cve)
  @note_name = args[:note_name] if args.key?(:note_name)
  @related_uris = args[:related_uris] if args.key?(:related_uris)
  @remediations = args[:remediations] if args.key?(:remediations)
  @state = args[:state] if args.key?(:state)
  @threats = args[:threats] if args.key?(:threats)
end