Class DlpService.DlpServiceBase (4.1.0)

[BindServiceMethod(typeof(DlpService), "BindService")]
public abstract class DlpServiceBase

Base class for server-side implementations of DlpService

Inheritance

Object > DlpService.DlpServiceBase

Namespace

Google.Cloud.Dlp.V2

Assembly

Google.Cloud.Dlp.V2.dll

Methods

ActivateJobTrigger(ActivateJobTriggerRequest, ServerCallContext)

public virtual Task<DlpJob> ActivateJobTrigger(ActivateJobTriggerRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestActivateJobTriggerRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<DlpJob>

The response to send back to the client (wrapped by a task).

CancelDlpJob(CancelDlpJobRequest, ServerCallContext)

public virtual Task<Empty> CancelDlpJob(CancelDlpJobRequest request, ServerCallContext context)

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/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.

Parameters
NameDescription
requestCancelDlpJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

CreateDeidentifyTemplate(CreateDeidentifyTemplateRequest, ServerCallContext)

public virtual Task<DeidentifyTemplate> CreateDeidentifyTemplate(CreateDeidentifyTemplateRequest request, ServerCallContext context)

Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

Parameters
NameDescription
requestCreateDeidentifyTemplateRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<DeidentifyTemplate>

The response to send back to the client (wrapped by a task).

CreateDlpJob(CreateDlpJobRequest, ServerCallContext)

public virtual Task<DlpJob> CreateDlpJob(CreateDlpJobRequest request, ServerCallContext context)

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

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.

Parameters
NameDescription
requestCreateDlpJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<DlpJob>

The response to send back to the client (wrapped by a task).

CreateInspectTemplate(CreateInspectTemplateRequest, ServerCallContext)

public virtual Task<InspectTemplate> CreateInspectTemplate(CreateInspectTemplateRequest request, ServerCallContext context)

Creates an InspectTemplate for re-using frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

Parameters
NameDescription
requestCreateInspectTemplateRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<InspectTemplate>

The response to send back to the client (wrapped by a task).

CreateJobTrigger(CreateJobTriggerRequest, ServerCallContext)

public virtual Task<JobTrigger> CreateJobTrigger(CreateJobTriggerRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestCreateJobTriggerRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<JobTrigger>

The response to send back to the client (wrapped by a task).

CreateStoredInfoType(CreateStoredInfoTypeRequest, ServerCallContext)

public virtual Task<StoredInfoType> CreateStoredInfoType(CreateStoredInfoTypeRequest request, ServerCallContext context)

Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
requestCreateStoredInfoTypeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<StoredInfoType>

The response to send back to the client (wrapped by a task).

DeidentifyContent(DeidentifyContentRequest, ServerCallContext)

public virtual Task<DeidentifyContentResponse> DeidentifyContent(DeidentifyContentRequest request, ServerCallContext context)

De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data 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.

Parameters
NameDescription
requestDeidentifyContentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<DeidentifyContentResponse>

The response to send back to the client (wrapped by a task).

DeleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest, ServerCallContext)

public virtual Task<Empty> DeleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request, ServerCallContext context)

Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

Parameters
NameDescription
requestDeleteDeidentifyTemplateRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

DeleteDlpJob(DeleteDlpJobRequest, ServerCallContext)

public virtual Task<Empty> DeleteDlpJob(DeleteDlpJobRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestDeleteDlpJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

DeleteInspectTemplate(DeleteInspectTemplateRequest, ServerCallContext)

public virtual Task<Empty> DeleteInspectTemplate(DeleteInspectTemplateRequest request, ServerCallContext context)

Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

Parameters
NameDescription
requestDeleteInspectTemplateRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

DeleteJobTrigger(DeleteJobTriggerRequest, ServerCallContext)

public virtual Task<Empty> DeleteJobTrigger(DeleteJobTriggerRequest request, ServerCallContext context)

Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.

Parameters
NameDescription
requestDeleteJobTriggerRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

DeleteStoredInfoType(DeleteStoredInfoTypeRequest, ServerCallContext)

public virtual Task<Empty> DeleteStoredInfoType(DeleteStoredInfoTypeRequest request, ServerCallContext context)

Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
requestDeleteStoredInfoTypeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

FinishDlpJob(FinishDlpJobRequest, ServerCallContext)

public virtual Task<Empty> FinishDlpJob(FinishDlpJobRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestFinishDlpJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

GetDeidentifyTemplate(GetDeidentifyTemplateRequest, ServerCallContext)

public virtual Task<DeidentifyTemplate> GetDeidentifyTemplate(GetDeidentifyTemplateRequest request, ServerCallContext context)

Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

Parameters
NameDescription
requestGetDeidentifyTemplateRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<DeidentifyTemplate>

The response to send back to the client (wrapped by a task).

GetDlpJob(GetDlpJobRequest, ServerCallContext)

public virtual Task<DlpJob> GetDlpJob(GetDlpJobRequest request, ServerCallContext context)

Gets the latest state of a long-running DlpJob. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.

Parameters
NameDescription
requestGetDlpJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<DlpJob>

The response to send back to the client (wrapped by a task).

GetInspectTemplate(GetInspectTemplateRequest, ServerCallContext)

public virtual Task<InspectTemplate> GetInspectTemplate(GetInspectTemplateRequest request, ServerCallContext context)

Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

Parameters
NameDescription
requestGetInspectTemplateRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<InspectTemplate>

The response to send back to the client (wrapped by a task).

GetJobTrigger(GetJobTriggerRequest, ServerCallContext)

public virtual Task<JobTrigger> GetJobTrigger(GetJobTriggerRequest request, ServerCallContext context)

Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.

Parameters
NameDescription
requestGetJobTriggerRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<JobTrigger>

The response to send back to the client (wrapped by a task).

GetStoredInfoType(GetStoredInfoTypeRequest, ServerCallContext)

public virtual Task<StoredInfoType> GetStoredInfoType(GetStoredInfoTypeRequest request, ServerCallContext context)

Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
requestGetStoredInfoTypeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<StoredInfoType>

The response to send back to the client (wrapped by a task).

HybridInspectDlpJob(HybridInspectDlpJobRequest, ServerCallContext)

public virtual Task<HybridInspectResponse> HybridInspectDlpJob(HybridInspectDlpJobRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestHybridInspectDlpJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<HybridInspectResponse>

The response to send back to the client (wrapped by a task).

HybridInspectJobTrigger(HybridInspectJobTriggerRequest, ServerCallContext)

public virtual Task<HybridInspectResponse> HybridInspectJobTrigger(HybridInspectJobTriggerRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestHybridInspectJobTriggerRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<HybridInspectResponse>

The response to send back to the client (wrapped by a task).

InspectContent(InspectContentRequest, ServerCallContext)

public virtual Task<InspectContentResponse> InspectContent(InspectContentRequest request, ServerCallContext context)

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.

For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,

Parameters
NameDescription
requestInspectContentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<InspectContentResponse>

The response to send back to the client (wrapped by a task).

ListDeidentifyTemplates(ListDeidentifyTemplatesRequest, ServerCallContext)

public virtual Task<ListDeidentifyTemplatesResponse> ListDeidentifyTemplates(ListDeidentifyTemplatesRequest request, ServerCallContext context)

Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

Parameters
NameDescription
requestListDeidentifyTemplatesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListDeidentifyTemplatesResponse>

The response to send back to the client (wrapped by a task).

ListDlpJobs(ListDlpJobsRequest, ServerCallContext)

public virtual Task<ListDlpJobsResponse> ListDlpJobs(ListDlpJobsRequest request, ServerCallContext context)

Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.

Parameters
NameDescription
requestListDlpJobsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListDlpJobsResponse>

The response to send back to the client (wrapped by a task).

ListInfoTypes(ListInfoTypesRequest, ServerCallContext)

public virtual Task<ListInfoTypesResponse> ListInfoTypes(ListInfoTypesRequest request, ServerCallContext context)

Returns a list of the sensitive information types that the DLP API supports. See https://cloud.google.com/dlp/docs/infotypes-reference to learn more.

Parameters
NameDescription
requestListInfoTypesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListInfoTypesResponse>

The response to send back to the client (wrapped by a task).

ListInspectTemplates(ListInspectTemplatesRequest, ServerCallContext)

public virtual Task<ListInspectTemplatesResponse> ListInspectTemplates(ListInspectTemplatesRequest request, ServerCallContext context)

Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

Parameters
NameDescription
requestListInspectTemplatesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListInspectTemplatesResponse>

The response to send back to the client (wrapped by a task).

ListJobTriggers(ListJobTriggersRequest, ServerCallContext)

public virtual Task<ListJobTriggersResponse> ListJobTriggers(ListJobTriggersRequest request, ServerCallContext context)

Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.

Parameters
NameDescription
requestListJobTriggersRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListJobTriggersResponse>

The response to send back to the client (wrapped by a task).

ListStoredInfoTypes(ListStoredInfoTypesRequest, ServerCallContext)

public virtual Task<ListStoredInfoTypesResponse> ListStoredInfoTypes(ListStoredInfoTypesRequest request, ServerCallContext context)

Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
requestListStoredInfoTypesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListStoredInfoTypesResponse>

The response to send back to the client (wrapped by a task).

RedactImage(RedactImageRequest, ServerCallContext)

public virtual Task<RedactImageResponse> RedactImage(RedactImageRequest request, ServerCallContext context)

Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/dlp/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.

Parameters
NameDescription
requestRedactImageRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<RedactImageResponse>

The response to send back to the client (wrapped by a task).

ReidentifyContent(ReidentifyContentRequest, ServerCallContext)

public virtual Task<ReidentifyContentResponse> ReidentifyContent(ReidentifyContentRequest request, ServerCallContext context)

Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more.

Parameters
NameDescription
requestReidentifyContentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ReidentifyContentResponse>

The response to send back to the client (wrapped by a task).

UpdateDeidentifyTemplate(UpdateDeidentifyTemplateRequest, ServerCallContext)

public virtual Task<DeidentifyTemplate> UpdateDeidentifyTemplate(UpdateDeidentifyTemplateRequest request, ServerCallContext context)

Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

Parameters
NameDescription
requestUpdateDeidentifyTemplateRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<DeidentifyTemplate>

The response to send back to the client (wrapped by a task).

UpdateInspectTemplate(UpdateInspectTemplateRequest, ServerCallContext)

public virtual Task<InspectTemplate> UpdateInspectTemplate(UpdateInspectTemplateRequest request, ServerCallContext context)

Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

Parameters
NameDescription
requestUpdateInspectTemplateRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<InspectTemplate>

The response to send back to the client (wrapped by a task).

UpdateJobTrigger(UpdateJobTriggerRequest, ServerCallContext)

public virtual Task<JobTrigger> UpdateJobTrigger(UpdateJobTriggerRequest request, ServerCallContext context)

Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.

Parameters
NameDescription
requestUpdateJobTriggerRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<JobTrigger>

The response to send back to the client (wrapped by a task).

UpdateStoredInfoType(UpdateStoredInfoTypeRequest, ServerCallContext)

public virtual Task<StoredInfoType> UpdateStoredInfoType(UpdateStoredInfoTypeRequest request, ServerCallContext context)

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/dlp/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
requestUpdateStoredInfoTypeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<StoredInfoType>

The response to send back to the client (wrapped by a task).