Class: Google::Apis::ContaineranalysisV1alpha1::RelationshipNote

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#typeString

The type of relationship between the source and target SPDX elements Corresponds to the JSON property type

Returns:

  • (String)


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