Class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Edge

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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssetV1p4beta1Edge

Returns a new instance of GoogleCloudAssetV1p4beta1Edge.



423
424
425
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 423

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#source_nodeString

The source node of the edge. Corresponds to the JSON property sourceNode

Returns:

  • (String)


416
417
418
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 416

def source_node
  @source_node
end

#target_nodeString

The target node of the edge. Corresponds to the JSON property targetNode

Returns:

  • (String)


421
422
423
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 421

def target_node
  @target_node
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



428
429
430
431
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 428

def update!(**args)
  @source_node = args[:source_node] if args.key?(:source_node)
  @target_node = args[:target_node] if args.key?(:target_node)
end