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.
attestationDescribes an attestation of an artifact.buildDescribes a verifiable build.complianceDescribes a compliance violation on a linked resource.createTimeThe time this occurrence was created.deploymentDescribes the deployment of an artifact on a runtime.discoveryDescribes when a resource was discovered.dsseAttestationDescribes an attestation of an artifact using dsse.envelopehttps://github.com/secure-systems-lab/dsseimageDescribes how this resource derives from the basis in the associated note.kindThis explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.nameThe name of the occurrence in the form ofprojects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].noteNameImmutable. The analysis note associated with this occurrence, in the form ofprojects/[PROVIDER_ID]/notes/[NOTE_ID]. This field can be used as a filter in list requests.packageDescribes the installation of a package on the linked resource.remediationA description of actions that can be taken to remedy the note.resourceUriImmutable. A URI that represents the resource for which the occurrence applies. For example,https://gcr.io/project/image@sha256:123abcfor a Docker image.sbomReferenceDescribes a specific SBOM reference occurrences.updateTimeThe time this occurrence was last updated.upgradeDescribes an available package upgrade on the linked resource.vulnerabilityDescribes 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:123abcfor 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