class Google::Apis::ContaineranalysisV1beta1::Occurrence

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

Attributes

attestation[RW]

Details of an attestation occurrence. Corresponds to the JSON property `attestation` @return [Google::Apis::ContaineranalysisV1beta1::Details]

build[RW]

Details of a build occurrence. Corresponds to the JSON property `build` @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1BuildDetails]

create_time[RW]

Output only. The time this occurrence was created. Corresponds to the JSON property `createTime` @return [String]

deployment[RW]

Details of a deployment occurrence. Corresponds to the JSON property `deployment` @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1DeploymentDetails]

derived_image[RW]

Details of an image occurrence. Corresponds to the JSON property `derivedImage` @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1ImageDetails]

discovered[RW]

Details of a discovery occurrence. Corresponds to the JSON property `discovered` @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1DiscoveryDetails]

installation[RW]

Details of a package occurrence. Corresponds to the JSON property `installation` @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1PackageDetails]

intoto[RW]

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]

kind[RW]

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]

name[RW]

Output only. The name of the occurrence in the form of `projects// occurrences/`. Corresponds to the JSON property `name` @return [String]

note_name[RW]

Required. Immutable. The analysis note associated with this occurrence, in the form of `projects//notes/`. This field can be used as a filter in list requests. Corresponds to the JSON property `noteName` @return [String]

remediation[RW]

A description of actions that can be taken to remedy the note. Corresponds to the JSON property `remediation` @return [String]

resource[RW]

An entity that can have metadata. For example, a Docker image. Corresponds to the JSON property `resource` @return [Google::Apis::ContaineranalysisV1beta1::Resource]

sbom[RW]

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]

spdx_file[RW]

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]

spdx_package[RW]

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]

spdx_relationship[RW]

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]

update_time[RW]

Output only. The time this occurrence was last updated. Corresponds to the JSON property `updateTime` @return [String]

vulnerability[RW]

Details of a vulnerability Occurrence. Corresponds to the JSON property `vulnerability` @return [Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1VulnerabilityDetails]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/containeranalysis_v1beta1/classes.rb, line 2596
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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