Class: Google::Apis::SecuritycenterV1beta2::StaticMute

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

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StaticMute

Returns a new instance of StaticMute.



9393
9394
9395
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9393

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

Instance Attribute Details

#apply_timeString

When the static mute was applied. Corresponds to the JSON property applyTime

Returns:

  • (String)


9385
9386
9387
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9385

def apply_time
  @apply_time
end

#stateString

The static mute state. If the value is MUTED or UNMUTED, then the finding' s overall mute state will have the same value. Corresponds to the JSON property state

Returns:

  • (String)


9391
9392
9393
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9391

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9398
9399
9400
9401
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9398

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