Class: Google::Apis::ContaineranalysisV1alpha1::Occurrence
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::Occurrence
- 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
-
#attestation ⇒ Google::Apis::ContaineranalysisV1alpha1::Attestation
Occurrence that represents a single "attestation".
-
#build_details ⇒ Google::Apis::ContaineranalysisV1alpha1::BuildDetails
Message encapsulating build provenance details.
-
#create_time ⇒ String
Output only.
-
#deployment ⇒ Google::Apis::ContaineranalysisV1alpha1::Deployment
The period during which some deployable was active in a runtime.
-
#derived_image ⇒ Google::Apis::ContaineranalysisV1alpha1::Derived
Derived describes the derived image portion (Occurrence) of the DockerImage relationship.
-
#discovered ⇒ Google::Apis::ContaineranalysisV1alpha1::Discovered
Provides information about the scan status of a discovered resource.
-
#installation ⇒ Google::Apis::ContaineranalysisV1alpha1::Installation
This represents how a particular software package may be installed on a system.
-
#kind ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#note_name ⇒ String
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. -
#remediation ⇒ String
A description of actions that can be taken to remedy the
Note
Corresponds to the JSON propertyremediation
. -
#resource ⇒ Google::Apis::ContaineranalysisV1alpha1::Resource
Resource is an entity that can have metadata.
-
#resource_url ⇒ String
The unique URL of the image or the container for which the
Occurrence
applies. -
#update_time ⇒ String
Output only.
-
#vulnerability_details ⇒ Google::Apis::ContaineranalysisV1alpha1::VulnerabilityDetails
Used by Occurrence to point to where the vulnerability exists and how to fix it.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Occurrence
constructor
A new instance of Occurrence.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Occurrence
Returns a new instance of Occurrence
1832 1833 1834 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1832 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attestation ⇒ Google::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
1750 1751 1752 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1750 def attestation @attestation end |
#build_details ⇒ Google::Apis::ContaineranalysisV1alpha1::BuildDetails
Message encapsulating build provenance details.
Corresponds to the JSON property buildDetails
1755 1756 1757 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1755 def build_details @build_details end |
#create_time ⇒ String
Output only. The time this Occurrence
was created.
Corresponds to the JSON property createTime
1760 1761 1762 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1760 def create_time @create_time end |
#deployment ⇒ Google::Apis::ContaineranalysisV1alpha1::Deployment
The period during which some deployable was active in a runtime.
Corresponds to the JSON property deployment
1765 1766 1767 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1765 def deployment @deployment end |
#derived_image ⇒ Google::Apis::ContaineranalysisV1alpha1::Derived
Derived describes the derived image portion (Occurrence) of the
DockerImage relationship. This image would be produced from a Dockerfile
with FROM derivedImage
1772 1773 1774 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1772 def derived_image @derived_image end |
#discovered ⇒ Google::Apis::ContaineranalysisV1alpha1::Discovered
Provides information about the scan status of a discovered resource.
Corresponds to the JSON property discovered
1777 1778 1779 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1777 def discovered @discovered end |
#installation ⇒ Google::Apis::ContaineranalysisV1alpha1::Installation
This represents how a particular software package may be installed on
a system.
Corresponds to the JSON property installation
1783 1784 1785 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1783 def installation @installation end |
#kind ⇒ String
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
1789 1790 1791 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1789 def kind @kind end |
#name ⇒ String
Output only. The name of the Occurrence
in the form
"projects/project_id
/occurrences/OCCURRENCE_ID
"
Corresponds to the JSON property name
1795 1796 1797 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1795 def name @name end |
#note_name ⇒ String
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
1802 1803 1804 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1802 def note_name @note_name end |
#remediation ⇒ String
A description of actions that can be taken to remedy the Note
Corresponds to the JSON property remediation
1807 1808 1809 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1807 def remediation @remediation end |
#resource ⇒ Google::Apis::ContaineranalysisV1alpha1::Resource
Resource is an entity that can have metadata. E.g., a Docker image.
Corresponds to the JSON property resource
1812 1813 1814 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1812 def resource @resource end |
#resource_url ⇒ String
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
1819 1820 1821 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1819 def resource_url @resource_url end |
#update_time ⇒ String
Output only. The time this Occurrence
was last updated.
Corresponds to the JSON property updateTime
1824 1825 1826 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1824 def update_time @update_time end |
#vulnerability_details ⇒ Google::Apis::ContaineranalysisV1alpha1::VulnerabilityDetails
Used by Occurrence to point to where the vulnerability exists and how
to fix it.
Corresponds to the JSON property vulnerabilityDetails
1830 1831 1832 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1830 def vulnerability_details @vulnerability_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1837 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 |