Class: Google::Apis::ContaineranalysisV1beta1::SbomReferenceNote
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1beta1::SbomReferenceNote
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1beta1/classes.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb
Overview
The note representing an SBOM reference.
Instance Attribute Summary collapse
-
#format ⇒ String
The format that SBOM takes.
-
#version ⇒ String
The version of the format that the SBOM takes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SbomReferenceNote
constructor
A new instance of SbomReferenceNote.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SbomReferenceNote
Returns a new instance of SbomReferenceNote.
6070 6071 6072 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6070 def initialize(**args) update!(**args) end |
Instance Attribute Details
#format ⇒ String
The format that SBOM takes. E.g. may be spdx, cyclonedx, etc...
Corresponds to the JSON property format
6062 6063 6064 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6062 def format @format end |
#version ⇒ String
The version of the format that the SBOM takes. E.g. if the format is spdx, the
version may be 2.3.
Corresponds to the JSON property version
6068 6069 6070 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6068 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6075 6076 6077 6078 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6075 def update!(**args) @format = args[:format] if args.key?(:format) @version = args[:version] if args.key?(:version) end |