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

Combines all of the information about a DLP job.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #action_details

    def action_details() -> ::Array<::Google::Cloud::Dlp::V2::ActionDetails>

**Returns**

- (::Array\<[::Google::Cloud::Dlp::V2::ActionDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ActionDetails)\>) --- Events that should occur after the job has completed.

### #action_details=

    def action_details=(value) -> ::Array<::Google::Cloud::Dlp::V2::ActionDetails>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Dlp::V2::ActionDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ActionDetails)\>) --- Events that should occur after the job has completed.
**Returns**

- (::Array\<[::Google::Cloud::Dlp::V2::ActionDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-ActionDetails)\>) --- Events that should occur after the job has completed.

### #create_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time when the job was created.

### #create_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time when the job was created.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time when the job was created.

### #end_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time when the job finished.

### #end_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time when the job finished.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time when the job finished.

### #errors

    def errors() -> ::Array<::Google::Cloud::Dlp::V2::Error>

**Returns**

- (::Array\<[::Google::Cloud::Dlp::V2::Error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Error)\>) --- A stream of errors encountered running the job.

### #errors=

    def errors=(value) -> ::Array<::Google::Cloud::Dlp::V2::Error>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Dlp::V2::Error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Error)\>) --- A stream of errors encountered running the job.
**Returns**

- (::Array\<[::Google::Cloud::Dlp::V2::Error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Error)\>) --- A stream of errors encountered running the job.

### #inspect_details

    def inspect_details() -> ::Google::Cloud::Dlp::V2::InspectDataSourceDetails

**Returns**

- ([::Google::Cloud::Dlp::V2::InspectDataSourceDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectDataSourceDetails)) --- Results from inspecting a data source.


  Note: The following fields are mutually exclusive: `inspect_details`, `risk_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #inspect_details=

    def inspect_details=(value) -> ::Google::Cloud::Dlp::V2::InspectDataSourceDetails

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::InspectDataSourceDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectDataSourceDetails)) --- Results from inspecting a data source.


  Note: The following fields are mutually exclusive: `inspect_details`, `risk_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dlp::V2::InspectDataSourceDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InspectDataSourceDetails)) --- Results from inspecting a data source.


  Note: The following fields are mutually exclusive: `inspect_details`, `risk_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #job_trigger_name

    def job_trigger_name() -> ::String

**Returns**

- (::String) --- If created by a job trigger, the resource name of the trigger that instantiated the job.

### #job_trigger_name=

    def job_trigger_name=(value) -> ::String

**Parameter**

- **value** (::String) --- If created by a job trigger, the resource name of the trigger that instantiated the job.
**Returns**

- (::String) --- If created by a job trigger, the resource name of the trigger that instantiated the job.

### #last_modified

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time when the job was last modified by the system.

### #last_modified=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time when the job was last modified by the system.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time when the job was last modified by the system.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The server-assigned name.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The server-assigned name.
**Returns**

- (::String) --- The server-assigned name.

### #risk_details

    def risk_details() -> ::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails

**Returns**

- ([::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-AnalyzeDataSourceRiskDetails)) --- Results from analyzing risk of a data source.


  Note: The following fields are mutually exclusive: `risk_details`, `inspect_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #risk_details=

    def risk_details=(value) -> ::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-AnalyzeDataSourceRiskDetails)) --- Results from analyzing risk of a data source.


  Note: The following fields are mutually exclusive: `risk_details`, `inspect_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-AnalyzeDataSourceRiskDetails)) --- Results from analyzing risk of a data source.


  Note: The following fields are mutually exclusive: `risk_details`, `inspect_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #start_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time when the job started.

### #start_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time when the job started.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time when the job started.

### #state

    def state() -> ::Google::Cloud::Dlp::V2::DlpJob::JobState

**Returns**

- ([::Google::Cloud::Dlp::V2::DlpJob::JobState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpJob-JobState)) --- State of a job.

### #state=

    def state=(value) -> ::Google::Cloud::Dlp::V2::DlpJob::JobState

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::DlpJob::JobState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpJob-JobState)) --- State of a job.
**Returns**

- ([::Google::Cloud::Dlp::V2::DlpJob::JobState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-DlpJob-JobState)) --- State of a job.

### #type

    def type() -> ::Google::Cloud::Dlp::V2::DlpJobType

**Returns**

- ([::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.

### #type=

    def type=(value) -> ::Google::Cloud::Dlp::V2::DlpJobType

**Parameter**

- **value** ([::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.
**Returns**

- ([::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.