Class: Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule
- 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
-
#config ⇒ Hash<String,Object>
Config for the module.
-
#description ⇒ String
The description for the module.
-
#display_name ⇒ String
The human readable name to be displayed for the module.
-
#enablement_state ⇒ String
The state of enablement for the module at the given level of the hierarchy.
-
#last_editor ⇒ String
Output only.
-
#name ⇒ String
Immutable.
-
#type ⇒ String
Type for the module.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventThreatDetectionCustomModule
constructor
A new instance of EventThreatDetectionCustomModule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EventThreatDetectionCustomModule
Returns a new instance of EventThreatDetectionCustomModule.
1389 1390 1391 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1389 def initialize(**args) update!(**args) end |
Instance Attribute Details
#config ⇒ Hash<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
1348 1349 1350 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1348 def config @config end |
#description ⇒ String
The description for the module.
Corresponds to the JSON property description
1353 1354 1355 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1353 def description @description end |
#display_name ⇒ String
The human readable name to be displayed for the module.
Corresponds to the JSON property displayName
1358 1359 1360 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1358 def display_name @display_name end |
#enablement_state ⇒ String
The state of enablement for the module at the given level of the hierarchy.
Corresponds to the JSON property enablementState
1363 1364 1365 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1363 def enablement_state @enablement_state end |
#last_editor ⇒ String
Output only. The editor the module was last updated by.
Corresponds to the JSON property lastEditor
1368 1369 1370 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1368 def last_editor @last_editor end |
#name ⇒ String
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
1377 1378 1379 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1377 def name @name end |
#type ⇒ String
Type for the module. e.g. CONFIGURABLE_BAD_IP.
Corresponds to the JSON property type
1382 1383 1384 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1382 def type @type end |
#update_time ⇒ String
Output only. The time the module was last updated.
Corresponds to the JSON property updateTime
1387 1388 1389 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1387 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1394 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 |