Struct google_api_proto::google::cloud::securitycenter::v2::MuteConfig
source · pub struct MuteConfig {
pub name: String,
pub description: String,
pub filter: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub most_recent_editor: String,
pub type: i32,
pub expiry_time: Option<Timestamp>,
}
Expand description
A mute config is a Cloud SCC resource that contains the configuration to mute create/update events of findings.
Fields§
§name: String
Identifier. This field will be ignored if provided on config creation. The following list shows some examples of the format:
organizations/{organization}/muteConfigs/{mute_config}
organizations/{organization}locations/{location}//muteConfigs/{mute_config}
folders/{folder}/muteConfigs/{mute_config}
folders/{folder}/locations/{location}/muteConfigs/{mute_config}
projects/{project}/muteConfigs/{mute_config}
projects/{project}/locations/{location}/muteConfigs/{mute_config}
description: String
A description of the mute config.
filter: String
Required. An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings.
The following field and operator combinations are supported:
- severity:
=
,:
- category:
=
,:
- resource.name:
=
,:
- resource.project_name:
=
,:
- resource.project_display_name:
=
,:
- resource.folders.resource_folder:
=
,:
- resource.parent_name:
=
,:
- resource.parent_display_name:
=
,:
- resource.type:
=
,:
- finding_class:
=
,:
- indicator.ip_addresses:
=
,:
- indicator.domains:
=
,:
create_time: Option<Timestamp>
Output only. The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
update_time: Option<Timestamp>
Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
most_recent_editor: String
Output only. Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
type: i32
Required. The type of the mute config, which determines what type of mute state the config affects. Immutable after creation.
expiry_time: Option<Timestamp>
Optional. The expiry of the mute config. Only applicable for dynamic configs. If the expiry is set, when the config expires, it is removed from all findings.
Implementations§
source§impl MuteConfig
impl MuteConfig
sourcepub fn type(&self) -> MuteConfigType
pub fn type(&self) -> MuteConfigType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: MuteConfigType)
pub fn set_type(&mut self, value: MuteConfigType)
Sets type
to the provided enum value.
Trait Implementations§
source§impl Clone for MuteConfig
impl Clone for MuteConfig
source§fn clone(&self) -> MuteConfig
fn clone(&self) -> MuteConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MuteConfig
impl Debug for MuteConfig
source§impl Default for MuteConfig
impl Default for MuteConfig
source§impl Message for MuteConfig
impl Message for MuteConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for MuteConfig
impl PartialEq for MuteConfig
source§fn eq(&self, other: &MuteConfig) -> bool
fn eq(&self, other: &MuteConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MuteConfig
Auto Trait Implementations§
impl Freeze for MuteConfig
impl RefUnwindSafe for MuteConfig
impl Send for MuteConfig
impl Sync for MuteConfig
impl Unpin for MuteConfig
impl UnwindSafe for MuteConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request