Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Occurrence

import type { Occurrence } from "https://googleapis.deno.dev/v1/containeranalysis:v1.ts";

An instance of an analysis type that has been found on a resource.

interface Occurrence {
attestation?: AttestationOccurrence;
compliance?: ComplianceOccurrence;
createTime?: Date;
deployment?: DeploymentOccurrence;
discovery?: DiscoveryOccurrence;
dsseAttestation?: DSSEAttestationOccurrence;
envelope?: Envelope;
kind?:
| "NOTE_KIND_UNSPECIFIED"
| "VULNERABILITY"
| "BUILD"
| "IMAGE"
| "PACKAGE"
| "DEPLOYMENT"
| "DISCOVERY"
| "ATTESTATION"
| "UPGRADE"
| "COMPLIANCE"
| "DSSE_ATTESTATION"
| "VULNERABILITY_ASSESSMENT"
| "SBOM_REFERENCE";
name?: string;
noteName?: string;
remediation?: string;
resourceUri?: string;
sbomReference?: SBOMReferenceOccurrence;
updateTime?: Date;
vulnerability?: VulnerabilityOccurrence;
}

§Properties

§

Describes an attestation of an artifact.

§

Describes a verifiable build.

§

Describes a compliance violation on a linked resource.

§
createTime?: Date
[src]

Output only. The time this occurrence was created.

§

Describes the deployment of an artifact on a runtime.

§

Describes when a resource was discovered.

§

Describes an attestation of an artifact using dsse.

§

Describes how this resource derives from the basis in the associated note.

§
kind?: "NOTE_KIND_UNSPECIFIED" | "VULNERABILITY" | "BUILD" | "IMAGE" | "PACKAGE" | "DEPLOYMENT" | "DISCOVERY" | "ATTESTATION" | "UPGRADE" | "COMPLIANCE" | "DSSE_ATTESTATION" | "VULNERABILITY_ASSESSMENT" | "SBOM_REFERENCE"
[src]

Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

§
name?: string
[src]

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

§
noteName?: string
[src]

Required. 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.

§

Describes the installation of a package on the linked resource.

§
remediation?: string
[src]

A description of actions that can be taken to remedy the note.

§
resourceUri?: string
[src]

Required. 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.

§

Describes a specific SBOM reference occurrences.

§
updateTime?: Date
[src]

Output only. The time this occurrence was last updated.

§

Describes an available package upgrade on the linked resource.

§

Describes a security vulnerability.