#[non_exhaustive]pub struct BulkMuteFindingsRequest {
pub parent: String,
pub filter: String,
pub mute_state: MuteState,
/* private fields */
}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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. 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: StringExpression 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
trueandfalsewithout quotes.
mute_state: MuteStateOptional. 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
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_mute_state<T: Into<MuteState>>(self, v: T) -> Self
pub fn set_mute_state<T: Into<MuteState>>(self, v: T) -> Self
Sets the value of mute_state.
§Example
use google_cloud_securitycenter_v2::model::bulk_mute_findings_request::MuteState;
let x0 = BulkMuteFindingsRequest::new().set_mute_state(MuteState::Muted);
let x1 = BulkMuteFindingsRequest::new().set_mute_state(MuteState::Undefined);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 more