class Google::Apis::ContaineranalysisV1beta1::Occurrence
An instance of an analysis type that has been found on a resource.
Attributes
Details
of an attestation occurrence. Corresponds to the JSON property `attestation` @return [Google::Apis::ContaineranalysisV1beta1::Details]
Details
of a build occurrence. Corresponds to the JSON property `build` @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1BuildDetails]
Output only. The time this occurrence was created. Corresponds to the JSON property `createTime` @return [String]
Details
of a deployment occurrence. Corresponds to the JSON property `deployment` @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1DeploymentDetails]
Details
of an image occurrence. Corresponds to the JSON property `derivedImage` @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1ImageDetails]
Details
of a discovery occurrence. Corresponds to the JSON property `discovered` @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1DiscoveryDetails]
Details
of a package occurrence. Corresponds to the JSON property `installation` @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1PackageDetails]
This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. Corresponds to the JSON property `intoto` @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1IntotoDetails]
Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. Corresponds to the JSON property `kind` @return [String]
Output only. The name of the occurrence in the form of `projects// occurrences/`. Corresponds to the JSON property `name` @return [String]
A description of actions that can be taken to remedy the note. Corresponds to the JSON property `remediation` @return [String]
An entity that can have metadata. For example, a Docker image. Corresponds to the JSON property `resource` @return [Google::Apis::ContaineranalysisV1beta1::Resource]
DocumentOccurrence
represents an SPDX Document Creation Information section: spdx.github.io/spdx-spec/2-document-creation-information/ Corresponds to the JSON property `sbom` @return [Google::Apis::ContaineranalysisV1beta1::DocumentOccurrence]
FileOccurrence
represents an SPDX File Information section: spdx. github.io/spdx-spec/4-file-information/ Corresponds to the JSON property `spdxFile` @return [Google::Apis::ContaineranalysisV1beta1::FileOccurrence]
PackageOccurrence
represents an SPDX Package
Information section: spdx. github.io/spdx-spec/3-package-information/ Corresponds to the JSON property `spdxPackage` @return [Google::Apis::ContaineranalysisV1beta1::PackageOccurrence]
RelationshipOccurrence
represents an SPDX Relationship section: spdx. github.io/spdx-spec/7-relationships-between-SPDX-elements/ Corresponds to the JSON property `spdxRelationship` @return [Google::Apis::ContaineranalysisV1beta1::RelationshipOccurrence]
Output only. The time this occurrence was last updated. Corresponds to the JSON property `updateTime` @return [String]
Details
of a vulnerability Occurrence
. Corresponds to the JSON property `vulnerability` @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1VulnerabilityDetails]
Public Class Methods
# File lib/google/apis/containeranalysis_v1beta1/classes.rb, line 2596 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/containeranalysis_v1beta1/classes.rb, line 2601 def update!(**args) @attestation = args[:attestation] if args.key?(:attestation) @build = args[:build] if args.key?(:build) @create_time = args[:create_time] if args.key?(:create_time) @deployment = args[:deployment] if args.key?(:deployment) @derived_image = args[:derived_image] if args.key?(:derived_image) @discovered = args[:discovered] if args.key?(:discovered) @installation = args[:installation] if args.key?(:installation) @intoto = args[:intoto] if args.key?(:intoto) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @note_name = args[:note_name] if args.key?(:note_name) @remediation = args[:remediation] if args.key?(:remediation) @resource = args[:resource] if args.key?(:resource) @sbom = args[:sbom] if args.key?(:sbom) @spdx_file = args[:spdx_file] if args.key?(:spdx_file) @spdx_package = args[:spdx_package] if args.key?(:spdx_package) @spdx_relationship = args[:spdx_relationship] if args.key?(:spdx_relationship) @update_time = args[:update_time] if args.key?(:update_time) @vulnerability = args[:vulnerability] if args.key?(:vulnerability) end