Class: Google::Apis::NetworksecurityV1beta1::WildfireThreatOverride

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 WildFire threat_id match.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WildfireThreatOverride

Returns a new instance of WildfireThreatOverride.



5702
5703
5704
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 5702

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

Instance Attribute Details

#actionString

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

Returns:

  • (String)


5695
5696
5697
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 5695

def action
  @action
end

#threat_idString

Required. Threat ID to match. Corresponds to the JSON property threatId

Returns:

  • (String)


5700
5701
5702
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 5700

def threat_id
  @threat_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5707
5708
5709
5710
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 5707

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