Class: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceNote

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

Overview

The note representing an SBOM reference.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SbomReferenceNote

Returns a new instance of SbomReferenceNote.



6367
6368
6369
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6367

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

Instance Attribute Details

#formatString

The format that SBOM takes. E.g. may be spdx, cyclonedx, etc... Corresponds to the JSON property format

Returns:

  • (String)


6359
6360
6361
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6359

def format
  @format
end

#versionString

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

Returns:

  • (String)


6365
6366
6367
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6365

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6372
6373
6374
6375
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6372

def update!(**args)
  @format = args[:format] if args.key?(:format)
  @version = args[:version] if args.key?(:version)
end