VulnerabilityCheckResponse class
An image vulnerability check, which rejects images that violate the configured vulnerability rules.
Constructors
-
VulnerabilityCheckResponse({required Input<
List< allowedCves, required Input<String> >List< blockedCves, required Input<String> >List< containerAnalysisVulnerabilityProjects, required Input<String> >String> maximumFixableSeverity, required Input<String> maximumUnfixableSeverity}) -
Creates a new VulnerabilityCheckResponse.
allowedCvesOptional. A list of specific CVEs to ignore even if the vulnerability level violatesmaximumUnfixableSeverityormaximumFixableSeverity. CVEs are listed in the format of Container Analysis note id. For example: - CVE-2021-20305 - CVE-2020-10543 The CVEs are applicable regardless of note provider project, e.g., an entry ofCVE-2021-20305will allow vulnerabilities with a note name of eitherprojects/goog-vulnz/notes/CVE-2021-20305orprojects/CUSTOM-PROJECT/notes/CVE-2021-20305.blockedCvesOptional. A list of specific CVEs to always raise warnings about even if the vulnerability level meetsmaximumUnfixableSeverityormaximumFixableSeverity. CVEs are listed in the format of Container Analysis note id. For example: - CVE-2021-20305 - CVE-2020-10543 The CVEs are applicable regardless of note provider project, e.g., an entry ofCVE-2021-20305will block vulnerabilities with a note name of eitherprojects/goog-vulnz/notes/CVE-2021-20305orprojects/CUSTOM-PROJECT/notes/CVE-2021-20305.containerAnalysisVulnerabilityProjectsOptional. The projects where vulnerabilities are stored as Container Analysis Occurrences. Each project is expressed in the resource format ofprojects/[PROJECT_ID], e.g.,projects/my-gcp-project. An attempt will be made for each project to fetch vulnerabilities, and all valid vulnerabilities will be used to check against the vulnerability policy. If no valid scan is found in all projects configured here, an error will be returned for the check.maximumFixableSeverityThe threshold for severity for which a fix is currently available. This field is required and must be set.maximumUnfixableSeverityThe threshold for severity for which a fix isn't currently available. This field is required and must be set.const -
VulnerabilityCheckResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
allowedCves
→ Input<
List< String> > -
Optional. A list of specific CVEs to ignore even if the vulnerability level violates
maximumUnfixableSeverityormaximumFixableSeverity. CVEs are listed in the format of Container Analysis note id. For example: - CVE-2021-20305 - CVE-2020-10543 The CVEs are applicable regardless of note provider project, e.g., an entry ofCVE-2021-20305will allow vulnerabilities with a note name of eitherprojects/goog-vulnz/notes/CVE-2021-20305orprojects/CUSTOM-PROJECT/notes/CVE-2021-20305.final -
blockedCves
→ Input<
List< String> > -
Optional. A list of specific CVEs to always raise warnings about even if the vulnerability level meets
maximumUnfixableSeverityormaximumFixableSeverity. CVEs are listed in the format of Container Analysis note id. For example: - CVE-2021-20305 - CVE-2020-10543 The CVEs are applicable regardless of note provider project, e.g., an entry ofCVE-2021-20305will block vulnerabilities with a note name of eitherprojects/goog-vulnz/notes/CVE-2021-20305orprojects/CUSTOM-PROJECT/notes/CVE-2021-20305.final -
containerAnalysisVulnerabilityProjects
→ Input<
List< String> > -
Optional. The projects where vulnerabilities are stored as Container Analysis Occurrences. Each project is expressed in the resource format of
projects/[PROJECT_ID], e.g.,projects/my-gcp-project. An attempt will be made for each project to fetch vulnerabilities, and all valid vulnerabilities will be used to check against the vulnerability policy. If no valid scan is found in all projects configured here, an error will be returned for the check.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
maximumFixableSeverity
→ Input<
String> -
The threshold for severity for which a fix is currently available. This field is required and must be set.
final
-
maximumUnfixableSeverity
→ Input<
String> -
The threshold for severity for which a fix isn't currently available. This field is required and must be set.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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