Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExposurePath

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV1ExposurePath

Returns a new instance of GoogleCloudSecuritycenterV1ExposurePath.



1397
1398
1399
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1397

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

Instance Attribute Details

#edgesArray<Google::Apis::SecuritycenterV1beta2::Edge>

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



1379
1380
1381
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1379

def edges
  @edges
end

#exposed_resourceGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExposedResource

A resource that is exposed as a result of a finding. Corresponds to the JSON property exposedResource



1384
1385
1386
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1384

def exposed_resource
  @exposed_resource
end

#nameString

Exposure Path Name e.g.: organizations/123/attackExposureResults/456/ exposurePaths/789 Corresponds to the JSON property name

Returns:

  • (String)


1390
1391
1392
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1390

def name
  @name
end

#path_nodesArray<Google::Apis::SecuritycenterV1beta2::PathNode>

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



1395
1396
1397
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1395

def path_nodes
  @path_nodes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1402
1403
1404
1405
1406
1407
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1402

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