GetOccurrenceResult constructor
- required AttestationOccurrenceResponse attestation,
- required BuildOccurrenceResponse build,
- required ComplianceOccurrenceResponse compliance,
- required String createTime,
- required DeploymentOccurrenceResponse deployment,
- required DiscoveryOccurrenceResponse discovery,
- required DSSEAttestationOccurrenceResponse dsseAttestation,
- required EnvelopeResponse envelope,
- required ImageOccurrenceResponse image,
- required String kind,
- required String name,
- required String noteName,
- required PackageOccurrenceResponse package,
- required String remediation,
- required String resourceUri,
- required SBOMReferenceOccurrenceResponse sbomReference,
- required String updateTime,
- required UpgradeOccurrenceResponse upgrade,
- required VulnerabilityOccurrenceResponse vulnerability,
Creates a new GetOccurrenceResult.
attestation Describes an attestation of an artifact.
build Describes a verifiable build.
compliance Describes a compliance violation on a linked resource.
createTime The time this occurrence was created.
deployment Describes the deployment of an artifact on a runtime.
discovery Describes when a resource was discovered.
dsseAttestation Describes an attestation of an artifact using dsse.
envelope https://github.com/secure-systems-lab/dsse
image Describes how this resource derives from the basis in the associated note.
kind This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.
name The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].
noteName Immutable. The analysis note associated with this occurrence, in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]. This field can be used as a filter in list requests.
package Describes the installation of a package on the linked resource.
remediation A description of actions that can be taken to remedy the note.
resourceUri Immutable. A URI that represents the resource for which the occurrence applies. For example, https://gcr.io/project/image@sha256:123abc for a Docker image.
sbomReference Describes a specific SBOM reference occurrences.
updateTime The time this occurrence was last updated.
upgrade Describes an available package upgrade on the linked resource.
vulnerability Describes a security vulnerability.
Implementation
const GetOccurrenceResult({
required this.attestation,
required this.build,
required this.compliance,
required this.createTime,
required this.deployment,
required this.discovery,
required this.dsseAttestation,
required this.envelope,
required this.image,
required this.kind,
required this.name,
required this.noteName,
required this.package,
required this.remediation,
required this.resourceUri,
required this.sbomReference,
required this.updateTime,
required this.upgrade,
required this.vulnerability,
});