Class: Google::Apis::CloudassetV1::GoogleCloudAssetV1Edge
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::GoogleCloudAssetV1Edge
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb
Overview
A directional edge.
Instance Attribute Summary collapse
-
#source_node ⇒ String
The source node of the edge.
-
#target_node ⇒ String
The target node of the edge.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssetV1Edge
constructor
A new instance of GoogleCloudAssetV1Edge.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssetV1Edge
Returns a new instance of GoogleCloudAssetV1Edge.
1098 1099 1100 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1098 def initialize(**args) update!(**args) end |
Instance Attribute Details
#source_node ⇒ String
The source node of the edge. For example, it could be a full resource name for
a resource node or an email of an identity.
Corresponds to the JSON property sourceNode
1090 1091 1092 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1090 def source_node @source_node end |
#target_node ⇒ String
The target node of the edge. For example, it could be a full resource name for
a resource node or an email of an identity.
Corresponds to the JSON property targetNode
1096 1097 1098 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1096 def target_node @target_node end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1103 1104 1105 1106 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1103 def update!(**args) @source_node = args[:source_node] if args.key?(:source_node) @target_node = args[:target_node] if args.key?(:target_node) end |