Class: Google::Apis::SecuritycenterV1::AttackPathEdge

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AttackPathEdge

Returns a new instance of AttackPathEdge.



491
492
493
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 491

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

Instance Attribute Details

#destinationString

The attack node uuid of the destination node. Corresponds to the JSON property destination

Returns:

  • (String)


484
485
486
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 484

def destination
  @destination
end

#sourceString

The attack node uuid of the source node. Corresponds to the JSON property source

Returns:

  • (String)


489
490
491
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 489

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



496
497
498
499
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 496

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