Class: Google::Apis::SecuritycenterV1beta2::MuteInfo

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

Overview

Mute information about the finding, including whether the finding has a static mute or any matching dynamic mute rules.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MuteInfo

Returns a new instance of MuteInfo.



8524
8525
8526
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8524

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

Instance Attribute Details

#dynamic_mute_recordsArray<Google::Apis::SecuritycenterV1beta2::DynamicMuteRecord>

The list of dynamic mute rules that currently match the finding. Corresponds to the JSON property dynamicMuteRecords



8515
8516
8517
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8515

def dynamic_mute_records
  @dynamic_mute_records
end

#static_muteGoogle::Apis::SecuritycenterV1beta2::StaticMute

Information about the static mute state. A static mute state overrides any dynamic mute rules that apply to this finding. The static mute state can be set by a static mute rule or by muting the finding directly. Corresponds to the JSON property staticMute



8522
8523
8524
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8522

def static_mute
  @static_mute
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8529
8530
8531
8532
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8529

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