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

Client for the DlpService service.


<br />

Sensitive Data Protection provides access to a powerful sensitive data
inspection, classification, and de-identification platform that works
on text, images, and Google Cloud storage repositories.
To learn more about concepts and find how-to guides see
<https://cloud.google.com/sensitive-data-protection/docs/>.

## Inherits

- Object

## Includes

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

## Methods

### .configure

    def self.configure() { |config| ... } -> Client::Configuration

Configure the DlpService Client class.


<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpService-Client-Configuration "Google::Cloud::Dlp::V2::DlpService::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpService-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpService-Client-Configuration))
**Example**

```ruby
# Modify the configuration for all DlpService clients
::Google::Cloud::Dlp::V2::DlpService::Client.configure do |config|
  config.timeout = 10.0
end
```

### #activate_job_trigger

    def activate_job_trigger(request, options = nil) -> ::Google::Cloud::Dlp::V2::DlpJob
    def activate_job_trigger(name: nil) -> ::Google::Cloud::Dlp::V2::DlpJob

Activate a job trigger. Causes the immediate execute of a trigger
instead of waiting on the trigger event to occur.
**Overloads**

    def activate_job_trigger(request, options = nil) -> ::Google::Cloud::Dlp::V2::DlpJob

Pass arguments to `activate_job_trigger` via a request object, either of type [ActivateJobTriggerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ActivateJobTriggerRequest "Google::Cloud::Dlp::V2::ActivateJobTriggerRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::ActivateJobTriggerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ActivateJobTriggerRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def activate_job_trigger(name: nil) -> ::Google::Cloud::Dlp::V2::DlpJob

Pass arguments to `activate_job_trigger` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::DlpJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpJob))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::ActivateJobTriggerRequest.new

# Call the activate_job_trigger method.
result = client.activate_job_trigger request

# The returned object is of type Google::Cloud::Dlp::V2::DlpJob.
p result
```

### #cancel_dlp_job

    def cancel_dlp_job(request, options = nil) -> ::Google::Protobuf::Empty
    def cancel_dlp_job(name: nil) -> ::Google::Protobuf::Empty

Starts asynchronous cancellation on a long-running DlpJob. The server
makes a best effort to cancel the DlpJob, but success is not
guaranteed.
See
<https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage>
and
<https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis>
to learn more.
**Overloads**

    def cancel_dlp_job(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `cancel_dlp_job` via a request object, either of type [CancelDlpJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CancelDlpJobRequest "Google::Cloud::Dlp::V2::CancelDlpJobRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::CancelDlpJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CancelDlpJobRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def cancel_dlp_job(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `cancel_dlp_job` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the DlpJob resource to be cancelled.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::CancelDlpJobRequest.new

# Call the cancel_dlp_job method.
result = client.cancel_dlp_job request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #configure

    def configure() { |config| ... } -> Client::Configuration

Configure the DlpService Client instance.


The configuration is set to the derived mode, meaning that values can be changed,
but structural changes (adding new fields, etc.) are not allowed. Structural changes
should be made on [Client.configure](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpService-Client#Google__Cloud__Dlp__V2__DlpService__Client_configure_class_ "Google::Cloud::Dlp::V2::DlpService::Client.configure (method)").

<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpService-Client-Configuration "Google::Cloud::Dlp::V2::DlpService::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpService-Client-Configuration))
**Returns**

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

### #create_connection

    def create_connection(request, options = nil) -> ::Google::Cloud::Dlp::V2::Connection
    def create_connection(parent: nil, connection: nil) -> ::Google::Cloud::Dlp::V2::Connection

Create a Connection to an external data source.
**Overloads**

    def create_connection(request, options = nil) -> ::Google::Cloud::Dlp::V2::Connection

Pass arguments to `create_connection` via a request object, either of type [CreateConnectionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CreateConnectionRequest "Google::Cloud::Dlp::V2::CreateConnectionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::CreateConnectionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CreateConnectionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def create_connection(parent: nil, connection: nil) -> ::Google::Cloud::Dlp::V2::Connection

Pass arguments to `create_connection` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Required. Parent resource name.

  The format of this value varies depending on the scope of the request
  (project or organization):
  - Projects scope: `projects/{project_id}/locations/{location_id}`
  - Organizations scope: `organizations/{org_id}/locations/{location_id}`
- **connection** ([::Google::Cloud::Dlp::V2::Connection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Connection), ::Hash) --- Required. The connection resource.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::Connection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Connection))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::CreateConnectionRequest.new

# Call the create_connection method.
result = client.create_connection request

# The returned object is of type Google::Cloud::Dlp::V2::Connection.
p result
```

### #create_deidentify_template

    def create_deidentify_template(request, options = nil) -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate
    def create_deidentify_template(parent: nil, deidentify_template: nil, template_id: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate

Creates a DeidentifyTemplate for reusing frequently used configuration
for de-identifying content, images, and storage.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid>
to learn more.
**Overloads**

    def create_deidentify_template(request, options = nil) -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate

Pass arguments to `create_deidentify_template` via a request object, either of type [CreateDeidentifyTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CreateDeidentifyTemplateRequest "Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CreateDeidentifyTemplateRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def create_deidentify_template(parent: nil, deidentify_template: nil, template_id: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate

Pass arguments to `create_deidentify_template` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Required. Parent resource name.

  The format of this value varies depending on the scope of the request
  (project or organization) and whether you have [specified a processing
  location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  - Projects scope, location specified: `projects/{project_id}/locations/{location_id}`
  - Projects scope, no location specified (defaults to global): `projects/{project_id}`
  - Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}`
  - Organizations scope, no location specified (defaults to global): `organizations/{org_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **deidentify_template** ([::Google::Cloud::Dlp::V2::DeidentifyTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeidentifyTemplate), ::Hash) --- Required. The DeidentifyTemplate to create.
- **template_id** (::String) --- The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- **location_id** (::String) --- Deprecated. This field has no effect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::DeidentifyTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeidentifyTemplate))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest.new

# Call the create_deidentify_template method.
result = client.create_deidentify_template request

# The returned object is of type Google::Cloud::Dlp::V2::DeidentifyTemplate.
p result
```

### #create_discovery_config

    def create_discovery_config(request, options = nil) -> ::Google::Cloud::Dlp::V2::DiscoveryConfig
    def create_discovery_config(parent: nil, discovery_config: nil, config_id: nil) -> ::Google::Cloud::Dlp::V2::DiscoveryConfig

Creates a config for discovery to scan and profile storage.
**Overloads**

    def create_discovery_config(request, options = nil) -> ::Google::Cloud::Dlp::V2::DiscoveryConfig

Pass arguments to `create_discovery_config` via a request object, either of type [CreateDiscoveryConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CreateDiscoveryConfigRequest "Google::Cloud::Dlp::V2::CreateDiscoveryConfigRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::CreateDiscoveryConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CreateDiscoveryConfigRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def create_discovery_config(parent: nil, discovery_config: nil, config_id: nil) -> ::Google::Cloud::Dlp::V2::DiscoveryConfig

Pass arguments to `create_discovery_config` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Required. Parent resource name.

  The format of this value varies depending on the scope of the request
  (project or organization):
  - Projects scope: `projects/{project_id}/locations/{location_id}`
  - Organizations scope: `organizations/{org_id}/locations/{location_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **discovery_config** ([::Google::Cloud::Dlp::V2::DiscoveryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DiscoveryConfig), ::Hash) --- Required. The DiscoveryConfig to create.
- **config_id** (::String) --- The config ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::DiscoveryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DiscoveryConfig))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::CreateDiscoveryConfigRequest.new

# Call the create_discovery_config method.
result = client.create_discovery_config request

# The returned object is of type Google::Cloud::Dlp::V2::DiscoveryConfig.
p result
```

### #create_dlp_job

    def create_dlp_job(request, options = nil) -> ::Google::Cloud::Dlp::V2::DlpJob
    def create_dlp_job(parent: nil, inspect_job: nil, risk_job: nil, job_id: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::DlpJob

Creates a new job to inspect storage or calculate risk metrics.
See
<https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage>
and
<https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis>
to learn more.


<br />

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
system will automatically choose what detectors to run. By default this may
be all types, but may change over time as detectors are updated.
**Overloads**

    def create_dlp_job(request, options = nil) -> ::Google::Cloud::Dlp::V2::DlpJob

Pass arguments to `create_dlp_job` via a request object, either of type [CreateDlpJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CreateDlpJobRequest "Google::Cloud::Dlp::V2::CreateDlpJobRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::CreateDlpJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CreateDlpJobRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def create_dlp_job(parent: nil, inspect_job: nil, risk_job: nil, job_id: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::DlpJob

Pass arguments to `create_dlp_job` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Required. Parent resource name.

  The format of this value varies depending on whether you have [specified a
  processing
  location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  - Projects scope, location specified: `projects/{project_id}/locations/{location_id}`
  - Projects scope, no location specified (defaults to global): `projects/{project_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **inspect_job** ([::Google::Cloud::Dlp::V2::InspectJobConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectJobConfig), ::Hash) --- An inspection job scans a storage repository for InfoTypes.


  Note: The following parameters are mutually exclusive: `inspect_job`, `risk_job`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
- **risk_job** ([::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-RiskAnalysisJobConfig), ::Hash) --- A risk analysis job calculates re-identification risk metrics for a BigQuery table.


  Note: The following parameters are mutually exclusive: `risk_job`, `inspect_job`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
- **job_id** (::String) --- The job id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- **location_id** (::String) --- Deprecated. This field has no effect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::DlpJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpJob))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::CreateDlpJobRequest.new

# Call the create_dlp_job method.
result = client.create_dlp_job request

# The returned object is of type Google::Cloud::Dlp::V2::DlpJob.
p result
```

### #create_inspect_template

    def create_inspect_template(request, options = nil) -> ::Google::Cloud::Dlp::V2::InspectTemplate
    def create_inspect_template(parent: nil, inspect_template: nil, template_id: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::InspectTemplate

Creates an InspectTemplate for reusing frequently used configuration
for inspecting content, images, and storage.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-templates>
to learn more.
**Overloads**

    def create_inspect_template(request, options = nil) -> ::Google::Cloud::Dlp::V2::InspectTemplate

Pass arguments to `create_inspect_template` via a request object, either of type [CreateInspectTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CreateInspectTemplateRequest "Google::Cloud::Dlp::V2::CreateInspectTemplateRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::CreateInspectTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CreateInspectTemplateRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def create_inspect_template(parent: nil, inspect_template: nil, template_id: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::InspectTemplate

Pass arguments to `create_inspect_template` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Required. Parent resource name.

  The format of this value varies depending on the scope of the request
  (project or organization) and whether you have [specified a processing
  location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  - Projects scope, location specified: `projects/{project_id}/locations/{location_id}`
  - Projects scope, no location specified (defaults to global): `projects/{project_id}`
  - Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}`
  - Organizations scope, no location specified (defaults to global): `organizations/{org_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **inspect_template** ([::Google::Cloud::Dlp::V2::InspectTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectTemplate), ::Hash) --- Required. The InspectTemplate to create.
- **template_id** (::String) --- The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- **location_id** (::String) --- Deprecated. This field has no effect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::InspectTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectTemplate))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::CreateInspectTemplateRequest.new

# Call the create_inspect_template method.
result = client.create_inspect_template request

# The returned object is of type Google::Cloud::Dlp::V2::InspectTemplate.
p result
```

### #create_job_trigger

    def create_job_trigger(request, options = nil) -> ::Google::Cloud::Dlp::V2::JobTrigger
    def create_job_trigger(parent: nil, job_trigger: nil, trigger_id: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::JobTrigger

Creates a job trigger to run DLP actions such as scanning storage for
sensitive information on a set schedule.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers>
to learn more.
**Overloads**

    def create_job_trigger(request, options = nil) -> ::Google::Cloud::Dlp::V2::JobTrigger

Pass arguments to `create_job_trigger` via a request object, either of type [CreateJobTriggerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CreateJobTriggerRequest "Google::Cloud::Dlp::V2::CreateJobTriggerRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::CreateJobTriggerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CreateJobTriggerRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def create_job_trigger(parent: nil, job_trigger: nil, trigger_id: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::JobTrigger

Pass arguments to `create_job_trigger` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Required. Parent resource name.

  The format of this value varies depending on whether you have [specified a
  processing
  location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  - Projects scope, location specified: `projects/{project_id}/locations/{location_id}`
  - Projects scope, no location specified (defaults to global): `projects/{project_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **job_trigger** ([::Google::Cloud::Dlp::V2::JobTrigger](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-JobTrigger), ::Hash) --- Required. The JobTrigger to create.
- **trigger_id** (::String) --- The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- **location_id** (::String) --- Deprecated. This field has no effect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::JobTrigger](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-JobTrigger))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::CreateJobTriggerRequest.new

# Call the create_job_trigger method.
result = client.create_job_trigger request

# The returned object is of type Google::Cloud::Dlp::V2::JobTrigger.
p result
```

### #create_stored_info_type

    def create_stored_info_type(request, options = nil) -> ::Google::Cloud::Dlp::V2::StoredInfoType
    def create_stored_info_type(parent: nil, config: nil, stored_info_type_id: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::StoredInfoType

Creates a pre-built stored infoType to be used for inspection.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes>
to learn more.
**Overloads**

    def create_stored_info_type(request, options = nil) -> ::Google::Cloud::Dlp::V2::StoredInfoType

Pass arguments to `create_stored_info_type` via a request object, either of type [CreateStoredInfoTypeRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CreateStoredInfoTypeRequest "Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-CreateStoredInfoTypeRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def create_stored_info_type(parent: nil, config: nil, stored_info_type_id: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::StoredInfoType

Pass arguments to `create_stored_info_type` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Required. Parent resource name.

  The format of this value varies depending on the scope of the request
  (project or organization) and whether you have [specified a processing
  location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  - Projects scope, location specified: `projects/{project_id}/locations/{location_id}`
  - Projects scope, no location specified (defaults to global): `projects/{project_id}`
  - Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}`
  - Organizations scope, no location specified (defaults to global): `organizations/{org_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **config** ([::Google::Cloud::Dlp::V2::StoredInfoTypeConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-StoredInfoTypeConfig), ::Hash) --- Required. Configuration of the storedInfoType to create.
- **stored_info_type_id** (::String) --- The storedInfoType ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- **location_id** (::String) --- Deprecated. This field has no effect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::StoredInfoType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-StoredInfoType))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest.new

# Call the create_stored_info_type method.
result = client.create_stored_info_type request

# The returned object is of type Google::Cloud::Dlp::V2::StoredInfoType.
p result
```

### #deidentify_content

    def deidentify_content(request, options = nil) -> ::Google::Cloud::Dlp::V2::DeidentifyContentResponse
    def deidentify_content(parent: nil, deidentify_config: nil, inspect_config: nil, item: nil, inspect_template_name: nil, deidentify_template_name: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::DeidentifyContentResponse

De-identifies potentially sensitive info from a ContentItem.
This method has limits on input size and output size.
See
<https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data>
to learn more.


<br />

When no InfoTypes or CustomInfoTypes are specified in this request, the
system will automatically choose what detectors to run. By default this may
be all types, but may change over time as detectors are updated.
**Overloads**

    def deidentify_content(request, options = nil) -> ::Google::Cloud::Dlp::V2::DeidentifyContentResponse

Pass arguments to `deidentify_content` via a request object, either of type [Google::Cloud::Dlp::V2::DeidentifyContentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeidentifyContentRequest "Google::Cloud::Dlp::V2::DeidentifyContentRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::DeidentifyContentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeidentifyContentRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def deidentify_content(parent: nil, deidentify_config: nil, inspect_config: nil, item: nil, inspect_template_name: nil, deidentify_template_name: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::DeidentifyContentResponse

Pass arguments to `deidentify_content` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Parent resource name.

  The format of this value varies depending on whether you have [specified a
  processing
  location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  - Projects scope, location specified: `projects/{project_id}/locations/{location_id}`
  - Projects scope, no location specified (defaults to global): `projects/{project_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **deidentify_config** ([::Google::Cloud::Dlp::V2::DeidentifyConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeidentifyConfig), ::Hash) --- Configuration for the de-identification of the content item. Items specified here will override the template referenced by the deidentify_template_name argument.
- **inspect_config** ([::Google::Cloud::Dlp::V2::InspectConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectConfig), ::Hash) --- Configuration for the inspector. Items specified here will override the template referenced by the inspect_template_name argument.
- **item** ([::Google::Cloud::Dlp::V2::ContentItem](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ContentItem), ::Hash) --- The item to de-identify. Will be treated as text.


  This value must be of type
  [Table](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Table "Google::Cloud::Dlp::V2::Table (class)") if your
  [deidentify_config](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeidentifyContentRequest#Google__Cloud__Dlp__V2__DeidentifyContentRequest_deidentify_config_instance_ "Google::Cloud::Dlp::V2::DeidentifyContentRequest#deidentify_config (method)")
  is a
  [RecordTransformations](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-RecordTransformations "Google::Cloud::Dlp::V2::RecordTransformations (class)")
  object.
- **inspect_template_name** (::String) --- Template to use. Any configuration directly specified in inspect_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.
- **deidentify_template_name** (::String) --- Template to use. Any configuration directly specified in deidentify_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.
- **location_id** (::String) --- Deprecated. This field has no effect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::DeidentifyContentResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeidentifyContentResponse))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::DeidentifyContentRequest.new

# Call the deidentify_content method.
result = client.deidentify_content request

# The returned object is of type Google::Cloud::Dlp::V2::DeidentifyContentResponse.
p result
```

### #delete_connection

    def delete_connection(request, options = nil) -> ::Google::Protobuf::Empty
    def delete_connection(name: nil) -> ::Google::Protobuf::Empty

Delete a Connection.
**Overloads**

    def delete_connection(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_connection` via a request object, either of type [Google::Cloud::Dlp::V2::DeleteConnectionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteConnectionRequest "Google::Cloud::Dlp::V2::DeleteConnectionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::DeleteConnectionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteConnectionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_connection(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_connection` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name of the Connection to be deleted, in the format: `projects/{project}/locations/{location}/connections/{connection}`.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::DeleteConnectionRequest.new

# Call the delete_connection method.
result = client.delete_connection request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #delete_deidentify_template

    def delete_deidentify_template(request, options = nil) -> ::Google::Protobuf::Empty
    def delete_deidentify_template(name: nil) -> ::Google::Protobuf::Empty

Deletes a DeidentifyTemplate.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid>
to learn more.
**Overloads**

    def delete_deidentify_template(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_deidentify_template` via a request object, either of type [Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteDeidentifyTemplateRequest "Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteDeidentifyTemplateRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_deidentify_template(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_deidentify_template` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest.new

# Call the delete_deidentify_template method.
result = client.delete_deidentify_template request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #delete_discovery_config

    def delete_discovery_config(request, options = nil) -> ::Google::Protobuf::Empty
    def delete_discovery_config(name: nil) -> ::Google::Protobuf::Empty

Deletes a discovery configuration.
**Overloads**

    def delete_discovery_config(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_discovery_config` via a request object, either of type [Google::Cloud::Dlp::V2::DeleteDiscoveryConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteDiscoveryConfigRequest "Google::Cloud::Dlp::V2::DeleteDiscoveryConfigRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::DeleteDiscoveryConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteDiscoveryConfigRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_discovery_config(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_discovery_config` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name of the project and the config, for example `projects/dlp-test-project/discoveryConfigs/53234423`.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::DeleteDiscoveryConfigRequest.new

# Call the delete_discovery_config method.
result = client.delete_discovery_config request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #delete_dlp_job

    def delete_dlp_job(request, options = nil) -> ::Google::Protobuf::Empty
    def delete_dlp_job(name: nil) -> ::Google::Protobuf::Empty

Deletes a long-running DlpJob. This method indicates that the client is
no longer interested in the DlpJob result. The job will be canceled if
possible.
See
<https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage>
and
<https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis>
to learn more.
**Overloads**

    def delete_dlp_job(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_dlp_job` via a request object, either of type [Google::Cloud::Dlp::V2::DeleteDlpJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteDlpJobRequest "Google::Cloud::Dlp::V2::DeleteDlpJobRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::DeleteDlpJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteDlpJobRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_dlp_job(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_dlp_job` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the DlpJob resource to be deleted.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::DeleteDlpJobRequest.new

# Call the delete_dlp_job method.
result = client.delete_dlp_job request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #delete_file_store_data_profile

    def delete_file_store_data_profile(request, options = nil) -> ::Google::Protobuf::Empty
    def delete_file_store_data_profile(name: nil) -> ::Google::Protobuf::Empty

Delete a FileStoreDataProfile. Will not prevent the profile from being
regenerated if the resource is still included in a discovery configuration.
**Overloads**

    def delete_file_store_data_profile(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_file_store_data_profile` via a request object, either of type [Google::Cloud::Dlp::V2::DeleteFileStoreDataProfileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteFileStoreDataProfileRequest "Google::Cloud::Dlp::V2::DeleteFileStoreDataProfileRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::DeleteFileStoreDataProfileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteFileStoreDataProfileRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_file_store_data_profile(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_file_store_data_profile` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name of the file store data profile.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::DeleteFileStoreDataProfileRequest.new

# Call the delete_file_store_data_profile method.
result = client.delete_file_store_data_profile request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #delete_inspect_template

    def delete_inspect_template(request, options = nil) -> ::Google::Protobuf::Empty
    def delete_inspect_template(name: nil) -> ::Google::Protobuf::Empty

Deletes an InspectTemplate.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-templates>
to learn more.
**Overloads**

    def delete_inspect_template(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_inspect_template` via a request object, either of type [Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteInspectTemplateRequest "Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteInspectTemplateRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_inspect_template(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_inspect_template` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest.new

# Call the delete_inspect_template method.
result = client.delete_inspect_template request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #delete_job_trigger

    def delete_job_trigger(request, options = nil) -> ::Google::Protobuf::Empty
    def delete_job_trigger(name: nil) -> ::Google::Protobuf::Empty

Deletes a job trigger.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers>
to learn more.
**Overloads**

    def delete_job_trigger(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_job_trigger` via a request object, either of type [Google::Cloud::Dlp::V2::DeleteJobTriggerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteJobTriggerRequest "Google::Cloud::Dlp::V2::DeleteJobTriggerRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::DeleteJobTriggerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteJobTriggerRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_job_trigger(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_job_trigger` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::DeleteJobTriggerRequest.new

# Call the delete_job_trigger method.
result = client.delete_job_trigger request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #delete_stored_info_type

    def delete_stored_info_type(request, options = nil) -> ::Google::Protobuf::Empty
    def delete_stored_info_type(name: nil) -> ::Google::Protobuf::Empty

Deletes a stored infoType.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes>
to learn more.
**Overloads**

    def delete_stored_info_type(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_stored_info_type` via a request object, either of type [Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteStoredInfoTypeRequest "Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteStoredInfoTypeRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_stored_info_type(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_stored_info_type` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest.new

# Call the delete_stored_info_type method.
result = client.delete_stored_info_type request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #delete_table_data_profile

    def delete_table_data_profile(request, options = nil) -> ::Google::Protobuf::Empty
    def delete_table_data_profile(name: nil) -> ::Google::Protobuf::Empty

Delete a TableDataProfile. Will not prevent the profile from being
regenerated if the table is still included in a discovery configuration.
**Overloads**

    def delete_table_data_profile(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_table_data_profile` via a request object, either of type [Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteTableDataProfileRequest "Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeleteTableDataProfileRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_table_data_profile(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_table_data_profile` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name of the table data profile.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest.new

# Call the delete_table_data_profile method.
result = client.delete_table_data_profile request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #finish_dlp_job

    def finish_dlp_job(request, options = nil) -> ::Google::Protobuf::Empty
    def finish_dlp_job(name: nil) -> ::Google::Protobuf::Empty

Finish a running hybrid DlpJob. Triggers the finalization steps and running
of any enabled actions that have not yet run.
**Overloads**

    def finish_dlp_job(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `finish_dlp_job` via a request object, either of type [FinishDlpJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-FinishDlpJobRequest "Google::Cloud::Dlp::V2::FinishDlpJobRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::FinishDlpJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-FinishDlpJobRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def finish_dlp_job(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `finish_dlp_job` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the DlpJob resource to be finished.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::FinishDlpJobRequest.new

# Call the finish_dlp_job method.
result = client.finish_dlp_job request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #get_column_data_profile

    def get_column_data_profile(request, options = nil) -> ::Google::Cloud::Dlp::V2::ColumnDataProfile
    def get_column_data_profile(name: nil) -> ::Google::Cloud::Dlp::V2::ColumnDataProfile

Gets a column data profile.
**Overloads**

    def get_column_data_profile(request, options = nil) -> ::Google::Cloud::Dlp::V2::ColumnDataProfile

Pass arguments to `get_column_data_profile` via a request object, either of type [GetColumnDataProfileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetColumnDataProfileRequest "Google::Cloud::Dlp::V2::GetColumnDataProfileRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetColumnDataProfileRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_column_data_profile(name: nil) -> ::Google::Cloud::Dlp::V2::ColumnDataProfile

Pass arguments to `get_column_data_profile` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name, for example `organizations/12345/locations/us/columnDataProfiles/53234423`.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::ColumnDataProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ColumnDataProfile))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::GetColumnDataProfileRequest.new

# Call the get_column_data_profile method.
result = client.get_column_data_profile request

# The returned object is of type Google::Cloud::Dlp::V2::ColumnDataProfile.
p result
```

### #get_connection

    def get_connection(request, options = nil) -> ::Google::Cloud::Dlp::V2::Connection
    def get_connection(name: nil) -> ::Google::Cloud::Dlp::V2::Connection

Get a Connection by name.
**Overloads**

    def get_connection(request, options = nil) -> ::Google::Cloud::Dlp::V2::Connection

Pass arguments to `get_connection` via a request object, either of type [GetConnectionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetConnectionRequest "Google::Cloud::Dlp::V2::GetConnectionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::GetConnectionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetConnectionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_connection(name: nil) -> ::Google::Cloud::Dlp::V2::Connection

Pass arguments to `get_connection` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name in the format: `projects/{project}/locations/{location}/connections/{connection}`.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::Connection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Connection))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::GetConnectionRequest.new

# Call the get_connection method.
result = client.get_connection request

# The returned object is of type Google::Cloud::Dlp::V2::Connection.
p result
```

### #get_deidentify_template

    def get_deidentify_template(request, options = nil) -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate
    def get_deidentify_template(name: nil) -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate

Gets a DeidentifyTemplate.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid>
to learn more.
**Overloads**

    def get_deidentify_template(request, options = nil) -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate

Pass arguments to `get_deidentify_template` via a request object, either of type [GetDeidentifyTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetDeidentifyTemplateRequest "Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetDeidentifyTemplateRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_deidentify_template(name: nil) -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate

Pass arguments to `get_deidentify_template` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::DeidentifyTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeidentifyTemplate))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest.new

# Call the get_deidentify_template method.
result = client.get_deidentify_template request

# The returned object is of type Google::Cloud::Dlp::V2::DeidentifyTemplate.
p result
```

### #get_discovery_config

    def get_discovery_config(request, options = nil) -> ::Google::Cloud::Dlp::V2::DiscoveryConfig
    def get_discovery_config(name: nil) -> ::Google::Cloud::Dlp::V2::DiscoveryConfig

Gets a discovery configuration.
**Overloads**

    def get_discovery_config(request, options = nil) -> ::Google::Cloud::Dlp::V2::DiscoveryConfig

Pass arguments to `get_discovery_config` via a request object, either of type [GetDiscoveryConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetDiscoveryConfigRequest "Google::Cloud::Dlp::V2::GetDiscoveryConfigRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::GetDiscoveryConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetDiscoveryConfigRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_discovery_config(name: nil) -> ::Google::Cloud::Dlp::V2::DiscoveryConfig

Pass arguments to `get_discovery_config` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::DiscoveryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DiscoveryConfig))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::GetDiscoveryConfigRequest.new

# Call the get_discovery_config method.
result = client.get_discovery_config request

# The returned object is of type Google::Cloud::Dlp::V2::DiscoveryConfig.
p result
```

### #get_dlp_job

    def get_dlp_job(request, options = nil) -> ::Google::Cloud::Dlp::V2::DlpJob
    def get_dlp_job(name: nil) -> ::Google::Cloud::Dlp::V2::DlpJob

Gets the latest state of a long-running DlpJob.
See
<https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage>
and
<https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis>
to learn more.
**Overloads**

    def get_dlp_job(request, options = nil) -> ::Google::Cloud::Dlp::V2::DlpJob

Pass arguments to `get_dlp_job` via a request object, either of type [GetDlpJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetDlpJobRequest "Google::Cloud::Dlp::V2::GetDlpJobRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::GetDlpJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetDlpJobRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_dlp_job(name: nil) -> ::Google::Cloud::Dlp::V2::DlpJob

Pass arguments to `get_dlp_job` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the DlpJob resource.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::DlpJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpJob))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::GetDlpJobRequest.new

# Call the get_dlp_job method.
result = client.get_dlp_job request

# The returned object is of type Google::Cloud::Dlp::V2::DlpJob.
p result
```

### #get_file_store_data_profile

    def get_file_store_data_profile(request, options = nil) -> ::Google::Cloud::Dlp::V2::FileStoreDataProfile
    def get_file_store_data_profile(name: nil) -> ::Google::Cloud::Dlp::V2::FileStoreDataProfile

Gets a file store data profile.
**Overloads**

    def get_file_store_data_profile(request, options = nil) -> ::Google::Cloud::Dlp::V2::FileStoreDataProfile

Pass arguments to `get_file_store_data_profile` via a request object, either of type [GetFileStoreDataProfileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetFileStoreDataProfileRequest "Google::Cloud::Dlp::V2::GetFileStoreDataProfileRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::GetFileStoreDataProfileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetFileStoreDataProfileRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_file_store_data_profile(name: nil) -> ::Google::Cloud::Dlp::V2::FileStoreDataProfile

Pass arguments to `get_file_store_data_profile` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name, for example `organizations/12345/locations/us/fileStoreDataProfiles/53234423`.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::FileStoreDataProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-FileStoreDataProfile))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::GetFileStoreDataProfileRequest.new

# Call the get_file_store_data_profile method.
result = client.get_file_store_data_profile request

# The returned object is of type Google::Cloud::Dlp::V2::FileStoreDataProfile.
p result
```

### #get_inspect_template

    def get_inspect_template(request, options = nil) -> ::Google::Cloud::Dlp::V2::InspectTemplate
    def get_inspect_template(name: nil) -> ::Google::Cloud::Dlp::V2::InspectTemplate

Gets an InspectTemplate.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-templates>
to learn more.
**Overloads**

    def get_inspect_template(request, options = nil) -> ::Google::Cloud::Dlp::V2::InspectTemplate

Pass arguments to `get_inspect_template` via a request object, either of type [GetInspectTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetInspectTemplateRequest "Google::Cloud::Dlp::V2::GetInspectTemplateRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::GetInspectTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetInspectTemplateRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_inspect_template(name: nil) -> ::Google::Cloud::Dlp::V2::InspectTemplate

Pass arguments to `get_inspect_template` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::InspectTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectTemplate))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::GetInspectTemplateRequest.new

# Call the get_inspect_template method.
result = client.get_inspect_template request

# The returned object is of type Google::Cloud::Dlp::V2::InspectTemplate.
p result
```

### #get_job_trigger

    def get_job_trigger(request, options = nil) -> ::Google::Cloud::Dlp::V2::JobTrigger
    def get_job_trigger(name: nil) -> ::Google::Cloud::Dlp::V2::JobTrigger

Gets a job trigger.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers>
to learn more.
**Overloads**

    def get_job_trigger(request, options = nil) -> ::Google::Cloud::Dlp::V2::JobTrigger

Pass arguments to `get_job_trigger` via a request object, either of type [GetJobTriggerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetJobTriggerRequest "Google::Cloud::Dlp::V2::GetJobTriggerRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::GetJobTriggerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetJobTriggerRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_job_trigger(name: nil) -> ::Google::Cloud::Dlp::V2::JobTrigger

Pass arguments to `get_job_trigger` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::JobTrigger](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-JobTrigger))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::GetJobTriggerRequest.new

# Call the get_job_trigger method.
result = client.get_job_trigger request

# The returned object is of type Google::Cloud::Dlp::V2::JobTrigger.
p result
```

### #get_project_data_profile

    def get_project_data_profile(request, options = nil) -> ::Google::Cloud::Dlp::V2::ProjectDataProfile
    def get_project_data_profile(name: nil) -> ::Google::Cloud::Dlp::V2::ProjectDataProfile

Gets a project data profile.
**Overloads**

    def get_project_data_profile(request, options = nil) -> ::Google::Cloud::Dlp::V2::ProjectDataProfile

Pass arguments to `get_project_data_profile` via a request object, either of type [GetProjectDataProfileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetProjectDataProfileRequest "Google::Cloud::Dlp::V2::GetProjectDataProfileRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetProjectDataProfileRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_project_data_profile(name: nil) -> ::Google::Cloud::Dlp::V2::ProjectDataProfile

Pass arguments to `get_project_data_profile` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name, for example `organizations/12345/locations/us/projectDataProfiles/53234423`.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::ProjectDataProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ProjectDataProfile))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::GetProjectDataProfileRequest.new

# Call the get_project_data_profile method.
result = client.get_project_data_profile request

# The returned object is of type Google::Cloud::Dlp::V2::ProjectDataProfile.
p result
```

### #get_stored_info_type

    def get_stored_info_type(request, options = nil) -> ::Google::Cloud::Dlp::V2::StoredInfoType
    def get_stored_info_type(name: nil) -> ::Google::Cloud::Dlp::V2::StoredInfoType

Gets a stored infoType.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes>
to learn more.
**Overloads**

    def get_stored_info_type(request, options = nil) -> ::Google::Cloud::Dlp::V2::StoredInfoType

Pass arguments to `get_stored_info_type` via a request object, either of type [GetStoredInfoTypeRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetStoredInfoTypeRequest "Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetStoredInfoTypeRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_stored_info_type(name: nil) -> ::Google::Cloud::Dlp::V2::StoredInfoType

Pass arguments to `get_stored_info_type` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::StoredInfoType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-StoredInfoType))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest.new

# Call the get_stored_info_type method.
result = client.get_stored_info_type request

# The returned object is of type Google::Cloud::Dlp::V2::StoredInfoType.
p result
```

### #get_table_data_profile

    def get_table_data_profile(request, options = nil) -> ::Google::Cloud::Dlp::V2::TableDataProfile
    def get_table_data_profile(name: nil) -> ::Google::Cloud::Dlp::V2::TableDataProfile

Gets a table data profile.
**Overloads**

    def get_table_data_profile(request, options = nil) -> ::Google::Cloud::Dlp::V2::TableDataProfile

Pass arguments to `get_table_data_profile` via a request object, either of type [GetTableDataProfileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetTableDataProfileRequest "Google::Cloud::Dlp::V2::GetTableDataProfileRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::GetTableDataProfileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-GetTableDataProfileRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_table_data_profile(name: nil) -> ::Google::Cloud::Dlp::V2::TableDataProfile

Pass arguments to `get_table_data_profile` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Resource name, for example `organizations/12345/locations/us/tableDataProfiles/53234423`.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::TableDataProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-TableDataProfile))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::GetTableDataProfileRequest.new

# Call the get_table_data_profile method.
result = client.get_table_data_profile request

# The returned object is of type Google::Cloud::Dlp::V2::TableDataProfile.
p result
```

### #hybrid_inspect_dlp_job

    def hybrid_inspect_dlp_job(request, options = nil) -> ::Google::Cloud::Dlp::V2::HybridInspectResponse
    def hybrid_inspect_dlp_job(name: nil, hybrid_item: nil) -> ::Google::Cloud::Dlp::V2::HybridInspectResponse

Inspect hybrid content and store findings to a job.
To review the findings, inspect the job. Inspection will occur
asynchronously.
**Overloads**

    def hybrid_inspect_dlp_job(request, options = nil) -> ::Google::Cloud::Dlp::V2::HybridInspectResponse

Pass arguments to `hybrid_inspect_dlp_job` via a request object, either of type [HybridInspectDlpJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-HybridInspectDlpJobRequest "Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-HybridInspectDlpJobRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def hybrid_inspect_dlp_job(name: nil, hybrid_item: nil) -> ::Google::Cloud::Dlp::V2::HybridInspectResponse

Pass arguments to `hybrid_inspect_dlp_job` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- Required. Resource name of the job to execute a hybrid inspect on, for example `projects/dlp-test-project/dlpJob/53234423`.
- **hybrid_item** ([::Google::Cloud::Dlp::V2::HybridContentItem](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-HybridContentItem), ::Hash) --- The item to inspect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::HybridInspectResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-HybridInspectResponse))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest.new

# Call the hybrid_inspect_dlp_job method.
result = client.hybrid_inspect_dlp_job request

# The returned object is of type Google::Cloud::Dlp::V2::HybridInspectResponse.
p result
```

### #hybrid_inspect_job_trigger

    def hybrid_inspect_job_trigger(request, options = nil) -> ::Google::Cloud::Dlp::V2::HybridInspectResponse
    def hybrid_inspect_job_trigger(name: nil, hybrid_item: nil) -> ::Google::Cloud::Dlp::V2::HybridInspectResponse

Inspect hybrid content and store findings to a trigger. The inspection
will be processed asynchronously. To review the findings monitor the
jobs within the trigger.
**Overloads**

    def hybrid_inspect_job_trigger(request, options = nil) -> ::Google::Cloud::Dlp::V2::HybridInspectResponse

Pass arguments to `hybrid_inspect_job_trigger` via a request object, either of type [HybridInspectJobTriggerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-HybridInspectJobTriggerRequest "Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-HybridInspectJobTriggerRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def hybrid_inspect_job_trigger(name: nil, hybrid_item: nil) -> ::Google::Cloud::Dlp::V2::HybridInspectResponse

Pass arguments to `hybrid_inspect_job_trigger` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- Required. Resource name of the trigger to execute a hybrid inspect on, for example `projects/dlp-test-project/jobTriggers/53234423`.
- **hybrid_item** ([::Google::Cloud::Dlp::V2::HybridContentItem](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-HybridContentItem), ::Hash) --- The item to inspect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::HybridInspectResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-HybridInspectResponse))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest.new

# Call the hybrid_inspect_job_trigger method.
result = client.hybrid_inspect_job_trigger request

# The returned object is of type Google::Cloud::Dlp::V2::HybridInspectResponse.
p result
```

### #initialize

    def initialize() { |config| ... } -> Client

Create a new DlpService client object.
**Yields**

- (config) --- Configure the DlpService client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpService-Client-Configuration))
**Returns**

- ([Client](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpService-Client)) --- a new instance of Client
**Example**

```ruby
# Create a client using the default configuration
client = ::Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a client using a custom configuration
client = ::Google::Cloud::Dlp::V2::DlpService::Client.new do |config|
  config.timeout = 10.0
end
```

### #inspect_content

    def inspect_content(request, options = nil) -> ::Google::Cloud::Dlp::V2::InspectContentResponse
    def inspect_content(parent: nil, inspect_config: nil, item: nil, inspect_template_name: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::InspectContentResponse

Finds potentially sensitive info in content.
This method has limits on input size, processing time, and output size.


When no InfoTypes or CustomInfoTypes are specified in this request, the
system will automatically choose what detectors to run. By default this may
be all types, but may change over time as detectors are updated.

<br />

For how to guides, see
<https://cloud.google.com/sensitive-data-protection/docs/inspecting-images>
and
<https://cloud.google.com/sensitive-data-protection/docs/inspecting-text>,
**Overloads**

    def inspect_content(request, options = nil) -> ::Google::Cloud::Dlp::V2::InspectContentResponse

Pass arguments to `inspect_content` via a request object, either of type [InspectContentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectContentRequest "Google::Cloud::Dlp::V2::InspectContentRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::InspectContentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectContentRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def inspect_content(parent: nil, inspect_config: nil, item: nil, inspect_template_name: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::InspectContentResponse

Pass arguments to `inspect_content` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Parent resource name.

  The format of this value varies depending on whether you have [specified a
  processing
  location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  - Projects scope, location specified: `projects/{project_id}/locations/{location_id}`
  - Projects scope, no location specified (defaults to global): `projects/{project_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **inspect_config** ([::Google::Cloud::Dlp::V2::InspectConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectConfig), ::Hash) --- Configuration for the inspector. What specified here will override the template referenced by the inspect_template_name argument.
- **item** ([::Google::Cloud::Dlp::V2::ContentItem](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ContentItem), ::Hash) --- The item to inspect.
- **inspect_template_name** (::String) --- Template to use. Any configuration directly specified in inspect_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.
- **location_id** (::String) --- Deprecated. This field has no effect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::InspectContentResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectContentResponse))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::InspectContentRequest.new

# Call the inspect_content method.
result = client.inspect_content request

# The returned object is of type Google::Cloud::Dlp::V2::InspectContentResponse.
p result
```

### #list_column_data_profiles

    def list_column_data_profiles(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ColumnDataProfile>
    def list_column_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ColumnDataProfile>

Lists column data profiles for an organization.
**Overloads**

    def list_column_data_profiles(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ColumnDataProfile>

Pass arguments to `list_column_data_profiles` via a request object, either of type [ListColumnDataProfilesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListColumnDataProfilesRequest "Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListColumnDataProfilesRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_column_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ColumnDataProfile>

Pass arguments to `list_column_data_profiles` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. Resource name of the organization or project, for example `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.
- **page_token** (::String) --- Page token to continue retrieval.
- **page_size** (::Integer) --- Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.
- **order_by** (::String) ---

  Comma-separated list of fields to order by, followed by `asc` or `desc`
  postfix. This list is case insensitive. The default sorting order is
  ascending. Redundant space characters are insignificant. Only one order
  field at a time is allowed.

  Examples:
  - `project_id asc`
  - `table_id`
  - `sensitivity_level desc`

  Supported fields are:
  - `project_id`: The Google Cloud project ID.
  - `dataset_id`: The ID of a BigQuery dataset.
  - `table_id`: The ID of a BigQuery table.
  - `sensitivity_level`: How sensitive the data in a column is, at most.
  - `data_risk_level`: How much risk is associated with this data.
  - `profile_last_generated`: When the profile was last updated in epoch seconds.
- **filter** (::String) --- Allows filtering.


  Supported syntax:
  - Filter expressions are made up of one or more restrictions.
  - Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`.
  - A restriction has the form of `{field} {operator} {value}`.
  - Supported fields:
    - `table_data_profile_name`: The name of the related table data profile
    - `project_id`: The Google Cloud project ID (REQUIRED)
    - `dataset_id`: The BigQuery dataset ID (REQUIRED)
    - `table_id`: The BigQuery table ID (REQUIRED)
    - `field_id`: The ID of the BigQuery field
    - `info_type`: The infotype detected in the resource
    - `sensitivity_level`: HIGH\|MEDIUM\|LOW
    - `data_risk_level`: How much risk is associated with this data
    - `status_code`: An RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
    - `profile_last_generated`: Date and time the profile was last generated
  - The operator must be `=` for project_id, dataset_id, and table_id. Other filters also support `!=`. The `profile_last_generated` filter also supports `<` and `>`.

  The syntax is based on https://google.aip.dev/160.

  Examples:
  - project_id = 12345 AND status_code = 1
  - project_id = 12345 AND sensitivity_level = HIGH
  - project_id = 12345 AND info_type = STREET_ADDRESS
  - profile_last_generated \< "2025-01-01T00:00:00.000Z"

  The length of this field should be no more than 500 characters.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::ColumnDataProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ColumnDataProfile)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::ColumnDataProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ColumnDataProfile)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest.new

# Call the list_column_data_profiles method.
result = client.list_column_data_profiles request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Dlp::V2::ColumnDataProfile.
  p item
end
```

### #list_connections

    def list_connections(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>
    def list_connections(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>

Lists Connections in a parent. Use SearchConnections to see all connections
within an organization.
**Overloads**

    def list_connections(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>

Pass arguments to `list_connections` via a request object, either of type [ListConnectionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListConnectionsRequest "Google::Cloud::Dlp::V2::ListConnectionsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::ListConnectionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListConnectionsRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_connections(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>

Pass arguments to `list_connections` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. Resource name of the organization or project, for example, `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.
- **page_size** (::Integer) --- Optional. Number of results per page, max 1000.
- **page_token** (::String) --- Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.
- **filter** (::String) --- Optional. Supported field/value: `state` - MISSING\|AVAILABLE\|ERROR


  The syntax is based on https://google.aip.dev/160.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::Connection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Connection)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::Connection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Connection)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::ListConnectionsRequest.new

# Call the list_connections method.
result = client.list_connections request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Dlp::V2::Connection.
  p item
end
```

### #list_deidentify_templates

    def list_deidentify_templates(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DeidentifyTemplate>
    def list_deidentify_templates(parent: nil, page_token: nil, page_size: nil, order_by: nil, location_id: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DeidentifyTemplate>

Lists DeidentifyTemplates.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid>
to learn more.
**Overloads**

    def list_deidentify_templates(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DeidentifyTemplate>

Pass arguments to `list_deidentify_templates` via a request object, either of type [ListDeidentifyTemplatesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListDeidentifyTemplatesRequest "Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListDeidentifyTemplatesRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_deidentify_templates(parent: nil, page_token: nil, page_size: nil, order_by: nil, location_id: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DeidentifyTemplate>

Pass arguments to `list_deidentify_templates` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Required. Parent resource name.

  The format of this value varies depending on the scope of the request
  (project or organization) and whether you have [specified a processing
  location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  - Projects scope, location specified: `projects/{project_id}/locations/{location_id}`
  - Projects scope, no location specified (defaults to global): `projects/{project_id}`
  - Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}`
  - Organizations scope, no location specified (defaults to global): `organizations/{org_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **page_token** (::String) --- Page token to continue retrieval. Comes from the previous call to `ListDeidentifyTemplates`.
- **page_size** (::Integer) --- Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.
- **order_by** (::String) ---

  Comma-separated list of fields to order by,
  followed by `asc` or `desc` postfix. This list is case insensitive. The
  default sorting order is ascending. Redundant space characters are
  insignificant.

  Example: `name asc,update_time, create_time desc`

  Supported fields are:
  - `create_time`: corresponds to the time the template was created.
  - `update_time`: corresponds to the time the template was last updated.
  - `name`: corresponds to the template's name.
  - `display_name`: corresponds to the template's display name.
- **location_id** (::String) --- Deprecated. This field has no effect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::DeidentifyTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeidentifyTemplate)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::DeidentifyTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeidentifyTemplate)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest.new

# Call the list_deidentify_templates method.
result = client.list_deidentify_templates request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Dlp::V2::DeidentifyTemplate.
  p item
end
```

### #list_discovery_configs

    def list_discovery_configs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DiscoveryConfig>
    def list_discovery_configs(parent: nil, page_token: nil, page_size: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DiscoveryConfig>

Lists discovery configurations.
**Overloads**

    def list_discovery_configs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DiscoveryConfig>

Pass arguments to `list_discovery_configs` via a request object, either of type [ListDiscoveryConfigsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListDiscoveryConfigsRequest "Google::Cloud::Dlp::V2::ListDiscoveryConfigsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::ListDiscoveryConfigsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListDiscoveryConfigsRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_discovery_configs(parent: nil, page_token: nil, page_size: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DiscoveryConfig>

Pass arguments to `list_discovery_configs` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Required. Parent resource name.

  The format of this value is as follows:
  `projects/{project_id}/locations/{location_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **page_token** (::String) --- Page token to continue retrieval. Comes from the previous call to ListDiscoveryConfigs. `order_by` field must not change for subsequent calls.
- **page_size** (::Integer) --- Size of the page. This value can be limited by a server.
- **order_by** (::String) ---

  Comma-separated list of config fields to order by,
  followed by `asc` or `desc` postfix. This list is case insensitive. The
  default sorting order is ascending. Redundant space characters are
  insignificant.

  Example: `name asc,update_time, create_time desc`

  Supported fields are:
  - `last_run_time`: corresponds to the last time the DiscoveryConfig ran.
  - `name`: corresponds to the DiscoveryConfig's name.
  - `status`: corresponds to DiscoveryConfig's status.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::DiscoveryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DiscoveryConfig)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::DiscoveryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DiscoveryConfig)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::ListDiscoveryConfigsRequest.new

# Call the list_discovery_configs method.
result = client.list_discovery_configs request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Dlp::V2::DiscoveryConfig.
  p item
end
```

### #list_dlp_jobs

    def list_dlp_jobs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DlpJob>
    def list_dlp_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, type: nil, order_by: nil, location_id: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DlpJob>

Lists DlpJobs that match the specified filter in the request.
See
<https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage>
and
<https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis>
to learn more.
**Overloads**

    def list_dlp_jobs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DlpJob>

Pass arguments to `list_dlp_jobs` via a request object, either of type [ListDlpJobsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListDlpJobsRequest "Google::Cloud::Dlp::V2::ListDlpJobsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::ListDlpJobsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListDlpJobsRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_dlp_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, type: nil, order_by: nil, location_id: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DlpJob>

Pass arguments to `list_dlp_jobs` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Required. Parent resource name.

  The format of this value varies depending on whether you have [specified a
  processing
  location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  - Projects scope, location specified: `projects/{project_id}/locations/{location_id}`
  - Projects scope, no location specified (defaults to global): `projects/{project_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **filter** (::String) --- Allows filtering.


  Supported syntax:
  - Filter expressions are made up of one or more restrictions.
  - Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`.
  - A restriction has the form of `{field} {operator} {value}`.
  - Supported fields/values for inspect jobs:
    - `state` - PENDING\|RUNNING\|CANCELED\|FINISHED\|FAILED
    - `inspected_storage` - DATASTORE\|CLOUD_STORAGE\|BIGQUERY
    - `trigger_name` - The name of the trigger that created the job.
    - 'end_time\` - Corresponds to the time the job finished.
    - 'start_time\` - Corresponds to the time the job finished.
  - Supported fields for risk analysis jobs:
    - `state` - RUNNING\|CANCELED\|FINISHED\|FAILED
    - 'end_time\` - Corresponds to the time the job finished.
    - 'start_time\` - Corresponds to the time the job finished.
  - The operator must be `=` or `!=`.

  The syntax is based on https://google.aip.dev/160.

  Examples:
  - inspected_storage = cloud_storage AND state = done
  - inspected_storage = cloud_storage OR inspected_storage = bigquery
  - inspected_storage = cloud_storage AND (state = done OR state = canceled)
  - end_time \> \\"2017-12-12T00:00:00+00:00\\"

  The length of this field should be no more than 500 characters.
- **page_size** (::Integer) --- The standard list page size.
- **page_token** (::String) --- The standard list page token.
- **type** ([::Google::Cloud::Dlp::V2::DlpJobType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpJobType)) --- The type of job. Defaults to `DlpJobType.INSPECT`
- **order_by** (::String) ---

  Comma-separated list of fields to order by,
  followed by `asc` or `desc` postfix. This list is case insensitive. The
  default sorting order is ascending. Redundant space characters are
  insignificant.

  Example: `name asc, end_time asc, create_time desc`

  Supported fields are:
  - `create_time`: corresponds to the time the job was created.
  - `end_time`: corresponds to the time the job ended.
  - `name`: corresponds to the job's name.
  - `state`: corresponds to `state`
- **location_id** (::String) --- Deprecated. This field has no effect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::DlpJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpJob)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::DlpJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpJob)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::ListDlpJobsRequest.new

# Call the list_dlp_jobs method.
result = client.list_dlp_jobs request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Dlp::V2::DlpJob.
  p item
end
```

### #list_file_store_data_profiles

    def list_file_store_data_profiles(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::FileStoreDataProfile>
    def list_file_store_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::FileStoreDataProfile>

Lists file store data profiles for an organization.
**Overloads**

    def list_file_store_data_profiles(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::FileStoreDataProfile>

Pass arguments to `list_file_store_data_profiles` via a request object, either of type [ListFileStoreDataProfilesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListFileStoreDataProfilesRequest "Google::Cloud::Dlp::V2::ListFileStoreDataProfilesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::ListFileStoreDataProfilesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListFileStoreDataProfilesRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_file_store_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::FileStoreDataProfile>

Pass arguments to `list_file_store_data_profiles` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. Resource name of the organization or project, for example `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.
- **page_token** (::String) --- Optional. Page token to continue retrieval.
- **page_size** (::Integer) --- Optional. Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.
- **order_by** (::String) ---

  Optional. Comma-separated list of fields to order by, followed by `asc` or
  `desc` postfix. This list is case insensitive. The default sorting order is
  ascending. Redundant space characters are insignificant. Only one order
  field at a time is allowed.

  Examples:
  - `project_id asc`
  - `name`
  - `sensitivity_level desc`

  Supported fields are:
  - `project_id`: The Google Cloud project ID.
  - `sensitivity_level`: How sensitive the data in a table is, at most.
  - `data_risk_level`: How much risk is associated with this data.
  - `profile_last_generated`: When the profile was last updated in epoch seconds.
  - `last_modified`: The last time the resource was modified.
  - `resource_visibility`: Visibility restriction for this resource.
  - `name`: The name of the profile.
  - `create_time`: The time the file store was first created.
- **filter** (::String) --- Optional. Allows filtering.


  Supported syntax:
  - Filter expressions are made up of one or more restrictions.
  - Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`.
  - A restriction has the form of `{field} {operator} {value}`.
  - Supported fields:

    - `project_id`: The Google Cloud project ID
    - `account_id`: The AWS account ID
    - `file_store_path`: The path like "gs://bucket"
    - `data_source_type`: The profile's data source type, like "google/storage/bucket"
    - `data_storage_location`: The location where the file store's data is stored, like "us-central1"
    - `sensitivity_level`: HIGH\|MODERATE\|LOW
    - `data_risk_level`: HIGH\|MODERATE\|LOW
    - `resource_visibility`: PUBLIC\|RESTRICTED
    - `status_code`: an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
    - `profile_last_generated`: Date and time the profile was last generated
  - The operator must be `=` or `!=`. The `profile_last_generated` filter
    also supports `<` and `>`.

  The syntax is based on https://google.aip.dev/160.

  Examples:
  - `project_id = 12345 AND status_code = 1`
  - `project_id = 12345 AND sensitivity_level = HIGH`
  - `project_id = 12345 AND resource_visibility = PUBLIC`
  - `file_store_path = "gs://mybucket"`
  - `profile_last_generated < "2025-01-01T00:00:00.000Z"`

  The length of this field should be no more than 500 characters.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::FileStoreDataProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-FileStoreDataProfile)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::FileStoreDataProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-FileStoreDataProfile)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::ListFileStoreDataProfilesRequest.new

# Call the list_file_store_data_profiles method.
result = client.list_file_store_data_profiles request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Dlp::V2::FileStoreDataProfile.
  p item
end
```

### #list_info_types

    def list_info_types(request, options = nil) -> ::Google::Cloud::Dlp::V2::ListInfoTypesResponse
    def list_info_types(parent: nil, language_code: nil, filter: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::ListInfoTypesResponse

Returns a list of the sensitive information types that the DLP API
supports. See
<https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference>
to learn more.
**Overloads**

    def list_info_types(request, options = nil) -> ::Google::Cloud::Dlp::V2::ListInfoTypesResponse

Pass arguments to `list_info_types` via a request object, either of type [ListInfoTypesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListInfoTypesRequest "Google::Cloud::Dlp::V2::ListInfoTypesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::ListInfoTypesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListInfoTypesRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_info_types(parent: nil, language_code: nil, filter: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::ListInfoTypesResponse

Pass arguments to `list_info_types` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  The parent resource name.

  The format of this value is as follows:

      `locations/{location_id}`

- **language_code** (::String) --- BCP-47 language code for localized infoType friendly names. If omitted, or if localized strings are not available, en-US strings will be returned.
- **filter** (::String) --- filter to only return infoTypes supported by certain parts of the API. Defaults to supported_by=INSPECT.
- **location_id** (::String) --- Deprecated. This field has no effect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::ListInfoTypesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListInfoTypesResponse))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::ListInfoTypesRequest.new

# Call the list_info_types method.
result = client.list_info_types request

# The returned object is of type Google::Cloud::Dlp::V2::ListInfoTypesResponse.
p result
```

### #list_inspect_templates

    def list_inspect_templates(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::InspectTemplate>
    def list_inspect_templates(parent: nil, page_token: nil, page_size: nil, order_by: nil, location_id: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::InspectTemplate>

Lists InspectTemplates.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-templates>
to learn more.
**Overloads**

    def list_inspect_templates(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::InspectTemplate>

Pass arguments to `list_inspect_templates` via a request object, either of type [ListInspectTemplatesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListInspectTemplatesRequest "Google::Cloud::Dlp::V2::ListInspectTemplatesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::ListInspectTemplatesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListInspectTemplatesRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_inspect_templates(parent: nil, page_token: nil, page_size: nil, order_by: nil, location_id: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::InspectTemplate>

Pass arguments to `list_inspect_templates` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Required. Parent resource name.

  The format of this value varies depending on the scope of the request
  (project or organization) and whether you have [specified a processing
  location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  - Projects scope, location specified: `projects/{project_id}/locations/{location_id}`
  - Projects scope, no location specified (defaults to global): `projects/{project_id}`
  - Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}`
  - Organizations scope, no location specified (defaults to global): `organizations/{org_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **page_token** (::String) --- Page token to continue retrieval. Comes from the previous call to `ListInspectTemplates`.
- **page_size** (::Integer) --- Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.
- **order_by** (::String) ---

  Comma-separated list of fields to order by,
  followed by `asc` or `desc` postfix. This list is case insensitive. The
  default sorting order is ascending. Redundant space characters are
  insignificant.

  Example: `name asc,update_time, create_time desc`

  Supported fields are:
  - `create_time`: corresponds to the time the template was created.
  - `update_time`: corresponds to the time the template was last updated.
  - `name`: corresponds to the template's name.
  - `display_name`: corresponds to the template's display name.
- **location_id** (::String) --- Deprecated. This field has no effect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::InspectTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectTemplate)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::InspectTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectTemplate)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::ListInspectTemplatesRequest.new

# Call the list_inspect_templates method.
result = client.list_inspect_templates request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Dlp::V2::InspectTemplate.
  p item
end
```

### #list_job_triggers

    def list_job_triggers(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::JobTrigger>
    def list_job_triggers(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil, type: nil, location_id: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::JobTrigger>

Lists job triggers.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers>
to learn more.
**Overloads**

    def list_job_triggers(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::JobTrigger>

Pass arguments to `list_job_triggers` via a request object, either of type [ListJobTriggersRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListJobTriggersRequest "Google::Cloud::Dlp::V2::ListJobTriggersRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::ListJobTriggersRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListJobTriggersRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_job_triggers(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil, type: nil, location_id: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::JobTrigger>

Pass arguments to `list_job_triggers` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Required. Parent resource name.

  The format of this value varies depending on whether you have [specified a
  processing
  location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  - Projects scope, location specified: `projects/{project_id}/locations/{location_id}`
  - Projects scope, no location specified (defaults to global): `projects/{project_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **page_token** (::String) --- Page token to continue retrieval. Comes from the previous call to ListJobTriggers. `order_by` field must not change for subsequent calls.
- **page_size** (::Integer) --- Size of the page. This value can be limited by a server.
- **order_by** (::String) ---

  Comma-separated list of triggeredJob fields to order by,
  followed by `asc` or `desc` postfix. This list is case insensitive. The
  default sorting order is ascending. Redundant space characters are
  insignificant.

  Example: `name asc,update_time, create_time desc`

  Supported fields are:
  - `create_time`: corresponds to the time the JobTrigger was created.
  - `update_time`: corresponds to the time the JobTrigger was last updated.
  - `last_run_time`: corresponds to the last time the JobTrigger ran.
  - `name`: corresponds to the JobTrigger's name.
  - `display_name`: corresponds to the JobTrigger's display name.
  - `status`: corresponds to JobTrigger's status.
- **filter** (::String) --- Allows filtering.


  Supported syntax:
  - Filter expressions are made up of one or more restrictions.
  - Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`.
  - A restriction has the form of `{field} {operator} {value}`.
  - Supported fields/values for inspect triggers:
    - `status` - HEALTHY\|PAUSED\|CANCELLED
    - `inspected_storage` - DATASTORE\|CLOUD_STORAGE\|BIGQUERY
    - 'last_run_time\` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored.
    - 'error_count' - Number of errors that have occurred while running.
  - The operator must be `=` or `!=` for status and inspected_storage.

  The syntax is based on https://google.aip.dev/160.

  Examples:
  - inspected_storage = cloud_storage AND status = HEALTHY
  - inspected_storage = cloud_storage OR inspected_storage = bigquery
  - inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY)
  - last_run_time \> \\"2017-12-12T00:00:00+00:00\\"

  The length of this field should be no more than 500 characters.
- **type** ([::Google::Cloud::Dlp::V2::DlpJobType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpJobType)) --- The type of jobs. Will use `DlpJobType.INSPECT` if not set.
- **location_id** (::String) --- Deprecated. This field has no effect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::JobTrigger](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-JobTrigger)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::JobTrigger](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-JobTrigger)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::ListJobTriggersRequest.new

# Call the list_job_triggers method.
result = client.list_job_triggers request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Dlp::V2::JobTrigger.
  p item
end
```

### #list_project_data_profiles

    def list_project_data_profiles(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ProjectDataProfile>
    def list_project_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ProjectDataProfile>

Lists project data profiles for an organization.
**Overloads**

    def list_project_data_profiles(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ProjectDataProfile>

Pass arguments to `list_project_data_profiles` via a request object, either of type [ListProjectDataProfilesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListProjectDataProfilesRequest "Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListProjectDataProfilesRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_project_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ProjectDataProfile>

Pass arguments to `list_project_data_profiles` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. organizations/{org_id}/locations/{loc_id}
- **page_token** (::String) --- Page token to continue retrieval.
- **page_size** (::Integer) --- Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.
- **order_by** (::String) ---

  Comma-separated list of fields to order by, followed by `asc` or `desc`
  postfix. This list is case insensitive. The default sorting order is
  ascending. Redundant space characters are insignificant. Only one order
  field at a time is allowed.

  Examples:
  - `project_id`
  - `sensitivity_level desc`

  Supported fields:
  - `project_id`: Google Cloud project ID
  - `sensitivity_level`: How sensitive the data in a project is, at most
  - `data_risk_level`: How much risk is associated with this data
  - `profile_last_generated`: Date and time (in epoch seconds) the profile was last generated
- **filter** (::String) --- Allows filtering.


  Supported syntax:
  - Filter expressions are made up of one or more restrictions.
  - Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`.
  - A restriction has the form of `{field} {operator} {value}`.
  - Supported fields:
    - `project_id`: the Google Cloud project ID
    - `sensitivity_level`: HIGH\|MODERATE\|LOW
    - `data_risk_level`: HIGH\|MODERATE\|LOW
    - `status_code`: an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
    - `profile_last_generated`: Date and time the profile was last generated
  - The operator must be `=` or `!=`. The `profile_last_generated` filter also supports `<` and `>`.

  The syntax is based on https://google.aip.dev/160.

  Examples:
  - `project_id = 12345 AND status_code = 1`
  - `project_id = 12345 AND sensitivity_level = HIGH`
  - `profile_last_generated < "2025-01-01T00:00:00.000Z"`

  The length of this field should be no more than 500 characters.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::ProjectDataProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ProjectDataProfile)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::ProjectDataProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ProjectDataProfile)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest.new

# Call the list_project_data_profiles method.
result = client.list_project_data_profiles request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Dlp::V2::ProjectDataProfile.
  p item
end
```

### #list_stored_info_types

    def list_stored_info_types(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::StoredInfoType>
    def list_stored_info_types(parent: nil, page_token: nil, page_size: nil, order_by: nil, location_id: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::StoredInfoType>

Lists stored infoTypes.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes>
to learn more.
**Overloads**

    def list_stored_info_types(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::StoredInfoType>

Pass arguments to `list_stored_info_types` via a request object, either of type [ListStoredInfoTypesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListStoredInfoTypesRequest "Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListStoredInfoTypesRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_stored_info_types(parent: nil, page_token: nil, page_size: nil, order_by: nil, location_id: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::StoredInfoType>

Pass arguments to `list_stored_info_types` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Required. Parent resource name.

  The format of this value varies depending on the scope of the request
  (project or organization) and whether you have [specified a processing
  location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  - Projects scope, location specified: `projects/{project_id}/locations/{location_id}`
  - Projects scope, no location specified (defaults to global): `projects/{project_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **page_token** (::String) --- Page token to continue retrieval. Comes from the previous call to `ListStoredInfoTypes`.
- **page_size** (::Integer) --- Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.
- **order_by** (::String) ---

  Comma-separated list of fields to order by,
  followed by `asc` or `desc` postfix. This list is case insensitive. The
  default sorting order is ascending. Redundant space characters are
  insignificant.

  Example: `name asc, display_name, create_time desc`

  Supported fields are:
  - `create_time`: corresponds to the time the most recent version of the resource was created.
  - `state`: corresponds to the state of the resource.
  - `name`: corresponds to resource name.
  - `display_name`: corresponds to info type's display name.
- **location_id** (::String) --- Deprecated. This field has no effect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::StoredInfoType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-StoredInfoType)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::StoredInfoType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-StoredInfoType)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest.new

# Call the list_stored_info_types method.
result = client.list_stored_info_types request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Dlp::V2::StoredInfoType.
  p item
end
```

### #list_table_data_profiles

    def list_table_data_profiles(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::TableDataProfile>
    def list_table_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::TableDataProfile>

Lists table data profiles for an organization.
**Overloads**

    def list_table_data_profiles(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::TableDataProfile>

Pass arguments to `list_table_data_profiles` via a request object, either of type [ListTableDataProfilesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListTableDataProfilesRequest "Google::Cloud::Dlp::V2::ListTableDataProfilesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ListTableDataProfilesRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_table_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::TableDataProfile>

Pass arguments to `list_table_data_profiles` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. Resource name of the organization or project, for example `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.
- **page_token** (::String) --- Page token to continue retrieval.
- **page_size** (::Integer) --- Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.
- **order_by** (::String) ---

  Comma-separated list of fields to order by, followed by `asc` or `desc`
  postfix. This list is case insensitive. The default sorting order is
  ascending. Redundant space characters are insignificant. Only one order
  field at a time is allowed.

  Examples:
  - `project_id asc`
  - `table_id`
  - `sensitivity_level desc`

  Supported fields are:
  - `project_id`: The Google Cloud project ID.
  - `dataset_id`: The ID of a BigQuery dataset.
  - `table_id`: The ID of a BigQuery table.
  - `sensitivity_level`: How sensitive the data in a table is, at most.
  - `data_risk_level`: How much risk is associated with this data.
  - `profile_last_generated`: When the profile was last updated in epoch seconds.
  - `last_modified`: The last time the resource was modified.
  - `resource_visibility`: Visibility restriction for this resource.
  - `row_count`: Number of rows in this resource.
- **filter** (::String) --- Allows filtering.


  Supported syntax:
  - Filter expressions are made up of one or more restrictions.
  - Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`.
  - A restriction has the form of `{field} {operator} {value}`.
  - Supported fields:

    - `project_id`: The Google Cloud project ID
    - `dataset_id`: The BigQuery dataset ID
    - `table_id`: The ID of the BigQuery table
    - `sensitivity_level`: HIGH\|MODERATE\|LOW
    - `data_risk_level`: HIGH\|MODERATE\|LOW
    - `resource_visibility`: PUBLIC\|RESTRICTED
    - `status_code`: an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
    - `profile_last_generated`: Date and time the profile was last generated
  - The operator must be `=` or `!=`. The `profile_last_generated` filter
    also supports `<` and `>`.

  The syntax is based on https://google.aip.dev/160.

  Examples:
  - `project_id = 12345 AND status_code = 1`
  - `project_id = 12345 AND sensitivity_level = HIGH`
  - `project_id = 12345 AND resource_visibility = PUBLIC`
  - `profile_last_generated < "2025-01-01T00:00:00.000Z"`

  The length of this field should be no more than 500 characters.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::TableDataProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-TableDataProfile)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::TableDataProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-TableDataProfile)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::ListTableDataProfilesRequest.new

# Call the list_table_data_profiles method.
result = client.list_table_data_profiles request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Dlp::V2::TableDataProfile.
  p item
end
```

### #location_client

    def location_client() -> Google::Cloud::Location::Locations::Client

Get the associated client for mix-in of the Locations.
**Returns**

- (Google::Cloud::Location::Locations::Client)

### #logger

    def logger() -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #redact_image

    def redact_image(request, options = nil) -> ::Google::Cloud::Dlp::V2::RedactImageResponse
    def redact_image(parent: nil, location_id: nil, inspect_config: nil, image_redaction_configs: nil, include_findings: nil, byte_item: nil, inspect_template: nil, deidentify_template: nil) -> ::Google::Cloud::Dlp::V2::RedactImageResponse

Redacts potentially sensitive info from an image.
This method has limits on input size, processing time, and output size.
See
<https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images>
to learn more.


When no InfoTypes or CustomInfoTypes are specified in this request, the
system will automatically choose what detectors to run. By default this may
be all types, but may change over time as detectors are updated.

<br />

Only the first frame of each multiframe image is redacted. Metadata and
other frames are omitted in the response.
**Overloads**

    def redact_image(request, options = nil) -> ::Google::Cloud::Dlp::V2::RedactImageResponse

Pass arguments to `redact_image` via a request object, either of type [RedactImageRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-RedactImageRequest "Google::Cloud::Dlp::V2::RedactImageRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::RedactImageRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-RedactImageRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def redact_image(parent: nil, location_id: nil, inspect_config: nil, image_redaction_configs: nil, include_findings: nil, byte_item: nil, inspect_template: nil, deidentify_template: nil) -> ::Google::Cloud::Dlp::V2::RedactImageResponse

Pass arguments to `redact_image` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Parent resource name.

  The format of this value varies depending on whether you have [specified a
  processing
  location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  - Projects scope, location specified: `projects/{project_id}/locations/{location_id}`
  - Projects scope, no location specified (defaults to global): `projects/{project_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **location_id** (::String) --- Deprecated. This field has no effect.
- **inspect_config** ([::Google::Cloud::Dlp::V2::InspectConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectConfig), ::Hash) --- Configuration for the inspector.
- **image_redaction_configs** (::Array\<[::Google::Cloud::Dlp::V2::RedactImageRequest::ImageRedactionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-RedactImageRequest-ImageRedactionConfig), ::Hash\>) --- The configuration for specifying what content to redact from images.
- **include_findings** (::Boolean) --- Whether the response should include findings along with the redacted image.
- **byte_item** ([::Google::Cloud::Dlp::V2::ByteContentItem](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ByteContentItem), ::Hash) --- The content must be PNG, JPEG, SVG or BMP.
- **inspect_template** (::String) ---

  The full resource name of the inspection template to use. Settings in the
  main `inspect_config` field override the corresponding settings in this
  inspection template.

  The merge behavior is as follows:
  - Singular field: The main field's value replaces the value of the corresponding field in the template.
  - Repeated fields: The field values are appended to the list defined in the template.
  - Sub-messages and groups: The fields are recursively merged.
- **deidentify_template** (::String) --- The full resource name of the de-identification template to use. Settings in the main `image_redaction_configs` field override the corresponding settings in this de-identification template. The request fails if the type of the template's deidentify_config is not image_transformations.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::RedactImageResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-RedactImageResponse))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::RedactImageRequest.new

# Call the redact_image method.
result = client.redact_image request

# The returned object is of type Google::Cloud::Dlp::V2::RedactImageResponse.
p result
```

### #reidentify_content

    def reidentify_content(request, options = nil) -> ::Google::Cloud::Dlp::V2::ReidentifyContentResponse
    def reidentify_content(parent: nil, reidentify_config: nil, inspect_config: nil, item: nil, inspect_template_name: nil, reidentify_template_name: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::ReidentifyContentResponse

Re-identifies content that has been de-identified.
See
<https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example>
to learn more.
**Overloads**

    def reidentify_content(request, options = nil) -> ::Google::Cloud::Dlp::V2::ReidentifyContentResponse

Pass arguments to `reidentify_content` via a request object, either of type [ReidentifyContentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ReidentifyContentRequest "Google::Cloud::Dlp::V2::ReidentifyContentRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::ReidentifyContentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ReidentifyContentRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def reidentify_content(parent: nil, reidentify_config: nil, inspect_config: nil, item: nil, inspect_template_name: nil, reidentify_template_name: nil, location_id: nil) -> ::Google::Cloud::Dlp::V2::ReidentifyContentResponse

Pass arguments to `reidentify_content` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) ---

  Required. Parent resource name.

  The format of this value varies depending on whether you have [specified a
  processing
  location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  - Projects scope, location specified: `projects/{project_id}/locations/{location_id}`
  - Projects scope, no location specified (defaults to global): `projects/{project_id}`

  The following example `parent` string specifies a parent project with the
  identifier `example-project`, and specifies the `europe-west3` location
  for processing data:

      parent=projects/example-project/locations/europe-west3

- **reidentify_config** ([::Google::Cloud::Dlp::V2::DeidentifyConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeidentifyConfig), ::Hash) ---

  Configuration for the re-identification of the content item.
  This field shares the same proto message type that is used for
  de-identification, however its usage here is for the reversal of the
  previous de-identification. Re-identification is performed by examining
  the transformations used to de-identify the items and executing the
  reverse. This requires that only reversible transformations
  be provided here. The reversible transformations are:
  - `CryptoDeterministicConfig`
  - `CryptoReplaceFfxFpeConfig`
- **inspect_config** ([::Google::Cloud::Dlp::V2::InspectConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectConfig), ::Hash) --- Configuration for the inspector.
- **item** ([::Google::Cloud::Dlp::V2::ContentItem](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ContentItem), ::Hash) --- The item to re-identify. Will be treated as text.
- **inspect_template_name** (::String) --- Template to use. Any configuration directly specified in `inspect_config` will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.
- **reidentify_template_name** (::String) --- Template to use. References an instance of `DeidentifyTemplate`. Any configuration directly specified in `reidentify_config` or `inspect_config` will override those set in the template. The `DeidentifyTemplate` used must include only reversible transformations. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.
- **location_id** (::String) --- Deprecated. This field has no effect.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::ReidentifyContentResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ReidentifyContentResponse))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::ReidentifyContentRequest.new

# Call the reidentify_content method.
result = client.reidentify_content request

# The returned object is of type Google::Cloud::Dlp::V2::ReidentifyContentResponse.
p result
```

### #search_connections

    def search_connections(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>
    def search_connections(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>

Searches for Connections in a parent.
**Overloads**

    def search_connections(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>

Pass arguments to `search_connections` via a request object, either of type [SearchConnectionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-SearchConnectionsRequest "Google::Cloud::Dlp::V2::SearchConnectionsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::SearchConnectionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-SearchConnectionsRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def search_connections(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>

Pass arguments to `search_connections` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. Resource name of the organization or project with a wildcard location, for example, `organizations/433245324/locations/-` or `projects/project-id/locations/-`.
- **page_size** (::Integer) --- Optional. Number of results per page, max 1000.
- **page_token** (::String) --- Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.
- **filter** (::String) --- Optional. Supported field/value: - `state` - MISSING\|AVAILABLE\|ERROR


  The syntax is based on https://google.aip.dev/160.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::Connection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Connection)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::Dlp::V2::Connection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Connection)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::SearchConnectionsRequest.new

# Call the search_connections method.
result = client.search_connections request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Dlp::V2::Connection.
  p item
end
```

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_connection

    def update_connection(request, options = nil) -> ::Google::Cloud::Dlp::V2::Connection
    def update_connection(name: nil, connection: nil, update_mask: nil) -> ::Google::Cloud::Dlp::V2::Connection

Update a Connection.
**Overloads**

    def update_connection(request, options = nil) -> ::Google::Cloud::Dlp::V2::Connection

Pass arguments to `update_connection` via a request object, either of type [UpdateConnectionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-UpdateConnectionRequest "Google::Cloud::Dlp::V2::UpdateConnectionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::UpdateConnectionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-UpdateConnectionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_connection(name: nil, connection: nil, update_mask: nil) -> ::Google::Cloud::Dlp::V2::Connection

Pass arguments to `update_connection` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- Required. Resource name in the format: `projects/{project}/locations/{location}/connections/{connection}`.
- **connection** ([::Google::Cloud::Dlp::V2::Connection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Connection), ::Hash) --- Required. The connection with new values for the relevant fields.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-FieldMask), ::Hash) --- Optional. Mask to control which fields get updated.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::Connection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Connection))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::UpdateConnectionRequest.new

# Call the update_connection method.
result = client.update_connection request

# The returned object is of type Google::Cloud::Dlp::V2::Connection.
p result
```

### #update_deidentify_template

    def update_deidentify_template(request, options = nil) -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate
    def update_deidentify_template(name: nil, deidentify_template: nil, update_mask: nil) -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate

Updates the DeidentifyTemplate.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid>
to learn more.
**Overloads**

    def update_deidentify_template(request, options = nil) -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate

Pass arguments to `update_deidentify_template` via a request object, either of type [UpdateDeidentifyTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-UpdateDeidentifyTemplateRequest "Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-UpdateDeidentifyTemplateRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_deidentify_template(name: nil, deidentify_template: nil, update_mask: nil) -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate

Pass arguments to `update_deidentify_template` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342.
- **deidentify_template** ([::Google::Cloud::Dlp::V2::DeidentifyTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeidentifyTemplate), ::Hash) --- New DeidentifyTemplate value.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-FieldMask), ::Hash) --- Mask to control which fields get updated.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::DeidentifyTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DeidentifyTemplate))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest.new

# Call the update_deidentify_template method.
result = client.update_deidentify_template request

# The returned object is of type Google::Cloud::Dlp::V2::DeidentifyTemplate.
p result
```

### #update_discovery_config

    def update_discovery_config(request, options = nil) -> ::Google::Cloud::Dlp::V2::DiscoveryConfig
    def update_discovery_config(name: nil, discovery_config: nil, update_mask: nil) -> ::Google::Cloud::Dlp::V2::DiscoveryConfig

Updates a discovery configuration.
**Overloads**

    def update_discovery_config(request, options = nil) -> ::Google::Cloud::Dlp::V2::DiscoveryConfig

Pass arguments to `update_discovery_config` via a request object, either of type [UpdateDiscoveryConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-UpdateDiscoveryConfigRequest "Google::Cloud::Dlp::V2::UpdateDiscoveryConfigRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::UpdateDiscoveryConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-UpdateDiscoveryConfigRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_discovery_config(name: nil, discovery_config: nil, update_mask: nil) -> ::Google::Cloud::Dlp::V2::DiscoveryConfig

Pass arguments to `update_discovery_config` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`.
- **discovery_config** ([::Google::Cloud::Dlp::V2::DiscoveryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DiscoveryConfig), ::Hash) --- Required. New DiscoveryConfig value.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-FieldMask), ::Hash) --- Mask to control which fields get updated.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::DiscoveryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DiscoveryConfig))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::UpdateDiscoveryConfigRequest.new

# Call the update_discovery_config method.
result = client.update_discovery_config request

# The returned object is of type Google::Cloud::Dlp::V2::DiscoveryConfig.
p result
```

### #update_inspect_template

    def update_inspect_template(request, options = nil) -> ::Google::Cloud::Dlp::V2::InspectTemplate
    def update_inspect_template(name: nil, inspect_template: nil, update_mask: nil) -> ::Google::Cloud::Dlp::V2::InspectTemplate

Updates the InspectTemplate.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-templates>
to learn more.
**Overloads**

    def update_inspect_template(request, options = nil) -> ::Google::Cloud::Dlp::V2::InspectTemplate

Pass arguments to `update_inspect_template` via a request object, either of type [UpdateInspectTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-UpdateInspectTemplateRequest "Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-UpdateInspectTemplateRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_inspect_template(name: nil, inspect_template: nil, update_mask: nil) -> ::Google::Cloud::Dlp::V2::InspectTemplate

Pass arguments to `update_inspect_template` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342.
- **inspect_template** ([::Google::Cloud::Dlp::V2::InspectTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectTemplate), ::Hash) --- New InspectTemplate value.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-FieldMask), ::Hash) --- Mask to control which fields get updated.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::InspectTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectTemplate))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest.new

# Call the update_inspect_template method.
result = client.update_inspect_template request

# The returned object is of type Google::Cloud::Dlp::V2::InspectTemplate.
p result
```

### #update_job_trigger

    def update_job_trigger(request, options = nil) -> ::Google::Cloud::Dlp::V2::JobTrigger
    def update_job_trigger(name: nil, job_trigger: nil, update_mask: nil) -> ::Google::Cloud::Dlp::V2::JobTrigger

Updates a job trigger.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers>
to learn more.
**Overloads**

    def update_job_trigger(request, options = nil) -> ::Google::Cloud::Dlp::V2::JobTrigger

Pass arguments to `update_job_trigger` via a request object, either of type [UpdateJobTriggerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-UpdateJobTriggerRequest "Google::Cloud::Dlp::V2::UpdateJobTriggerRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::UpdateJobTriggerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-UpdateJobTriggerRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_job_trigger(name: nil, job_trigger: nil, update_mask: nil) -> ::Google::Cloud::Dlp::V2::JobTrigger

Pass arguments to `update_job_trigger` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`.
- **job_trigger** ([::Google::Cloud::Dlp::V2::JobTrigger](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-JobTrigger), ::Hash) --- New JobTrigger value.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-FieldMask), ::Hash) --- Mask to control which fields get updated.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::JobTrigger](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-JobTrigger))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::UpdateJobTriggerRequest.new

# Call the update_job_trigger method.
result = client.update_job_trigger request

# The returned object is of type Google::Cloud::Dlp::V2::JobTrigger.
p result
```

### #update_stored_info_type

    def update_stored_info_type(request, options = nil) -> ::Google::Cloud::Dlp::V2::StoredInfoType
    def update_stored_info_type(name: nil, config: nil, update_mask: nil) -> ::Google::Cloud::Dlp::V2::StoredInfoType

Updates the stored infoType by creating a new version. The existing version
will continue to be used until the new version is ready.
See
<https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes>
to learn more.
**Overloads**

    def update_stored_info_type(request, options = nil) -> ::Google::Cloud::Dlp::V2::StoredInfoType

Pass arguments to `update_stored_info_type` via a request object, either of type [UpdateStoredInfoTypeRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-UpdateStoredInfoTypeRequest "Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-UpdateStoredInfoTypeRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_stored_info_type(name: nil, config: nil, update_mask: nil) -> ::Google::Cloud::Dlp::V2::StoredInfoType

Pass arguments to `update_stored_info_type` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342.
- **config** ([::Google::Cloud::Dlp::V2::StoredInfoTypeConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-StoredInfoTypeConfig), ::Hash) --- Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-FieldMask), ::Hash) --- Mask to control which fields get updated.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Dlp::V2::StoredInfoType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-StoredInfoType))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

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

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dlp/v2"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dlp::V2::DlpService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest.new

# Call the update_stored_info_type method.
result = client.update_stored_info_type request

# The returned object is of type Google::Cloud::Dlp::V2::StoredInfoType.
p result
```