VulnerabilityOccurrenceResponse constructor

const VulnerabilityOccurrenceResponse({
  1. required Input<double> cvssScore,
  2. required Input<CVSSResponse> cvssV2,
  3. required Input<String> cvssVersion,
  4. required Input<CVSSResponse> cvssv3,
  5. required Input<String> effectiveSeverity,
  6. required Input<String> extraDetails,
  7. required Input<bool> fixAvailable,
  8. required Input<String> longDescription,
  9. required Input<List<PackageIssueResponse>> packageIssue,
  10. required Input<List<RelatedUrlResponse>> relatedUrls,
  11. required Input<String> severity,
  12. required Input<String> shortDescription,
  13. required Input<String> type,
  14. required Input<VexAssessmentResponse> vexAssessment,
})

Creates a new VulnerabilityOccurrenceResponse. cvssScore 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. cvssV2 The cvss v2 score for the vulnerability. cvssVersion CVSS version used to populate cvss_score and severity. 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. fixAvailable Whether at least one of the affected packages has a fix available. longDescription A detailed description of this vulnerability. packageIssue The set of affected locations and their fixes (if available) within the associated resource. relatedUrls URLs related to this vulnerability. severity The note provider assigned severity of this vulnerability. shortDescription A one sentence description of this vulnerability. type The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). vexAssessment Required.

Implementation

const VulnerabilityOccurrenceResponse({
  required this.cvssScore,
  required this.cvssV2,
  required this.cvssVersion,
  required this.cvssv3,
  required this.effectiveSeverity,
  required this.extraDetails,
  required this.fixAvailable,
  required this.longDescription,
  required this.packageIssue,
  required this.relatedUrls,
  required this.severity,
  required this.shortDescription,
  required this.type,
  required this.vexAssessment,
});