Struct google_api_proto::google::privacy::dlp::v2::DiscoveryConfig
source · pub struct DiscoveryConfig {
pub name: String,
pub display_name: String,
pub org_config: Option<OrgConfig>,
pub inspect_templates: Vec<String>,
pub actions: Vec<DataProfileAction>,
pub targets: Vec<DiscoveryTarget>,
pub errors: Vec<Error>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub last_run_time: Option<Timestamp>,
pub status: i32,
}
Expand description
Configuration for discovery to scan resources for profile generation. Only one discovery configuration may exist per organization, folder, or project.
The generated data profiles are retained according to the [data retention policy] (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention).
Fields§
§name: String
Unique resource name for the DiscoveryConfig, assigned by the service when
the DiscoveryConfig is created, for example
projects/dlp-test-project/locations/global/discoveryConfigs/53234423
.
display_name: String
Display name (max 100 chars)
org_config: Option<OrgConfig>
Only set when the parent is an org.
inspect_templates: Vec<String>
Detection logic for profile generation.
Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery.
Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including “global”). Each region is scanned using the applicable template. If no region-specific template is specified, but a “global” template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region’s data will not be scanned.
For more information, see https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
actions: Vec<DataProfileAction>
Actions to execute at the completion of scanning.
targets: Vec<DiscoveryTarget>
Target to match against for determining what to scan and how frequently.
errors: Vec<Error>
Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.
create_time: Option<Timestamp>
Output only. The creation timestamp of a DiscoveryConfig.
update_time: Option<Timestamp>
Output only. The last update timestamp of a DiscoveryConfig.
last_run_time: Option<Timestamp>
Output only. The timestamp of the last time this config was executed.
status: i32
Required. A status for this configuration.
Implementations§
Trait Implementations§
source§impl Clone for DiscoveryConfig
impl Clone for DiscoveryConfig
source§fn clone(&self) -> DiscoveryConfig
fn clone(&self) -> DiscoveryConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DiscoveryConfig
impl Debug for DiscoveryConfig
source§impl Default for DiscoveryConfig
impl Default for DiscoveryConfig
source§impl Message for DiscoveryConfig
impl Message for DiscoveryConfig
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 DiscoveryConfig
impl PartialEq for DiscoveryConfig
source§fn eq(&self, other: &DiscoveryConfig) -> bool
fn eq(&self, other: &DiscoveryConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DiscoveryConfig
Auto Trait Implementations§
impl Freeze for DiscoveryConfig
impl RefUnwindSafe for DiscoveryConfig
impl Send for DiscoveryConfig
impl Sync for DiscoveryConfig
impl Unpin for DiscoveryConfig
impl UnwindSafe for DiscoveryConfig
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