Class: Google::Apis::ContaineranalysisV1beta1::RelationshipNote
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1beta1::RelationshipNote
- 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
RelationshipNote represents an SPDX Relationship section: https://spdx.github. io/spdx-spec/7-relationships-between-SPDX-elements/
Instance Attribute Summary collapse
-
#type ⇒ String
The type of relationship between the source and target SPDX elements Corresponds to the JSON property
type
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RelationshipNote
constructor
A new instance of RelationshipNote.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RelationshipNote
Returns a new instance of RelationshipNote.
5824 5825 5826 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 5824 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ String
The type of relationship between the source and target SPDX elements
Corresponds to the JSON property type
5822 5823 5824 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 5822 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5829 5830 5831 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 5829 def update!(**args) @type = args[:type] if args.key?(:type) end |