Class DlpServiceClient (3.4.0)

public abstract class DlpServiceClient

DlpService client wrapper, for convenient use.

Inheritance

Object > DlpServiceClient

Derived Types

Namespace

Google.Cloud.Dlp.V2

Assembly

Google.Cloud.Dlp.V2.dll

Remarks

The Cloud Data Loss Prevention (DLP) API is a service that allows clients to detect the presence of Personally Identifiable Information (PII) and other privacy-sensitive data in user-supplied, unstructured data streams, like text blocks or images. The service also includes methods for sensitive data redaction and scheduling of data scans on Google Cloud Platform based data sets.

To learn more about concepts and find how-to guides see https://cloud.google.com/dlp/docs/.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the DlpService service, which is a host of "dlp.googleapis.com" and a port of 443.

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default DlpService scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

The default DlpService scopes are:

GrpcClient

public virtual DlpService.DlpServiceClient GrpcClient { get; }

The underlying gRPC DlpService client

Property Value
TypeDescription
DlpService.DlpServiceClient

Methods

ActivateJobTrigger(ActivateJobTriggerRequest, CallSettings)

public virtual DlpJob ActivateJobTrigger(ActivateJobTriggerRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ActivateJobTriggerRequest request = new ActivateJobTriggerRequest
{
    JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
};
// Make the request
DlpJob response = dlpServiceClient.ActivateJobTrigger(request);

ActivateJobTriggerAsync(ActivateJobTriggerRequest, CallSettings)

public virtual Task<DlpJob> ActivateJobTriggerAsync(ActivateJobTriggerRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ActivateJobTriggerRequest request = new ActivateJobTriggerRequest
{
    JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
};
// Make the request
DlpJob response = await dlpServiceClient.ActivateJobTriggerAsync(request);

ActivateJobTriggerAsync(ActivateJobTriggerRequest, CancellationToken)

public virtual Task<DlpJob> ActivateJobTriggerAsync(ActivateJobTriggerRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ActivateJobTriggerRequest request = new ActivateJobTriggerRequest
{
    JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
};
// Make the request
DlpJob response = await dlpServiceClient.ActivateJobTriggerAsync(request);

CancelDlpJob(CancelDlpJobRequest, CallSettings)

public virtual void CancelDlpJob(CancelDlpJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
CancelDlpJobRequest request = new CancelDlpJobRequest
{
    DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
dlpServiceClient.CancelDlpJob(request);

CancelDlpJobAsync(CancelDlpJobRequest, CallSettings)

public virtual Task CancelDlpJobAsync(CancelDlpJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CancelDlpJobRequest request = new CancelDlpJobRequest
{
    DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
await dlpServiceClient.CancelDlpJobAsync(request);

CancelDlpJobAsync(CancelDlpJobRequest, CancellationToken)

public virtual Task CancelDlpJobAsync(CancelDlpJobRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CancelDlpJobRequest request = new CancelDlpJobRequest
{
    DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
await dlpServiceClient.CancelDlpJobAsync(request);

Create()

public static DlpServiceClient Create()

Synchronously creates a DlpServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use DlpServiceClientBuilder.

Returns
TypeDescription
DlpServiceClient

The created DlpServiceClient.

CreateAsync(CancellationToken)

public static Task<DlpServiceClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))

Asynchronously creates a DlpServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use DlpServiceClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<DlpServiceClient>

The task representing the created DlpServiceClient.

CreateDeidentifyTemplate(LocationName, DeidentifyTemplate, CallSettings)

public virtual DeidentifyTemplate CreateDeidentifyTemplate(LocationName parent, DeidentifyTemplate deidentifyTemplate, CallSettings callSettings = null)

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
parentLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = dlpServiceClient.CreateDeidentifyTemplate(parent, deidentifyTemplate);

CreateDeidentifyTemplate(OrganizationName, DeidentifyTemplate, CallSettings)

public virtual DeidentifyTemplate CreateDeidentifyTemplate(OrganizationName parent, DeidentifyTemplate deidentifyTemplate, CallSettings callSettings = null)

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
parentOrganizationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = dlpServiceClient.CreateDeidentifyTemplate(parent, deidentifyTemplate);

CreateDeidentifyTemplate(ProjectName, DeidentifyTemplate, CallSettings)

public virtual DeidentifyTemplate CreateDeidentifyTemplate(ProjectName parent, DeidentifyTemplate deidentifyTemplate, CallSettings callSettings = null)

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
parentProjectName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = dlpServiceClient.CreateDeidentifyTemplate(parent, deidentifyTemplate);

CreateDeidentifyTemplate(CreateDeidentifyTemplateRequest, CallSettings)

public virtual DeidentifyTemplate CreateDeidentifyTemplate(CreateDeidentifyTemplateRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
CreateDeidentifyTemplateRequest request = new CreateDeidentifyTemplateRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    DeidentifyTemplate = new DeidentifyTemplate(),
    TemplateId = "",
    LocationId = "",
};
// Make the request
DeidentifyTemplate response = dlpServiceClient.CreateDeidentifyTemplate(request);

CreateDeidentifyTemplate(OrganizationLocationName, DeidentifyTemplate, CallSettings)

public virtual DeidentifyTemplate CreateDeidentifyTemplate(OrganizationLocationName parent, DeidentifyTemplate deidentifyTemplate, CallSettings callSettings = null)

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
parentOrganizationLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = dlpServiceClient.CreateDeidentifyTemplate(parent, deidentifyTemplate);

CreateDeidentifyTemplate(String, DeidentifyTemplate, CallSettings)

public virtual DeidentifyTemplate CreateDeidentifyTemplate(string parent, DeidentifyTemplate deidentifyTemplate, CallSettings callSettings = null)

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
parentString

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = dlpServiceClient.CreateDeidentifyTemplate(parent, deidentifyTemplate);

CreateDeidentifyTemplateAsync(LocationName, DeidentifyTemplate, CallSettings)

public virtual Task<DeidentifyTemplate> CreateDeidentifyTemplateAsync(LocationName parent, DeidentifyTemplate deidentifyTemplate, CallSettings callSettings = null)

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
parentLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = await dlpServiceClient.CreateDeidentifyTemplateAsync(parent, deidentifyTemplate);

CreateDeidentifyTemplateAsync(LocationName, DeidentifyTemplate, CancellationToken)

public virtual Task<DeidentifyTemplate> CreateDeidentifyTemplateAsync(LocationName parent, DeidentifyTemplate deidentifyTemplate, CancellationToken cancellationToken)

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
parentLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = await dlpServiceClient.CreateDeidentifyTemplateAsync(parent, deidentifyTemplate);

CreateDeidentifyTemplateAsync(OrganizationName, DeidentifyTemplate, CallSettings)

public virtual Task<DeidentifyTemplate> CreateDeidentifyTemplateAsync(OrganizationName parent, DeidentifyTemplate deidentifyTemplate, CallSettings callSettings = null)

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
parentOrganizationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = await dlpServiceClient.CreateDeidentifyTemplateAsync(parent, deidentifyTemplate);

CreateDeidentifyTemplateAsync(OrganizationName, DeidentifyTemplate, CancellationToken)

public virtual Task<DeidentifyTemplate> CreateDeidentifyTemplateAsync(OrganizationName parent, DeidentifyTemplate deidentifyTemplate, CancellationToken cancellationToken)

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
parentOrganizationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = await dlpServiceClient.CreateDeidentifyTemplateAsync(parent, deidentifyTemplate);

CreateDeidentifyTemplateAsync(ProjectName, DeidentifyTemplate, CallSettings)

public virtual Task<DeidentifyTemplate> CreateDeidentifyTemplateAsync(ProjectName parent, DeidentifyTemplate deidentifyTemplate, CallSettings callSettings = null)

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
parentProjectName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = await dlpServiceClient.CreateDeidentifyTemplateAsync(parent, deidentifyTemplate);

CreateDeidentifyTemplateAsync(ProjectName, DeidentifyTemplate, CancellationToken)

public virtual Task<DeidentifyTemplate> CreateDeidentifyTemplateAsync(ProjectName parent, DeidentifyTemplate deidentifyTemplate, CancellationToken cancellationToken)

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
parentProjectName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = await dlpServiceClient.CreateDeidentifyTemplateAsync(parent, deidentifyTemplate);

CreateDeidentifyTemplateAsync(CreateDeidentifyTemplateRequest, CallSettings)

public virtual Task<DeidentifyTemplate> CreateDeidentifyTemplateAsync(CreateDeidentifyTemplateRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDeidentifyTemplateRequest request = new CreateDeidentifyTemplateRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    DeidentifyTemplate = new DeidentifyTemplate(),
    TemplateId = "",
    LocationId = "",
};
// Make the request
DeidentifyTemplate response = await dlpServiceClient.CreateDeidentifyTemplateAsync(request);

CreateDeidentifyTemplateAsync(CreateDeidentifyTemplateRequest, CancellationToken)

public virtual Task<DeidentifyTemplate> CreateDeidentifyTemplateAsync(CreateDeidentifyTemplateRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDeidentifyTemplateRequest request = new CreateDeidentifyTemplateRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    DeidentifyTemplate = new DeidentifyTemplate(),
    TemplateId = "",
    LocationId = "",
};
// Make the request
DeidentifyTemplate response = await dlpServiceClient.CreateDeidentifyTemplateAsync(request);

CreateDeidentifyTemplateAsync(OrganizationLocationName, DeidentifyTemplate, CallSettings)

public virtual Task<DeidentifyTemplate> CreateDeidentifyTemplateAsync(OrganizationLocationName parent, DeidentifyTemplate deidentifyTemplate, CallSettings callSettings = null)

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
parentOrganizationLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = await dlpServiceClient.CreateDeidentifyTemplateAsync(parent, deidentifyTemplate);

CreateDeidentifyTemplateAsync(OrganizationLocationName, DeidentifyTemplate, CancellationToken)

public virtual Task<DeidentifyTemplate> CreateDeidentifyTemplateAsync(OrganizationLocationName parent, DeidentifyTemplate deidentifyTemplate, CancellationToken cancellationToken)

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
parentOrganizationLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = await dlpServiceClient.CreateDeidentifyTemplateAsync(parent, deidentifyTemplate);

CreateDeidentifyTemplateAsync(String, DeidentifyTemplate, CallSettings)

public virtual Task<DeidentifyTemplate> CreateDeidentifyTemplateAsync(string parent, DeidentifyTemplate deidentifyTemplate, CallSettings callSettings = null)

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
parentString

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = await dlpServiceClient.CreateDeidentifyTemplateAsync(parent, deidentifyTemplate);

CreateDeidentifyTemplateAsync(String, DeidentifyTemplate, CancellationToken)

public virtual Task<DeidentifyTemplate> CreateDeidentifyTemplateAsync(string parent, DeidentifyTemplate deidentifyTemplate, CancellationToken cancellationToken)

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
parentString

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

deidentifyTemplateDeidentifyTemplate

Required. The DeidentifyTemplate to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
// Make the request
DeidentifyTemplate response = await dlpServiceClient.CreateDeidentifyTemplateAsync(parent, deidentifyTemplate);

CreateDlpJob(LocationName, InspectJobConfig, CallSettings)

public virtual DlpJob CreateDlpJob(LocationName parent, InspectJobConfig inspectJob, CallSettings callSettings = null)

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
parentLocationName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
InspectJobConfig inspectJob = new InspectJobConfig();
// Make the request
DlpJob response = dlpServiceClient.CreateDlpJob(parent, inspectJob);

CreateDlpJob(LocationName, RiskAnalysisJobConfig, CallSettings)

public virtual DlpJob CreateDlpJob(LocationName parent, RiskAnalysisJobConfig riskJob, CallSettings callSettings = null)

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
parentLocationName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

riskJobRiskAnalysisJobConfig

A risk analysis job calculates re-identification risk metrics for a BigQuery table.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RiskAnalysisJobConfig riskJob = new RiskAnalysisJobConfig();
// Make the request
DlpJob response = dlpServiceClient.CreateDlpJob(parent, riskJob);

CreateDlpJob(ProjectName, InspectJobConfig, CallSettings)

public virtual DlpJob CreateDlpJob(ProjectName parent, InspectJobConfig inspectJob, CallSettings callSettings = null)

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
parentProjectName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
InspectJobConfig inspectJob = new InspectJobConfig();
// Make the request
DlpJob response = dlpServiceClient.CreateDlpJob(parent, inspectJob);

CreateDlpJob(ProjectName, RiskAnalysisJobConfig, CallSettings)

public virtual DlpJob CreateDlpJob(ProjectName parent, RiskAnalysisJobConfig riskJob, CallSettings callSettings = null)

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
parentProjectName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

riskJobRiskAnalysisJobConfig

A risk analysis job calculates re-identification risk metrics for a BigQuery table.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
RiskAnalysisJobConfig riskJob = new RiskAnalysisJobConfig();
// Make the request
DlpJob response = dlpServiceClient.CreateDlpJob(parent, riskJob);

CreateDlpJob(CreateDlpJobRequest, CallSettings)

public virtual DlpJob CreateDlpJob(CreateDlpJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
CreateDlpJobRequest request = new CreateDlpJobRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    InspectJob = new InspectJobConfig(),
    JobId = "",
    LocationId = "",
};
// Make the request
DlpJob response = dlpServiceClient.CreateDlpJob(request);

CreateDlpJob(String, InspectJobConfig, CallSettings)

public virtual DlpJob CreateDlpJob(string parent, InspectJobConfig inspectJob, CallSettings callSettings = null)

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
parentString

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
InspectJobConfig inspectJob = new InspectJobConfig();
// Make the request
DlpJob response = dlpServiceClient.CreateDlpJob(parent, inspectJob);

CreateDlpJob(String, RiskAnalysisJobConfig, CallSettings)

public virtual DlpJob CreateDlpJob(string parent, RiskAnalysisJobConfig riskJob, CallSettings callSettings = null)

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
parentString

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

riskJobRiskAnalysisJobConfig

A risk analysis job calculates re-identification risk metrics for a BigQuery table.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
RiskAnalysisJobConfig riskJob = new RiskAnalysisJobConfig();
// Make the request
DlpJob response = dlpServiceClient.CreateDlpJob(parent, riskJob);

CreateDlpJobAsync(LocationName, InspectJobConfig, CallSettings)

public virtual Task<DlpJob> CreateDlpJobAsync(LocationName parent, InspectJobConfig inspectJob, CallSettings callSettings = null)

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
parentLocationName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
InspectJobConfig inspectJob = new InspectJobConfig();
// Make the request
DlpJob response = await dlpServiceClient.CreateDlpJobAsync(parent, inspectJob);

CreateDlpJobAsync(LocationName, InspectJobConfig, CancellationToken)

public virtual Task<DlpJob> CreateDlpJobAsync(LocationName parent, InspectJobConfig inspectJob, CancellationToken cancellationToken)

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
parentLocationName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
InspectJobConfig inspectJob = new InspectJobConfig();
// Make the request
DlpJob response = await dlpServiceClient.CreateDlpJobAsync(parent, inspectJob);

CreateDlpJobAsync(LocationName, RiskAnalysisJobConfig, CallSettings)

public virtual Task<DlpJob> CreateDlpJobAsync(LocationName parent, RiskAnalysisJobConfig riskJob, CallSettings callSettings = null)

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
parentLocationName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

riskJobRiskAnalysisJobConfig

A risk analysis job calculates re-identification risk metrics for a BigQuery table.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RiskAnalysisJobConfig riskJob = new RiskAnalysisJobConfig();
// Make the request
DlpJob response = await dlpServiceClient.CreateDlpJobAsync(parent, riskJob);

CreateDlpJobAsync(LocationName, RiskAnalysisJobConfig, CancellationToken)

public virtual Task<DlpJob> CreateDlpJobAsync(LocationName parent, RiskAnalysisJobConfig riskJob, CancellationToken cancellationToken)

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
parentLocationName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

riskJobRiskAnalysisJobConfig

A risk analysis job calculates re-identification risk metrics for a BigQuery table.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RiskAnalysisJobConfig riskJob = new RiskAnalysisJobConfig();
// Make the request
DlpJob response = await dlpServiceClient.CreateDlpJobAsync(parent, riskJob);

CreateDlpJobAsync(ProjectName, InspectJobConfig, CallSettings)

public virtual Task<DlpJob> CreateDlpJobAsync(ProjectName parent, InspectJobConfig inspectJob, CallSettings callSettings = null)

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
parentProjectName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
InspectJobConfig inspectJob = new InspectJobConfig();
// Make the request
DlpJob response = await dlpServiceClient.CreateDlpJobAsync(parent, inspectJob);

CreateDlpJobAsync(ProjectName, InspectJobConfig, CancellationToken)

public virtual Task<DlpJob> CreateDlpJobAsync(ProjectName parent, InspectJobConfig inspectJob, CancellationToken cancellationToken)

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
parentProjectName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
InspectJobConfig inspectJob = new InspectJobConfig();
// Make the request
DlpJob response = await dlpServiceClient.CreateDlpJobAsync(parent, inspectJob);

CreateDlpJobAsync(ProjectName, RiskAnalysisJobConfig, CallSettings)

public virtual Task<DlpJob> CreateDlpJobAsync(ProjectName parent, RiskAnalysisJobConfig riskJob, CallSettings callSettings = null)

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
parentProjectName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

riskJobRiskAnalysisJobConfig

A risk analysis job calculates re-identification risk metrics for a BigQuery table.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
RiskAnalysisJobConfig riskJob = new RiskAnalysisJobConfig();
// Make the request
DlpJob response = await dlpServiceClient.CreateDlpJobAsync(parent, riskJob);

CreateDlpJobAsync(ProjectName, RiskAnalysisJobConfig, CancellationToken)

public virtual Task<DlpJob> CreateDlpJobAsync(ProjectName parent, RiskAnalysisJobConfig riskJob, CancellationToken cancellationToken)

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
parentProjectName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

riskJobRiskAnalysisJobConfig

A risk analysis job calculates re-identification risk metrics for a BigQuery table.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
RiskAnalysisJobConfig riskJob = new RiskAnalysisJobConfig();
// Make the request
DlpJob response = await dlpServiceClient.CreateDlpJobAsync(parent, riskJob);

CreateDlpJobAsync(CreateDlpJobRequest, CallSettings)

public virtual Task<DlpJob> CreateDlpJobAsync(CreateDlpJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDlpJobRequest request = new CreateDlpJobRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    InspectJob = new InspectJobConfig(),
    JobId = "",
    LocationId = "",
};
// Make the request
DlpJob response = await dlpServiceClient.CreateDlpJobAsync(request);

CreateDlpJobAsync(CreateDlpJobRequest, CancellationToken)

public virtual Task<DlpJob> CreateDlpJobAsync(CreateDlpJobRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDlpJobRequest request = new CreateDlpJobRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    InspectJob = new InspectJobConfig(),
    JobId = "",
    LocationId = "",
};
// Make the request
DlpJob response = await dlpServiceClient.CreateDlpJobAsync(request);

CreateDlpJobAsync(String, InspectJobConfig, CallSettings)

public virtual Task<DlpJob> CreateDlpJobAsync(string parent, InspectJobConfig inspectJob, CallSettings callSettings = null)

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
parentString

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
InspectJobConfig inspectJob = new InspectJobConfig();
// Make the request
DlpJob response = await dlpServiceClient.CreateDlpJobAsync(parent, inspectJob);

CreateDlpJobAsync(String, InspectJobConfig, CancellationToken)

public virtual Task<DlpJob> CreateDlpJobAsync(string parent, InspectJobConfig inspectJob, CancellationToken cancellationToken)

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
parentString

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
InspectJobConfig inspectJob = new InspectJobConfig();
// Make the request
DlpJob response = await dlpServiceClient.CreateDlpJobAsync(parent, inspectJob);

CreateDlpJobAsync(String, RiskAnalysisJobConfig, CallSettings)

public virtual Task<DlpJob> CreateDlpJobAsync(string parent, RiskAnalysisJobConfig riskJob, CallSettings callSettings = null)

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
parentString

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

riskJobRiskAnalysisJobConfig

A risk analysis job calculates re-identification risk metrics for a BigQuery table.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
RiskAnalysisJobConfig riskJob = new RiskAnalysisJobConfig();
// Make the request
DlpJob response = await dlpServiceClient.CreateDlpJobAsync(parent, riskJob);

CreateDlpJobAsync(String, RiskAnalysisJobConfig, CancellationToken)

public virtual Task<DlpJob> CreateDlpJobAsync(string parent, RiskAnalysisJobConfig riskJob, CancellationToken cancellationToken)

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
parentString

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

riskJobRiskAnalysisJobConfig

A risk analysis job calculates re-identification risk metrics for a BigQuery table.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DlpJob>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
RiskAnalysisJobConfig riskJob = new RiskAnalysisJobConfig();
// Make the request
DlpJob response = await dlpServiceClient.CreateDlpJobAsync(parent, riskJob);

CreateInspectTemplate(LocationName, InspectTemplate, CallSettings)

public virtual InspectTemplate CreateInspectTemplate(LocationName parent, InspectTemplate inspectTemplate, CallSettings callSettings = null)

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
parentLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
InspectTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = dlpServiceClient.CreateInspectTemplate(parent, inspectTemplate);

CreateInspectTemplate(OrganizationName, InspectTemplate, CallSettings)

public virtual InspectTemplate CreateInspectTemplate(OrganizationName parent, InspectTemplate inspectTemplate, CallSettings callSettings = null)

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
parentOrganizationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
InspectTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = dlpServiceClient.CreateInspectTemplate(parent, inspectTemplate);

CreateInspectTemplate(ProjectName, InspectTemplate, CallSettings)

public virtual InspectTemplate CreateInspectTemplate(ProjectName parent, InspectTemplate inspectTemplate, CallSettings callSettings = null)

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
parentProjectName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
InspectTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = dlpServiceClient.CreateInspectTemplate(parent, inspectTemplate);

CreateInspectTemplate(CreateInspectTemplateRequest, CallSettings)

public virtual InspectTemplate CreateInspectTemplate(CreateInspectTemplateRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
InspectTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
CreateInspectTemplateRequest request = new CreateInspectTemplateRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    InspectTemplate = new InspectTemplate(),
    TemplateId = "",
    LocationId = "",
};
// Make the request
InspectTemplate response = dlpServiceClient.CreateInspectTemplate(request);

CreateInspectTemplate(OrganizationLocationName, InspectTemplate, CallSettings)

public virtual InspectTemplate CreateInspectTemplate(OrganizationLocationName parent, InspectTemplate inspectTemplate, CallSettings callSettings = null)

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
parentOrganizationLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
InspectTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = dlpServiceClient.CreateInspectTemplate(parent, inspectTemplate);

CreateInspectTemplate(String, InspectTemplate, CallSettings)

public virtual InspectTemplate CreateInspectTemplate(string parent, InspectTemplate inspectTemplate, CallSettings callSettings = null)

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
parentString

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
InspectTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = dlpServiceClient.CreateInspectTemplate(parent, inspectTemplate);

CreateInspectTemplateAsync(LocationName, InspectTemplate, CallSettings)

public virtual Task<InspectTemplate> CreateInspectTemplateAsync(LocationName parent, InspectTemplate inspectTemplate, CallSettings callSettings = null)

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
parentLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<InspectTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = await dlpServiceClient.CreateInspectTemplateAsync(parent, inspectTemplate);

CreateInspectTemplateAsync(LocationName, InspectTemplate, CancellationToken)

public virtual Task<InspectTemplate> CreateInspectTemplateAsync(LocationName parent, InspectTemplate inspectTemplate, CancellationToken cancellationToken)

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
parentLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<InspectTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = await dlpServiceClient.CreateInspectTemplateAsync(parent, inspectTemplate);

CreateInspectTemplateAsync(OrganizationName, InspectTemplate, CallSettings)

public virtual Task<InspectTemplate> CreateInspectTemplateAsync(OrganizationName parent, InspectTemplate inspectTemplate, CallSettings callSettings = null)

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
parentOrganizationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<InspectTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = await dlpServiceClient.CreateInspectTemplateAsync(parent, inspectTemplate);

CreateInspectTemplateAsync(OrganizationName, InspectTemplate, CancellationToken)

public virtual Task<InspectTemplate> CreateInspectTemplateAsync(OrganizationName parent, InspectTemplate inspectTemplate, CancellationToken cancellationToken)

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
parentOrganizationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<InspectTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = await dlpServiceClient.CreateInspectTemplateAsync(parent, inspectTemplate);

CreateInspectTemplateAsync(ProjectName, InspectTemplate, CallSettings)

public virtual Task<InspectTemplate> CreateInspectTemplateAsync(ProjectName parent, InspectTemplate inspectTemplate, CallSettings callSettings = null)

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
parentProjectName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<InspectTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = await dlpServiceClient.CreateInspectTemplateAsync(parent, inspectTemplate);

CreateInspectTemplateAsync(ProjectName, InspectTemplate, CancellationToken)

public virtual Task<InspectTemplate> CreateInspectTemplateAsync(ProjectName parent, InspectTemplate inspectTemplate, CancellationToken cancellationToken)

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
parentProjectName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<InspectTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = await dlpServiceClient.CreateInspectTemplateAsync(parent, inspectTemplate);

CreateInspectTemplateAsync(CreateInspectTemplateRequest, CallSettings)

public virtual Task<InspectTemplate> CreateInspectTemplateAsync(CreateInspectTemplateRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<InspectTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateInspectTemplateRequest request = new CreateInspectTemplateRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    InspectTemplate = new InspectTemplate(),
    TemplateId = "",
    LocationId = "",
};
// Make the request
InspectTemplate response = await dlpServiceClient.CreateInspectTemplateAsync(request);

CreateInspectTemplateAsync(CreateInspectTemplateRequest, CancellationToken)

public virtual Task<InspectTemplate> CreateInspectTemplateAsync(CreateInspectTemplateRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<InspectTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateInspectTemplateRequest request = new CreateInspectTemplateRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    InspectTemplate = new InspectTemplate(),
    TemplateId = "",
    LocationId = "",
};
// Make the request
InspectTemplate response = await dlpServiceClient.CreateInspectTemplateAsync(request);

CreateInspectTemplateAsync(OrganizationLocationName, InspectTemplate, CallSettings)

public virtual Task<InspectTemplate> CreateInspectTemplateAsync(OrganizationLocationName parent, InspectTemplate inspectTemplate, CallSettings callSettings = null)

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
parentOrganizationLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<InspectTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = await dlpServiceClient.CreateInspectTemplateAsync(parent, inspectTemplate);

CreateInspectTemplateAsync(OrganizationLocationName, InspectTemplate, CancellationToken)

public virtual Task<InspectTemplate> CreateInspectTemplateAsync(OrganizationLocationName parent, InspectTemplate inspectTemplate, CancellationToken cancellationToken)

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
parentOrganizationLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<InspectTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = await dlpServiceClient.CreateInspectTemplateAsync(parent, inspectTemplate);

CreateInspectTemplateAsync(String, InspectTemplate, CallSettings)

public virtual Task<InspectTemplate> CreateInspectTemplateAsync(string parent, InspectTemplate inspectTemplate, CallSettings callSettings = null)

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
parentString

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<InspectTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = await dlpServiceClient.CreateInspectTemplateAsync(parent, inspectTemplate);

CreateInspectTemplateAsync(String, InspectTemplate, CancellationToken)

public virtual Task<InspectTemplate> CreateInspectTemplateAsync(string parent, InspectTemplate inspectTemplate, CancellationToken cancellationToken)

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
parentString

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

inspectTemplateInspectTemplate

Required. The InspectTemplate to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<InspectTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
InspectTemplate inspectTemplate = new InspectTemplate();
// Make the request
InspectTemplate response = await dlpServiceClient.CreateInspectTemplateAsync(parent, inspectTemplate);

CreateJobTrigger(LocationName, JobTrigger, CallSettings)

public virtual JobTrigger CreateJobTrigger(LocationName parent, JobTrigger jobTrigger, CallSettings callSettings = null)

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
parentLocationName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

jobTriggerJobTrigger

Required. The JobTrigger to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
JobTrigger

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
JobTrigger jobTrigger = new JobTrigger();
// Make the request
JobTrigger response = dlpServiceClient.CreateJobTrigger(parent, jobTrigger);

CreateJobTrigger(ProjectName, JobTrigger, CallSettings)

public virtual JobTrigger CreateJobTrigger(ProjectName parent, JobTrigger jobTrigger, CallSettings callSettings = null)

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
parentProjectName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

jobTriggerJobTrigger

Required. The JobTrigger to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
JobTrigger

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
JobTrigger jobTrigger = new JobTrigger();
// Make the request
JobTrigger response = dlpServiceClient.CreateJobTrigger(parent, jobTrigger);

CreateJobTrigger(CreateJobTriggerRequest, CallSettings)

public virtual JobTrigger CreateJobTrigger(CreateJobTriggerRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
JobTrigger

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
CreateJobTriggerRequest request = new CreateJobTriggerRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    JobTrigger = new JobTrigger(),
    TriggerId = "",
    LocationId = "",
};
// Make the request
JobTrigger response = dlpServiceClient.CreateJobTrigger(request);

CreateJobTrigger(String, JobTrigger, CallSettings)

public virtual JobTrigger CreateJobTrigger(string parent, JobTrigger jobTrigger, CallSettings callSettings = null)

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
parentString

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

jobTriggerJobTrigger

Required. The JobTrigger to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
JobTrigger

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
JobTrigger jobTrigger = new JobTrigger();
// Make the request
JobTrigger response = dlpServiceClient.CreateJobTrigger(parent, jobTrigger);

CreateJobTriggerAsync(LocationName, JobTrigger, CallSettings)

public virtual Task<JobTrigger> CreateJobTriggerAsync(LocationName parent, JobTrigger jobTrigger, CallSettings callSettings = null)

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
parentLocationName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

jobTriggerJobTrigger

Required. The JobTrigger to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<JobTrigger>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
JobTrigger jobTrigger = new JobTrigger();
// Make the request
JobTrigger response = await dlpServiceClient.CreateJobTriggerAsync(parent, jobTrigger);

CreateJobTriggerAsync(LocationName, JobTrigger, CancellationToken)

public virtual Task<JobTrigger> CreateJobTriggerAsync(LocationName parent, JobTrigger jobTrigger, CancellationToken cancellationToken)

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
parentLocationName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

jobTriggerJobTrigger

Required. The JobTrigger to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<JobTrigger>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
JobTrigger jobTrigger = new JobTrigger();
// Make the request
JobTrigger response = await dlpServiceClient.CreateJobTriggerAsync(parent, jobTrigger);

CreateJobTriggerAsync(ProjectName, JobTrigger, CallSettings)

public virtual Task<JobTrigger> CreateJobTriggerAsync(ProjectName parent, JobTrigger jobTrigger, CallSettings callSettings = null)

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
parentProjectName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

jobTriggerJobTrigger

Required. The JobTrigger to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<JobTrigger>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
JobTrigger jobTrigger = new JobTrigger();
// Make the request
JobTrigger response = await dlpServiceClient.CreateJobTriggerAsync(parent, jobTrigger);

CreateJobTriggerAsync(ProjectName, JobTrigger, CancellationToken)

public virtual Task<JobTrigger> CreateJobTriggerAsync(ProjectName parent, JobTrigger jobTrigger, CancellationToken cancellationToken)

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
parentProjectName

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

jobTriggerJobTrigger

Required. The JobTrigger to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<JobTrigger>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
JobTrigger jobTrigger = new JobTrigger();
// Make the request
JobTrigger response = await dlpServiceClient.CreateJobTriggerAsync(parent, jobTrigger);

CreateJobTriggerAsync(CreateJobTriggerRequest, CallSettings)

public virtual Task<JobTrigger> CreateJobTriggerAsync(CreateJobTriggerRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<JobTrigger>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateJobTriggerRequest request = new CreateJobTriggerRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    JobTrigger = new JobTrigger(),
    TriggerId = "",
    LocationId = "",
};
// Make the request
JobTrigger response = await dlpServiceClient.CreateJobTriggerAsync(request);

CreateJobTriggerAsync(CreateJobTriggerRequest, CancellationToken)

public virtual Task<JobTrigger> CreateJobTriggerAsync(CreateJobTriggerRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<JobTrigger>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateJobTriggerRequest request = new CreateJobTriggerRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    JobTrigger = new JobTrigger(),
    TriggerId = "",
    LocationId = "",
};
// Make the request
JobTrigger response = await dlpServiceClient.CreateJobTriggerAsync(request);

CreateJobTriggerAsync(String, JobTrigger, CallSettings)

public virtual Task<JobTrigger> CreateJobTriggerAsync(string parent, JobTrigger jobTrigger, CallSettings callSettings = null)

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
parentString

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

jobTriggerJobTrigger

Required. The JobTrigger to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<JobTrigger>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
JobTrigger jobTrigger = new JobTrigger();
// Make the request
JobTrigger response = await dlpServiceClient.CreateJobTriggerAsync(parent, jobTrigger);

CreateJobTriggerAsync(String, JobTrigger, CancellationToken)

public virtual Task<JobTrigger> CreateJobTriggerAsync(string parent, JobTrigger jobTrigger, CancellationToken cancellationToken)

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
parentString

Required. Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;

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

jobTriggerJobTrigger

Required. The JobTrigger to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<JobTrigger>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
JobTrigger jobTrigger = new JobTrigger();
// Make the request
JobTrigger response = await dlpServiceClient.CreateJobTriggerAsync(parent, jobTrigger);

CreateStoredInfoType(LocationName, StoredInfoTypeConfig, CallSettings)

public virtual StoredInfoType CreateStoredInfoType(LocationName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)

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
parentLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = dlpServiceClient.CreateStoredInfoType(parent, config);

CreateStoredInfoType(OrganizationName, StoredInfoTypeConfig, CallSettings)

public virtual StoredInfoType CreateStoredInfoType(OrganizationName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)

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
parentOrganizationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = dlpServiceClient.CreateStoredInfoType(parent, config);

CreateStoredInfoType(ProjectName, StoredInfoTypeConfig, CallSettings)

public virtual StoredInfoType CreateStoredInfoType(ProjectName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)

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
parentProjectName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = dlpServiceClient.CreateStoredInfoType(parent, config);

CreateStoredInfoType(CreateStoredInfoTypeRequest, CallSettings)

public virtual StoredInfoType CreateStoredInfoType(CreateStoredInfoTypeRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
CreateStoredInfoTypeRequest request = new CreateStoredInfoTypeRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    Config = new StoredInfoTypeConfig(),
    StoredInfoTypeId = "",
    LocationId = "",
};
// Make the request
StoredInfoType response = dlpServiceClient.CreateStoredInfoType(request);

CreateStoredInfoType(OrganizationLocationName, StoredInfoTypeConfig, CallSettings)

public virtual StoredInfoType CreateStoredInfoType(OrganizationLocationName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)

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
parentOrganizationLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = dlpServiceClient.CreateStoredInfoType(parent, config);

CreateStoredInfoType(String, StoredInfoTypeConfig, CallSettings)

public virtual StoredInfoType CreateStoredInfoType(string parent, StoredInfoTypeConfig config, CallSettings callSettings = null)

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
parentString

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = dlpServiceClient.CreateStoredInfoType(parent, config);

CreateStoredInfoTypeAsync(LocationName, StoredInfoTypeConfig, CallSettings)

public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(LocationName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)

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
parentLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<StoredInfoType>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);

CreateStoredInfoTypeAsync(LocationName, StoredInfoTypeConfig, CancellationToken)

public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(LocationName parent, StoredInfoTypeConfig config, CancellationToken cancellationToken)

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
parentLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<StoredInfoType>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);

CreateStoredInfoTypeAsync(OrganizationName, StoredInfoTypeConfig, CallSettings)

public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(OrganizationName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)

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
parentOrganizationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<StoredInfoType>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);

CreateStoredInfoTypeAsync(OrganizationName, StoredInfoTypeConfig, CancellationToken)

public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(OrganizationName parent, StoredInfoTypeConfig config, CancellationToken cancellationToken)

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
parentOrganizationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<StoredInfoType>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);

CreateStoredInfoTypeAsync(ProjectName, StoredInfoTypeConfig, CallSettings)

public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(ProjectName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)

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
parentProjectName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<StoredInfoType>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);

CreateStoredInfoTypeAsync(ProjectName, StoredInfoTypeConfig, CancellationToken)

public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(ProjectName parent, StoredInfoTypeConfig config, CancellationToken cancellationToken)

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
parentProjectName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<StoredInfoType>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);

CreateStoredInfoTypeAsync(CreateStoredInfoTypeRequest, CallSettings)

public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(CreateStoredInfoTypeRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<StoredInfoType>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateStoredInfoTypeRequest request = new CreateStoredInfoTypeRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    Config = new StoredInfoTypeConfig(),
    StoredInfoTypeId = "",
    LocationId = "",
};
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(request);

CreateStoredInfoTypeAsync(CreateStoredInfoTypeRequest, CancellationToken)

public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(CreateStoredInfoTypeRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<StoredInfoType>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateStoredInfoTypeRequest request = new CreateStoredInfoTypeRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    Config = new StoredInfoTypeConfig(),
    StoredInfoTypeId = "",
    LocationId = "",
};
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(request);

CreateStoredInfoTypeAsync(OrganizationLocationName, StoredInfoTypeConfig, CallSettings)

public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(OrganizationLocationName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)

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
parentOrganizationLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<StoredInfoType>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);

CreateStoredInfoTypeAsync(OrganizationLocationName, StoredInfoTypeConfig, CancellationToken)

public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(OrganizationLocationName parent, StoredInfoTypeConfig config, CancellationToken cancellationToken)

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
parentOrganizationLocationName

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<StoredInfoType>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);

CreateStoredInfoTypeAsync(String, StoredInfoTypeConfig, CallSettings)

public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(string parent, StoredInfoTypeConfig config, CallSettings callSettings = null)

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
parentString

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<StoredInfoType>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);

CreateStoredInfoTypeAsync(String, StoredInfoTypeConfig, CancellationToken)

public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(string parent, StoredInfoTypeConfig config, CancellationToken cancellationToken)

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
parentString

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:

  • Projects scope, location specified:&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Projects scope, no location specified (defaults to global):&lt;br/&gt; projects/&lt;var&gt;PROJECT_ID&lt;/var&gt;
  • Organizations scope, location specified:&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;/locations/&lt;var&gt;LOCATION_ID&lt;/var&gt;
  • Organizations scope, no location specified (defaults to global):&lt;br/&gt; organizations/&lt;var&gt;ORG_ID&lt;/var&gt;

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

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<StoredInfoType>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);

DeidentifyContent(DeidentifyContentRequest, CallSettings)

public virtual DeidentifyContentResponse DeidentifyContent(DeidentifyContentRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyContentResponse

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DeidentifyContentRequest request = new DeidentifyContentRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    DeidentifyConfig = new DeidentifyConfig(),
    InspectConfig = new InspectConfig(),
    Item = new ContentItem(),
    InspectTemplateName = "",
    DeidentifyTemplateName = "",
    LocationId = "",
};
// Make the request
DeidentifyContentResponse response = dlpServiceClient.DeidentifyContent(request);

DeidentifyContentAsync(DeidentifyContentRequest, CallSettings)

public virtual Task<DeidentifyContentResponse> DeidentifyContentAsync(DeidentifyContentRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DeidentifyContentResponse>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeidentifyContentRequest request = new DeidentifyContentRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    DeidentifyConfig = new DeidentifyConfig(),
    InspectConfig = new InspectConfig(),
    Item = new ContentItem(),
    InspectTemplateName = "",
    DeidentifyTemplateName = "",
    LocationId = "",
};
// Make the request
DeidentifyContentResponse response = await dlpServiceClient.DeidentifyContentAsync(request);

DeidentifyContentAsync(DeidentifyContentRequest, CancellationToken)

public virtual Task<DeidentifyContentResponse> DeidentifyContentAsync(DeidentifyContentRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DeidentifyContentResponse>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeidentifyContentRequest request = new DeidentifyContentRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    DeidentifyConfig = new DeidentifyConfig(),
    InspectConfig = new InspectConfig(),
    Item = new ContentItem(),
    InspectTemplateName = "",
    DeidentifyTemplateName = "",
    LocationId = "",
};
// Make the request
DeidentifyContentResponse response = await dlpServiceClient.DeidentifyContentAsync(request);

DeleteDeidentifyTemplate(DeidentifyTemplateName, CallSettings)

public virtual void DeleteDeidentifyTemplate(DeidentifyTemplateName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameDeidentifyTemplateName

Required. Resource name of the organization and deidentify template to be deleted, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
// Make the request
dlpServiceClient.DeleteDeidentifyTemplate(name);

DeleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest, CallSettings)

public virtual void DeleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteDeidentifyTemplateRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DeleteDeidentifyTemplateRequest request = new DeleteDeidentifyTemplateRequest
{
    DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
};
// Make the request
dlpServiceClient.DeleteDeidentifyTemplate(request);

DeleteDeidentifyTemplate(String, CallSettings)

public virtual void DeleteDeidentifyTemplate(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. Resource name of the organization and deidentify template to be deleted, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
// Make the request
dlpServiceClient.DeleteDeidentifyTemplate(name);

DeleteDeidentifyTemplateAsync(DeidentifyTemplateName, CallSettings)

public virtual Task DeleteDeidentifyTemplateAsync(DeidentifyTemplateName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameDeidentifyTemplateName

Required. Resource name of the organization and deidentify template to be deleted, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
// Make the request
await dlpServiceClient.DeleteDeidentifyTemplateAsync(name);

DeleteDeidentifyTemplateAsync(DeidentifyTemplateName, CancellationToken)

public virtual Task DeleteDeidentifyTemplateAsync(DeidentifyTemplateName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameDeidentifyTemplateName

Required. Resource name of the organization and deidentify template to be deleted, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
// Make the request
await dlpServiceClient.DeleteDeidentifyTemplateAsync(name);

DeleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest, CallSettings)

public virtual Task DeleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteDeidentifyTemplateRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDeidentifyTemplateRequest request = new DeleteDeidentifyTemplateRequest
{
    DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
};
// Make the request
await dlpServiceClient.DeleteDeidentifyTemplateAsync(request);

DeleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest, CancellationToken)

public virtual Task DeleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestDeleteDeidentifyTemplateRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDeidentifyTemplateRequest request = new DeleteDeidentifyTemplateRequest
{
    DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
};
// Make the request
await dlpServiceClient.DeleteDeidentifyTemplateAsync(request);

DeleteDeidentifyTemplateAsync(String, CallSettings)

public virtual Task DeleteDeidentifyTemplateAsync(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. Resource name of the organization and deidentify template to be deleted, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
// Make the request
await dlpServiceClient.DeleteDeidentifyTemplateAsync(name);

DeleteDeidentifyTemplateAsync(String, CancellationToken)

public virtual Task DeleteDeidentifyTemplateAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameString

Required. Resource name of the organization and deidentify template to be deleted, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
// Make the request
await dlpServiceClient.DeleteDeidentifyTemplateAsync(name);

DeleteDlpJob(DeleteDlpJobRequest, CallSettings)

public virtual void DeleteDlpJob(DeleteDlpJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DeleteDlpJobRequest request = new DeleteDlpJobRequest
{
    DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
dlpServiceClient.DeleteDlpJob(request);

DeleteDlpJob(DlpJobName, CallSettings)

public virtual void DeleteDlpJob(DlpJobName name, CallSettings callSettings = null)

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
nameDlpJobName

Required. The name of the DlpJob resource to be deleted.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DlpJobName name = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]");
// Make the request
dlpServiceClient.DeleteDlpJob(name);

DeleteDlpJob(String, CallSettings)

public virtual void DeleteDlpJob(string name, CallSettings callSettings = null)

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
nameString

Required. The name of the DlpJob resource to be deleted.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/dlpJobs/[DLP_JOB]";
// Make the request
dlpServiceClient.DeleteDlpJob(name);

DeleteDlpJobAsync(DeleteDlpJobRequest, CallSettings)

public virtual Task DeleteDlpJobAsync(DeleteDlpJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDlpJobRequest request = new DeleteDlpJobRequest
{
    DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
await dlpServiceClient.DeleteDlpJobAsync(request);

DeleteDlpJobAsync(DeleteDlpJobRequest, CancellationToken)

public virtual Task DeleteDlpJobAsync(DeleteDlpJobRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDlpJobRequest request = new DeleteDlpJobRequest
{
    DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
await dlpServiceClient.DeleteDlpJobAsync(request);

DeleteDlpJobAsync(DlpJobName, CallSettings)

public virtual Task DeleteDlpJobAsync(DlpJobName name, CallSettings callSettings = null)

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
nameDlpJobName

Required. The name of the DlpJob resource to be deleted.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DlpJobName name = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]");
// Make the request
await dlpServiceClient.DeleteDlpJobAsync(name);

DeleteDlpJobAsync(DlpJobName, CancellationToken)

public virtual Task DeleteDlpJobAsync(DlpJobName name, CancellationToken cancellationToken)

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
nameDlpJobName

Required. The name of the DlpJob resource to be deleted.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DlpJobName name = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]");
// Make the request
await dlpServiceClient.DeleteDlpJobAsync(name);

DeleteDlpJobAsync(String, CallSettings)

public virtual Task DeleteDlpJobAsync(string name, CallSettings callSettings = null)

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
nameString

Required. The name of the DlpJob resource to be deleted.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/dlpJobs/[DLP_JOB]";
// Make the request
await dlpServiceClient.DeleteDlpJobAsync(name);

DeleteDlpJobAsync(String, CancellationToken)

public virtual Task DeleteDlpJobAsync(string name, CancellationToken cancellationToken)

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
nameString

Required. The name of the DlpJob resource to be deleted.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/dlpJobs/[DLP_JOB]";
// Make the request
await dlpServiceClient.DeleteDlpJobAsync(name);

DeleteInspectTemplate(DeleteInspectTemplateRequest, CallSettings)

public virtual void DeleteInspectTemplate(DeleteInspectTemplateRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteInspectTemplateRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DeleteInspectTemplateRequest request = new DeleteInspectTemplateRequest
{
    InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
};
// Make the request
dlpServiceClient.DeleteInspectTemplate(request);

DeleteInspectTemplate(InspectTemplateName, CallSettings)

public virtual void DeleteInspectTemplate(InspectTemplateName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameInspectTemplateName

Required. Resource name of the organization and inspectTemplate to be deleted, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
// Make the request
dlpServiceClient.DeleteInspectTemplate(name);

DeleteInspectTemplate(String, CallSettings)

public virtual void DeleteInspectTemplate(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. Resource name of the organization and inspectTemplate to be deleted, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
// Make the request
dlpServiceClient.DeleteInspectTemplate(name);

DeleteInspectTemplateAsync(DeleteInspectTemplateRequest, CallSettings)

public virtual Task DeleteInspectTemplateAsync(DeleteInspectTemplateRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteInspectTemplateRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteInspectTemplateRequest request = new DeleteInspectTemplateRequest
{
    InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
};
// Make the request
await dlpServiceClient.DeleteInspectTemplateAsync(request);

DeleteInspectTemplateAsync(DeleteInspectTemplateRequest, CancellationToken)

public virtual Task DeleteInspectTemplateAsync(DeleteInspectTemplateRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestDeleteInspectTemplateRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteInspectTemplateRequest request = new DeleteInspectTemplateRequest
{
    InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
};
// Make the request
await dlpServiceClient.DeleteInspectTemplateAsync(request);

DeleteInspectTemplateAsync(InspectTemplateName, CallSettings)

public virtual Task DeleteInspectTemplateAsync(InspectTemplateName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameInspectTemplateName

Required. Resource name of the organization and inspectTemplate to be deleted, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
// Make the request
await dlpServiceClient.DeleteInspectTemplateAsync(name);

DeleteInspectTemplateAsync(InspectTemplateName, CancellationToken)

public virtual Task DeleteInspectTemplateAsync(InspectTemplateName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameInspectTemplateName

Required. Resource name of the organization and inspectTemplate to be deleted, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
// Make the request
await dlpServiceClient.DeleteInspectTemplateAsync(name);

DeleteInspectTemplateAsync(String, CallSettings)

public virtual Task DeleteInspectTemplateAsync(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. Resource name of the organization and inspectTemplate to be deleted, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
// Make the request
await dlpServiceClient.DeleteInspectTemplateAsync(name);

DeleteInspectTemplateAsync(String, CancellationToken)

public virtual Task DeleteInspectTemplateAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameString

Required. Resource name of the organization and inspectTemplate to be deleted, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
// Make the request
await dlpServiceClient.DeleteInspectTemplateAsync(name);

DeleteJobTrigger(DeleteJobTriggerRequest, CallSettings)

public virtual void DeleteJobTrigger(DeleteJobTriggerRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteJobTriggerRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DeleteJobTriggerRequest request = new DeleteJobTriggerRequest
{
    JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
};
// Make the request
dlpServiceClient.DeleteJobTrigger(request);

DeleteJobTrigger(JobTriggerName, CallSettings)

public virtual void DeleteJobTrigger(JobTriggerName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameJobTriggerName

Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
// Make the request
dlpServiceClient.DeleteJobTrigger(name);

DeleteJobTrigger(String, CallSettings)

public virtual void DeleteJobTrigger(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
// Make the request
dlpServiceClient.DeleteJobTrigger(name);

DeleteJobTriggerAsync(DeleteJobTriggerRequest, CallSettings)

public virtual Task DeleteJobTriggerAsync(DeleteJobTriggerRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteJobTriggerRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteJobTriggerRequest request = new DeleteJobTriggerRequest
{
    JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
};
// Make the request
await dlpServiceClient.DeleteJobTriggerAsync(request);

DeleteJobTriggerAsync(DeleteJobTriggerRequest, CancellationToken)

public virtual Task DeleteJobTriggerAsync(DeleteJobTriggerRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestDeleteJobTriggerRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteJobTriggerRequest request = new DeleteJobTriggerRequest
{
    JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
};
// Make the request
await dlpServiceClient.DeleteJobTriggerAsync(request);

DeleteJobTriggerAsync(JobTriggerName, CallSettings)

public virtual Task DeleteJobTriggerAsync(JobTriggerName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameJobTriggerName

Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
// Make the request
await dlpServiceClient.DeleteJobTriggerAsync(name);

DeleteJobTriggerAsync(JobTriggerName, CancellationToken)

public virtual Task DeleteJobTriggerAsync(JobTriggerName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameJobTriggerName

Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
// Make the request
await dlpServiceClient.DeleteJobTriggerAsync(name);

DeleteJobTriggerAsync(String, CallSettings)

public virtual Task DeleteJobTriggerAsync(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
// Make the request
await dlpServiceClient.DeleteJobTriggerAsync(name);

DeleteJobTriggerAsync(String, CancellationToken)

public virtual Task DeleteJobTriggerAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameString

Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
// Make the request
await dlpServiceClient.DeleteJobTriggerAsync(name);

DeleteStoredInfoType(DeleteStoredInfoTypeRequest, CallSettings)

public virtual void DeleteStoredInfoType(DeleteStoredInfoTypeRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteStoredInfoTypeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DeleteStoredInfoTypeRequest request = new DeleteStoredInfoTypeRequest
{
    StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
};
// Make the request
dlpServiceClient.DeleteStoredInfoType(request);

DeleteStoredInfoType(StoredInfoTypeName, CallSettings)

public virtual void DeleteStoredInfoType(StoredInfoTypeName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameStoredInfoTypeName

Required. Resource name of the organization and storedInfoType to be deleted, for example organizations/433245324/storedInfoTypes/432452342 or projects/project-id/storedInfoTypes/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
// Make the request
dlpServiceClient.DeleteStoredInfoType(name);

DeleteStoredInfoType(String, CallSettings)

public virtual void DeleteStoredInfoType(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. Resource name of the organization and storedInfoType to be deleted, for example organizations/433245324/storedInfoTypes/432452342 or projects/project-id/storedInfoTypes/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
// Make the request
dlpServiceClient.DeleteStoredInfoType(name);

DeleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest, CallSettings)

public virtual Task DeleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteStoredInfoTypeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteStoredInfoTypeRequest request = new DeleteStoredInfoTypeRequest
{
    StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
};
// Make the request
await dlpServiceClient.DeleteStoredInfoTypeAsync(request);

DeleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest, CancellationToken)

public virtual Task DeleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestDeleteStoredInfoTypeRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteStoredInfoTypeRequest request = new DeleteStoredInfoTypeRequest
{
    StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
};
// Make the request
await dlpServiceClient.DeleteStoredInfoTypeAsync(request);

DeleteStoredInfoTypeAsync(StoredInfoTypeName, CallSettings)

public virtual Task DeleteStoredInfoTypeAsync(StoredInfoTypeName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameStoredInfoTypeName

Required. Resource name of the organization and storedInfoType to be deleted, for example organizations/433245324/storedInfoTypes/432452342 or projects/project-id/storedInfoTypes/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
// Make the request
await dlpServiceClient.DeleteStoredInfoTypeAsync(name);

DeleteStoredInfoTypeAsync(StoredInfoTypeName, CancellationToken)

public virtual Task DeleteStoredInfoTypeAsync(StoredInfoTypeName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameStoredInfoTypeName

Required. Resource name of the organization and storedInfoType to be deleted, for example organizations/433245324/storedInfoTypes/432452342 or projects/project-id/storedInfoTypes/432452342.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
// Make the request
await dlpServiceClient.DeleteStoredInfoTypeAsync(name);

DeleteStoredInfoTypeAsync(String, CallSettings)

public virtual Task DeleteStoredInfoTypeAsync(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. Resource name of the organization and storedInfoType to be deleted, for example organizations/433245324/storedInfoTypes/432452342 or projects/project-id/storedInfoTypes/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
// Make the request
await dlpServiceClient.DeleteStoredInfoTypeAsync(name);

DeleteStoredInfoTypeAsync(String, CancellationToken)

public virtual Task DeleteStoredInfoTypeAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameString

Required. Resource name of the organization and storedInfoType to be deleted, for example organizations/433245324/storedInfoTypes/432452342 or projects/project-id/storedInfoTypes/432452342.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
// Make the request
await dlpServiceClient.DeleteStoredInfoTypeAsync(name);

FinishDlpJob(FinishDlpJobRequest, CallSettings)

public virtual void FinishDlpJob(FinishDlpJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
FinishDlpJobRequest request = new FinishDlpJobRequest
{
    DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
dlpServiceClient.FinishDlpJob(request);

FinishDlpJobAsync(FinishDlpJobRequest, CallSettings)

public virtual Task FinishDlpJobAsync(FinishDlpJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
FinishDlpJobRequest request = new FinishDlpJobRequest
{
    DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
await dlpServiceClient.FinishDlpJobAsync(request);

FinishDlpJobAsync(FinishDlpJobRequest, CancellationToken)

public virtual Task FinishDlpJobAsync(FinishDlpJobRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
FinishDlpJobRequest request = new FinishDlpJobRequest
{
    DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
await dlpServiceClient.FinishDlpJobAsync(request);

GetDeidentifyTemplate(DeidentifyTemplateName, CallSettings)

public virtual DeidentifyTemplate GetDeidentifyTemplate(DeidentifyTemplateName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameDeidentifyTemplateName

Required. Resource name of the organization and deidentify template to be read, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
// Make the request
DeidentifyTemplate response = dlpServiceClient.GetDeidentifyTemplate(name);

GetDeidentifyTemplate(GetDeidentifyTemplateRequest, CallSettings)

public virtual DeidentifyTemplate GetDeidentifyTemplate(GetDeidentifyTemplateRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetDeidentifyTemplateRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
GetDeidentifyTemplateRequest request = new GetDeidentifyTemplateRequest
{
    DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
};
// Make the request
DeidentifyTemplate response = dlpServiceClient.GetDeidentifyTemplate(request);

GetDeidentifyTemplate(String, CallSettings)

public virtual DeidentifyTemplate GetDeidentifyTemplate(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. Resource name of the organization and deidentify template to be read, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyTemplate

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
// Make the request
DeidentifyTemplate response = dlpServiceClient.GetDeidentifyTemplate(name);

GetDeidentifyTemplateAsync(DeidentifyTemplateName, CallSettings)

public virtual Task<DeidentifyTemplate> GetDeidentifyTemplateAsync(DeidentifyTemplateName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameDeidentifyTemplateName

Required. Resource name of the organization and deidentify template to be read, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
// Make the request
DeidentifyTemplate response = await dlpServiceClient.GetDeidentifyTemplateAsync(name);

GetDeidentifyTemplateAsync(DeidentifyTemplateName, CancellationToken)

public virtual Task<DeidentifyTemplate> GetDeidentifyTemplateAsync(DeidentifyTemplateName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameDeidentifyTemplateName

Required. Resource name of the organization and deidentify template to be read, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
// Make the request
DeidentifyTemplate response = await dlpServiceClient.GetDeidentifyTemplateAsync(name);

GetDeidentifyTemplateAsync(GetDeidentifyTemplateRequest, CallSettings)

public virtual Task<DeidentifyTemplate> GetDeidentifyTemplateAsync(GetDeidentifyTemplateRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetDeidentifyTemplateRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetDeidentifyTemplateRequest request = new GetDeidentifyTemplateRequest
{
    DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
};
// Make the request
DeidentifyTemplate response = await dlpServiceClient.GetDeidentifyTemplateAsync(request);

GetDeidentifyTemplateAsync(GetDeidentifyTemplateRequest, CancellationToken)

public virtual Task<DeidentifyTemplate> GetDeidentifyTemplateAsync(GetDeidentifyTemplateRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestGetDeidentifyTemplateRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetDeidentifyTemplateRequest request = new GetDeidentifyTemplateRequest
{
    DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
};
// Make the request
DeidentifyTemplate response = await dlpServiceClient.GetDeidentifyTemplateAsync(request);

GetDeidentifyTemplateAsync(String, CallSettings)

public virtual Task<DeidentifyTemplate> GetDeidentifyTemplateAsync(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. Resource name of the organization and deidentify template to be read, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
// Make the request
DeidentifyTemplate response = await dlpServiceClient.GetDeidentifyTemplateAsync(name);

GetDeidentifyTemplateAsync(String, CancellationToken)

public virtual Task<DeidentifyTemplate> GetDeidentifyTemplateAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameString

Required. Resource name of the organization and deidentify template to be read, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DeidentifyTemplate>

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
// Make the request
DeidentifyTemplate response = await dlpServiceClient.GetDeidentifyTemplateAsync(name);

GetDlpJob(DlpJobName, CallSettings)

public virtual DlpJob GetDlpJob(DlpJobName name, CallSettings callSettings = null)

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
nameDlpJobName

Required. The name of the DlpJob resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DlpJobName name = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]");
// Make the request
DlpJob response = dlpServiceClient.GetDlpJob(name);

GetDlpJob(GetDlpJobRequest, CallSettings)

public virtual DlpJob GetDlpJob(GetDlpJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
GetDlpJobRequest request = new GetDlpJobRequest
{
    DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
DlpJob response = dlpServiceClient.GetDlpJob(request);

GetDlpJob(String, CallSettings)

public virtual DlpJob GetDlpJob(string name, CallSettings callSettings = null)

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
nameString

Required. The name of the DlpJob resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/dlpJobs/[DLP_JOB]";
// Make the request
DlpJob response = dlpServiceClient.GetDlpJob(name);

GetDlpJobAsync(DlpJobName, CallSettings)

public virtual Task<DlpJob> GetDlpJobAsync(DlpJobName name, CallSettings callSettings = null)

Gets the latest state of a long-running DlpJob. See https://cloud.google.com/dlp/docs/inspecting-storage<