Google Cloud Data Loss Prevention v2 API - Class StorageConfig.Types.TimespanConfig (4.5.0)

public sealed class TimespanConfig : IMessage<StorageConfig.Types.TimespanConfig>, IEquatable<StorageConfig.Types.TimespanConfig>, IDeepCloneable<StorageConfig.Types.TimespanConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class StorageConfig.Types.TimespanConfig.

Configuration of the timespan of the items to include in scanning. Currently only supported when inspecting Cloud Storage and BigQuery.

Inheritance

Object > StorageConfig.Types.TimespanConfig

Namespace

Google.Cloud.Dlp.V2

Assembly

Google.Cloud.Dlp.V2.dll

Constructors

TimespanConfig()

public TimespanConfig()

TimespanConfig(StorageConfig.Types.TimespanConfig)

public TimespanConfig(StorageConfig.Types.TimespanConfig other)
Parameter
NameDescription
otherStorageConfig.Types.TimespanConfig

Properties

EnableAutoPopulationOfTimespanConfig

public bool EnableAutoPopulationOfTimespanConfig { get; set; }

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.

Property Value
TypeDescription
Boolean

EndTime

public Timestamp EndTime { get; set; }

Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.

Property Value
TypeDescription
Timestamp

StartTime

public Timestamp StartTime { get; set; }

Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.

Property Value
TypeDescription
Timestamp

TimestampField

public FieldId TimestampField { get; set; }

Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery.

<b>For BigQuery</b>

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.

<ul> <li><code>_PARTITIONTIME</code></li> <li><code>_PARTITIONDATE</code></li> <li><code>_PARTITION_LOAD_TIME</code></li> </ul>

<b>For Datastore</b>

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.

Property Value
TypeDescription
FieldId