Grafeas v1 API - Class Occurrence (3.13.0)

public sealed class Occurrence : IMessage<Occurrence>, IEquatable<Occurrence>, IDeepCloneable<Occurrence>, IBufferMessage, IMessage

Reference documentation and code samples for the Grafeas v1 API class Occurrence.

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

Inheritance

object >Occurrence

Namespace

Grafeas.V1

Assembly

Grafeas.V1.dll

Constructors

Occurrence()

public Occurrence()

Occurrence(Occurrence)

public Occurrence(Occurrence other)
Parameter
NameDescription
otherOccurrence

Properties

Attestation

public AttestationOccurrence Attestation { get; set; }

Describes an attestation of an artifact.

Property Value
TypeDescription
AttestationOccurrence

Build

public BuildOccurrence Build { get; set; }

Describes a verifiable build.

Property Value
TypeDescription
BuildOccurrence

Compliance

public ComplianceOccurrence Compliance { get; set; }

Describes a compliance violation on a linked resource.

Property Value
TypeDescription
ComplianceOccurrence

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The time this occurrence was created.

Property Value
TypeDescription
Timestamp

Deployment

public DeploymentOccurrence Deployment { get; set; }

Describes the deployment of an artifact on a runtime.

Property Value
TypeDescription
DeploymentOccurrence

DetailsCase

public Occurrence.DetailsOneofCase DetailsCase { get; }
Property Value
TypeDescription
OccurrenceDetailsOneofCase

Discovery

public DiscoveryOccurrence Discovery { get; set; }

Describes when a resource was discovered.

Property Value
TypeDescription
DiscoveryOccurrence

DsseAttestation

public DSSEAttestationOccurrence DsseAttestation { get; set; }

Describes an attestation of an artifact using dsse.

Property Value
TypeDescription
DSSEAttestationOccurrence

Envelope

public Envelope Envelope { get; set; }
Property Value
TypeDescription
Envelope

Image

public ImageOccurrence Image { get; set; }

Describes how this resource derives from the basis in the associatednote.

Property Value
TypeDescription
ImageOccurrence

Kind

public NoteKind Kind { get; set; }

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

Property Value
TypeDescription
NoteKind

Name

public string Name { get; set; }

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

Property Value
TypeDescription
string

NoteName

public string NoteName { get; set; }

Required. Immutable. The analysis note associated with this occurrence, inthe form ofprojects/[PROVIDER_ID]/notes/[NOTE_ID]. This field can beused as a filter in list requests.

Property Value
TypeDescription
string

OccurrenceName

public OccurrenceName OccurrenceName { get; set; }

OccurrenceName-typed view over theName resource name property.

Property Value
TypeDescription
OccurrenceName

Package

public PackageOccurrence Package { get; set; }

Describes the installation of a package on the linked resource.

Property Value
TypeDescription
PackageOccurrence

Remediation

public string Remediation { get; set; }

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

Property Value
TypeDescription
string

ResourceUri

public string ResourceUri { get; set; }

Required. Immutable. A URI that represents the resource for which theoccurrence applies. For example,https://gcr.io/project/image@sha256:123abc for a Docker image.

Property Value
TypeDescription
string

SbomReference

public SBOMReferenceOccurrence SbomReference { get; set; }

Describes a specific SBOM reference occurrences.

Property Value
TypeDescription
SBOMReferenceOccurrence

Secret

public SecretOccurrence Secret { get; set; }

Describes a secret.

Property Value
TypeDescription
SecretOccurrence

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. The time this occurrence was last updated.

Property Value
TypeDescription
Timestamp

Upgrade

public UpgradeOccurrence Upgrade { get; set; }

Describes an available package upgrade on the linked resource.

Property Value
TypeDescription
UpgradeOccurrence

Vulnerability

public VulnerabilityOccurrence Vulnerability { get; set; }

Describes a security vulnerability.

Property Value
TypeDescription
VulnerabilityOccurrence

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-29 UTC.