Class: Google::Apis::ContaineranalysisV1alpha1::DocumentNote

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

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.



3479
3480
3481
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3479

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)


3471
3472
3473
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3471

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)


3477
3478
3479
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3477

def spdx_version
  @spdx_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3484
3485
3486
3487
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3484

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