Struct google_api_proto::google::privacy::dlp::v2::action::Deidentify
source · pub struct Deidentify {
pub transformation_config: Option<TransformationConfig>,
pub transformation_details_storage_config: Option<TransformationDetailsStorageConfig>,
pub file_types_to_transform: Vec<i32>,
pub output: Option<Output>,
}
Expand description
Create a de-identified copy of the requested table or files.
A TransformationDetail will be created for each transformation.
If any rows in BigQuery are skipped during de-identification (transformation errors or row size exceeds BigQuery insert API limits) they are placed in the failure output table. If the original row exceeds the BigQuery insert API limit it will be truncated when written to the failure output table. The failure output table can be set in the action.deidentify.output.big_query_output.deidentified_failure_output_table field, if no table is set, a table will be automatically created in the same project and dataset as the original table.
Compatible with: Inspect
Fields§
§transformation_config: Option<TransformationConfig>
User specified deidentify templates and configs for structured, unstructured, and image files.
transformation_details_storage_config: Option<TransformationDetailsStorageConfig>
Config for storing transformation details. This is separate from the de-identified content, and contains metadata about the successful transformations and/or failures that occurred while de-identifying. This needs to be set in order for users to access information about the status of each transformation (see [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] message for more information about what is noted).
file_types_to_transform: Vec<i32>
List of user-specified file type groups to transform. If specified, only the files with these file types will be transformed. If empty, all supported files will be transformed. Supported types may be automatically added over time. If a file type is set in this field that isn’t supported by the Deidentify action then the job will fail and will not be successfully created/started. Currently the only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
output: Option<Output>
Where to store the output.
Implementations§
source§impl Deidentify
impl Deidentify
sourcepub fn file_types_to_transform(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<FileType>>
pub fn file_types_to_transform( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<FileType>>
Returns an iterator which yields the valid enum values contained in file_types_to_transform
.
sourcepub fn push_file_types_to_transform(&mut self, value: FileType)
pub fn push_file_types_to_transform(&mut self, value: FileType)
Appends the provided enum value to file_types_to_transform
.
Trait Implementations§
source§impl Clone for Deidentify
impl Clone for Deidentify
source§fn clone(&self) -> Deidentify
fn clone(&self) -> Deidentify
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Deidentify
impl Debug for Deidentify
source§impl Default for Deidentify
impl Default for Deidentify
source§impl Message for Deidentify
impl Message for Deidentify
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 Deidentify
impl PartialEq for Deidentify
source§fn eq(&self, other: &Deidentify) -> bool
fn eq(&self, other: &Deidentify) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Deidentify
Auto Trait Implementations§
impl Freeze for Deidentify
impl RefUnwindSafe for Deidentify
impl Send for Deidentify
impl Sync for Deidentify
impl Unpin for Deidentify
impl UnwindSafe for Deidentify
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