Class: Google::Apis::ContaineranalysisV1alpha1::Occurrence

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/containeranalysis_v1alpha1/classes.rb,
generated/google/apis/containeranalysis_v1alpha1/representations.rb,
generated/google/apis/containeranalysis_v1alpha1/representations.rb

Overview

Occurrence includes information about analysis occurrences for an image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Occurrence

Returns a new instance of Occurrence



1799
1800
1801
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1799

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attestationGoogle::Apis::ContaineranalysisV1alpha1::Attestation

Occurrence that represents a single "attestation". The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). Corresponds to the JSON property attestation



1717
1718
1719
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1717

def attestation
  @attestation
end

#build_detailsGoogle::Apis::ContaineranalysisV1alpha1::BuildDetails

Message encapsulating build provenance details. Corresponds to the JSON property buildDetails



1722
1723
1724
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1722

def build_details
  @build_details
end

#create_timeString

Output only. The time this Occurrence was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1727
1728
1729
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1727

def create_time
  @create_time
end

#deploymentGoogle::Apis::ContaineranalysisV1alpha1::Deployment

The period during which some deployable was active in a runtime. Corresponds to the JSON property deployment



1732
1733
1734
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1732

def deployment
  @deployment
end

#derived_imageGoogle::Apis::ContaineranalysisV1alpha1::Derived

Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . Corresponds to the JSON property derivedImage



1739
1740
1741
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1739

def derived_image
  @derived_image
end

#discoveredGoogle::Apis::ContaineranalysisV1alpha1::Discovered

Provides information about the scan status of a discovered resource. Corresponds to the JSON property discovered



1744
1745
1746
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1744

def discovered
  @discovered
end

#installationGoogle::Apis::ContaineranalysisV1alpha1::Installation

This represents how a particular software package may be installed on a system. Corresponds to the JSON property installation



1750
1751
1752
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1750

def installation
  @installation
end

#kindString

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

Returns:

  • (String)


1756
1757
1758
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1756

def kind
  @kind
end

#nameString

Output only. The name of the Occurrence in the form "projects/project_id/occurrences/OCCURRENCE_ID" Corresponds to the JSON property name

Returns:

  • (String)


1762
1763
1764
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1762

def name
  @name
end

#note_nameString

An analysis note associated with this image, in the form "providers/provider_id/notes/NOTE_ID" This field can be used as a filter in list requests. Corresponds to the JSON property noteName

Returns:

  • (String)


1769
1770
1771
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1769

def note_name
  @note_name
end

#remediationString

A description of actions that can be taken to remedy the Note Corresponds to the JSON property remediation

Returns:

  • (String)


1774
1775
1776
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1774

def remediation
  @remediation
end

#resourceGoogle::Apis::ContaineranalysisV1alpha1::Resource

Resource is an entity that can have metadata. E.g., a Docker image. Corresponds to the JSON property resource



1779
1780
1781
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1779

def resource
  @resource
end

#resource_urlString

The unique URL of the image or the container for which the Occurrence applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests. Corresponds to the JSON property resourceUrl

Returns:

  • (String)


1786
1787
1788
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1786

def resource_url
  @resource_url
end

#update_timeString

Output only. The time this Occurrence was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1791
1792
1793
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1791

def update_time
  @update_time
end

#vulnerability_detailsGoogle::Apis::ContaineranalysisV1alpha1::VulnerabilityDetails

Used by Occurrence to point to where the vulnerability exists and how to fix it. Corresponds to the JSON property vulnerabilityDetails



1797
1798
1799
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1797

def vulnerability_details
  @vulnerability_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1804

def update!(**args)
  @attestation = args[:attestation] if args.key?(:attestation)
  @build_details = args[:build_details] if args.key?(:build_details)
  @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)
  @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)
  @resource_url = args[:resource_url] if args.key?(:resource_url)
  @update_time = args[:update_time] if args.key?(:update_time)
  @vulnerability_details = args[:vulnerability_details] if args.key?(:vulnerability_details)
end