Class: Google::Apis::CloudassetV1::GoogleCloudAssetV1Edge

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssetV1Edge

Returns a new instance of GoogleCloudAssetV1Edge.



1845
1846
1847
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1845

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

Instance Attribute Details

#source_nodeString

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

Returns:

  • (String)


1837
1838
1839
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1837

def source_node
  @source_node
end

#target_nodeString

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

Returns:

  • (String)


1843
1844
1845
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1843

def target_node
  @target_node
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1850
1851
1852
1853
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1850

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