Struct google_api_proto::google::cloud::securitycenter::v2::BulkMuteFindingsRequest
source · pub struct BulkMuteFindingsRequest {
pub parent: String,
pub filter: String,
pub mute_state: i32,
}
Expand description
Request message for bulk findings update.
Note:
- If multiple bulk update requests match the same resource, the order in which they get executed is not defined.
- Once a bulk operation is started, there is no way to stop it.
Fields§
§parent: String
Required. The parent, at which bulk action needs to be applied. If no location is specified, findings are updated in global. The following list shows some examples:
organizations/\[organization_id\]
organizations/\[organization_id\]/locations/\[location_id\]
folders/\[folder_id\]
folders/\[folder_id\]/locations/\[location_id\]
projects/\[project_id\]
projects/\[project_id\]/locations/\[location_id\]
filter: String
Expression that identifies findings that should be updated.
The expression is a list of zero or more restrictions combined
via logical operators AND
and OR
. Parentheses are supported, and OR
has higher precedence than AND
.
Restrictions have the form <field> <operator> <value>
and may have a
-
character in front of them to indicate negation. The fields map to
those defined in the corresponding resource.
The supported operators are:
=
for all value types.>
,<
,>=
,<=
for integer values.:
, meaning substring matching, for strings.
The supported value types are:
- string literals in quotes.
- integer literals without quotes.
- boolean literals
true
andfalse
without quotes.
mute_state: i32
Optional. All findings matching the given filter will have their mute state
set to this value. The default value is MUTED
. Setting this to
UNDEFINED
will clear the mute state on all matching findings.
Implementations§
source§impl BulkMuteFindingsRequest
impl BulkMuteFindingsRequest
sourcepub fn mute_state(&self) -> MuteState
pub fn mute_state(&self) -> MuteState
Returns the enum value of mute_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_mute_state(&mut self, value: MuteState)
pub fn set_mute_state(&mut self, value: MuteState)
Sets mute_state
to the provided enum value.
Trait Implementations§
source§impl Clone for BulkMuteFindingsRequest
impl Clone for BulkMuteFindingsRequest
source§fn clone(&self) -> BulkMuteFindingsRequest
fn clone(&self) -> BulkMuteFindingsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BulkMuteFindingsRequest
impl Debug for BulkMuteFindingsRequest
source§impl Default for BulkMuteFindingsRequest
impl Default for BulkMuteFindingsRequest
source§impl Message for BulkMuteFindingsRequest
impl Message for BulkMuteFindingsRequest
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 BulkMuteFindingsRequest
impl PartialEq for BulkMuteFindingsRequest
source§fn eq(&self, other: &BulkMuteFindingsRequest) -> bool
fn eq(&self, other: &BulkMuteFindingsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BulkMuteFindingsRequest
Auto Trait Implementations§
impl Freeze for BulkMuteFindingsRequest
impl RefUnwindSafe for BulkMuteFindingsRequest
impl Send for BulkMuteFindingsRequest
impl Sync for BulkMuteFindingsRequest
impl Unpin for BulkMuteFindingsRequest
impl UnwindSafe for BulkMuteFindingsRequest
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