Class DlpServiceClient

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
TypeNameDescription
ActivateJobTriggerRequestrequest

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
TypeNameDescription
ActivateJobTriggerRequestrequest

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
TypeNameDescription
ActivateJobTriggerRequestrequest

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
TypeNameDescription
CancelDlpJobRequestrequest

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
TypeNameDescription
CancelDlpJobRequestrequest

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
TypeNameDescription
CancelDlpJobRequestrequest

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
TypeNameDescription
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
TypeNameDescription
LocationNameparent

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
TypeNameDescription
OrganizationNameparent

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
TypeNameDescription
ProjectNameparent

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
TypeNameDescription
CreateDeidentifyTemplateRequestrequest

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
TypeNameDescription
OrganizationLocationNameparent

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
TypeNameDescription
Stringparent

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
TypeNameDescription
LocationNameparent

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
TypeNameDescription
LocationNameparent

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
TypeNameDescription
OrganizationNameparent

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
TypeNameDescription
OrganizationNameparent

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
TypeNameDescription
ProjectNameparent

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
TypeNameDescription
ProjectNameparent

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
TypeNameDescription
CreateDeidentifyTemplateRequestrequest

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
TypeNameDescription
CreateDeidentifyTemplateRequestrequest

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
TypeNameDescription
OrganizationLocationNameparent

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
TypeNameDescription
OrganizationLocationNameparent

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
TypeNameDescription
Stringparent

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
TypeNameDescription
Stringparent

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
TypeNameDescription
LocationNameparent

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

InspectJobConfiginspectJob

Set to control what and how to inspect.

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
TypeNameDescription
LocationNameparent

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

RiskAnalysisJobConfigriskJob

Set to choose what metric to calculate.

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
TypeNameDescription
ProjectNameparent

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

InspectJobConfiginspectJob

Set to control what and how to inspect.

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
TypeNameDescription
ProjectNameparent

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

RiskAnalysisJobConfigriskJob

Set to choose what metric to calculate.

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
TypeNameDescription
CreateDlpJobRequestrequest

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
TypeNameDescription
Stringparent

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

InspectJobConfiginspectJob

Set to control what and how to inspect.

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
TypeNameDescription
Stringparent

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

RiskAnalysisJobConfigriskJob

Set to choose what metric to calculate.

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
TypeNameDescription
LocationNameparent

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

InspectJobConfiginspectJob

Set to control what and how to inspect.

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
TypeNameDescription
LocationNameparent

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

InspectJobConfiginspectJob

Set to control what and how to inspect.

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
TypeNameDescription
LocationNameparent

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

RiskAnalysisJobConfigriskJob

Set to choose what metric to calculate.

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
TypeNameDescription
LocationNameparent

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

RiskAnalysisJobConfigriskJob

Set to choose what metric to calculate.

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
TypeNameDescription
ProjectNameparent

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

InspectJobConfiginspectJob

Set to control what and how to inspect.

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
TypeNameDescription
ProjectNameparent

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

InspectJobConfiginspectJob

Set to control what and how to inspect.

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
TypeNameDescription
ProjectNameparent

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

RiskAnalysisJobConfigriskJob

Set to choose what metric to calculate.

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
TypeNameDescription
ProjectNameparent

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

RiskAnalysisJobConfigriskJob

Set to choose what metric to calculate.

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
TypeNameDescription
CreateDlpJobRequestrequest

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
TypeNameDescription
CreateDlpJobRequestrequest

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
TypeNameDescription
Stringparent

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

InspectJobConfiginspectJob

Set to control what and how to inspect.

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
TypeNameDescription
Stringparent

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

InspectJobConfiginspectJob

Set to control what and how to inspect.

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
TypeNameDescription
Stringparent

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

RiskAnalysisJobConfigriskJob

Set to choose what metric to calculate.

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
TypeNameDescription
Stringparent

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

RiskAnalysisJobConfigriskJob

Set to choose what metric to calculate.

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
TypeNameDescription
LocationNameparent

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
TypeNameDescription
OrganizationNameparent

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
TypeNameDescription
ProjectNameparent

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
TypeNameDescription
CreateInspectTemplateRequestrequest

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
TypeNameDescription
OrganizationLocationNameparent

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
TypeNameDescription
Stringparent

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
TypeNameDescription
LocationNameparent

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
TypeNameDescription
LocationNameparent

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
TypeNameDescription
OrganizationNameparent

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
TypeNameDescription
OrganizationNameparent

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
TypeNameDescription
ProjectNameparent

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
TypeNameDescription
ProjectNameparent

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
TypeNameDescription
CreateInspectTemplateRequestrequest

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
TypeNameDescription
CreateInspectTemplateRequestrequest

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
TypeNameDescription
OrganizationLocationNameparent

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
TypeNameDescription
OrganizationLocationNameparent

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
TypeNameDescription
Stringparent

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
TypeNameDescription
Stringparent

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.