Class: Google::Apis::SecuritycenterV1::AttackPath

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

A path that an attacker could take to reach an exposed resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AttackPath

Returns a new instance of AttackPath.



464
465
466
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 464

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

Instance Attribute Details

#edgesArray<Google::Apis::SecuritycenterV1::AttackPathEdge>

A list of the edges between nodes in this attack path. Corresponds to the JSON property edges



451
452
453
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 451

def edges
  @edges
end

#nameString

The attack path name, for example, organizations/12/simulation/34/ valuedResources/56/attackPaths/78 Corresponds to the JSON property name

Returns:

  • (String)


457
458
459
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 457

def name
  @name
end

#path_nodesArray<Google::Apis::SecuritycenterV1::AttackPathNode>

A list of nodes that exist in this attack path. Corresponds to the JSON property pathNodes



462
463
464
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 462

def path_nodes
  @path_nodes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



469
470
471
472
473
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 469

def update!(**args)
  @edges = args[:edges] if args.key?(:edges)
  @name = args[:name] if args.key?(:name)
  @path_nodes = args[:path_nodes] if args.key?(:path_nodes)
end