# Cloud Data Loss Prevention (DLP) V2 API - Class Google::Cloud::Dlp::V2::StorageConfig::TimespanConfig (v1.17.0)

1.17.0 (latest) 1.16.1 1.15.2 1.14.0 1.13.0 1.12.1 1.11.0 1.10.0 1.9.1 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.2 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.1 0.12.0 0.11.0 0.10.0 0.9.0 0.8.1 Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::StorageConfig::TimespanConfig.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #enable_auto_population_of_timespan_config

    def enable_auto_population_of_timespan_config() -> ::Boolean

**Returns**

- (::Boolean) --- 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](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data)
  related to this operation.

### #enable_auto_population_of_timespan_config=

    def enable_auto_population_of_timespan_config=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data)
  related to this operation.
**Returns**

- (::Boolean) --- 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](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data)
  related to this operation.

### #end_time

    def end_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.

### #end_time=

    def end_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.

### #start_time

    def start_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.

### #start_time=

    def start_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.

### #timestamp_field

    def timestamp_field() -> ::Google::Cloud::Dlp::V2::FieldId

**Returns**

- ([::Google::Cloud::Dlp::V2::FieldId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-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](https://cloud.google.com/bigquery/docs/partitioned-tables#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](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan)
  related to this operation.

### #timestamp_field=

    def timestamp_field=(value) -> ::Google::Cloud::Dlp::V2::FieldId

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::FieldId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-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](https://cloud.google.com/bigquery/docs/partitioned-tables#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](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan)
  related to this operation.
**Returns**

- ([::Google::Cloud::Dlp::V2::FieldId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-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](https://cloud.google.com/bigquery/docs/partitioned-tables#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](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan)
  related to this operation.