Class DlpServiceConnection (2.19.0)

This interface defines virtual methods for each of the user-facing overload sets in DlpServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type DlpServiceClient.

To create a concrete instance, see MakeDlpServiceConnection().

For mocking, see dlp_v2_mocks::MockDlpServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual InspectContent(google::privacy::dlp::v2::InspectContentRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::InspectContentRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::InspectContentResponse >

virtual RedactImage(google::privacy::dlp::v2::RedactImageRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::RedactImageRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::RedactImageResponse >

virtual DeidentifyContent(google::privacy::dlp::v2::DeidentifyContentRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::DeidentifyContentRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::DeidentifyContentResponse >

virtual ReidentifyContent(google::privacy::dlp::v2::ReidentifyContentRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::ReidentifyContentRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::ReidentifyContentResponse >

virtual ListInfoTypes(google::privacy::dlp::v2::ListInfoTypesRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::ListInfoTypesRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::ListInfoTypesResponse >

virtual CreateInspectTemplate(google::privacy::dlp::v2::CreateInspectTemplateRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::CreateInspectTemplateRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::InspectTemplate >

virtual UpdateInspectTemplate(google::privacy::dlp::v2::UpdateInspectTemplateRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::UpdateInspectTemplateRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::InspectTemplate >

virtual GetInspectTemplate(google::privacy::dlp::v2::GetInspectTemplateRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::GetInspectTemplateRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::InspectTemplate >

virtual ListInspectTemplates(google::privacy::dlp::v2::ListInspectTemplatesRequest)

Parameter
NameDescription
request google::privacy::dlp::v2::ListInspectTemplatesRequest
Returns
TypeDescription
StreamRange< google::privacy::dlp::v2::InspectTemplate >

virtual DeleteInspectTemplate(google::privacy::dlp::v2::DeleteInspectTemplateRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::DeleteInspectTemplateRequest const &
Returns
TypeDescription
Status

virtual CreateDeidentifyTemplate(google::privacy::dlp::v2::CreateDeidentifyTemplateRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::CreateDeidentifyTemplateRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::DeidentifyTemplate >

virtual UpdateDeidentifyTemplate(google::privacy::dlp::v2::UpdateDeidentifyTemplateRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::UpdateDeidentifyTemplateRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::DeidentifyTemplate >

virtual GetDeidentifyTemplate(google::privacy::dlp::v2::GetDeidentifyTemplateRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::GetDeidentifyTemplateRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::DeidentifyTemplate >

virtual ListDeidentifyTemplates(google::privacy::dlp::v2::ListDeidentifyTemplatesRequest)

Parameter
NameDescription
request google::privacy::dlp::v2::ListDeidentifyTemplatesRequest
Returns
TypeDescription
StreamRange< google::privacy::dlp::v2::DeidentifyTemplate >

virtual DeleteDeidentifyTemplate(google::privacy::dlp::v2::DeleteDeidentifyTemplateRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::DeleteDeidentifyTemplateRequest const &
Returns
TypeDescription
Status

virtual CreateJobTrigger(google::privacy::dlp::v2::CreateJobTriggerRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::CreateJobTriggerRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::JobTrigger >

virtual UpdateJobTrigger(google::privacy::dlp::v2::UpdateJobTriggerRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::UpdateJobTriggerRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::JobTrigger >

virtual HybridInspectJobTrigger(google::privacy::dlp::v2::HybridInspectJobTriggerRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::HybridInspectJobTriggerRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::HybridInspectResponse >

virtual GetJobTrigger(google::privacy::dlp::v2::GetJobTriggerRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::GetJobTriggerRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::JobTrigger >

virtual ListJobTriggers(google::privacy::dlp::v2::ListJobTriggersRequest)

Parameter
NameDescription
request google::privacy::dlp::v2::ListJobTriggersRequest
Returns
TypeDescription
StreamRange< google::privacy::dlp::v2::JobTrigger >

virtual DeleteJobTrigger(google::privacy::dlp::v2::DeleteJobTriggerRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::DeleteJobTriggerRequest const &
Returns
TypeDescription
Status

virtual ActivateJobTrigger(google::privacy::dlp::v2::ActivateJobTriggerRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::ActivateJobTriggerRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::DlpJob >

virtual CreateDiscoveryConfig(google::privacy::dlp::v2::CreateDiscoveryConfigRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::CreateDiscoveryConfigRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::DiscoveryConfig >

virtual UpdateDiscoveryConfig(google::privacy::dlp::v2::UpdateDiscoveryConfigRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::UpdateDiscoveryConfigRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::DiscoveryConfig >

virtual GetDiscoveryConfig(google::privacy::dlp::v2::GetDiscoveryConfigRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::GetDiscoveryConfigRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::DiscoveryConfig >

virtual ListDiscoveryConfigs(google::privacy::dlp::v2::ListDiscoveryConfigsRequest)

Parameter
NameDescription
request google::privacy::dlp::v2::ListDiscoveryConfigsRequest
Returns
TypeDescription
StreamRange< google::privacy::dlp::v2::DiscoveryConfig >

virtual DeleteDiscoveryConfig(google::privacy::dlp::v2::DeleteDiscoveryConfigRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::DeleteDiscoveryConfigRequest const &
Returns
TypeDescription
Status

virtual CreateDlpJob(google::privacy::dlp::v2::CreateDlpJobRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::CreateDlpJobRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::DlpJob >

virtual ListDlpJobs(google::privacy::dlp::v2::ListDlpJobsRequest)

Parameter
NameDescription
request google::privacy::dlp::v2::ListDlpJobsRequest
Returns
TypeDescription
StreamRange< google::privacy::dlp::v2::DlpJob >

virtual GetDlpJob(google::privacy::dlp::v2::GetDlpJobRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::GetDlpJobRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::DlpJob >

virtual DeleteDlpJob(google::privacy::dlp::v2::DeleteDlpJobRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::DeleteDlpJobRequest const &
Returns
TypeDescription
Status

virtual CancelDlpJob(google::privacy::dlp::v2::CancelDlpJobRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::CancelDlpJobRequest const &
Returns
TypeDescription
Status

virtual CreateStoredInfoType(google::privacy::dlp::v2::CreateStoredInfoTypeRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::CreateStoredInfoTypeRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::StoredInfoType >

virtual UpdateStoredInfoType(google::privacy::dlp::v2::UpdateStoredInfoTypeRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::UpdateStoredInfoTypeRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::StoredInfoType >

virtual GetStoredInfoType(google::privacy::dlp::v2::GetStoredInfoTypeRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::GetStoredInfoTypeRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::StoredInfoType >

virtual ListStoredInfoTypes(google::privacy::dlp::v2::ListStoredInfoTypesRequest)

Parameter
NameDescription
request google::privacy::dlp::v2::ListStoredInfoTypesRequest
Returns
TypeDescription
StreamRange< google::privacy::dlp::v2::StoredInfoType >

virtual DeleteStoredInfoType(google::privacy::dlp::v2::DeleteStoredInfoTypeRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::DeleteStoredInfoTypeRequest const &
Returns
TypeDescription
Status

virtual HybridInspectDlpJob(google::privacy::dlp::v2::HybridInspectDlpJobRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::HybridInspectDlpJobRequest const &
Returns
TypeDescription
StatusOr< google::privacy::dlp::v2::HybridInspectResponse >

virtual FinishDlpJob(google::privacy::dlp::v2::FinishDlpJobRequest const &)

Parameter
NameDescription
request google::privacy::dlp::v2::FinishDlpJobRequest const &
Returns
TypeDescription
Status