Class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Edge
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Edge
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/cloudasset_v1p4beta1/classes.rb,
generated/google/apis/cloudasset_v1p4beta1/representations.rb,
generated/google/apis/cloudasset_v1p4beta1/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) ⇒ GoogleCloudAssetV1p4beta1Edge
constructor
A new instance of GoogleCloudAssetV1p4beta1Edge.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssetV1p4beta1Edge
Returns a new instance of GoogleCloudAssetV1p4beta1Edge.
397 398 399 |
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 397 def initialize(**args) update!(**args) end |
Instance Attribute Details
#source_node ⇒ String
The source node of the edge.
Corresponds to the JSON property sourceNode
390 391 392 |
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 390 def source_node @source_node end |
#target_node ⇒ String
The target node of the edge.
Corresponds to the JSON property targetNode
395 396 397 |
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 395 def target_node @target_node end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
402 403 404 405 |
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 402 def update!(**args) @source_node = args[:source_node] if args.key?(:source_node) @target_node = args[:target_node] if args.key?(:target_node) end |