#[non_exhaustive]pub struct PurgeIdentityMappingsRequest {
pub identity_mapping_store: String,
pub filter: String,
pub force: Option<bool>,
pub source: Option<Source>,
/* private fields */
}identity-mapping-store-service only.Expand description
Request message for IdentityMappingStoreService.PurgeIdentityMappings
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.identity_mapping_store: StringRequired. The name of the Identity Mapping Store to purge Identity Mapping
Entries from. Format:
projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}
filter: StringFilter matching identity mappings to purge. The eligible field for filtering is:
update_time: in ISO 8601 “zulu” format.external_id
Examples:
- Deleting all identity mappings updated in a time range:
update_time > "2012-04-23T18:25:43.511Z" AND update_time < "2012-04-23T18:30:43.511Z" - Deleting all identity mappings for a given external_id:
external_id = "id1" - Deleting all identity mappings inside an identity mapping store:
*
The filtering fields are assumed to have an implicit AND. Should not be used with source. An error will be thrown, if both are provided.
force: Option<bool>Actually performs the purge. If force is set to false, return the
expected purge count without deleting any identity mappings. This field is
only supported for purge with filter. For input source this field is
ignored and data will be purged regardless of the value of this field.
source: Option<Source>The source of the input.
Implementations§
Source§impl PurgeIdentityMappingsRequest
impl PurgeIdentityMappingsRequest
pub fn new() -> Self
Sourcepub fn set_identity_mapping_store<T: Into<String>>(self, v: T) -> Self
pub fn set_identity_mapping_store<T: Into<String>>(self, v: T) -> Self
Sets the value of identity_mapping_store.
§Example
let x = PurgeIdentityMappingsRequest::new().set_identity_mapping_store("example");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_or_clear_force<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_force<T>(self, v: Option<T>) -> Self
Sourcepub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Sets the value of source.
Note that all the setters affecting source are mutually
exclusive.
§Example
use google_cloud_discoveryengine_v1::model::purge_identity_mappings_request::InlineSource;
let x = PurgeIdentityMappingsRequest::new().set_source(Some(
google_cloud_discoveryengine_v1::model::purge_identity_mappings_request::Source::InlineSource(InlineSource::default().into())));Sourcepub fn inline_source(&self) -> Option<&Box<InlineSource>>
pub fn inline_source(&self) -> Option<&Box<InlineSource>>
The value of source
if it holds a InlineSource, None if the field is not set or
holds a different branch.
Sourcepub fn set_inline_source<T: Into<Box<InlineSource>>>(self, v: T) -> Self
pub fn set_inline_source<T: Into<Box<InlineSource>>>(self, v: T) -> Self
Sets the value of source
to hold a InlineSource.
Note that all the setters affecting source are
mutually exclusive.
§Example
use google_cloud_discoveryengine_v1::model::purge_identity_mappings_request::InlineSource;
let x = PurgeIdentityMappingsRequest::new().set_inline_source(InlineSource::default()/* use setters */);
assert!(x.inline_source().is_some());Trait Implementations§
Source§impl Clone for PurgeIdentityMappingsRequest
impl Clone for PurgeIdentityMappingsRequest
Source§fn clone(&self) -> PurgeIdentityMappingsRequest
fn clone(&self) -> PurgeIdentityMappingsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PurgeIdentityMappingsRequest
impl Debug for PurgeIdentityMappingsRequest
Source§impl Default for PurgeIdentityMappingsRequest
impl Default for PurgeIdentityMappingsRequest
Source§fn default() -> PurgeIdentityMappingsRequest
fn default() -> PurgeIdentityMappingsRequest
Source§impl PartialEq for PurgeIdentityMappingsRequest
impl PartialEq for PurgeIdentityMappingsRequest
Source§fn eq(&self, other: &PurgeIdentityMappingsRequest) -> bool
fn eq(&self, other: &PurgeIdentityMappingsRequest) -> bool
self and other values to be equal, and is used by ==.