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

Target used to match against for Discovery.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #big_query_target

    def big_query_target() -> ::Google::Cloud::Dlp::V2::BigQueryDiscoveryTarget

**Returns**

- ([::Google::Cloud::Dlp::V2::BigQueryDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-BigQueryDiscoveryTarget)) --- BigQuery target for Discovery. The first target to match a table will be the one applied.


  Note: The following fields are mutually exclusive: `big_query_target`, `cloud_sql_target`, `secrets_target`, `cloud_storage_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #big_query_target=

    def big_query_target=(value) -> ::Google::Cloud::Dlp::V2::BigQueryDiscoveryTarget

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::BigQueryDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-BigQueryDiscoveryTarget)) --- BigQuery target for Discovery. The first target to match a table will be the one applied.


  Note: The following fields are mutually exclusive: `big_query_target`, `cloud_sql_target`, `secrets_target`, `cloud_storage_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dlp::V2::BigQueryDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-BigQueryDiscoveryTarget)) --- BigQuery target for Discovery. The first target to match a table will be the one applied.


  Note: The following fields are mutually exclusive: `big_query_target`, `cloud_sql_target`, `secrets_target`, `cloud_storage_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cloud_sql_target

    def cloud_sql_target() -> ::Google::Cloud::Dlp::V2::CloudSqlDiscoveryTarget

**Returns**

- ([::Google::Cloud::Dlp::V2::CloudSqlDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CloudSqlDiscoveryTarget)) --- Cloud SQL target for Discovery. The first target to match a table will be the one applied.


  Note: The following fields are mutually exclusive: `cloud_sql_target`, `big_query_target`, `secrets_target`, `cloud_storage_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cloud_sql_target=

    def cloud_sql_target=(value) -> ::Google::Cloud::Dlp::V2::CloudSqlDiscoveryTarget

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::CloudSqlDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CloudSqlDiscoveryTarget)) --- Cloud SQL target for Discovery. The first target to match a table will be the one applied.


  Note: The following fields are mutually exclusive: `cloud_sql_target`, `big_query_target`, `secrets_target`, `cloud_storage_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dlp::V2::CloudSqlDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CloudSqlDiscoveryTarget)) --- Cloud SQL target for Discovery. The first target to match a table will be the one applied.


  Note: The following fields are mutually exclusive: `cloud_sql_target`, `big_query_target`, `secrets_target`, `cloud_storage_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cloud_storage_target

    def cloud_storage_target() -> ::Google::Cloud::Dlp::V2::CloudStorageDiscoveryTarget

**Returns**

- ([::Google::Cloud::Dlp::V2::CloudStorageDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CloudStorageDiscoveryTarget)) --- Cloud Storage target for Discovery. The first target to match a table will be the one applied.


  Note: The following fields are mutually exclusive: `cloud_storage_target`, `big_query_target`, `cloud_sql_target`, `secrets_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cloud_storage_target=

    def cloud_storage_target=(value) -> ::Google::Cloud::Dlp::V2::CloudStorageDiscoveryTarget

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::CloudStorageDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CloudStorageDiscoveryTarget)) --- Cloud Storage target for Discovery. The first target to match a table will be the one applied.


  Note: The following fields are mutually exclusive: `cloud_storage_target`, `big_query_target`, `cloud_sql_target`, `secrets_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dlp::V2::CloudStorageDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CloudStorageDiscoveryTarget)) --- Cloud Storage target for Discovery. The first target to match a table will be the one applied.


  Note: The following fields are mutually exclusive: `cloud_storage_target`, `big_query_target`, `cloud_sql_target`, `secrets_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #other_cloud_target

    def other_cloud_target() -> ::Google::Cloud::Dlp::V2::OtherCloudDiscoveryTarget

**Returns**

- ([::Google::Cloud::Dlp::V2::OtherCloudDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-OtherCloudDiscoveryTarget)) --- Other clouds target for discovery. The first target to match a resource will be the one applied.


  Note: The following fields are mutually exclusive: `other_cloud_target`, `big_query_target`, `cloud_sql_target`, `secrets_target`, `cloud_storage_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #other_cloud_target=

    def other_cloud_target=(value) -> ::Google::Cloud::Dlp::V2::OtherCloudDiscoveryTarget

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::OtherCloudDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-OtherCloudDiscoveryTarget)) --- Other clouds target for discovery. The first target to match a resource will be the one applied.


  Note: The following fields are mutually exclusive: `other_cloud_target`, `big_query_target`, `cloud_sql_target`, `secrets_target`, `cloud_storage_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dlp::V2::OtherCloudDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-OtherCloudDiscoveryTarget)) --- Other clouds target for discovery. The first target to match a resource will be the one applied.


  Note: The following fields are mutually exclusive: `other_cloud_target`, `big_query_target`, `cloud_sql_target`, `secrets_target`, `cloud_storage_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #secrets_target

    def secrets_target() -> ::Google::Cloud::Dlp::V2::SecretsDiscoveryTarget

**Returns**

- ([::Google::Cloud::Dlp::V2::SecretsDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-SecretsDiscoveryTarget)) --- Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed.


  Note: The following fields are mutually exclusive: `secrets_target`, `big_query_target`, `cloud_sql_target`, `cloud_storage_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #secrets_target=

    def secrets_target=(value) -> ::Google::Cloud::Dlp::V2::SecretsDiscoveryTarget

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::SecretsDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-SecretsDiscoveryTarget)) --- Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed.


  Note: The following fields are mutually exclusive: `secrets_target`, `big_query_target`, `cloud_sql_target`, `cloud_storage_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dlp::V2::SecretsDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-SecretsDiscoveryTarget)) --- Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed.


  Note: The following fields are mutually exclusive: `secrets_target`, `big_query_target`, `cloud_sql_target`, `cloud_storage_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #vertex_dataset_target

    def vertex_dataset_target() -> ::Google::Cloud::Dlp::V2::VertexDatasetDiscoveryTarget

**Returns**

- ([::Google::Cloud::Dlp::V2::VertexDatasetDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-VertexDatasetDiscoveryTarget)) --- Vertex AI dataset target for Discovery. The first target to match a dataset will be the one applied. Note that discovery for Vertex AI can incur Cloud Storage Class B operation charges for storage.objects.get operations and retrieval fees. For more information, see [Cloud Storage
  pricing](https://cloud.google.com/storage/pricing#price-tables). Note that discovery for Vertex AI dataset will not be able to scan images unless DiscoveryConfig.processing_location.image_fallback_location has multi_region_processing or global_processing configured.


  Note: The following fields are mutually exclusive: `vertex_dataset_target`, `big_query_target`, `cloud_sql_target`, `secrets_target`, `cloud_storage_target`, `other_cloud_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #vertex_dataset_target=

    def vertex_dataset_target=(value) -> ::Google::Cloud::Dlp::V2::VertexDatasetDiscoveryTarget

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::VertexDatasetDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-VertexDatasetDiscoveryTarget)) --- Vertex AI dataset target for Discovery. The first target to match a dataset will be the one applied. Note that discovery for Vertex AI can incur Cloud Storage Class B operation charges for storage.objects.get operations and retrieval fees. For more information, see [Cloud Storage
  pricing](https://cloud.google.com/storage/pricing#price-tables). Note that discovery for Vertex AI dataset will not be able to scan images unless DiscoveryConfig.processing_location.image_fallback_location has multi_region_processing or global_processing configured.


  Note: The following fields are mutually exclusive: `vertex_dataset_target`, `big_query_target`, `cloud_sql_target`, `secrets_target`, `cloud_storage_target`, `other_cloud_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dlp::V2::VertexDatasetDiscoveryTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-VertexDatasetDiscoveryTarget)) --- Vertex AI dataset target for Discovery. The first target to match a dataset will be the one applied. Note that discovery for Vertex AI can incur Cloud Storage Class B operation charges for storage.objects.get operations and retrieval fees. For more information, see [Cloud Storage
  pricing](https://cloud.google.com/storage/pricing#price-tables). Note that discovery for Vertex AI dataset will not be able to scan images unless DiscoveryConfig.processing_location.image_fallback_location has multi_region_processing or global_processing configured.


  Note: The following fields are mutually exclusive: `vertex_dataset_target`, `big_query_target`, `cloud_sql_target`, `secrets_target`, `cloud_storage_target`, `other_cloud_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.