Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1ExposurePath
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1ExposurePath
- 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
-
#edges ⇒ Array<Google::Apis::SecuritycenterV1::Edge>
A list of the edges between nodes in this exposure path.
-
#exposed_resource ⇒ Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1ExposedResource
A resource that is exposed as a result of a finding.
-
#name ⇒ String
Exposure Path Name e.g.:
organizations/123/attackExposureResults/456/ exposurePaths/789Corresponds to the JSON propertyname. -
#path_nodes ⇒ Array<Google::Apis::SecuritycenterV1::PathNode>
A list of nodes that exist in this exposure path.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSecuritycenterV1ExposurePath
constructor
A new instance of GoogleCloudSecuritycenterV1ExposurePath.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV1ExposurePath
Returns a new instance of GoogleCloudSecuritycenterV1ExposurePath.
1667 1668 1669 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1667 def initialize(**args) update!(**args) end |
Instance Attribute Details
#edges ⇒ Array<Google::Apis::SecuritycenterV1::Edge>
A list of the edges between nodes in this exposure path.
Corresponds to the JSON property edges
1649 1650 1651 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1649 def edges @edges end |
#exposed_resource ⇒ Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1ExposedResource
A resource that is exposed as a result of a finding.
Corresponds to the JSON property exposedResource
1654 1655 1656 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1654 def exposed_resource @exposed_resource end |
#name ⇒ String
Exposure Path Name e.g.: organizations/123/attackExposureResults/456/
exposurePaths/789
Corresponds to the JSON property name
1660 1661 1662 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1660 def name @name end |
#path_nodes ⇒ Array<Google::Apis::SecuritycenterV1::PathNode>
A list of nodes that exist in this exposure path.
Corresponds to the JSON property pathNodes
1665 1666 1667 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1665 def path_nodes @path_nodes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1672 1673 1674 1675 1676 1677 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1672 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 |