Class: Google::Apis::SecuritycenterV1::ValidateEventThreatDetectionCustomModuleRequest

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

Request to validate an Event Threat Detection custom module.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ValidateEventThreatDetectionCustomModuleRequest

Returns a new instance of ValidateEventThreatDetectionCustomModuleRequest.



15092
15093
15094
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 15092

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

Instance Attribute Details

#raw_textString

Required. The raw text of the module's contents. Used to generate error messages. Corresponds to the JSON property rawText

Returns:

  • (String)


15085
15086
15087
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 15085

def raw_text
  @raw_text
end

#typeString

Required. The type of the module (e.g. CONFIGURABLE_BAD_IP). Corresponds to the JSON property type

Returns:

  • (String)


15090
15091
15092
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 15090

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15097
15098
15099
15100
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 15097

def update!(**args)
  @raw_text = args[:raw_text] if args.key?(:raw_text)
  @type = args[:type] if args.key?(:type)
end