Class: Google::Apis::ContaineranalysisV1alpha1::RelationshipNote
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::RelationshipNote
- 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
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.
6066 6067 6068 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6066 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
6064 6065 6066 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6064 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6071 6072 6073 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6071 def update!(**args) @type = args[:type] if args.key?(:type) end |