Class: Google::Apis::SecuritycenterV1beta2::Edge

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Overview

Represents a connection between a source node and a destination node in this exposure path.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Edge

Returns a new instance of Edge.



747
748
749
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 747

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

Instance Attribute Details

#destinationString

This is the resource name of the destination node. Corresponds to the JSON property destination

Returns:

  • (String)


740
741
742
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 740

def destination
  @destination
end

#sourceString

This is the resource name of the source node. Corresponds to the JSON property source

Returns:

  • (String)


745
746
747
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 745

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



752
753
754
755
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 752

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