Class: Google::Apis::ContaineranalysisV1beta1::DocumentNote

Inherits:
Object
  • Object
show all
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

DocumentNote represents an SPDX Document Creation Infromation section: https:// spdx.github.io/spdx-spec/2-document-creation-information/

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DocumentNote

Returns a new instance of DocumentNote.



2368
2369
2370
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2368

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

Instance Attribute Details

#data_licenceString

Compliance with the SPDX specification includes populating the SPDX fields therein with data related to such fields ("SPDX-Metadata") Corresponds to the JSON property dataLicence

Returns:

  • (String)


2360
2361
2362
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2360

def data_licence
  @data_licence
end

#spdx_versionString

Provide a reference number that can be used to understand how to parse and interpret the rest of the file Corresponds to the JSON property spdxVersion

Returns:

  • (String)


2366
2367
2368
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2366

def spdx_version
  @spdx_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2373
2374
2375
2376
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2373

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