Class: Google::Apis::ContaineranalysisV1alpha1::License
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::License
- 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
-
#comments ⇒ String
Comments Corresponds to the JSON property
comments. -
#expression ⇒ String
Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license- expressions/ Corresponds to the JSON property
expression.
Instance Method Summary collapse
-
#initialize(**args) ⇒ License
constructor
A new instance of License.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ License
Returns a new instance of License.
3452 3453 3454 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3452 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comments ⇒ String
Comments
Corresponds to the JSON property comments
3444 3445 3446 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3444 def comments @comments end |
#expression ⇒ String
Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-
expressions/
Corresponds to the JSON property expression
3450 3451 3452 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3450 def expression @expression end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3457 3458 3459 3460 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3457 def update!(**args) @comments = args[:comments] if args.key?(:comments) @expression = args[:expression] if args.key?(:expression) end |