Class: Google::Apis::ContaineranalysisV1beta1::License

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

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.



3421
3422
3423
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 3421

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

Instance Attribute Details

#commentsString

Comments Corresponds to the JSON property comments

Returns:

  • (String)


3413
3414
3415
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 3413

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)


3419
3420
3421
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 3419

def expression
  @expression
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3426
3427
3428
3429
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 3426

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