Class: Google::Apis::NetworksecurityV1beta1::WildfireThreatOverride
- Inherits:
-
Object
- Object
- Google::Apis::NetworksecurityV1beta1::WildfireThreatOverride
- 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 WildFire threat_id match.
Instance Attribute Summary collapse
-
#action ⇒ String
Required.
-
#threat_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WildfireThreatOverride
constructor
A new instance of WildfireThreatOverride.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WildfireThreatOverride
Returns a new instance of WildfireThreatOverride.
5693 5694 5695 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 5693 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Required. Threat action override.
Corresponds to the JSON property action
5686 5687 5688 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 5686 def action @action end |
#threat_id ⇒ String
Required. Threat ID to match.
Corresponds to the JSON property threatId
5691 5692 5693 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 5691 def threat_id @threat_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5698 5699 5700 5701 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 5698 def update!(**args) @action = args[:action] if args.key?(:action) @threat_id = args[:threat_id] if args.key?(:threat_id) end |