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.



505
506
507
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 505

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)


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

def destination
  @destination
end

#sourceString

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

Returns:

  • (String)


503
504
505
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 503

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



510
511
512
513
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 510

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