Class: Google::Apis::SecuritycenterV1::AttackPathNode
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::AttackPathNode
- 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 one point that an attacker passes through in this attack path.
Instance Attribute Summary collapse
-
#associated_findings ⇒ Array<Google::Apis::SecuritycenterV1::PathNodeAssociatedFinding>
The findings associated with this node in the attack path.
-
#attack_steps ⇒ Array<Google::Apis::SecuritycenterV1::AttackStepNode>
A list of attack step nodes that exist in this attack path node.
-
#display_name ⇒ String
Human-readable name of this resource.
-
#resource ⇒ String
The name of the resource at this point in the attack path.
-
#resource_type ⇒ String
The supported resource type Corresponds to the JSON property
resourceType. -
#uuid ⇒ String
Unique id of the attack path node.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AttackPathNode
constructor
A new instance of AttackPathNode.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AttackPathNode
Returns a new instance of AttackPathNode.
456 457 458 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 456 def initialize(**args) update!(**args) end |
Instance Attribute Details
#associated_findings ⇒ Array<Google::Apis::SecuritycenterV1::PathNodeAssociatedFinding>
The findings associated with this node in the attack path.
Corresponds to the JSON property associatedFindings
426 427 428 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 426 def associated_findings @associated_findings end |
#attack_steps ⇒ Array<Google::Apis::SecuritycenterV1::AttackStepNode>
A list of attack step nodes that exist in this attack path node.
Corresponds to the JSON property attackSteps
431 432 433 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 431 def attack_steps @attack_steps end |
#display_name ⇒ String
Human-readable name of this resource.
Corresponds to the JSON property displayName
436 437 438 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 436 def display_name @display_name end |
#resource ⇒ String
The name of the resource at this point in the attack path. The format of the
name follows the Cloud Asset Inventory resource name format
Corresponds to the JSON property resource
443 444 445 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 443 def resource @resource end |
#resource_type ⇒ String
The supported resource type
Corresponds to the JSON property resourceType
449 450 451 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 449 def resource_type @resource_type end |
#uuid ⇒ String
Unique id of the attack path node.
Corresponds to the JSON property uuid
454 455 456 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 454 def uuid @uuid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
461 462 463 464 465 466 467 468 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 461 def update!(**args) @associated_findings = args[:associated_findings] if args.key?(:associated_findings) @attack_steps = args[:attack_steps] if args.key?(:attack_steps) @display_name = args[:display_name] if args.key?(:display_name) @resource = args[:resource] if args.key?(:resource) @resource_type = args[:resource_type] if args.key?(:resource_type) @uuid = args[:uuid] if args.key?(:uuid) end |