GetOccurrenceResult class

Result data returned by getOccurrence.

Constructors

GetOccurrenceResult({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.
const
GetOccurrenceResult.fromMap(Map<String, dynamic> map)
factory

Properties

attestation → AttestationOccurrenceResponse
Describes an attestation of an artifact.
final
build → BuildOccurrenceResponse
Describes a verifiable build.
final
compliance → ComplianceOccurrenceResponse
Describes a compliance violation on a linked resource.
final
createTime → String
The time this occurrence was created.
final
deployment → DeploymentOccurrenceResponse
Describes the deployment of an artifact on a runtime.
final
discovery → DiscoveryOccurrenceResponse
Describes when a resource was discovered.
final
dsseAttestation → DSSEAttestationOccurrenceResponse
Describes an attestation of an artifact using dsse.
final
envelope → EnvelopeResponse
https://github.com/secure-systems-lab/dsse
final
hashCode → int
The hash code for this object.
no setterinherited
image → ImageOccurrenceResponse
Describes how this resource derives from the basis in the associated note.
final
kind → String
This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.
final
name → String
The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].
final
noteName → String
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.
final
package → PackageOccurrenceResponse
Describes the installation of a package on the linked resource.
final
remediation → String
A description of actions that can be taken to remedy the note.
final
resourceUri → String
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.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sbomReference → SBOMReferenceOccurrenceResponse
Describes a specific SBOM reference occurrences.
final
updateTime → String
The time this occurrence was last updated.
final
upgrade → UpgradeOccurrenceResponse
Describes an available package upgrade on the linked resource.
final
vulnerability → VulnerabilityOccurrenceResponse
Describes a security vulnerability.
final

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