Class: Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule

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

Represents an instance of an Event Threat Detection custom module, including its full module name, display name, enablement state, and last updated time. You can create a custom module at the organization level only.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EventThreatDetectionCustomModule

Returns a new instance of EventThreatDetectionCustomModule.



1451
1452
1453
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1451

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

Instance Attribute Details

#configHash<String,Object>

Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module. Corresponds to the JSON property config

Returns:



1410
1411
1412
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1410

def config
  @config
end

#descriptionString

The description for the module. Corresponds to the JSON property description

Returns:

  • (String)


1415
1416
1417
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1415

def description
  @description
end

#display_nameString

The human readable name to be displayed for the module. Corresponds to the JSON property displayName

Returns:

  • (String)


1420
1421
1422
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1420

def display_name
  @display_name
end

#enablement_stateString

The state of enablement for the module at the given level of the hierarchy. Corresponds to the JSON property enablementState

Returns:

  • (String)


1425
1426
1427
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1425

def enablement_state
  @enablement_state
end

#last_editorString

Output only. The editor the module was last updated by. Corresponds to the JSON property lastEditor

Returns:

  • (String)


1430
1431
1432
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1430

def last_editor
  @last_editor
end

#nameString

Immutable. The resource name of the Event Threat Detection custom module. Its format is: * "organizations/organization/eventThreatDetectionSettings/ customModules/module". * "folders/folder/eventThreatDetectionSettings/ customModules/module". * "projects/project/eventThreatDetectionSettings/ customModules/module". Corresponds to the JSON property name

Returns:

  • (String)


1439
1440
1441
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1439

def name
  @name
end

#typeString

Type for the module. e.g. CONFIGURABLE_BAD_IP. Corresponds to the JSON property type

Returns:

  • (String)


1444
1445
1446
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1444

def type
  @type
end

#update_timeString

Output only. The time the module was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1449
1450
1451
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1449

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1456

def update!(**args)
  @config = args[:config] if args.key?(:config)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @enablement_state = args[:enablement_state] if args.key?(:enablement_state)
  @last_editor = args[:last_editor] if args.key?(:last_editor)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
  @update_time = args[:update_time] if args.key?(:update_time)
end