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 Information 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.



3358
3359
3360
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 3358

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)


3350
3351
3352
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 3350

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)


3356
3357
3358
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 3356

def spdx_version
  @spdx_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3363
3364
3365
3366
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 3363

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