Class: Google::Apis::ContaineranalysisV1::License
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1::License
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1/classes.rb,
lib/google/apis/containeranalysis_v1/representations.rb,
lib/google/apis/containeranalysis_v1/representations.rb
Overview
License information.
Instance Attribute Summary collapse
-
#comments ⇒ String
Comments Corresponds to the JSON property
comments
. -
#expression ⇒ String
Often a single license can be used to represent the licensing terms.
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.
4507 4508 4509 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4507 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comments ⇒ String
Comments
Corresponds to the JSON property comments
4497 4498 4499 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4497 def comments @comments end |
#expression ⇒ String
Often a single license can be used to represent the licensing terms. Sometimes
it is necessary to include a choice of one or more licenses or some
combination of license identifiers. Examples: "LGPL-2.1-only OR MIT", "LGPL-2.
1-only AND MIT", "GPL-2.0-or-later WITH Bison-exception-2.2".
Corresponds to the JSON property expression
4505 4506 4507 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4505 def expression @expression end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4512 4513 4514 4515 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4512 def update!(**args) @comments = args[:comments] if args.key?(:comments) @expression = args[:expression] if args.key?(:expression) end |