Google Cloud Data Loss Prevention v2 API - Class DlpService.DlpServiceBase (2.15.0)

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

Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class DlpService.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
TaskDlpJob

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/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/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
TaskEmpty

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 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.

Parameters
NameDescription
requestCreateDeidentifyTemplateRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskDeidentifyTemplate

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

CreateDiscoveryConfig(CreateDiscoveryConfigRequest, ServerCallContext)

public virtual Task<DiscoveryConfig> CreateDiscoveryConfig(CreateDiscoveryConfigRequest request, ServerCallContext context)

Creates a config for discovery to scan and profile storage.

Parameters
NameDescription
requestCreateDiscoveryConfigRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskDiscoveryConfig

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/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/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
TaskDlpJob

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 reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/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
TaskInspectTemplate

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/sensitive-data-protection/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
TaskJobTrigger

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/sensitive-data-protection/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
TaskStoredInfoType

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/sensitive-data-protection/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
TaskDeidentifyContentResponse

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

DeleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskEmpty

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

DeleteDiscoveryConfig(DeleteDiscoveryConfigRequest, ServerCallContext)

public virtual Task<Empty> DeleteDiscoveryConfig(DeleteDiscoveryConfigRequest request, ServerCallContext context)

Deletes a discovery configuration.

Parameters
NameDescription
requestDeleteDiscoveryConfigRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskEmpty

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 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.

Parameters
NameDescription
requestDeleteDlpJobRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskEmpty

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

DeleteInspectTemplate(DeleteInspectTemplateRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskEmpty

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

DeleteJobTrigger(DeleteJobTriggerRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskEmpty

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

DeleteStoredInfoType(DeleteStoredInfoTypeRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskEmpty

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
TaskEmpty

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

GetColumnDataProfile(GetColumnDataProfileRequest, ServerCallContext)

public virtual Task<ColumnDataProfile> GetColumnDataProfile(GetColumnDataProfileRequest request, ServerCallContext context)

Gets a column data profile.

Parameters
NameDescription
requestGetColumnDataProfileRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskColumnDataProfile

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

GetDeidentifyTemplate(GetDeidentifyTemplateRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskDeidentifyTemplate

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

GetDiscoveryConfig(GetDiscoveryConfigRequest, ServerCallContext)

public virtual Task<DiscoveryConfig> GetDiscoveryConfig(GetDiscoveryConfigRequest request, ServerCallContext context)

Gets a discovery configuration.

Parameters
NameDescription
requestGetDiscoveryConfigRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskDiscoveryConfig

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

GetDlpJob(GetDlpJobRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskDlpJob

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

GetInspectTemplate(GetInspectTemplateRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskInspectTemplate

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

GetJobTrigger(GetJobTriggerRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskJobTrigger

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

GetProjectDataProfile(GetProjectDataProfileRequest, ServerCallContext)

public virtual Task<ProjectDataProfile> GetProjectDataProfile(GetProjectDataProfileRequest request, ServerCallContext context)

Gets a project data profile.

Parameters
NameDescription
requestGetProjectDataProfileRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskProjectDataProfile

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

GetStoredInfoType(GetStoredInfoTypeRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskStoredInfoType

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

GetTableDataProfile(GetTableDataProfileRequest, ServerCallContext)

public virtual Task<TableDataProfile> GetTableDataProfile(GetTableDataProfileRequest request, ServerCallContext context)

Gets a table data profile.

Parameters
NameDescription
requestGetTableDataProfileRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskTableDataProfile

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
TaskHybridInspectResponse

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
TaskHybridInspectResponse

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/sensitive-data-protection/docs/inspecting-images and https://cloud.google.com/sensitive-data-protection/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
TaskInspectContentResponse

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

ListColumnDataProfiles(ListColumnDataProfilesRequest, ServerCallContext)

public virtual Task<ListColumnDataProfilesResponse> ListColumnDataProfiles(ListColumnDataProfilesRequest request, ServerCallContext context)

Lists data profiles for an organization.

Parameters
NameDescription
requestListColumnDataProfilesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListColumnDataProfilesResponse

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

ListDeidentifyTemplates(ListDeidentifyTemplatesRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListDeidentifyTemplatesResponse

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

ListDiscoveryConfigs(ListDiscoveryConfigsRequest, ServerCallContext)

public virtual Task<ListDiscoveryConfigsResponse> ListDiscoveryConfigs(ListDiscoveryConfigsRequest request, ServerCallContext context)

Lists discovery configurations.

Parameters
NameDescription
requestListDiscoveryConfigsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListDiscoveryConfigsResponse

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

ListDlpJobs(ListDlpJobsRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListDlpJobsResponse

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 DLP API supports. See https://cloud.google.com/sensitive-data-protection/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
TaskListInfoTypesResponse

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

ListInspectTemplates(ListInspectTemplatesRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListInspectTemplatesResponse

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

ListJobTriggers(ListJobTriggersRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListJobTriggersResponse

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

ListProjectDataProfiles(ListProjectDataProfilesRequest, ServerCallContext)

public virtual Task<ListProjectDataProfilesResponse> ListProjectDataProfiles(ListProjectDataProfilesRequest request, ServerCallContext context)

Lists data profiles for an organization.

Parameters
NameDescription
requestListProjectDataProfilesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListProjectDataProfilesResponse

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

ListStoredInfoTypes(ListStoredInfoTypesRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListStoredInfoTypesResponse

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

ListTableDataProfiles(ListTableDataProfilesRequest, ServerCallContext)

public virtual Task<ListTableDataProfilesResponse> ListTableDataProfiles(ListTableDataProfilesRequest request, ServerCallContext context)

Lists data profiles for an organization.

Parameters
NameDescription
requestListTableDataProfilesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListTableDataProfilesResponse

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/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.

Parameters
NameDescription
requestRedactImageRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskRedactImageResponse

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

ReidentifyContent(ReidentifyContentRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskReidentifyContentResponse

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

UpdateDeidentifyTemplate(UpdateDeidentifyTemplateRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskDeidentifyTemplate

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

UpdateDiscoveryConfig(UpdateDiscoveryConfigRequest, ServerCallContext)

public virtual Task<DiscoveryConfig> UpdateDiscoveryConfig(UpdateDiscoveryConfigRequest request, ServerCallContext context)

Updates a discovery configuration.

Parameters
NameDescription
requestUpdateDiscoveryConfigRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskDiscoveryConfig

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

UpdateInspectTemplate(UpdateInspectTemplateRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskInspectTemplate

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

UpdateJobTrigger(UpdateJobTriggerRequest, ServerCallContext)

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskJobTrigger

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/sensitive-data-protection/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
TaskStoredInfoType

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