Google Cloud Security Command Center V1 Client - Class StaticMute (1.32.0)

Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class 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.

Generated from protobuf message google.cloud.securitycenter.v1.Finding.MuteInfo.StaticMute

Namespace

Google \ Cloud \ SecurityCenter \ V1 \ Finding \ MuteInfo

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ state int

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

↳ apply_time Google\Protobuf\Timestamp

When the static mute was applied.

getState

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

Returns
Type Description
int

setState

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

Parameter
Name Description
var int
Returns
Type Description
$this

getApplyTime

When the static mute was applied.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasApplyTime

clearApplyTime

setApplyTime

When the static mute was applied.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this