Class: Google::Apis::SecuritycenterV1::AttackStepNode

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

Detailed steps the attack can take between path nodes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AttackStepNode

Returns a new instance of AttackStepNode.



583
584
585
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 583

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

Instance Attribute Details

#descriptionString

Attack step description Corresponds to the JSON property description

Returns:

  • (String)


561
562
563
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 561

def description
  @description
end

#display_nameString

User friendly name of the attack step Corresponds to the JSON property displayName

Returns:

  • (String)


566
567
568
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 566

def display_name
  @display_name
end

#labelsHash<String,String>

Attack step labels for metadata Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


571
572
573
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 571

def labels
  @labels
end

#typeString

Attack step type. Can be either AND, OR or DEFENSE Corresponds to the JSON property type

Returns:

  • (String)


576
577
578
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 576

def type
  @type
end

#uuidString

Unique ID for one Node Corresponds to the JSON property uuid

Returns:

  • (String)


581
582
583
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 581

def uuid
  @uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



588
589
590
591
592
593
594
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 588

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @labels = args[:labels] if args.key?(:labels)
  @type = args[:type] if args.key?(:type)
  @uuid = args[:uuid] if args.key?(:uuid)
end