Class: Google::Apis::NetworksecurityV1::SeverityOverride
- Inherits:
-
Object
- Object
- Google::Apis::NetworksecurityV1::SeverityOverride
- 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
Defines what action to take for a specific severity match.
Instance Attribute Summary collapse
-
#action ⇒ String
Required.
-
#severity ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SeverityOverride
constructor
A new instance of SeverityOverride.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SeverityOverride
Returns a new instance of SeverityOverride.
4524 4525 4526 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 4524 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Required. Threat action override.
Corresponds to the JSON property action
4517 4518 4519 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 4517 def action @action end |
#severity ⇒ String
Required. Severity level to match.
Corresponds to the JSON property severity
4522 4523 4524 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 4522 def severity @severity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4529 4530 4531 4532 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 4529 def update!(**args) @action = args[:action] if args.key?(:action) @severity = args[:severity] if args.key?(:severity) end |