Class: Google::Apis::NetworksecurityV1::ThreatOverride

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networksecurity_v1/classes.rb,
lib/google/apis/networksecurity_v1/representations.rb,
lib/google/apis/networksecurity_v1/representations.rb

Overview

Defines what action to take for a specific threat_id match.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ThreatOverride

Returns a new instance of ThreatOverride.



2299
2300
2301
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 2299

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

Instance Attribute Details

#actionString

Required. Threat action override. For some threat types, only a subset of actions applies. Corresponds to the JSON property action

Returns:

  • (String)


2287
2288
2289
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 2287

def action
  @action
end

#threat_idString

Required. Vendor-specific ID of a threat to override. Corresponds to the JSON property threatId

Returns:

  • (String)


2292
2293
2294
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 2292

def threat_id
  @threat_id
end

#typeString

Output only. Type of the threat (read only). Corresponds to the JSON property type

Returns:

  • (String)


2297
2298
2299
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 2297

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2304
2305
2306
2307
2308
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 2304

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