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.



5693
5694
5695
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 5693

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

Instance Attribute Details

#actionString

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

Returns:

  • (String)


5686
5687
5688
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 5686

def action
  @action
end

#threat_idString

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

Returns:

  • (String)


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