Class: Google::Apis::ContaineranalysisV1alpha1::License

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

License information: https://spdx.github.io/spdx-spec/3-package-information/# 315-declared-license

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ License

Returns a new instance of License.



3312
3313
3314
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3312

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

Instance Attribute Details

#commentsString

Comments Corresponds to the JSON property comments

Returns:

  • (String)


3304
3305
3306
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3304

def comments
  @comments
end

#expressionString

Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license- expressions/ Corresponds to the JSON property expression

Returns:

  • (String)


3310
3311
3312
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3310

def expression
  @expression
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3317
3318
3319
3320
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3317

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