Class: Google::Apis::NetworksecurityV1beta1::ThreatPreventionProfile
- Inherits:
-
Object
- Object
- Google::Apis::NetworksecurityV1beta1::ThreatPreventionProfile
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networksecurity_v1beta1/classes.rb,
lib/google/apis/networksecurity_v1beta1/representations.rb,
lib/google/apis/networksecurity_v1beta1/representations.rb
Overview
ThreatPreventionProfile defines an action for specific threat signatures or severity levels.
Instance Attribute Summary collapse
-
#severity_overrides ⇒ Array<Google::Apis::NetworksecurityV1beta1::SeverityOverride>
Optional.
-
#threat_overrides ⇒ Array<Google::Apis::NetworksecurityV1beta1::ThreatOverride>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ThreatPreventionProfile
constructor
A new instance of ThreatPreventionProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ThreatPreventionProfile
Returns a new instance of ThreatPreventionProfile.
3778 3779 3780 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3778 def initialize(**args) update!(**args) end |
Instance Attribute Details
#severity_overrides ⇒ Array<Google::Apis::NetworksecurityV1beta1::SeverityOverride>
Optional. Configuration for overriding threats actions by severity match.
Corresponds to the JSON property severityOverrides
3769 3770 3771 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3769 def severity_overrides @severity_overrides end |
#threat_overrides ⇒ Array<Google::Apis::NetworksecurityV1beta1::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
3776 3777 3778 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3776 def threat_overrides @threat_overrides end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3783 3784 3785 3786 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3783 def update!(**args) @severity_overrides = args[:severity_overrides] if args.key?(:severity_overrides) @threat_overrides = args[:threat_overrides] if args.key?(:threat_overrides) end |