Class: Google::Apis::NetworksecurityV1beta1::SeverityOverride

Inherits:
Object
  • Object
show all
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

Defines what action to take for a specific severity match.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SeverityOverride

Returns a new instance of SeverityOverride.



3148
3149
3150
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3148

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

Instance Attribute Details

#actionString

Required. Threat action override. Corresponds to the JSON property action

Returns:

  • (String)


3141
3142
3143
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3141

def action
  @action
end

#severityString

Required. Severity level to match. Corresponds to the JSON property severity

Returns:

  • (String)


3146
3147
3148
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3146

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3153
3154
3155
3156
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3153

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