Class: Google::Apis::SecuritycenterV1::AttackPathNode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AttackPathNode

Returns a new instance of AttackPathNode.



738
739
740
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 738

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

Instance Attribute Details

#associated_findingsArray<Google::Apis::SecuritycenterV1::PathNodeAssociatedFinding>

Corresponds to the JSON property associatedFindings



711
712
713
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 711

def associated_findings
  @associated_findings
end

#attack_stepsArray<Google::Apis::SecuritycenterV1::AttackStepNode>

Corresponds to the JSON property attackSteps



716
717
718
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 716

def attack_steps
  @attack_steps
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


721
722
723
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 721

def display_name
  @display_name
end

#resourceString

Corresponds to the JSON property resource

Returns:

  • (String)


726
727
728
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 726

def resource
  @resource
end

#resource_typeString

Corresponds to the JSON property resourceType

Returns:

  • (String)


731
732
733
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 731

def resource_type
  @resource_type
end

#uuidString

Corresponds to the JSON property uuid

Returns:

  • (String)


736
737
738
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 736

def uuid
  @uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



743
744
745
746
747
748
749
750
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 743

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