# Cloud Data Loss Prevention (DLP) V2 API - Class Google::Cloud::Dlp::V2::DataProfileAction::Export (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::DataProfileAction::Export.

If set, the detailed data profiles will be persisted to the location
of your choice whenever updated.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #profile_table

    def profile_table() -> ::Google::Cloud::Dlp::V2::BigQueryTable

**Returns**

- ([::Google::Cloud::Dlp::V2::BigQueryTable](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-BigQueryTable)) ---

  Store all profiles to BigQuery.
  - The system will create a new dataset and table for you if none are are provided. The dataset will be named `sensitive_data_protection_discovery` and table will be named `discovery_profiles`. This table will be placed in the same project as the container project running the scan. After the first profile is generated and the dataset and table are created, the discovery scan configuration will be updated with the dataset and table names.
  - See [Analyze data profiles stored in
    BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles).
  - See [Sample queries for your BigQuery
    table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries).
  - Data is inserted using [streaming
    insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) and so data may be in the buffer for a period of time after the profile has finished.
    - The Pub/Sub notification is sent before the streaming buffer is guaranteed to be written, so data may not be instantly visible to queries by the time your topic receives the Pub/Sub notification.
    - The best practice is to use the same table for an entire organization so that you can take advantage of the [provided Looker
      reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). If you use VPC Service Controls to define security perimeters, then you must use a separate table for each boundary.

### #profile_table=

    def profile_table=(value) -> ::Google::Cloud::Dlp::V2::BigQueryTable

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::BigQueryTable](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-BigQueryTable)) ---

  Store all profiles to BigQuery.
  - The system will create a new dataset and table for you if none are are provided. The dataset will be named `sensitive_data_protection_discovery` and table will be named `discovery_profiles`. This table will be placed in the same project as the container project running the scan. After the first profile is generated and the dataset and table are created, the discovery scan configuration will be updated with the dataset and table names.
  - See [Analyze data profiles stored in
    BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles).
  - See [Sample queries for your BigQuery
    table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries).
  - Data is inserted using [streaming
    insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) and so data may be in the buffer for a period of time after the profile has finished.
    - The Pub/Sub notification is sent before the streaming buffer is guaranteed to be written, so data may not be instantly visible to queries by the time your topic receives the Pub/Sub notification.
    - The best practice is to use the same table for an entire organization so that you can take advantage of the [provided Looker
      reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). If you use VPC Service Controls to define security perimeters, then you must use a separate table for each boundary.
**Returns**

- ([::Google::Cloud::Dlp::V2::BigQueryTable](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-BigQueryTable)) ---

  Store all profiles to BigQuery.
  - The system will create a new dataset and table for you if none are are provided. The dataset will be named `sensitive_data_protection_discovery` and table will be named `discovery_profiles`. This table will be placed in the same project as the container project running the scan. After the first profile is generated and the dataset and table are created, the discovery scan configuration will be updated with the dataset and table names.
  - See [Analyze data profiles stored in
    BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles).
  - See [Sample queries for your BigQuery
    table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries).
  - Data is inserted using [streaming
    insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) and so data may be in the buffer for a period of time after the profile has finished.
    - The Pub/Sub notification is sent before the streaming buffer is guaranteed to be written, so data may not be instantly visible to queries by the time your topic receives the Pub/Sub notification.
    - The best practice is to use the same table for an entire organization so that you can take advantage of the [provided Looker
      reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). If you use VPC Service Controls to define security perimeters, then you must use a separate table for each boundary.

### #sample_findings_table

    def sample_findings_table() -> ::Google::Cloud::Dlp::V2::BigQueryTable

**Returns**

- ([::Google::Cloud::Dlp::V2::BigQueryTable](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-BigQueryTable)) --- Store sample \[data profile findings\]\[google.privacy.dlp.v2.DataProfileFinding\] in an existing table or a new table in an existing dataset. Each regeneration will result in new rows in BigQuery. Data is inserted using [streaming
  insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) and so data may be in the buffer for a period of time after the profile has finished.

### #sample_findings_table=

    def sample_findings_table=(value) -> ::Google::Cloud::Dlp::V2::BigQueryTable

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::BigQueryTable](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-BigQueryTable)) --- Store sample \[data profile findings\]\[google.privacy.dlp.v2.DataProfileFinding\] in an existing table or a new table in an existing dataset. Each regeneration will result in new rows in BigQuery. Data is inserted using [streaming
  insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) and so data may be in the buffer for a period of time after the profile has finished.
**Returns**

- ([::Google::Cloud::Dlp::V2::BigQueryTable](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-BigQueryTable)) --- Store sample \[data profile findings\]\[google.privacy.dlp.v2.DataProfileFinding\] in an existing table or a new table in an existing dataset. Each regeneration will result in new rows in BigQuery. Data is inserted using [streaming
  insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) and so data may be in the buffer for a period of time after the profile has finished.