Class: Google::Apis::NetworksecurityV1::ThreatPreventionProfile

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networksecurity_v1/classes.rb,
lib/google/apis/networksecurity_v1/representations.rb,
lib/google/apis/networksecurity_v1/representations.rb

Overview

ThreatPreventionProfile defines an action for specific threat signatures or severity levels.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ThreatPreventionProfile

Returns a new instance of ThreatPreventionProfile.



2328
2329
2330
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 2328

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

Instance Attribute Details

#severity_overridesArray<Google::Apis::NetworksecurityV1::SeverityOverride>

Optional. Configuration for overriding threats actions by severity match. Corresponds to the JSON property severityOverrides



2319
2320
2321
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 2319

def severity_overrides
  @severity_overrides
end

#threat_overridesArray<Google::Apis::NetworksecurityV1::ThreatOverride>

Optional. Configuration for overriding threats actions by threat_id match. If a threat is matched both by configuration provided in severity_overrides and threat_overrides, the threat_overrides action is applied. Corresponds to the JSON property threatOverrides



2326
2327
2328
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 2326

def threat_overrides
  @threat_overrides
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2333
2334
2335
2336
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 2333

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