VulnerabilityOccurrence class

An occurrence of a severity vulnerability on a resource.

Constructors

VulnerabilityOccurrence({Input<CVSS>? cvssV2, Input<CVSS>? cvssv3, Input<VulnerabilityOccurrenceEffectiveSeverity>? effectiveSeverity, Input<String>? extraDetails, required Input<List<PackageIssue>> packageIssue, Input<String>? type, Input<VexAssessment>? vexAssessment})
Creates a new VulnerabilityOccurrence. cvssV2 The cvss v2 score for the vulnerability. cvssv3 The cvss v3 score for the vulnerability. effectiveSeverity 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. extraDetails Occurrence-specific extra details about the vulnerability. packageIssue The set of affected locations and their fixes (if available) within the associated resource. type The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). vexAssessment Optional.
const
VulnerabilityOccurrence.fromMap(Map<String, dynamic> map)
factory

Properties

cvssV2 → Input<CVSS>?
The cvss v2 score for the vulnerability.
final
cvssv3 → Input<CVSS>?
The cvss v3 score for the vulnerability.
final
effectiveSeverity → Input<VulnerabilityOccurrenceEffectiveSeverity>?
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.
final
extraDetails → Input<String>?
Occurrence-specific extra details about the vulnerability.
final
hashCode → int
The hash code for this object.
no setterinherited
packageIssue → Input<List<PackageIssue>>
The set of affected locations and their fixes (if available) within the associated resource.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → Input<String>?
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
final
vexAssessment → Input<VexAssessment>?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited