Class: Google::Apis::NetworksecurityV1beta1::ThreatOverride
- Inherits:
-
Object
- Object
- Google::Apis::NetworksecurityV1beta1::ThreatOverride
- 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 threat_id match.
Instance Attribute Summary collapse
-
#action ⇒ String
Required.
-
#threat_id ⇒ String
Required.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ThreatOverride
constructor
A new instance of ThreatOverride.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ThreatOverride
Returns a new instance of ThreatOverride.
2264 2265 2266 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 2264 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Required. Threat action override. For some threat types, only a subset of
actions applies.
Corresponds to the JSON property action
2252 2253 2254 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 2252 def action @action end |
#threat_id ⇒ String
Required. Vendor-specific ID of a threat to override.
Corresponds to the JSON property threatId
2257 2258 2259 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 2257 def threat_id @threat_id end |
#type ⇒ String
Output only. Type of the threat (read only).
Corresponds to the JSON property type
2262 2263 2264 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 2262 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2269 2270 2271 2272 2273 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 2269 def update!(**args) @action = args[:action] if args.key?(:action) @threat_id = args[:threat_id] if args.key?(:threat_id) @type = args[:type] if args.key?(:type) end |