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.



3441
3442
3443
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3441

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)


3433
3434
3435
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3433

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)


3439
3440
3441
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3439

def spdx_version
  @spdx_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3446
3447
3448
3449
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3446

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