class Google::Apis::ContaineranalysisV1beta1::Note

A type of analysis that can be done for a resource.

Attributes

attestation_authority[RW]

Note kind that represents a logical attestation “role” or “authority”. For example, an organization might have one `Authority` for “QA” and one for “ build”. This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don't all live in the same project. Corresponds to the JSON property `attestationAuthority` @return [Google::Apis::ContaineranalysisV1beta1::Authority]

base_image[RW]

Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url. Corresponds to the JSON property `baseImage` @return [Google::Apis::ContaineranalysisV1beta1::Basis]

build[RW]

Note holding the version of the provider's builder and the signature of the provenance message in the build details occurrence. Corresponds to the JSON property `build` @return [Google::Apis::ContaineranalysisV1beta1::Build]

create_time[RW]

Output only. The time this note was created. This field can be used as a filter in list requests. Corresponds to the JSON property `createTime` @return [String]

deployable[RW]

An artifact that can be deployed in some runtime. Corresponds to the JSON property `deployable` @return [Google::Apis::ContaineranalysisV1beta1::Deployable]

discovery[RW]

A note that indicates a type of analysis a provider would perform. This note exists in a provider's project. A `Discovery` occurrence is created in a consumer's project at the start of analysis. Corresponds to the JSON property `discovery` @return [Google::Apis::ContaineranalysisV1beta1::Discovery]

expiration_time[RW]

Time of expiration for this note. Empty if note does not expire. Corresponds to the JSON property `expirationTime` @return [String]

intoto[RW]

This contains the fields corresponding to the definition of a software supply chain step in an in-toto layout. This information goes into a Grafeas note. Corresponds to the JSON property `intoto` @return [Google::Apis::ContaineranalysisV1beta1::InToto]

kind[RW]

Output only. The type of analysis. This field can be used as a filter in list requests. Corresponds to the JSON property `kind` @return [String]

long_description[RW]

A detailed description of this note. Corresponds to the JSON property `longDescription` @return [String]

name[RW]

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

package[RW]

This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions. Corresponds to the JSON property `package` @return [Google::Apis::ContaineranalysisV1beta1::Package]

sbom[RW]

DocumentNote represents an SPDX Document Creation Infromation section: https:// spdx.github.io/spdx-spec/2-document-creation-information/ Corresponds to the JSON property `sbom` @return [Google::Apis::ContaineranalysisV1beta1::DocumentNote]

short_description[RW]

A one sentence description of this note. Corresponds to the JSON property `shortDescription` @return [String]

spdx_file[RW]

FileNote represents an SPDX File Information section: spdx.github.io/ spdx-spec/4-file-information/ Corresponds to the JSON property `spdxFile` @return [Google::Apis::ContaineranalysisV1beta1::FileNote]

spdx_package[RW]

PackageNote represents an SPDX Package Information section: spdx. github.io/spdx-spec/3-package-information/ Corresponds to the JSON property `spdxPackage` @return [Google::Apis::ContaineranalysisV1beta1::PackageNote]

spdx_relationship[RW]

RelationshipNote 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::RelationshipNote]

update_time[RW]

Output only. The time this note was last updated. This field can be used as a filter in list requests. Corresponds to the JSON property `updateTime` @return [String]

vulnerability[RW]

Vulnerability provides metadata about a security vulnerability in a Note. Corresponds to the JSON property `vulnerability` @return [Google::Apis::ContaineranalysisV1beta1::Vulnerability]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/containeranalysis_v1beta1/classes.rb, line 2457
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 2462
def update!(**args)
  @attestation_authority = args[:attestation_authority] if args.key?(:attestation_authority)
  @base_image = args[:base_image] if args.key?(:base_image)
  @build = args[:build] if args.key?(:build)
  @create_time = args[:create_time] if args.key?(:create_time)
  @deployable = args[:deployable] if args.key?(:deployable)
  @discovery = args[:discovery] if args.key?(:discovery)
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
  @intoto = args[:intoto] if args.key?(:intoto)
  @kind = args[:kind] if args.key?(:kind)
  @long_description = args[:long_description] if args.key?(:long_description)
  @name = args[:name] if args.key?(:name)
  @package = args[:package] if args.key?(:package)
  @related_note_names = args[:related_note_names] if args.key?(:related_note_names)
  @related_url = args[:related_url] if args.key?(:related_url)
  @sbom = args[:sbom] if args.key?(:sbom)
  @short_description = args[:short_description] if args.key?(:short_description)
  @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