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.



500
501
502
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 500

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

Instance Attribute Details

#descriptionString

Attack step description Corresponds to the JSON property description

Returns:

  • (String)


478
479
480
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 478

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


483
484
485
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 483

def display_name
  @display_name
end

#labelsHash<String,String>

Attack step labels for metadata Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


488
489
490
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 488

def labels
  @labels
end

#typeString

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

Returns:

  • (String)


493
494
495
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 493

def type
  @type
end

#uuidString

Unique ID for one Node Corresponds to the JSON property uuid

Returns:

  • (String)


498
499
500
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 498

def uuid
  @uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



505
506
507
508
509
510
511
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 505

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