Struct google_api_proto::google::privacy::dlp::v2::storage_config::TimespanConfig
source · pub struct TimespanConfig {
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub timestamp_field: Option<FieldId>,
pub enable_auto_population_of_timespan_config: bool,
}
Expand description
Configuration of the timespan of the items to include in scanning. Currently only supported when inspecting Cloud Storage and BigQuery.
Fields§
§start_time: Option<Timestamp>
Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.
end_time: Option<Timestamp>
Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.
timestamp_field: Option<FieldId>
Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery.
For BigQuery
If this value is not specified and the table was modified between the
given start and end times, the entire table will be scanned. If this
value is specified, then rows are filtered based on the given start and
end times. Rows with a NULL
value in the provided BigQuery column are
skipped.
Valid data types of the provided BigQuery column are: INTEGER
, DATE
,
TIMESTAMP
, and DATETIME
.
If your BigQuery table is partitioned at ingestion time, you can use any of the following pseudo-columns as your timestamp field. When used with Cloud DLP, these pseudo-column names are case sensitive.
_PARTITIONTIME
_PARTITIONDATE
_PARTITION_LOAD_TIME
For Datastore
If this value is specified, then entities are filtered based on the given
start and end times. If an entity does not contain the provided timestamp
property or contains empty or invalid values, then it is included.
Valid data types of the provided timestamp property are: TIMESTAMP
.
See the known issue related to this operation.
enable_auto_population_of_timespan_config: bool
When the job is started by a JobTrigger we will automatically figure out a valid start_time to avoid scanning files that have not been modified since the last time the JobTrigger executed. This will be based on the time of the execution of the last run of the JobTrigger or the timespan end_time used in the last run of the JobTrigger.
For BigQuery
Inspect jobs triggered by automatic population will scan data that is at least three hours old when the job starts. This is because streaming buffer rows are not read during inspection and reading up to the current timestamp will result in skipped rows.
See the known issue related to this operation.
Trait Implementations§
source§impl Clone for TimespanConfig
impl Clone for TimespanConfig
source§fn clone(&self) -> TimespanConfig
fn clone(&self) -> TimespanConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TimespanConfig
impl Debug for TimespanConfig
source§impl Default for TimespanConfig
impl Default for TimespanConfig
source§impl Message for TimespanConfig
impl Message for TimespanConfig
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 TimespanConfig
impl PartialEq for TimespanConfig
source§fn eq(&self, other: &TimespanConfig) -> bool
fn eq(&self, other: &TimespanConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TimespanConfig
Auto Trait Implementations§
impl Freeze for TimespanConfig
impl RefUnwindSafe for TimespanConfig
impl Send for TimespanConfig
impl Sync for TimespanConfig
impl Unpin for TimespanConfig
impl UnwindSafe for TimespanConfig
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