com.pulumi.googlenative.containeranalysis.v1beta1.kotlin.outputs.VexAssessmentResponse.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.containeranalysis.v1beta1.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* VexAssessment provides all publisher provided Vex information that is related to this vulnerability.
* @property cve Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability.
* @property impacts Contains information about the impact of this vulnerability, this will change with time.
* @property justification Justification provides the justification when the state of the assessment if NOT_AFFECTED.
* @property noteName The VulnerabilityAssessment note from which this VexAssessment was generated. This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`.
* @property relatedUris Holds a list of references associated with this vulnerability item and assessment.
* @property remediations Specifies details on how to handle (and presumably, fix) a vulnerability.
* @property state Provides the state of this Vulnerability assessment.
*/
public data class VexAssessmentResponse(
public val cve: String,
public val impacts: List,
public val justification: JustificationResponse,
public val noteName: String,
public val relatedUris: List,
public val remediations: List,
public val state: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.googlenative.containeranalysis.v1beta1.outputs.VexAssessmentResponse): VexAssessmentResponse = VexAssessmentResponse(
cve = javaType.cve(),
impacts = javaType.impacts().map({ args0 -> args0 }),
justification = javaType.justification().let({ args0 ->
com.pulumi.googlenative.containeranalysis.v1beta1.kotlin.outputs.JustificationResponse.Companion.toKotlin(args0)
}),
noteName = javaType.noteName(),
relatedUris = javaType.relatedUris().map({ args0 ->
args0.let({ args0 ->
com.pulumi.googlenative.containeranalysis.v1beta1.kotlin.outputs.RelatedUrlResponse.Companion.toKotlin(args0)
})
}),
remediations = javaType.remediations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.googlenative.containeranalysis.v1beta1.kotlin.outputs.RemediationResponse.Companion.toKotlin(args0)
})
}),
state = javaType.state(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy