Google Cloud Data Loss Prevention v2 API - Class DlpServiceClient (4.8.0)

public abstract class DlpServiceClient

Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API 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/sensitive-data-protection/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
IReadOnlyListstring
Remarks

The default DlpService scopes are:

GrpcClient

public virtual DlpService.DlpServiceClient GrpcClient { get; }

The underlying gRPC DlpService client

Property Value
TypeDescription
DlpServiceDlpServiceClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

Methods

ActivateJobTrigger(ActivateJobTriggerRequest, CallSettings)

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

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

Parameters
NameDescription
requestActivateJobTriggerRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

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

ActivateJobTriggerAsync(ActivateJobTriggerRequest, CallSettings)

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

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

Parameters
NameDescription
requestActivateJobTriggerRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDlpJob

A Task containing the RPC response.

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

ActivateJobTriggerAsync(ActivateJobTriggerRequest, CancellationToken)

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

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

Parameters
NameDescription
requestActivateJobTriggerRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDlpJob

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

Parameters
NameDescription
requestCancelDlpJobRequest

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

Parameters
NameDescription
requestCancelDlpJobRequest

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

Parameters
NameDescription
requestCancelDlpJobRequest

The request 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)

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskDlpServiceClient

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
requestCreateDeidentifyTemplateRequest

The request 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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskDeidentifyTemplate

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskDeidentifyTemplate

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskDeidentifyTemplate

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskDeidentifyTemplate

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskDeidentifyTemplate

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskDeidentifyTemplate

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
requestCreateDeidentifyTemplateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDeidentifyTemplate

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
requestCreateDeidentifyTemplateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDeidentifyTemplate

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskDeidentifyTemplate

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskDeidentifyTemplate

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskDeidentifyTemplate

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 reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskDeidentifyTemplate

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);

CreateDiscoveryConfig(LocationName, DiscoveryConfig, CallSettings)

public virtual DiscoveryConfig CreateDiscoveryConfig(LocationName parent, DiscoveryConfig discoveryConfig, CallSettings callSettings = null)

Creates a config for discovery to scan and profile storage.

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

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

discoveryConfigDiscoveryConfig

Required. The DiscoveryConfig to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DiscoveryConfig

The RPC response.

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

CreateDiscoveryConfig(CreateDiscoveryConfigRequest, CallSettings)

public virtual DiscoveryConfig CreateDiscoveryConfig(CreateDiscoveryConfigRequest request, CallSettings callSettings = null)

Creates a config for discovery to scan and profile storage.

Parameters
NameDescription
requestCreateDiscoveryConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DiscoveryConfig

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
CreateDiscoveryConfigRequest request = new CreateDiscoveryConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DiscoveryConfig = new DiscoveryConfig(),
    ConfigId = "",
};
// Make the request
DiscoveryConfig response = dlpServiceClient.CreateDiscoveryConfig(request);

CreateDiscoveryConfig(string, DiscoveryConfig, CallSettings)

public virtual DiscoveryConfig CreateDiscoveryConfig(string parent, DiscoveryConfig discoveryConfig, CallSettings callSettings = null)

Creates a config for discovery to scan and profile storage.

Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

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

discoveryConfigDiscoveryConfig

Required. The DiscoveryConfig to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DiscoveryConfig

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
// Make the request
DiscoveryConfig response = dlpServiceClient.CreateDiscoveryConfig(parent, discoveryConfig);

CreateDiscoveryConfigAsync(LocationName, DiscoveryConfig, CallSettings)

public virtual Task<DiscoveryConfig> CreateDiscoveryConfigAsync(LocationName parent, DiscoveryConfig discoveryConfig, CallSettings callSettings = null)

Creates a config for discovery to scan and profile storage.

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

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

discoveryConfigDiscoveryConfig

Required. The DiscoveryConfig to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

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

CreateDiscoveryConfigAsync(LocationName, DiscoveryConfig, CancellationToken)

public virtual Task<DiscoveryConfig> CreateDiscoveryConfigAsync(LocationName parent, DiscoveryConfig discoveryConfig, CancellationToken cancellationToken)

Creates a config for discovery to scan and profile storage.

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

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

discoveryConfigDiscoveryConfig

Required. The DiscoveryConfig to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

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

CreateDiscoveryConfigAsync(CreateDiscoveryConfigRequest, CallSettings)

public virtual Task<DiscoveryConfig> CreateDiscoveryConfigAsync(CreateDiscoveryConfigRequest request, CallSettings callSettings = null)

Creates a config for discovery to scan and profile storage.

Parameters
NameDescription
requestCreateDiscoveryConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDiscoveryConfigRequest request = new CreateDiscoveryConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DiscoveryConfig = new DiscoveryConfig(),
    ConfigId = "",
};
// Make the request
DiscoveryConfig response = await dlpServiceClient.CreateDiscoveryConfigAsync(request);

CreateDiscoveryConfigAsync(CreateDiscoveryConfigRequest, CancellationToken)

public virtual Task<DiscoveryConfig> CreateDiscoveryConfigAsync(CreateDiscoveryConfigRequest request, CancellationToken cancellationToken)

Creates a config for discovery to scan and profile storage.

Parameters
NameDescription
requestCreateDiscoveryConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDiscoveryConfigRequest request = new CreateDiscoveryConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DiscoveryConfig = new DiscoveryConfig(),
    ConfigId = "",
};
// Make the request
DiscoveryConfig response = await dlpServiceClient.CreateDiscoveryConfigAsync(request);

CreateDiscoveryConfigAsync(string, DiscoveryConfig, CallSettings)

public virtual Task<DiscoveryConfig> CreateDiscoveryConfigAsync(string parent, DiscoveryConfig discoveryConfig, CallSettings callSettings = null)

Creates a config for discovery to scan and profile storage.

Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

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

discoveryConfigDiscoveryConfig

Required. The DiscoveryConfig to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
// Make the request
DiscoveryConfig response = await dlpServiceClient.CreateDiscoveryConfigAsync(parent, discoveryConfig);

CreateDiscoveryConfigAsync(string, DiscoveryConfig, CancellationToken)

public virtual Task<DiscoveryConfig> CreateDiscoveryConfigAsync(string parent, DiscoveryConfig discoveryConfig, CancellationToken cancellationToken)

Creates a config for discovery to scan and profile storage.

Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

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

discoveryConfigDiscoveryConfig

Required. The DiscoveryConfig to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
// Make the request
DiscoveryConfig response = await dlpServiceClient.CreateDiscoveryConfigAsync(parent, discoveryConfig);

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

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

CreateDlpJob(LocationName, RiskAnalysisJobConfig, CallSettings)

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

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

riskJobRiskAnalysisJobConfig

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

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

CreateDlpJob(ProjectName, InspectJobConfig, CallSettings)

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

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

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

CreateDlpJob(ProjectName, RiskAnalysisJobConfig, CallSettings)

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

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

riskJobRiskAnalysisJobConfig

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

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

CreateDlpJob(CreateDlpJobRequest, CallSettings)

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

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
requestCreateDlpJobRequest

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentstring

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

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

CreateDlpJob(string, RiskAnalysisJobConfig, CallSettings)

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

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentstring

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

riskJobRiskAnalysisJobConfig

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

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

CreateDlpJobAsync(LocationName, InspectJobConfig, CallSettings)

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

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDlpJob

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDlpJob

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

riskJobRiskAnalysisJobConfig

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDlpJob

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

riskJobRiskAnalysisJobConfig

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDlpJob

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDlpJob

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDlpJob

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

riskJobRiskAnalysisJobConfig

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDlpJob

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

riskJobRiskAnalysisJobConfig

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDlpJob

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
requestCreateDlpJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDlpJob

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
requestCreateDlpJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDlpJob

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentstring

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDlpJob

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentstring

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

inspectJobInspectJobConfig

An inspection job scans a storage repository for InfoTypes.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDlpJob

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentstring

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

riskJobRiskAnalysisJobConfig

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDlpJob

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

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
parentstring

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

riskJobRiskAnalysisJobConfig

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDlpJob

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

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

Parameters
NameDescription
requestCreateInspectTemplateRequest

The request 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 reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskInspectTemplate

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

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskInspectTemplate

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

Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskInspectTemplate

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

Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskInspectTemplate

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

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskInspectTemplate

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

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskInspectTemplate

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

Parameters
NameDescription
requestCreateInspectTemplateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInspectTemplate

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

Parameters
NameDescription
requestCreateInspectTemplateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskInspectTemplate

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

Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskInspectTemplate

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

Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskInspectTemplate

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

Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskInspectTemplate

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

Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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
TaskInspectTemplate

A Task containing the RPC response.

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

CreateJobTrigger(LocationName, JobTrigger, CallSettings)

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

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

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

jobTriggerJobTrigger

Required. The JobTrigger to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
JobTrigger

The RPC response.

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

CreateJobTrigger(ProjectName, JobTrigger, CallSettings)

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

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

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

jobTriggerJobTrigger

Required. The JobTrigger to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
JobTrigger

The RPC response.

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

CreateJobTrigger(CreateJobTriggerRequest, CallSettings)

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

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

Parameters
NameDescription
requestCreateJobTriggerRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
JobTrigger

The RPC response.

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

CreateJobTrigger(string, JobTrigger, CallSettings)

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

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

Parameters
NameDescription
parentstring

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

jobTriggerJobTrigger

Required. The JobTrigger to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
JobTrigger

The RPC response.

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

CreateJobTriggerAsync(LocationName, JobTrigger, CallSettings)

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

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

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

jobTriggerJobTrigger

Required. The JobTrigger to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

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

CreateJobTriggerAsync(LocationName, JobTrigger, CancellationToken)

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

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

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

jobTriggerJobTrigger

Required. The JobTrigger to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

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

CreateJobTriggerAsync(ProjectName, JobTrigger, CallSettings)

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

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

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

jobTriggerJobTrigger

Required. The JobTrigger to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

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

CreateJobTriggerAsync(ProjectName, JobTrigger, CancellationToken)

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

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

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

jobTriggerJobTrigger

Required. The JobTrigger to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

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

CreateJobTriggerAsync(CreateJobTriggerRequest, CallSettings)

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

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

Parameters
NameDescription
requestCreateJobTriggerRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

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

CreateJobTriggerAsync(CreateJobTriggerRequest, CancellationToken)

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

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

Parameters
NameDescription
requestCreateJobTriggerRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

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

CreateJobTriggerAsync(string, JobTrigger, CallSettings)

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

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

Parameters
NameDescription
parentstring

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

jobTriggerJobTrigger

Required. The JobTrigger to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

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

CreateJobTriggerAsync(string, JobTrigger, CancellationToken)

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

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

Parameters
NameDescription
parentstring

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

jobTriggerJobTrigger

Required. The JobTrigger to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

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

CreateStoredInfoType(LocationName, StoredInfoTypeConfig, CallSettings)

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

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

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

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

CreateStoredInfoType(OrganizationName, StoredInfoTypeConfig, CallSettings)

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

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

Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

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

CreateStoredInfoType(ProjectName, StoredInfoTypeConfig, CallSettings)

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

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

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

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

CreateStoredInfoType(CreateStoredInfoTypeRequest, CallSettings)

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

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

Parameters
NameDescription
requestCreateStoredInfoTypeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

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

CreateStoredInfoType(OrganizationLocationName, StoredInfoTypeConfig, CallSettings)

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

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

Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

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

CreateStoredInfoType(string, StoredInfoTypeConfig, CallSettings)

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

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

Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

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

CreateStoredInfoTypeAsync(LocationName, StoredInfoTypeConfig, CallSettings)

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

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

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

CreateStoredInfoTypeAsync(LocationName, StoredInfoTypeConfig, CancellationToken)

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

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

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

CreateStoredInfoTypeAsync(OrganizationName, StoredInfoTypeConfig, CallSettings)

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

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

Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

CreateStoredInfoTypeAsync(OrganizationName, StoredInfoTypeConfig, CancellationToken)

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

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

Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

CreateStoredInfoTypeAsync(ProjectName, StoredInfoTypeConfig, CallSettings)

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

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

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

CreateStoredInfoTypeAsync(ProjectName, StoredInfoTypeConfig, CancellationToken)

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

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

Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

CreateStoredInfoTypeAsync(CreateStoredInfoTypeRequest, CallSettings)

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

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

Parameters
NameDescription
requestCreateStoredInfoTypeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

CreateStoredInfoTypeAsync(CreateStoredInfoTypeRequest, CancellationToken)

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

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

Parameters
NameDescription
requestCreateStoredInfoTypeRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

CreateStoredInfoTypeAsync(OrganizationLocationName, StoredInfoTypeConfig, CallSettings)

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

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

Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

CreateStoredInfoTypeAsync(OrganizationLocationName, StoredInfoTypeConfig, CancellationToken)

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

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

Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

CreateStoredInfoTypeAsync(string, StoredInfoTypeConfig, CallSettings)

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

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

Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

CreateStoredInfoTypeAsync(string, StoredInfoTypeConfig, CancellationToken)

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

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

Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

parent=projects/example-project/locations/europe-west3

configStoredInfoTypeConfig

Required. Configuration of the storedInfoType to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

DeidentifyContent(DeidentifyContentRequest, CallSettings)

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

De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn more.

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
requestDeidentifyContentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyContentResponse

The RPC response.

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

DeidentifyContentAsync(DeidentifyContentRequest, CallSettings)

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

De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn more.

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
requestDeidentifyContentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDeidentifyContentResponse

A Task containing the RPC response.

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

DeidentifyContentAsync(DeidentifyContentRequest, CancellationToken)

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

De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn more.

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
requestDeidentifyContentRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDeidentifyContentResponse

A Task containing the RPC response.

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

DeleteDeidentifyTemplate(DeidentifyTemplateName, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteDeidentifyTemplate(string, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteDeidentifyTemplateAsync(DeidentifyTemplateName, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteDeidentifyTemplateAsync(DeidentifyTemplateName, CancellationToken)

public virtual Task DeleteDeidentifyTemplateAsync(DeidentifyTemplateName name, CancellationToken cancellationToken)
Parameters
NameDescription
nameDeidentifyTemplateName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest, CancellationToken)

public virtual Task DeleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest request, CancellationToken cancellationToken)
Parameters
NameDescription
requestDeleteDeidentifyTemplateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteDeidentifyTemplateAsync(string, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteDeidentifyTemplateAsync(string, CancellationToken)

public virtual Task DeleteDeidentifyTemplateAsync(string name, CancellationToken cancellationToken)
Parameters
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteDiscoveryConfig(DeleteDiscoveryConfigRequest, CallSettings)

public virtual void DeleteDiscoveryConfig(DeleteDiscoveryConfigRequest request, CallSettings callSettings = null)

Deletes a discovery configuration.

Parameters
NameDescription
requestDeleteDiscoveryConfigRequest

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)
DeleteDiscoveryConfigRequest request = new DeleteDiscoveryConfigRequest
{
    DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
};
// Make the request
dlpServiceClient.DeleteDiscoveryConfig(request);

DeleteDiscoveryConfig(DiscoveryConfigName, CallSettings)

public virtual void DeleteDiscoveryConfig(DiscoveryConfigName name, CallSettings callSettings = null)

Deletes a discovery configuration.

Parameters
NameDescription
nameDiscoveryConfigName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
// Make the request
dlpServiceClient.DeleteDiscoveryConfig(name);

DeleteDiscoveryConfig(string, CallSettings)

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

Deletes a discovery configuration.

Parameters
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
// Make the request
dlpServiceClient.DeleteDiscoveryConfig(name);

DeleteDiscoveryConfigAsync(DeleteDiscoveryConfigRequest, CallSettings)

public virtual Task DeleteDiscoveryConfigAsync(DeleteDiscoveryConfigRequest request, CallSettings callSettings = null)

Deletes a discovery configuration.

Parameters
NameDescription
requestDeleteDiscoveryConfigRequest

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)
DeleteDiscoveryConfigRequest request = new DeleteDiscoveryConfigRequest
{
    DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
};
// Make the request
await dlpServiceClient.DeleteDiscoveryConfigAsync(request);

DeleteDiscoveryConfigAsync(DeleteDiscoveryConfigRequest, CancellationToken)

public virtual Task DeleteDiscoveryConfigAsync(DeleteDiscoveryConfigRequest request, CancellationToken cancellationToken)

Deletes a discovery configuration.

Parameters
NameDescription
requestDeleteDiscoveryConfigRequest

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)
DeleteDiscoveryConfigRequest request = new DeleteDiscoveryConfigRequest
{
    DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
};
// Make the request
await dlpServiceClient.DeleteDiscoveryConfigAsync(request);

DeleteDiscoveryConfigAsync(DiscoveryConfigName, CallSettings)

public virtual Task DeleteDiscoveryConfigAsync(DiscoveryConfigName name, CallSettings callSettings = null)

Deletes a discovery configuration.

Parameters
NameDescription
nameDiscoveryConfigName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
// Make the request
await dlpServiceClient.DeleteDiscoveryConfigAsync(name);

DeleteDiscoveryConfigAsync(DiscoveryConfigName, CancellationToken)

public virtual Task DeleteDiscoveryConfigAsync(DiscoveryConfigName name, CancellationToken cancellationToken)

Deletes a discovery configuration.

Parameters
NameDescription
nameDiscoveryConfigName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
// Make the request
await dlpServiceClient.DeleteDiscoveryConfigAsync(name);

DeleteDiscoveryConfigAsync(string, CallSettings)

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

Deletes a discovery configuration.

Parameters
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
// Make the request
await dlpServiceClient.DeleteDiscoveryConfigAsync(name);

DeleteDiscoveryConfigAsync(string, CancellationToken)

public virtual Task DeleteDiscoveryConfigAsync(string name, CancellationToken cancellationToken)

Deletes a discovery configuration.

Parameters
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
// Make the request
await dlpServiceClient.DeleteDiscoveryConfigAsync(name);

DeleteDlpJob(DeleteDlpJobRequest, CallSettings)

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

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

Parameters
NameDescription
requestDeleteDlpJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteDlpJob(DlpJobName, CallSettings)

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

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

Parameters
NameDescription
nameDlpJobName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteDlpJob(string, CallSettings)

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

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

Parameters
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteDlpJobAsync(DeleteDlpJobRequest, CallSettings)

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

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

Parameters
NameDescription
requestDeleteDlpJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteDlpJobAsync(DeleteDlpJobRequest, CancellationToken)

public virtual Task DeleteDlpJobAsync(DeleteDlpJobRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestDeleteDlpJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteDlpJobAsync(DlpJobName, CallSettings)

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

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

Parameters
NameDescription
nameDlpJobName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteDlpJobAsync(DlpJobName, CancellationToken)

public virtual Task DeleteDlpJobAsync(DlpJobName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameDlpJobName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteDlpJobAsync(string, CallSettings)

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

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

Parameters
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteDlpJobAsync(string, CancellationToken)

public virtual Task DeleteDlpJobAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteInspectTemplate(DeleteInspectTemplateRequest, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteInspectTemplate(InspectTemplateName, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteInspectTemplate(string, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteInspectTemplateAsync(DeleteInspectTemplateRequest, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteInspectTemplateAsync(DeleteInspectTemplateRequest, CancellationToken)

public virtual Task DeleteInspectTemplateAsync(DeleteInspectTemplateRequest request, CancellationToken cancellationToken)
Parameters
NameDescription
requestDeleteInspectTemplateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteInspectTemplateAsync(InspectTemplateName, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteInspectTemplateAsync(InspectTemplateName, CancellationToken)

public virtual Task DeleteInspectTemplateAsync(InspectTemplateName name, CancellationToken cancellationToken)
Parameters
NameDescription
nameInspectTemplateName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteInspectTemplateAsync(string, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteInspectTemplateAsync(string, CancellationToken)

public virtual Task DeleteInspectTemplateAsync(string name, CancellationToken cancellationToken)
Parameters
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteJobTrigger(DeleteJobTriggerRequest, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteJobTrigger(JobTriggerName, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteJobTrigger(string, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteJobTriggerAsync(DeleteJobTriggerRequest, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteJobTriggerAsync(DeleteJobTriggerRequest, CancellationToken)

public virtual Task DeleteJobTriggerAsync(DeleteJobTriggerRequest request, CancellationToken cancellationToken)
Parameters
NameDescription
requestDeleteJobTriggerRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteJobTriggerAsync(JobTriggerName, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteJobTriggerAsync(JobTriggerName, CancellationToken)

public virtual Task DeleteJobTriggerAsync(JobTriggerName name, CancellationToken cancellationToken)
Parameters
NameDescription
nameJobTriggerName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteJobTriggerAsync(string, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteJobTriggerAsync(string, CancellationToken)

public virtual Task DeleteJobTriggerAsync(string name, CancellationToken cancellationToken)
Parameters
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteStoredInfoType(DeleteStoredInfoTypeRequest, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteStoredInfoType(StoredInfoTypeName, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteStoredInfoType(string, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

DeleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest, CancellationToken)

public virtual Task DeleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest request, CancellationToken cancellationToken)
Parameters
NameDescription
requestDeleteStoredInfoTypeRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteStoredInfoTypeAsync(StoredInfoTypeName, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteStoredInfoTypeAsync(StoredInfoTypeName, CancellationToken)

public virtual Task DeleteStoredInfoTypeAsync(StoredInfoTypeName name, CancellationToken cancellationToken)
Parameters
NameDescription
nameStoredInfoTypeName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteStoredInfoTypeAsync(string, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

DeleteStoredInfoTypeAsync(string, CancellationToken)

public virtual Task DeleteStoredInfoTypeAsync(string name, CancellationToken cancellationToken)
Parameters
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

FinishDlpJob(FinishDlpJobRequest, CallSettings)

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

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

Parameters
NameDescription
requestFinishDlpJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

FinishDlpJobAsync(FinishDlpJobRequest, CallSettings)

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

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

Parameters
NameDescription
requestFinishDlpJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

FinishDlpJobAsync(FinishDlpJobRequest, CancellationToken)

public virtual Task FinishDlpJobAsync(FinishDlpJobRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestFinishDlpJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

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

GetColumnDataProfile(ColumnDataProfileName, CallSettings)

public virtual ColumnDataProfile GetColumnDataProfile(ColumnDataProfileName name, CallSettings callSettings = null)

Gets a column data profile.

Parameters
NameDescription
nameColumnDataProfileName

Required. Resource name, for example organizations/12345/locations/us/columnDataProfiles/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ColumnDataProfile

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ColumnDataProfileName name = ColumnDataProfileName.FromOrganizationLocationColumnDataProfile("[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]");
// Make the request
ColumnDataProfile response = dlpServiceClient.GetColumnDataProfile(name);

GetColumnDataProfile(GetColumnDataProfileRequest, CallSettings)

public virtual ColumnDataProfile GetColumnDataProfile(GetColumnDataProfileRequest request, CallSettings callSettings = null)

Gets a column data profile.

Parameters
NameDescription
requestGetColumnDataProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ColumnDataProfile

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
GetColumnDataProfileRequest request = new GetColumnDataProfileRequest
{
    ColumnDataProfileName = ColumnDataProfileName.FromOrganizationLocationColumnDataProfile("[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]"),
};
// Make the request
ColumnDataProfile response = dlpServiceClient.GetColumnDataProfile(request);

GetColumnDataProfile(string, CallSettings)

public virtual ColumnDataProfile GetColumnDataProfile(string name, CallSettings callSettings = null)

Gets a column data profile.

Parameters
NameDescription
namestring

Required. Resource name, for example organizations/12345/locations/us/columnDataProfiles/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ColumnDataProfile

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/columnDataProfiles/[COLUMN_DATA_PROFILE]";
// Make the request
ColumnDataProfile response = dlpServiceClient.GetColumnDataProfile(name);

GetColumnDataProfileAsync(ColumnDataProfileName, CallSettings)

public virtual Task<ColumnDataProfile> GetColumnDataProfileAsync(ColumnDataProfileName name, CallSettings callSettings = null)

Gets a column data profile.

Parameters
NameDescription
nameColumnDataProfileName

Required. Resource name, for example organizations/12345/locations/us/columnDataProfiles/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskColumnDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ColumnDataProfileName name = ColumnDataProfileName.FromOrganizationLocationColumnDataProfile("[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]");
// Make the request
ColumnDataProfile response = await dlpServiceClient.GetColumnDataProfileAsync(name);

GetColumnDataProfileAsync(ColumnDataProfileName, CancellationToken)

public virtual Task<ColumnDataProfile> GetColumnDataProfileAsync(ColumnDataProfileName name, CancellationToken cancellationToken)

Gets a column data profile.

Parameters
NameDescription
nameColumnDataProfileName

Required. Resource name, for example organizations/12345/locations/us/columnDataProfiles/53234423.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskColumnDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ColumnDataProfileName name = ColumnDataProfileName.FromOrganizationLocationColumnDataProfile("[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]");
// Make the request
ColumnDataProfile response = await dlpServiceClient.GetColumnDataProfileAsync(name);

GetColumnDataProfileAsync(GetColumnDataProfileRequest, CallSettings)

public virtual Task<ColumnDataProfile> GetColumnDataProfileAsync(GetColumnDataProfileRequest request, CallSettings callSettings = null)

Gets a column data profile.

Parameters
NameDescription
requestGetColumnDataProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskColumnDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetColumnDataProfileRequest request = new GetColumnDataProfileRequest
{
    ColumnDataProfileName = ColumnDataProfileName.FromOrganizationLocationColumnDataProfile("[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]"),
};
// Make the request
ColumnDataProfile response = await dlpServiceClient.GetColumnDataProfileAsync(request);

GetColumnDataProfileAsync(GetColumnDataProfileRequest, CancellationToken)

public virtual Task<ColumnDataProfile> GetColumnDataProfileAsync(GetColumnDataProfileRequest request, CancellationToken cancellationToken)

Gets a column data profile.

Parameters
NameDescription
requestGetColumnDataProfileRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskColumnDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetColumnDataProfileRequest request = new GetColumnDataProfileRequest
{
    ColumnDataProfileName = ColumnDataProfileName.FromOrganizationLocationColumnDataProfile("[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]"),
};
// Make the request
ColumnDataProfile response = await dlpServiceClient.GetColumnDataProfileAsync(request);

GetColumnDataProfileAsync(string, CallSettings)

public virtual Task<ColumnDataProfile> GetColumnDataProfileAsync(string name, CallSettings callSettings = null)

Gets a column data profile.

Parameters
NameDescription
namestring

Required. Resource name, for example organizations/12345/locations/us/columnDataProfiles/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskColumnDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/columnDataProfiles/[COLUMN_DATA_PROFILE]";
// Make the request
ColumnDataProfile response = await dlpServiceClient.GetColumnDataProfileAsync(name);

GetColumnDataProfileAsync(string, CancellationToken)

public virtual Task<ColumnDataProfile> GetColumnDataProfileAsync(string name, CancellationToken cancellationToken)

Gets a column data profile.

Parameters
NameDescription
namestring

Required. Resource name, for example organizations/12345/locations/us/columnDataProfiles/53234423.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskColumnDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/columnDataProfiles/[COLUMN_DATA_PROFILE]";
// Make the request
ColumnDataProfile response = await dlpServiceClient.GetColumnDataProfileAsync(name);

GetDeidentifyTemplate(DeidentifyTemplateName, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyTemplate

The RPC response.

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

GetDeidentifyTemplate(GetDeidentifyTemplateRequest, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyTemplate

The RPC response.

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

GetDeidentifyTemplate(string, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyTemplate

The RPC response.

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

GetDeidentifyTemplateAsync(DeidentifyTemplateName, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDeidentifyTemplate

A Task containing the RPC response.

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

GetDeidentifyTemplateAsync(DeidentifyTemplateName, CancellationToken)

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

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDeidentifyTemplate

A Task containing the RPC response.

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

GetDeidentifyTemplateAsync(GetDeidentifyTemplateRequest, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDeidentifyTemplate

A Task containing the RPC response.

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

GetDeidentifyTemplateAsync(GetDeidentifyTemplateRequest, CancellationToken)

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

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDeidentifyTemplate

A Task containing the RPC response.

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

GetDeidentifyTemplateAsync(string, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDeidentifyTemplate

A Task containing the RPC response.

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

GetDeidentifyTemplateAsync(string, CancellationToken)

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

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDeidentifyTemplate

A Task containing the RPC response.

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

GetDiscoveryConfig(DiscoveryConfigName, CallSettings)

public virtual DiscoveryConfig GetDiscoveryConfig(DiscoveryConfigName name, CallSettings callSettings = null)

Gets a discovery configuration.

Parameters
NameDescription
nameDiscoveryConfigName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DiscoveryConfig

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
// Make the request
DiscoveryConfig response = dlpServiceClient.GetDiscoveryConfig(name);

GetDiscoveryConfig(GetDiscoveryConfigRequest, CallSettings)

public virtual DiscoveryConfig GetDiscoveryConfig(GetDiscoveryConfigRequest request, CallSettings callSettings = null)

Gets a discovery configuration.

Parameters
NameDescription
requestGetDiscoveryConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DiscoveryConfig

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
GetDiscoveryConfigRequest request = new GetDiscoveryConfigRequest
{
    DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
};
// Make the request
DiscoveryConfig response = dlpServiceClient.GetDiscoveryConfig(request);

GetDiscoveryConfig(string, CallSettings)

public virtual DiscoveryConfig GetDiscoveryConfig(string name, CallSettings callSettings = null)

Gets a discovery configuration.

Parameters
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DiscoveryConfig

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
// Make the request
DiscoveryConfig response = dlpServiceClient.GetDiscoveryConfig(name);

GetDiscoveryConfigAsync(DiscoveryConfigName, CallSettings)

public virtual Task<DiscoveryConfig> GetDiscoveryConfigAsync(DiscoveryConfigName name, CallSettings callSettings = null)

Gets a discovery configuration.

Parameters
NameDescription
nameDiscoveryConfigName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
// Make the request
DiscoveryConfig response = await dlpServiceClient.GetDiscoveryConfigAsync(name);

GetDiscoveryConfigAsync(DiscoveryConfigName, CancellationToken)

public virtual Task<DiscoveryConfig> GetDiscoveryConfigAsync(DiscoveryConfigName name, CancellationToken cancellationToken)

Gets a discovery configuration.

Parameters
NameDescription
nameDiscoveryConfigName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
// Make the request
DiscoveryConfig response = await dlpServiceClient.GetDiscoveryConfigAsync(name);

GetDiscoveryConfigAsync(GetDiscoveryConfigRequest, CallSettings)

public virtual Task<DiscoveryConfig> GetDiscoveryConfigAsync(GetDiscoveryConfigRequest request, CallSettings callSettings = null)

Gets a discovery configuration.

Parameters
NameDescription
requestGetDiscoveryConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetDiscoveryConfigRequest request = new GetDiscoveryConfigRequest
{
    DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
};
// Make the request
DiscoveryConfig response = await dlpServiceClient.GetDiscoveryConfigAsync(request);

GetDiscoveryConfigAsync(GetDiscoveryConfigRequest, CancellationToken)

public virtual Task<DiscoveryConfig> GetDiscoveryConfigAsync(GetDiscoveryConfigRequest request, CancellationToken cancellationToken)

Gets a discovery configuration.

Parameters
NameDescription
requestGetDiscoveryConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetDiscoveryConfigRequest request = new GetDiscoveryConfigRequest
{
    DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
};
// Make the request
DiscoveryConfig response = await dlpServiceClient.GetDiscoveryConfigAsync(request);

GetDiscoveryConfigAsync(string, CallSettings)

public virtual Task<DiscoveryConfig> GetDiscoveryConfigAsync(string name, CallSettings callSettings = null)

Gets a discovery configuration.

Parameters
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
// Make the request
DiscoveryConfig response = await dlpServiceClient.GetDiscoveryConfigAsync(name);

GetDiscoveryConfigAsync(string, CancellationToken)

public virtual Task<DiscoveryConfig> GetDiscoveryConfigAsync(string name, CancellationToken cancellationToken)

Gets a discovery configuration.

Parameters
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
// Make the request
DiscoveryConfig response = await dlpServiceClient.GetDiscoveryConfigAsync(name);

GetDlpJob(DlpJobName, CallSettings)

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

Required. The name of the DlpJob resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

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

GetDlpJob(GetDlpJobRequest, CallSettings)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

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

GetDlpJob(string, CallSettings)

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

Required. The name of the DlpJob resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DlpJob

The RPC response.

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

GetDlpJobAsync(DlpJobName, CallSettings)

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

Required. The name of the DlpJob resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDlpJob

A Task containing the RPC response.

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

GetDlpJobAsync(DlpJobName, CancellationToken)

public virtual Task<DlpJob> GetDlpJobAsync(DlpJobName name, CancellationToken cancellationToken)
Parameters
NameDescription
nameDlpJobName

Required. The name of the DlpJob resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDlpJob

A Task containing the RPC response.

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

GetDlpJobAsync(GetDlpJobRequest, CallSettings)

public virtual Task<DlpJob> GetDlpJobAsync(GetDlpJobRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestGetDlpJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDlpJob

A Task containing the RPC response.

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

GetDlpJobAsync(GetDlpJobRequest, CancellationToken)

public virtual Task<DlpJob> GetDlpJobAsync(GetDlpJobRequest request, CancellationToken cancellationToken)
Parameters
NameDescription
requestGetDlpJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDlpJob

A Task containing the RPC response.

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

GetDlpJobAsync(string, CallSettings)

public virtual Task<DlpJob> GetDlpJobAsync(string name, CallSettings callSettings = null)
Parameters
NameDescription
namestring

Required. The name of the DlpJob resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDlpJob

A Task containing the RPC response.

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

GetDlpJobAsync(string, CancellationToken)

public virtual Task<DlpJob> GetDlpJobAsync(string name, CancellationToken cancellationToken)
Parameters
NameDescription
namestring

Required. The name of the DlpJob resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDlpJob

A Task containing the RPC response.

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

GetInspectTemplate(GetInspectTemplateRequest, CallSettings)

public virtual InspectTemplate GetInspectTemplate(GetInspectTemplateRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestGetInspectTemplateRequest

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)
GetInspectTemplateRequest request = new GetInspectTemplateRequest
{
    InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
};
// Make the request
InspectTemplate response = dlpServiceClient.GetInspectTemplate(request);

GetInspectTemplate(InspectTemplateName, CallSettings)

public virtual InspectTemplate GetInspectTemplate(InspectTemplateName name, CallSettings callSettings = null)
Parameters
NameDescription
nameInspectTemplateName

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

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)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
// Make the request
InspectTemplate response = dlpServiceClient.GetInspectTemplate(name);

GetInspectTemplate(string, CallSettings)

public virtual InspectTemplate GetInspectTemplate(string name, CallSettings callSettings = null)
Parameters
NameDescription
namestring

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

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 name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
// Make the request
InspectTemplate response = dlpServiceClient.GetInspectTemplate(name);

GetInspectTemplateAsync(GetInspectTemplateRequest, CallSettings)

public virtual Task<InspectTemplate> GetInspectTemplateAsync(GetInspectTemplateRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestGetInspectTemplateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInspectTemplate

A Task containing the RPC response.

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

GetInspectTemplateAsync(GetInspectTemplateRequest, CancellationToken)

public virtual Task<InspectTemplate> GetInspectTemplateAsync(GetInspectTemplateRequest request, CancellationToken cancellationToken)
Parameters
NameDescription
requestGetInspectTemplateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskInspectTemplate

A Task containing the RPC response.

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

GetInspectTemplateAsync(InspectTemplateName, CallSettings)

public virtual Task<InspectTemplate> GetInspectTemplateAsync(InspectTemplateName name, CallSettings callSettings = null)
Parameters
NameDescription
nameInspectTemplateName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInspectTemplate

A Task containing the RPC response.

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

GetInspectTemplateAsync(InspectTemplateName, CancellationToken)

public virtual Task<InspectTemplate> GetInspectTemplateAsync(InspectTemplateName name, CancellationToken cancellationToken)
Parameters
NameDescription
nameInspectTemplateName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskInspectTemplate

A Task containing the RPC response.

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

GetInspectTemplateAsync(string, CallSettings)

public virtual Task<InspectTemplate> GetInspectTemplateAsync(string name, CallSettings callSettings = null)
Parameters
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInspectTemplate

A Task containing the RPC response.

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

GetInspectTemplateAsync(string, CancellationToken)

public virtual Task<InspectTemplate> GetInspectTemplateAsync(string name, CancellationToken cancellationToken)
Parameters
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskInspectTemplate

A Task containing the RPC response.

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

GetJobTrigger(GetJobTriggerRequest, CallSettings)

public virtual JobTrigger GetJobTrigger(GetJobTriggerRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestGetJobTriggerRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
JobTrigger

The RPC response.

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

GetJobTrigger(JobTriggerName, CallSettings)

public virtual JobTrigger GetJobTrigger(JobTriggerName name, CallSettings callSettings = null)
Parameters
NameDescription
nameJobTriggerName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
JobTrigger

The RPC response.

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

GetJobTrigger(string, CallSettings)

public virtual JobTrigger GetJobTrigger(string name, CallSettings callSettings = null)
Parameters
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
JobTrigger

The RPC response.

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

GetJobTriggerAsync(GetJobTriggerRequest, CallSettings)

public virtual Task<JobTrigger> GetJobTriggerAsync(GetJobTriggerRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestGetJobTriggerRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

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

GetJobTriggerAsync(GetJobTriggerRequest, CancellationToken)

public virtual Task<JobTrigger> GetJobTriggerAsync(GetJobTriggerRequest request, CancellationToken cancellationToken)
Parameters
NameDescription
requestGetJobTriggerRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

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

GetJobTriggerAsync(JobTriggerName, CallSettings)

public virtual Task<JobTrigger> GetJobTriggerAsync(JobTriggerName name, CallSettings callSettings = null)
Parameters
NameDescription
nameJobTriggerName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

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

GetJobTriggerAsync(JobTriggerName, CancellationToken)

public virtual Task<JobTrigger> GetJobTriggerAsync(JobTriggerName name, CancellationToken cancellationToken)
Parameters
NameDescription
nameJobTriggerName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

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

GetJobTriggerAsync(string, CallSettings)

public virtual Task<JobTrigger> GetJobTriggerAsync(string name, CallSettings callSettings = null)
Parameters
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

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

GetJobTriggerAsync(string, CancellationToken)

public virtual Task<JobTrigger> GetJobTriggerAsync(string name, CancellationToken cancellationToken)
Parameters
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

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

GetProjectDataProfile(GetProjectDataProfileRequest, CallSettings)

public virtual ProjectDataProfile GetProjectDataProfile(GetProjectDataProfileRequest request, CallSettings callSettings = null)

Gets a project data profile.

Parameters
NameDescription
requestGetProjectDataProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ProjectDataProfile

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
GetProjectDataProfileRequest request = new GetProjectDataProfileRequest
{
    ProjectDataProfileName = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"),
};
// Make the request
ProjectDataProfile response = dlpServiceClient.GetProjectDataProfile(request);

GetProjectDataProfile(ProjectDataProfileName, CallSettings)

public virtual ProjectDataProfile GetProjectDataProfile(ProjectDataProfileName name, CallSettings callSettings = null)

Gets a project data profile.

Parameters
NameDescription
nameProjectDataProfileName

Required. Resource name, for example organizations/12345/locations/us/projectDataProfiles/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ProjectDataProfile

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectDataProfileName name = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]");
// Make the request
ProjectDataProfile response = dlpServiceClient.GetProjectDataProfile(name);

GetProjectDataProfile(string, CallSettings)

public virtual ProjectDataProfile GetProjectDataProfile(string name, CallSettings callSettings = null)

Gets a project data profile.

Parameters
NameDescription
namestring

Required. Resource name, for example organizations/12345/locations/us/projectDataProfiles/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ProjectDataProfile

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/projectDataProfiles/[PROJECT_DATA_PROFILE]";
// Make the request
ProjectDataProfile response = dlpServiceClient.GetProjectDataProfile(name);

GetProjectDataProfileAsync(GetProjectDataProfileRequest, CallSettings)

public virtual Task<ProjectDataProfile> GetProjectDataProfileAsync(GetProjectDataProfileRequest request, CallSettings callSettings = null)

Gets a project data profile.

Parameters
NameDescription
requestGetProjectDataProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskProjectDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetProjectDataProfileRequest request = new GetProjectDataProfileRequest
{
    ProjectDataProfileName = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"),
};
// Make the request
ProjectDataProfile response = await dlpServiceClient.GetProjectDataProfileAsync(request);

GetProjectDataProfileAsync(GetProjectDataProfileRequest, CancellationToken)

public virtual Task<ProjectDataProfile> GetProjectDataProfileAsync(GetProjectDataProfileRequest request, CancellationToken cancellationToken)

Gets a project data profile.

Parameters
NameDescription
requestGetProjectDataProfileRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskProjectDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetProjectDataProfileRequest request = new GetProjectDataProfileRequest
{
    ProjectDataProfileName = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"),
};
// Make the request
ProjectDataProfile response = await dlpServiceClient.GetProjectDataProfileAsync(request);

GetProjectDataProfileAsync(ProjectDataProfileName, CallSettings)

public virtual Task<ProjectDataProfile> GetProjectDataProfileAsync(ProjectDataProfileName name, CallSettings callSettings = null)

Gets a project data profile.

Parameters
NameDescription
nameProjectDataProfileName

Required. Resource name, for example organizations/12345/locations/us/projectDataProfiles/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskProjectDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectDataProfileName name = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]");
// Make the request
ProjectDataProfile response = await dlpServiceClient.GetProjectDataProfileAsync(name);

GetProjectDataProfileAsync(ProjectDataProfileName, CancellationToken)

public virtual Task<ProjectDataProfile> GetProjectDataProfileAsync(ProjectDataProfileName name, CancellationToken cancellationToken)

Gets a project data profile.

Parameters
NameDescription
nameProjectDataProfileName

Required. Resource name, for example organizations/12345/locations/us/projectDataProfiles/53234423.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskProjectDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectDataProfileName name = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]");
// Make the request
ProjectDataProfile response = await dlpServiceClient.GetProjectDataProfileAsync(name);

GetProjectDataProfileAsync(string, CallSettings)

public virtual Task<ProjectDataProfile> GetProjectDataProfileAsync(string name, CallSettings callSettings = null)

Gets a project data profile.

Parameters
NameDescription
namestring

Required. Resource name, for example organizations/12345/locations/us/projectDataProfiles/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskProjectDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/projectDataProfiles/[PROJECT_DATA_PROFILE]";
// Make the request
ProjectDataProfile response = await dlpServiceClient.GetProjectDataProfileAsync(name);

GetProjectDataProfileAsync(string, CancellationToken)

public virtual Task<ProjectDataProfile> GetProjectDataProfileAsync(string name, CancellationToken cancellationToken)

Gets a project data profile.

Parameters
NameDescription
namestring

Required. Resource name, for example organizations/12345/locations/us/projectDataProfiles/53234423.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskProjectDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/projectDataProfiles/[PROJECT_DATA_PROFILE]";
// Make the request
ProjectDataProfile response = await dlpServiceClient.GetProjectDataProfileAsync(name);

GetStoredInfoType(GetStoredInfoTypeRequest, CallSettings)

public virtual StoredInfoType GetStoredInfoType(GetStoredInfoTypeRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestGetStoredInfoTypeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

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

GetStoredInfoType(StoredInfoTypeName, CallSettings)

public virtual StoredInfoType GetStoredInfoType(StoredInfoTypeName name, CallSettings callSettings = null)
Parameters
NameDescription
nameStoredInfoTypeName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

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

GetStoredInfoType(string, CallSettings)

public virtual StoredInfoType GetStoredInfoType(string name, CallSettings callSettings = null)
Parameters
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

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

GetStoredInfoTypeAsync(GetStoredInfoTypeRequest, CallSettings)

public virtual Task<StoredInfoType> GetStoredInfoTypeAsync(GetStoredInfoTypeRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestGetStoredInfoTypeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

GetStoredInfoTypeAsync(GetStoredInfoTypeRequest, CancellationToken)

public virtual Task<StoredInfoType> GetStoredInfoTypeAsync(GetStoredInfoTypeRequest request, CancellationToken cancellationToken)
Parameters
NameDescription
requestGetStoredInfoTypeRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

GetStoredInfoTypeAsync(StoredInfoTypeName, CallSettings)

public virtual Task<StoredInfoType> GetStoredInfoTypeAsync(StoredInfoTypeName name, CallSettings callSettings = null)
Parameters
NameDescription
nameStoredInfoTypeName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

GetStoredInfoTypeAsync(StoredInfoTypeName, CancellationToken)

public virtual Task<StoredInfoType> GetStoredInfoTypeAsync(StoredInfoTypeName name, CancellationToken cancellationToken)
Parameters
NameDescription
nameStoredInfoTypeName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

GetStoredInfoTypeAsync(string, CallSettings)

public virtual Task<StoredInfoType> GetStoredInfoTypeAsync(string name, CallSettings callSettings = null)
Parameters
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

GetStoredInfoTypeAsync(string, CancellationToken)

public virtual Task<StoredInfoType> GetStoredInfoTypeAsync(string name, CancellationToken cancellationToken)
Parameters
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

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

GetTableDataProfile(GetTableDataProfileRequest, CallSettings)

public virtual TableDataProfile GetTableDataProfile(GetTableDataProfileRequest request, CallSettings callSettings = null)

Gets a table data profile.

Parameters
NameDescription
requestGetTableDataProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TableDataProfile

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
GetTableDataProfileRequest request = new GetTableDataProfileRequest
{
    TableDataProfileName = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"),
};
// Make the request
TableDataProfile response = dlpServiceClient.GetTableDataProfile(request);

GetTableDataProfile(TableDataProfileName, CallSettings)

public virtual TableDataProfile GetTableDataProfile(TableDataProfileName name, CallSettings callSettings = null)

Gets a table data profile.

Parameters
NameDescription
nameTableDataProfileName

Required. Resource name, for example organizations/12345/locations/us/tableDataProfiles/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TableDataProfile

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
TableDataProfileName name = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]");
// Make the request
TableDataProfile response = dlpServiceClient.GetTableDataProfile(name);

GetTableDataProfile(string, CallSettings)

public virtual TableDataProfile GetTableDataProfile(string name, CallSettings callSettings = null)

Gets a table data profile.

Parameters
NameDescription
namestring

Required. Resource name, for example organizations/12345/locations/us/tableDataProfiles/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TableDataProfile

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/tableDataProfiles/[TABLE_DATA_PROFILE]";
// Make the request
TableDataProfile response = dlpServiceClient.GetTableDataProfile(name);

GetTableDataProfileAsync(GetTableDataProfileRequest, CallSettings)

public virtual Task<TableDataProfile> GetTableDataProfileAsync(GetTableDataProfileRequest request, CallSettings callSettings = null)

Gets a table data profile.

Parameters
NameDescription
requestGetTableDataProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTableDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetTableDataProfileRequest request = new GetTableDataProfileRequest
{
    TableDataProfileName = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"),
};
// Make the request
TableDataProfile response = await dlpServiceClient.GetTableDataProfileAsync(request);

GetTableDataProfileAsync(GetTableDataProfileRequest, CancellationToken)

public virtual Task<TableDataProfile> GetTableDataProfileAsync(GetTableDataProfileRequest request, CancellationToken cancellationToken)

Gets a table data profile.

Parameters
NameDescription
requestGetTableDataProfileRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTableDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetTableDataProfileRequest request = new GetTableDataProfileRequest
{
    TableDataProfileName = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"),
};
// Make the request
TableDataProfile response = await dlpServiceClient.GetTableDataProfileAsync(request);

GetTableDataProfileAsync(TableDataProfileName, CallSettings)

public virtual Task<TableDataProfile> GetTableDataProfileAsync(TableDataProfileName name, CallSettings callSettings = null)

Gets a table data profile.

Parameters
NameDescription
nameTableDataProfileName

Required. Resource name, for example organizations/12345/locations/us/tableDataProfiles/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTableDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
TableDataProfileName name = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]");
// Make the request
TableDataProfile response = await dlpServiceClient.GetTableDataProfileAsync(name);

GetTableDataProfileAsync(TableDataProfileName, CancellationToken)

public virtual Task<TableDataProfile> GetTableDataProfileAsync(TableDataProfileName name, CancellationToken cancellationToken)

Gets a table data profile.

Parameters
NameDescription
nameTableDataProfileName

Required. Resource name, for example organizations/12345/locations/us/tableDataProfiles/53234423.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTableDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
TableDataProfileName name = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]");
// Make the request
TableDataProfile response = await dlpServiceClient.GetTableDataProfileAsync(name);

GetTableDataProfileAsync(string, CallSettings)

public virtual Task<TableDataProfile> GetTableDataProfileAsync(string name, CallSettings callSettings = null)

Gets a table data profile.

Parameters
NameDescription
namestring

Required. Resource name, for example organizations/12345/locations/us/tableDataProfiles/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTableDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/tableDataProfiles/[TABLE_DATA_PROFILE]";
// Make the request
TableDataProfile response = await dlpServiceClient.GetTableDataProfileAsync(name);

GetTableDataProfileAsync(string, CancellationToken)

public virtual Task<TableDataProfile> GetTableDataProfileAsync(string name, CancellationToken cancellationToken)

Gets a table data profile.

Parameters
NameDescription
namestring

Required. Resource name, for example organizations/12345/locations/us/tableDataProfiles/53234423.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTableDataProfile

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/tableDataProfiles/[TABLE_DATA_PROFILE]";
// Make the request
TableDataProfile response = await dlpServiceClient.GetTableDataProfileAsync(name);

HybridInspectDlpJob(DlpJobName, CallSettings)

public virtual HybridInspectResponse HybridInspectDlpJob(DlpJobName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameDlpJobName

Required. Resource name of the job to execute a hybrid inspect on, for example projects/dlp-test-project/dlpJob/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
HybridInspectResponse

The RPC response.

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

HybridInspectDlpJob(HybridInspectDlpJobRequest, CallSettings)

public virtual HybridInspectResponse HybridInspectDlpJob(HybridInspectDlpJobRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestHybridInspectDlpJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
HybridInspectResponse

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
HybridInspectDlpJobRequest request = new HybridInspectDlpJobRequest
{
    DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
    HybridItem = new HybridContentItem(),
};
// Make the request
HybridInspectResponse response = dlpServiceClient.HybridInspectDlpJob(request);

HybridInspectDlpJob(string, CallSettings)

public virtual HybridInspectResponse HybridInspectDlpJob(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
namestring

Required. Resource name of the job to execute a hybrid inspect on, for example projects/dlp-test-project/dlpJob/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
HybridInspectResponse

The RPC response.

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

HybridInspectDlpJobAsync(DlpJobName, CallSettings)

public virtual Task<HybridInspectResponse> HybridInspectDlpJobAsync(DlpJobName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameDlpJobName

Required. Resource name of the job to execute a hybrid inspect on, for example projects/dlp-test-project/dlpJob/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskHybridInspectResponse

A Task containing the RPC response.

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

HybridInspectDlpJobAsync(DlpJobName, CancellationToken)

public virtual Task<HybridInspectResponse> HybridInspectDlpJobAsync(DlpJobName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameDlpJobName

Required. Resource name of the job to execute a hybrid inspect on, for example projects/dlp-test-project/dlpJob/53234423.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskHybridInspectResponse

A Task containing the RPC response.

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

HybridInspectDlpJobAsync(HybridInspectDlpJobRequest, CallSettings)

public virtual Task<HybridInspectResponse> HybridInspectDlpJobAsync(HybridInspectDlpJobRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestHybridInspectDlpJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskHybridInspectResponse

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
HybridInspectDlpJobRequest request = new HybridInspectDlpJobRequest
{
    DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
    HybridItem = new HybridContentItem(),
};
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectDlpJobAsync(request);

HybridInspectDlpJobAsync(HybridInspectDlpJobRequest, CancellationToken)

public virtual Task<HybridInspectResponse> HybridInspectDlpJobAsync(HybridInspectDlpJobRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestHybridInspectDlpJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskHybridInspectResponse

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
HybridInspectDlpJobRequest request = new HybridInspectDlpJobRequest
{
    DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
    HybridItem = new HybridContentItem(),
};
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectDlpJobAsync(request);

HybridInspectDlpJobAsync(string, CallSettings)

public virtual Task<HybridInspectResponse> HybridInspectDlpJobAsync(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
namestring

Required. Resource name of the job to execute a hybrid inspect on, for example projects/dlp-test-project/dlpJob/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskHybridInspectResponse

A Task containing the RPC response.

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

HybridInspectDlpJobAsync(string, CancellationToken)

public virtual Task<HybridInspectResponse> HybridInspectDlpJobAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
namestring

Required. Resource name of the job to execute a hybrid inspect on, for example projects/dlp-test-project/dlpJob/53234423.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskHybridInspectResponse

A Task containing the RPC response.

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

HybridInspectJobTrigger(HybridInspectJobTriggerRequest, CallSettings)

public virtual HybridInspectResponse HybridInspectJobTrigger(HybridInspectJobTriggerRequest request, CallSettings callSettings = null)

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.

Parameters
NameDescription
requestHybridInspectJobTriggerRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
HybridInspectResponse

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
HybridInspectJobTriggerRequest request = new HybridInspectJobTriggerRequest
{
    JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
    HybridItem = new HybridContentItem(),
};
// Make the request
HybridInspectResponse response = dlpServiceClient.HybridInspectJobTrigger(request);

HybridInspectJobTrigger(JobTriggerName, CallSettings)

public virtual HybridInspectResponse HybridInspectJobTrigger(JobTriggerName name, CallSettings callSettings = null)

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.

Parameters
NameDescription
nameJobTriggerName

Required. Resource name of the trigger to execute a hybrid inspect on, for example projects/dlp-test-project/jobTriggers/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
HybridInspectResponse

The RPC response.

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

HybridInspectJobTrigger(string, CallSettings)

public virtual HybridInspectResponse HybridInspectJobTrigger(string name, CallSettings callSettings = null)

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.

Parameters
NameDescription
namestring

Required. Resource name of the trigger to execute a hybrid inspect on, for example projects/dlp-test-project/jobTriggers/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
HybridInspectResponse

The RPC response.

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

HybridInspectJobTriggerAsync(HybridInspectJobTriggerRequest, CallSettings)

public virtual Task<HybridInspectResponse> HybridInspectJobTriggerAsync(HybridInspectJobTriggerRequest request, CallSettings callSettings = null)

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.

Parameters
NameDescription
requestHybridInspectJobTriggerRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskHybridInspectResponse

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
HybridInspectJobTriggerRequest request = new HybridInspectJobTriggerRequest
{
    JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
    HybridItem = new HybridContentItem(),
};
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectJobTriggerAsync(request);

HybridInspectJobTriggerAsync(HybridInspectJobTriggerRequest, CancellationToken)

public virtual Task<HybridInspectResponse> HybridInspectJobTriggerAsync(HybridInspectJobTriggerRequest request, CancellationToken cancellationToken)

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.

Parameters
NameDescription
requestHybridInspectJobTriggerRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskHybridInspectResponse

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
HybridInspectJobTriggerRequest request = new HybridInspectJobTriggerRequest
{
    JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
    HybridItem = new HybridContentItem(),
};
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectJobTriggerAsync(request);

HybridInspectJobTriggerAsync(JobTriggerName, CallSettings)

public virtual Task<HybridInspectResponse> HybridInspectJobTriggerAsync(JobTriggerName name, CallSettings callSettings = null)

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.

Parameters
NameDescription
nameJobTriggerName

Required. Resource name of the trigger to execute a hybrid inspect on, for example projects/dlp-test-project/jobTriggers/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskHybridInspectResponse

A Task containing the RPC response.

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

HybridInspectJobTriggerAsync(JobTriggerName, CancellationToken)

public virtual Task<HybridInspectResponse> HybridInspectJobTriggerAsync(JobTriggerName name, CancellationToken cancellationToken)

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.

Parameters
NameDescription
nameJobTriggerName

Required. Resource name of the trigger to execute a hybrid inspect on, for example projects/dlp-test-project/jobTriggers/53234423.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskHybridInspectResponse

A Task containing the RPC response.

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

HybridInspectJobTriggerAsync(string, CallSettings)

public virtual Task<HybridInspectResponse> HybridInspectJobTriggerAsync(string name, CallSettings callSettings = null)

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.

Parameters
NameDescription
namestring

Required. Resource name of the trigger to execute a hybrid inspect on, for example projects/dlp-test-project/jobTriggers/53234423.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskHybridInspectResponse

A Task containing the RPC response.

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

HybridInspectJobTriggerAsync(string, CancellationToken)

public virtual Task<HybridInspectResponse> HybridInspectJobTriggerAsync(string name, CancellationToken cancellationToken)

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.

Parameters
NameDescription
namestring

Required. Resource name of the trigger to execute a hybrid inspect on, for example projects/dlp-test-project/jobTriggers/53234423.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskHybridInspectResponse

A Task containing the RPC response.

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

InspectContent(InspectContentRequest, CallSettings)

public virtual InspectContentResponse InspectContent(InspectContentRequest request, CallSettings callSettings = null)

Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size.

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

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

Parameters
NameDescription
requestInspectContentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
InspectContentResponse

The RPC response.

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

InspectContentAsync(InspectContentRequest, CallSettings)

public virtual Task<InspectContentResponse> InspectContentAsync(InspectContentRequest request, CallSettings callSettings = null)

Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size.

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

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

Parameters
NameDescription
requestInspectContentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInspectContentResponse

A Task containing the RPC response.

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

InspectContentAsync(InspectContentRequest, CancellationToken)

public virtual Task<InspectContentResponse> InspectContentAsync(InspectContentRequest request, CancellationToken cancellationToken)

Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size.

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

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

Parameters
NameDescription
requestInspectContentRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskInspectContentResponse

A Task containing the RPC response.

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

ListColumnDataProfiles(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfiles(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentLocationName

Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListColumnDataProfilesResponseColumnDataProfile

A pageable sequence of ColumnDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ColumnDataProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListColumnDataProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ColumnDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListColumnDataProfiles(ListColumnDataProfilesRequest, CallSettings)

public virtual PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfiles(ListColumnDataProfilesRequest request, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
requestListColumnDataProfilesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListColumnDataProfilesResponseColumnDataProfile

A pageable sequence of ColumnDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListColumnDataProfilesRequest request = new ListColumnDataProfilesRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfiles(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ColumnDataProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListColumnDataProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ColumnDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListColumnDataProfiles(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfiles(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentOrganizationLocationName

Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListColumnDataProfilesResponseColumnDataProfile

A pageable sequence of ColumnDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ColumnDataProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListColumnDataProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ColumnDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListColumnDataProfiles(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfiles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentstring

Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListColumnDataProfilesResponseColumnDataProfile

A pageable sequence of ColumnDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ColumnDataProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListColumnDataProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ColumnDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListColumnDataProfilesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfilesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentLocationName

Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListColumnDataProfilesResponseColumnDataProfile

A pageable asynchronous sequence of ColumnDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ColumnDataProfile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListColumnDataProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ColumnDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListColumnDataProfilesAsync(ListColumnDataProfilesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfilesAsync(ListColumnDataProfilesRequest request, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
requestListColumnDataProfilesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListColumnDataProfilesResponseColumnDataProfile

A pageable asynchronous sequence of ColumnDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListColumnDataProfilesRequest request = new ListColumnDataProfilesRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfilesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ColumnDataProfile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListColumnDataProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ColumnDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListColumnDataProfilesAsync(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfilesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentOrganizationLocationName

Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListColumnDataProfilesResponseColumnDataProfile

A pageable asynchronous sequence of ColumnDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ColumnDataProfile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListColumnDataProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ColumnDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListColumnDataProfilesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfilesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentstring

Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListColumnDataProfilesResponseColumnDataProfile

A pageable asynchronous sequence of ColumnDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ColumnDataProfile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListColumnDataProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ColumnDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDeidentifyTemplates(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplates(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate

A pageable sequence of DeidentifyTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DeidentifyTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeidentifyTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeidentifyTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDeidentifyTemplates(OrganizationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplates(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate

A pageable sequence of DeidentifyTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DeidentifyTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeidentifyTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeidentifyTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDeidentifyTemplates(ProjectName, string, int?, CallSettings)

public virtual PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplates(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate

A pageable sequence of DeidentifyTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DeidentifyTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeidentifyTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeidentifyTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDeidentifyTemplates(ListDeidentifyTemplatesRequest, CallSettings)

public virtual PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplates(ListDeidentifyTemplatesRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestListDeidentifyTemplatesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate

A pageable sequence of DeidentifyTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListDeidentifyTemplatesRequest request = new ListDeidentifyTemplatesRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    OrderBy = "",
    LocationId = "",
};
// Make the request
PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplates(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (DeidentifyTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeidentifyTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeidentifyTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDeidentifyTemplates(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplates(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate

A pageable sequence of DeidentifyTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DeidentifyTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeidentifyTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeidentifyTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDeidentifyTemplates(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplates(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate

A pageable sequence of DeidentifyTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DeidentifyTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeidentifyTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeidentifyTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDeidentifyTemplatesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplatesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate

A pageable asynchronous sequence of DeidentifyTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplatesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeidentifyTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeidentifyTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeidentifyTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDeidentifyTemplatesAsync(OrganizationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplatesAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate

A pageable asynchronous sequence of DeidentifyTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplatesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeidentifyTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeidentifyTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeidentifyTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDeidentifyTemplatesAsync(ProjectName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplatesAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate

A pageable asynchronous sequence of DeidentifyTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplatesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeidentifyTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeidentifyTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeidentifyTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDeidentifyTemplatesAsync(ListDeidentifyTemplatesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplatesAsync(ListDeidentifyTemplatesRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestListDeidentifyTemplatesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate

A pageable asynchronous sequence of DeidentifyTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListDeidentifyTemplatesRequest request = new ListDeidentifyTemplatesRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    OrderBy = "",
    LocationId = "",
};
// Make the request
PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplatesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeidentifyTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeidentifyTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeidentifyTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDeidentifyTemplatesAsync(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplatesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate

A pageable asynchronous sequence of DeidentifyTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplatesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeidentifyTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeidentifyTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeidentifyTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDeidentifyTemplatesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplatesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate

A pageable asynchronous sequence of DeidentifyTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplatesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeidentifyTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeidentifyTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeidentifyTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDiscoveryConfigs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> ListDiscoveryConfigs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists discovery configurations.

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDiscoveryConfigsResponseDiscoveryConfig

A pageable sequence of DiscoveryConfig resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> response = dlpServiceClient.ListDiscoveryConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DiscoveryConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDiscoveryConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DiscoveryConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DiscoveryConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DiscoveryConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDiscoveryConfigs(ListDiscoveryConfigsRequest, CallSettings)

public virtual PagedEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> ListDiscoveryConfigs(ListDiscoveryConfigsRequest request, CallSettings callSettings = null)

Lists discovery configurations.

Parameters
NameDescription
requestListDiscoveryConfigsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDiscoveryConfigsResponseDiscoveryConfig

A pageable sequence of DiscoveryConfig resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListDiscoveryConfigsRequest request = new ListDiscoveryConfigsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> response = dlpServiceClient.ListDiscoveryConfigs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (DiscoveryConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDiscoveryConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DiscoveryConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DiscoveryConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DiscoveryConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDiscoveryConfigs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> ListDiscoveryConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists discovery configurations.

Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDiscoveryConfigsResponseDiscoveryConfig

A pageable sequence of DiscoveryConfig resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> response = dlpServiceClient.ListDiscoveryConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DiscoveryConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDiscoveryConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DiscoveryConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DiscoveryConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DiscoveryConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDiscoveryConfigsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> ListDiscoveryConfigsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists discovery configurations.

Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDiscoveryConfigsResponseDiscoveryConfig

A pageable asynchronous sequence of DiscoveryConfig resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> response = dlpServiceClient.ListDiscoveryConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DiscoveryConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDiscoveryConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DiscoveryConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DiscoveryConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DiscoveryConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDiscoveryConfigsAsync(ListDiscoveryConfigsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> ListDiscoveryConfigsAsync(ListDiscoveryConfigsRequest request, CallSettings callSettings = null)

Lists discovery configurations.

Parameters
NameDescription
requestListDiscoveryConfigsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDiscoveryConfigsResponseDiscoveryConfig

A pageable asynchronous sequence of DiscoveryConfig resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListDiscoveryConfigsRequest request = new ListDiscoveryConfigsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> response = dlpServiceClient.ListDiscoveryConfigsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DiscoveryConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDiscoveryConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DiscoveryConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DiscoveryConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DiscoveryConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDiscoveryConfigsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> ListDiscoveryConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists discovery configurations.

Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDiscoveryConfigsResponseDiscoveryConfig

A pageable asynchronous sequence of DiscoveryConfig resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> response = dlpServiceClient.ListDiscoveryConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DiscoveryConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDiscoveryConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DiscoveryConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DiscoveryConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DiscoveryConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDlpJobs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentLocationName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDlpJobsResponseDlpJob

A pageable sequence of DlpJob resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DlpJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDlpJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DlpJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDlpJobs(ProjectName, string, int?, CallSettings)

public virtual PagedEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobs(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentProjectName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDlpJobsResponseDlpJob

A pageable sequence of DlpJob resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DlpJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDlpJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DlpJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDlpJobs(ListDlpJobsRequest, CallSettings)

public virtual PagedEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobs(ListDlpJobsRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestListDlpJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDlpJobsResponseDlpJob

A pageable sequence of DlpJob resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListDlpJobsRequest request = new ListDlpJobsRequest
{
    Filter = "",
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Type = DlpJobType.Unspecified,
    OrderBy = "",
    LocationId = "",
};
// Make the request
PagedEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (DlpJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDlpJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DlpJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDlpJobs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentstring

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListDlpJobsResponseDlpJob

A pageable sequence of DlpJob resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DlpJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDlpJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DlpJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDlpJobsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentLocationName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDlpJobsResponseDlpJob

A pageable asynchronous sequence of DlpJob resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DlpJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDlpJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DlpJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDlpJobsAsync(ProjectName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobsAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentProjectName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDlpJobsResponseDlpJob

A pageable asynchronous sequence of DlpJob resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DlpJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDlpJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DlpJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDlpJobsAsync(ListDlpJobsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobsAsync(ListDlpJobsRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestListDlpJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDlpJobsResponseDlpJob

A pageable asynchronous sequence of DlpJob resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListDlpJobsRequest request = new ListDlpJobsRequest
{
    Filter = "",
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Type = DlpJobType.Unspecified,
    OrderBy = "",
    LocationId = "",
};
// Make the request
PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DlpJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDlpJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DlpJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDlpJobsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentstring

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDlpJobsResponseDlpJob

A pageable asynchronous sequence of DlpJob resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DlpJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDlpJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DlpJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInfoTypes(ListInfoTypesRequest, CallSettings)

public virtual ListInfoTypesResponse ListInfoTypes(ListInfoTypesRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListInfoTypesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ListInfoTypesResponse

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListInfoTypesRequest request = new ListInfoTypesRequest
{
    LanguageCode = "",
    Filter = "",
    LocationId = "",
    Parent = "",
};
// Make the request
ListInfoTypesResponse response = dlpServiceClient.ListInfoTypes(request);

ListInfoTypes(string, CallSettings)

public virtual ListInfoTypesResponse ListInfoTypes(string parent, CallSettings callSettings = null)

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

Parameters
NameDescription
parentstring

The parent resource name.

The format of this value is as follows:

locations/<var>LOCATION_ID</var>

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ListInfoTypesResponse

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "";
// Make the request
ListInfoTypesResponse response = dlpServiceClient.ListInfoTypes(parent);

ListInfoTypesAsync(ListInfoTypesRequest, CallSettings)

public virtual Task<ListInfoTypesResponse> ListInfoTypesAsync(ListInfoTypesRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListInfoTypesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskListInfoTypesResponse

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListInfoTypesRequest request = new ListInfoTypesRequest
{
    LanguageCode = "",
    Filter = "",
    LocationId = "",
    Parent = "",
};
// Make the request
ListInfoTypesResponse response = await dlpServiceClient.ListInfoTypesAsync(request);

ListInfoTypesAsync(ListInfoTypesRequest, CancellationToken)

public virtual Task<ListInfoTypesResponse> ListInfoTypesAsync(ListInfoTypesRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestListInfoTypesRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskListInfoTypesResponse

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListInfoTypesRequest request = new ListInfoTypesRequest
{
    LanguageCode = "",
    Filter = "",
    LocationId = "",
    Parent = "",
};
// Make the request
ListInfoTypesResponse response = await dlpServiceClient.ListInfoTypesAsync(request);

ListInfoTypesAsync(string, CallSettings)

public virtual Task<ListInfoTypesResponse> ListInfoTypesAsync(string parent, CallSettings callSettings = null)

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

Parameters
NameDescription
parentstring

The parent resource name.

The format of this value is as follows:

locations/<var>LOCATION_ID</var>

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskListInfoTypesResponse

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
// Make the request
ListInfoTypesResponse response = await dlpServiceClient.ListInfoTypesAsync(parent);

ListInfoTypesAsync(string, CancellationToken)

public virtual Task<ListInfoTypesResponse> ListInfoTypesAsync(string parent, CancellationToken cancellationToken)

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

Parameters
NameDescription
parentstring

The parent resource name.

The format of this value is as follows:

locations/<var>LOCATION_ID</var>

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskListInfoTypesResponse

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
// Make the request
ListInfoTypesResponse response = await dlpServiceClient.ListInfoTypesAsync(parent);

ListInspectTemplates(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplates(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListInspectTemplatesResponseInspectTemplate

A pageable sequence of InspectTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (InspectTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInspectTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (InspectTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInspectTemplates(OrganizationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplates(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListInspectTemplatesResponseInspectTemplate

A pageable sequence of InspectTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (InspectTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInspectTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (InspectTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInspectTemplates(ProjectName, string, int?, CallSettings)

public virtual PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplates(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListInspectTemplatesResponseInspectTemplate

A pageable sequence of InspectTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (InspectTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInspectTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (InspectTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInspectTemplates(ListInspectTemplatesRequest, CallSettings)

public virtual PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplates(ListInspectTemplatesRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestListInspectTemplatesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListInspectTemplatesResponseInspectTemplate

A pageable sequence of InspectTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListInspectTemplatesRequest request = new ListInspectTemplatesRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    OrderBy = "",
    LocationId = "",
};
// Make the request
PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplates(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (InspectTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInspectTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (InspectTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInspectTemplates(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplates(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListInspectTemplatesResponseInspectTemplate

A pageable sequence of InspectTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (InspectTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInspectTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (InspectTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInspectTemplates(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplates(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListInspectTemplatesResponseInspectTemplate

A pageable sequence of InspectTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (InspectTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInspectTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (InspectTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInspectTemplatesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplatesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListInspectTemplatesResponseInspectTemplate

A pageable asynchronous sequence of InspectTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplatesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((InspectTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInspectTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (InspectTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInspectTemplatesAsync(OrganizationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplatesAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListInspectTemplatesResponseInspectTemplate

A pageable asynchronous sequence of InspectTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplatesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((InspectTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInspectTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (InspectTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInspectTemplatesAsync(ProjectName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplatesAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListInspectTemplatesResponseInspectTemplate

A pageable asynchronous sequence of InspectTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplatesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((InspectTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInspectTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (InspectTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInspectTemplatesAsync(ListInspectTemplatesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplatesAsync(ListInspectTemplatesRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestListInspectTemplatesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListInspectTemplatesResponseInspectTemplate

A pageable asynchronous sequence of InspectTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListInspectTemplatesRequest request = new ListInspectTemplatesRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    OrderBy = "",
    LocationId = "",
};
// Make the request
PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplatesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((InspectTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInspectTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (InspectTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInspectTemplatesAsync(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplatesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListInspectTemplatesResponseInspectTemplate

A pageable asynchronous sequence of InspectTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplatesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((InspectTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInspectTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (InspectTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInspectTemplatesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplatesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListInspectTemplatesResponseInspectTemplate

A pageable asynchronous sequence of InspectTemplate resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplatesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((InspectTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInspectTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (InspectTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListJobTriggers(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggers(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentLocationName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListJobTriggersResponseJobTrigger

A pageable sequence of JobTrigger resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggers(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (JobTrigger item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListJobTriggersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (JobTrigger item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListJobTriggers(ProjectName, string, int?, CallSettings)

public virtual PagedEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggers(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentProjectName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListJobTriggersResponseJobTrigger

A pageable sequence of JobTrigger resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggers(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (JobTrigger item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListJobTriggersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (JobTrigger item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListJobTriggers(ListJobTriggersRequest, CallSettings)

public virtual PagedEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggers(ListJobTriggersRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestListJobTriggersRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListJobTriggersResponseJobTrigger

A pageable sequence of JobTrigger resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListJobTriggersRequest request = new ListJobTriggersRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    OrderBy = "",
    Filter = "",
    Type = DlpJobType.Unspecified,
    LocationId = "",
};
// Make the request
PagedEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggers(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (JobTrigger item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListJobTriggersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (JobTrigger item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListJobTriggers(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggers(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentstring

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListJobTriggersResponseJobTrigger

A pageable sequence of JobTrigger resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggers(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (JobTrigger item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListJobTriggersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (JobTrigger item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListJobTriggersAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggersAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentLocationName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListJobTriggersResponseJobTrigger

A pageable asynchronous sequence of JobTrigger resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((JobTrigger item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListJobTriggersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (JobTrigger item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListJobTriggersAsync(ProjectName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggersAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentProjectName

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListJobTriggersResponseJobTrigger

A pageable asynchronous sequence of JobTrigger resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((JobTrigger item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListJobTriggersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (JobTrigger item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListJobTriggersAsync(ListJobTriggersRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggersAsync(ListJobTriggersRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestListJobTriggersRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListJobTriggersResponseJobTrigger

A pageable asynchronous sequence of JobTrigger resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListJobTriggersRequest request = new ListJobTriggersRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    OrderBy = "",
    Filter = "",
    Type = DlpJobType.Unspecified,
    LocationId = "",
};
// Make the request
PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggersAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((JobTrigger item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListJobTriggersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (JobTrigger item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListJobTriggersAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentstring

Required. Parent resource name.

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

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListJobTriggersResponseJobTrigger

A pageable asynchronous sequence of JobTrigger resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((JobTrigger item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListJobTriggersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (JobTrigger item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProjectDataProfiles(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfiles(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentLocationName

Required. organizations/{org_id}/locations/{loc_id}

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListProjectDataProfilesResponseProjectDataProfile

A pageable sequence of ProjectDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ProjectDataProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProjectDataProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ProjectDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProjectDataProfiles(ListProjectDataProfilesRequest, CallSettings)

public virtual PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfiles(ListProjectDataProfilesRequest request, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
requestListProjectDataProfilesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListProjectDataProfilesResponseProjectDataProfile

A pageable sequence of ProjectDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListProjectDataProfilesRequest request = new ListProjectDataProfilesRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfiles(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ProjectDataProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProjectDataProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ProjectDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProjectDataProfiles(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfiles(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentOrganizationLocationName

Required. organizations/{org_id}/locations/{loc_id}

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListProjectDataProfilesResponseProjectDataProfile

A pageable sequence of ProjectDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ProjectDataProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProjectDataProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ProjectDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProjectDataProfiles(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfiles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentstring

Required. organizations/{org_id}/locations/{loc_id}

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListProjectDataProfilesResponseProjectDataProfile

A pageable sequence of ProjectDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ProjectDataProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProjectDataProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ProjectDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProjectDataProfilesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfilesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentLocationName

Required. organizations/{org_id}/locations/{loc_id}

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListProjectDataProfilesResponseProjectDataProfile

A pageable asynchronous sequence of ProjectDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ProjectDataProfile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProjectDataProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ProjectDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProjectDataProfilesAsync(ListProjectDataProfilesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfilesAsync(ListProjectDataProfilesRequest request, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
requestListProjectDataProfilesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListProjectDataProfilesResponseProjectDataProfile

A pageable asynchronous sequence of ProjectDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListProjectDataProfilesRequest request = new ListProjectDataProfilesRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfilesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ProjectDataProfile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProjectDataProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ProjectDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProjectDataProfilesAsync(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfilesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentOrganizationLocationName

Required. organizations/{org_id}/locations/{loc_id}

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListProjectDataProfilesResponseProjectDataProfile

A pageable asynchronous sequence of ProjectDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ProjectDataProfile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProjectDataProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ProjectDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProjectDataProfilesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfilesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentstring

Required. organizations/{org_id}/locations/{loc_id}

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListProjectDataProfilesResponseProjectDataProfile

A pageable asynchronous sequence of ProjectDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ProjectDataProfile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProjectDataProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ProjectDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoredInfoTypes(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypes(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListStoredInfoTypesResponseStoredInfoType

A pageable sequence of StoredInfoType resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypes(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (StoredInfoType item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoredInfoTypesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoredInfoType item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoredInfoTypes(OrganizationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypes(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListStoredInfoTypesResponseStoredInfoType

A pageable sequence of StoredInfoType resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypes(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (StoredInfoType item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoredInfoTypesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoredInfoType item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoredInfoTypes(ProjectName, string, int?, CallSettings)

public virtual PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypes(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListStoredInfoTypesResponseStoredInfoType

A pageable sequence of StoredInfoType resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypes(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (StoredInfoType item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoredInfoTypesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoredInfoType item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoredInfoTypes(ListStoredInfoTypesRequest, CallSettings)

public virtual PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypes(ListStoredInfoTypesRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestListStoredInfoTypesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListStoredInfoTypesResponseStoredInfoType

A pageable sequence of StoredInfoType resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListStoredInfoTypesRequest request = new ListStoredInfoTypesRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    OrderBy = "",
    LocationId = "",
};
// Make the request
PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypes(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (StoredInfoType item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoredInfoTypesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoredInfoType item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoredInfoTypes(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypes(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListStoredInfoTypesResponseStoredInfoType

A pageable sequence of StoredInfoType resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypes(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (StoredInfoType item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoredInfoTypesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoredInfoType item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoredInfoTypes(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypes(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListStoredInfoTypesResponseStoredInfoType

A pageable sequence of StoredInfoType resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypes(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (StoredInfoType item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoredInfoTypesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoredInfoType item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoredInfoTypesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListStoredInfoTypesResponseStoredInfoType

A pageable asynchronous sequence of StoredInfoType resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoredInfoType item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoredInfoTypesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoredInfoType item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoredInfoTypesAsync(OrganizationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypesAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentOrganizationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListStoredInfoTypesResponseStoredInfoType

A pageable asynchronous sequence of StoredInfoType resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoredInfoType item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoredInfoTypesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoredInfoType item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoredInfoTypesAsync(ProjectName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypesAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentProjectName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListStoredInfoTypesResponseStoredInfoType

A pageable asynchronous sequence of StoredInfoType resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoredInfoType item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoredInfoTypesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoredInfoType item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoredInfoTypesAsync(ListStoredInfoTypesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypesAsync(ListStoredInfoTypesRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestListStoredInfoTypesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListStoredInfoTypesResponseStoredInfoType

A pageable asynchronous sequence of StoredInfoType resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListStoredInfoTypesRequest request = new ListStoredInfoTypesRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    OrderBy = "",
    LocationId = "",
};
// Make the request
PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoredInfoType item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoredInfoTypesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoredInfoType item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoredInfoTypesAsync(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentOrganizationLocationName

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListStoredInfoTypesResponseStoredInfoType

A pageable asynchronous sequence of StoredInfoType resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoredInfoType item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoredInfoTypesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoredInfoType item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoredInfoTypesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
NameDescription
parentstring

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>

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

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListStoredInfoTypesResponseStoredInfoType

A pageable asynchronous sequence of StoredInfoType resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoredInfoType item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoredInfoTypesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoredInfoType item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTableDataProfiles(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfiles(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentLocationName

Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListTableDataProfilesResponseTableDataProfile

A pageable sequence of TableDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (TableDataProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTableDataProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TableDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTableDataProfiles(ListTableDataProfilesRequest, CallSettings)

public virtual PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfiles(ListTableDataProfilesRequest request, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
requestListTableDataProfilesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListTableDataProfilesResponseTableDataProfile

A pageable sequence of TableDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListTableDataProfilesRequest request = new ListTableDataProfilesRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfiles(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (TableDataProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTableDataProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TableDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTableDataProfiles(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfiles(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentOrganizationLocationName

Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListTableDataProfilesResponseTableDataProfile

A pageable sequence of TableDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (TableDataProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTableDataProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TableDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTableDataProfiles(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfiles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentstring

Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListTableDataProfilesResponseTableDataProfile

A pageable sequence of TableDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (TableDataProfile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTableDataProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TableDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTableDataProfilesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfilesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentLocationName

Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListTableDataProfilesResponseTableDataProfile

A pageable asynchronous sequence of TableDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TableDataProfile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTableDataProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TableDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTableDataProfilesAsync(ListTableDataProfilesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfilesAsync(ListTableDataProfilesRequest request, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
requestListTableDataProfilesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListTableDataProfilesResponseTableDataProfile

A pageable asynchronous sequence of TableDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListTableDataProfilesRequest request = new ListTableDataProfilesRequest
{
    ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfilesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TableDataProfile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTableDataProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TableDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTableDataProfilesAsync(OrganizationLocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfilesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentOrganizationLocationName

Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListTableDataProfilesResponseTableDataProfile

A pageable asynchronous sequence of TableDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TableDataProfile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTableDataProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TableDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTableDataProfilesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfilesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists data profiles for an organization.

Parameters
NameDescription
parentstring

Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListTableDataProfilesResponseTableDataProfile

A pageable asynchronous sequence of TableDataProfile resources.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TableDataProfile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTableDataProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TableDataProfile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

RedactImage(RedactImageRequest, CallSettings)

public virtual RedactImageResponse RedactImage(RedactImageRequest request, CallSettings callSettings = null)

Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to learn more.

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
requestRedactImageRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
RedactImageResponse

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
RedactImageRequest request = new RedactImageRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    InspectConfig = new InspectConfig(),
    ImageRedactionConfigs =
    {
        new RedactImageRequest.Types.ImageRedactionConfig(),
    },
    IncludeFindings = false,
    ByteItem = new ByteContentItem(),
    LocationId = "",
};
// Make the request
RedactImageResponse response = dlpServiceClient.RedactImage(request);

RedactImageAsync(RedactImageRequest, CallSettings)

public virtual Task<RedactImageResponse> RedactImageAsync(RedactImageRequest request, CallSettings callSettings = null)

Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to learn more.

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
requestRedactImageRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskRedactImageResponse

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
RedactImageRequest request = new RedactImageRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    InspectConfig = new InspectConfig(),
    ImageRedactionConfigs =
    {
        new RedactImageRequest.Types.ImageRedactionConfig(),
    },
    IncludeFindings = false,
    ByteItem = new ByteContentItem(),
    LocationId = "",
};
// Make the request
RedactImageResponse response = await dlpServiceClient.RedactImageAsync(request);

RedactImageAsync(RedactImageRequest, CancellationToken)

public virtual Task<RedactImageResponse> RedactImageAsync(RedactImageRequest request, CancellationToken cancellationToken)

Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to learn more.

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
NameDescription
requestRedactImageRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskRedactImageResponse

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
RedactImageRequest request = new RedactImageRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    InspectConfig = new InspectConfig(),
    ImageRedactionConfigs =
    {
        new RedactImageRequest.Types.ImageRedactionConfig(),
    },
    IncludeFindings = false,
    ByteItem = new ByteContentItem(),
    LocationId = "",
};
// Make the request
RedactImageResponse response = await dlpServiceClient.RedactImageAsync(request);

ReidentifyContent(ReidentifyContentRequest, CallSettings)

public virtual ReidentifyContentResponse ReidentifyContent(ReidentifyContentRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestReidentifyContentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReidentifyContentResponse

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ReidentifyContentRequest request = new ReidentifyContentRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    ReidentifyConfig = new DeidentifyConfig(),
    InspectConfig = new InspectConfig(),
    Item = new ContentItem(),
    InspectTemplateName = "",
    ReidentifyTemplateName = "",
    LocationId = "",
};
// Make the request
ReidentifyContentResponse response = dlpServiceClient.ReidentifyContent(request);

ReidentifyContentAsync(ReidentifyContentRequest, CallSettings)

public virtual Task<ReidentifyContentResponse> ReidentifyContentAsync(ReidentifyContentRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestReidentifyContentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskReidentifyContentResponse

A Task containing the RPC response.

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

ReidentifyContentAsync(ReidentifyContentRequest, CancellationToken)

public virtual Task<ReidentifyContentResponse> ReidentifyContentAsync(ReidentifyContentRequest request, CancellationToken cancellationToken)
Parameters
NameDescription
requestReidentifyContentRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskReidentifyContentResponse

A Task containing the RPC response.

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

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateDeidentifyTemplate(DeidentifyTemplateName, DeidentifyTemplate, FieldMask, CallSettings)

public virtual DeidentifyTemplate UpdateDeidentifyTemplate(DeidentifyTemplateName name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask, CallSettings callSettings = null)
Parameters
NameDescription
nameDeidentifyTemplateName

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

deidentifyTemplateDeidentifyTemplate

New DeidentifyTemplate value.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyTemplate

The RPC response.

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

UpdateDeidentifyTemplate(UpdateDeidentifyTemplateRequest, CallSettings)

public virtual DeidentifyTemplate UpdateDeidentifyTemplate(UpdateDeidentifyTemplateRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestUpdateDeidentifyTemplateRequest

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)
UpdateDeidentifyTemplateRequest request = new UpdateDeidentifyTemplateRequest
{
    DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
    DeidentifyTemplate = new DeidentifyTemplate(),
    UpdateMask = new FieldMask(),
};
// Make the request
DeidentifyTemplate response = dlpServiceClient.UpdateDeidentifyTemplate(request);

UpdateDeidentifyTemplate(string, DeidentifyTemplate, FieldMask, CallSettings)

public virtual DeidentifyTemplate UpdateDeidentifyTemplate(string name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask, CallSettings callSettings = null)
Parameters
NameDescription
namestring

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

deidentifyTemplateDeidentifyTemplate

New DeidentifyTemplate value.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeidentifyTemplate

The RPC response.

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

UpdateDeidentifyTemplateAsync(DeidentifyTemplateName, DeidentifyTemplate, FieldMask, CallSettings)

public virtual Task<DeidentifyTemplate> UpdateDeidentifyTemplateAsync(DeidentifyTemplateName name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask, CallSettings callSettings = null)
Parameters
NameDescription
nameDeidentifyTemplateName

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

deidentifyTemplateDeidentifyTemplate

New DeidentifyTemplate value.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDeidentifyTemplate

A Task containing the RPC response.

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

UpdateDeidentifyTemplateAsync(DeidentifyTemplateName, DeidentifyTemplate, FieldMask, CancellationToken)

public virtual Task<DeidentifyTemplate> UpdateDeidentifyTemplateAsync(DeidentifyTemplateName name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
NameDescription
nameDeidentifyTemplateName

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

deidentifyTemplateDeidentifyTemplate

New DeidentifyTemplate value.

updateMaskFieldMask

Mask to control which fields get updated.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDeidentifyTemplate

A Task containing the RPC response.

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

UpdateDeidentifyTemplateAsync(UpdateDeidentifyTemplateRequest, CallSettings)

public virtual Task<DeidentifyTemplate> UpdateDeidentifyTemplateAsync(UpdateDeidentifyTemplateRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestUpdateDeidentifyTemplateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDeidentifyTemplate

A Task containing the RPC response.

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

UpdateDeidentifyTemplateAsync(UpdateDeidentifyTemplateRequest, CancellationToken)

public virtual Task<DeidentifyTemplate> UpdateDeidentifyTemplateAsync(UpdateDeidentifyTemplateRequest request, CancellationToken cancellationToken)
Parameters
NameDescription
requestUpdateDeidentifyTemplateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDeidentifyTemplate

A Task containing the RPC response.

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

UpdateDeidentifyTemplateAsync(string, DeidentifyTemplate, FieldMask, CallSettings)

public virtual Task<DeidentifyTemplate> UpdateDeidentifyTemplateAsync(string name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask, CallSettings callSettings = null)
Parameters
NameDescription
namestring

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

deidentifyTemplateDeidentifyTemplate

New DeidentifyTemplate value.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDeidentifyTemplate

A Task containing the RPC response.

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

UpdateDeidentifyTemplateAsync(string, DeidentifyTemplate, FieldMask, CancellationToken)

public virtual Task<DeidentifyTemplate> UpdateDeidentifyTemplateAsync(string name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
NameDescription
namestring

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

deidentifyTemplateDeidentifyTemplate

New DeidentifyTemplate value.

updateMaskFieldMask

Mask to control which fields get updated.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDeidentifyTemplate

A Task containing the RPC response.

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

UpdateDiscoveryConfig(DiscoveryConfigName, DiscoveryConfig, FieldMask, CallSettings)

public virtual DiscoveryConfig UpdateDiscoveryConfig(DiscoveryConfigName name, DiscoveryConfig discoveryConfig, FieldMask updateMask, CallSettings callSettings = null)

Updates a discovery configuration.

Parameters
NameDescription
nameDiscoveryConfigName

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

discoveryConfigDiscoveryConfig

Required. New DiscoveryConfig value.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DiscoveryConfig

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
FieldMask updateMask = new FieldMask();
// Make the request
DiscoveryConfig response = dlpServiceClient.UpdateDiscoveryConfig(name, discoveryConfig, updateMask);

UpdateDiscoveryConfig(UpdateDiscoveryConfigRequest, CallSettings)

public virtual DiscoveryConfig UpdateDiscoveryConfig(UpdateDiscoveryConfigRequest request, CallSettings callSettings = null)

Updates a discovery configuration.

Parameters
NameDescription
requestUpdateDiscoveryConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DiscoveryConfig

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
UpdateDiscoveryConfigRequest request = new UpdateDiscoveryConfigRequest
{
    DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
    DiscoveryConfig = new DiscoveryConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
DiscoveryConfig response = dlpServiceClient.UpdateDiscoveryConfig(request);

UpdateDiscoveryConfig(string, DiscoveryConfig, FieldMask, CallSettings)

public virtual DiscoveryConfig UpdateDiscoveryConfig(string name, DiscoveryConfig discoveryConfig, FieldMask updateMask, CallSettings callSettings = null)

Updates a discovery configuration.

Parameters
NameDescription
namestring

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

discoveryConfigDiscoveryConfig

Required. New DiscoveryConfig value.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DiscoveryConfig

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
FieldMask updateMask = new FieldMask();
// Make the request
DiscoveryConfig response = dlpServiceClient.UpdateDiscoveryConfig(name, discoveryConfig, updateMask);

UpdateDiscoveryConfigAsync(DiscoveryConfigName, DiscoveryConfig, FieldMask, CallSettings)

public virtual Task<DiscoveryConfig> UpdateDiscoveryConfigAsync(DiscoveryConfigName name, DiscoveryConfig discoveryConfig, FieldMask updateMask, CallSettings callSettings = null)

Updates a discovery configuration.

Parameters
NameDescription
nameDiscoveryConfigName

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

discoveryConfigDiscoveryConfig

Required. New DiscoveryConfig value.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
FieldMask updateMask = new FieldMask();
// Make the request
DiscoveryConfig response = await dlpServiceClient.UpdateDiscoveryConfigAsync(name, discoveryConfig, updateMask);

UpdateDiscoveryConfigAsync(DiscoveryConfigName, DiscoveryConfig, FieldMask, CancellationToken)

public virtual Task<DiscoveryConfig> UpdateDiscoveryConfigAsync(DiscoveryConfigName name, DiscoveryConfig discoveryConfig, FieldMask updateMask, CancellationToken cancellationToken)

Updates a discovery configuration.

Parameters
NameDescription
nameDiscoveryConfigName

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

discoveryConfigDiscoveryConfig

Required. New DiscoveryConfig value.

updateMaskFieldMask

Mask to control which fields get updated.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
FieldMask updateMask = new FieldMask();
// Make the request
DiscoveryConfig response = await dlpServiceClient.UpdateDiscoveryConfigAsync(name, discoveryConfig, updateMask);

UpdateDiscoveryConfigAsync(UpdateDiscoveryConfigRequest, CallSettings)

public virtual Task<DiscoveryConfig> UpdateDiscoveryConfigAsync(UpdateDiscoveryConfigRequest request, CallSettings callSettings = null)

Updates a discovery configuration.

Parameters
NameDescription
requestUpdateDiscoveryConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateDiscoveryConfigRequest request = new UpdateDiscoveryConfigRequest
{
    DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
    DiscoveryConfig = new DiscoveryConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
DiscoveryConfig response = await dlpServiceClient.UpdateDiscoveryConfigAsync(request);

UpdateDiscoveryConfigAsync(UpdateDiscoveryConfigRequest, CancellationToken)

public virtual Task<DiscoveryConfig> UpdateDiscoveryConfigAsync(UpdateDiscoveryConfigRequest request, CancellationToken cancellationToken)

Updates a discovery configuration.

Parameters
NameDescription
requestUpdateDiscoveryConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateDiscoveryConfigRequest request = new UpdateDiscoveryConfigRequest
{
    DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
    DiscoveryConfig = new DiscoveryConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
DiscoveryConfig response = await dlpServiceClient.UpdateDiscoveryConfigAsync(request);

UpdateDiscoveryConfigAsync(string, DiscoveryConfig, FieldMask, CallSettings)

public virtual Task<DiscoveryConfig> UpdateDiscoveryConfigAsync(string name, DiscoveryConfig discoveryConfig, FieldMask updateMask, CallSettings callSettings = null)

Updates a discovery configuration.

Parameters
NameDescription
namestring

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

discoveryConfigDiscoveryConfig

Required. New DiscoveryConfig value.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
FieldMask updateMask = new FieldMask();
// Make the request
DiscoveryConfig response = await dlpServiceClient.UpdateDiscoveryConfigAsync(name, discoveryConfig, updateMask);

UpdateDiscoveryConfigAsync(string, DiscoveryConfig, FieldMask, CancellationToken)

public virtual Task<DiscoveryConfig> UpdateDiscoveryConfigAsync(string name, DiscoveryConfig discoveryConfig, FieldMask updateMask, CancellationToken cancellationToken)

Updates a discovery configuration.

Parameters
NameDescription
namestring

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

discoveryConfigDiscoveryConfig

Required. New DiscoveryConfig value.

updateMaskFieldMask

Mask to control which fields get updated.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskDiscoveryConfig

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
FieldMask updateMask = new FieldMask();
// Make the request
DiscoveryConfig response = await dlpServiceClient.UpdateDiscoveryConfigAsync(name, discoveryConfig, updateMask);

UpdateInspectTemplate(InspectTemplateName, InspectTemplate, FieldMask, CallSettings)

public virtual InspectTemplate UpdateInspectTemplate(InspectTemplateName name, InspectTemplate inspectTemplate, FieldMask updateMask, CallSettings callSettings = null)
Parameters
NameDescription
nameInspectTemplateName

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

inspectTemplateInspectTemplate

New InspectTemplate value.

updateMaskFieldMask

Mask to control which fields get updated.

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)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
InspectTemplate inspectTemplate = new InspectTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
InspectTemplate response = dlpServiceClient.UpdateInspectTemplate(name, inspectTemplate, updateMask);

UpdateInspectTemplate(UpdateInspectTemplateRequest, CallSettings)

public virtual InspectTemplate UpdateInspectTemplate(UpdateInspectTemplateRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestUpdateInspectTemplateRequest

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)
UpdateInspectTemplateRequest request = new UpdateInspectTemplateRequest
{
    InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
    InspectTemplate = new InspectTemplate(),
    UpdateMask = new FieldMask(),
};
// Make the request
InspectTemplate response = dlpServiceClient.UpdateInspectTemplate(request);

UpdateInspectTemplate(string, InspectTemplate, FieldMask, CallSettings)

public virtual InspectTemplate UpdateInspectTemplate(string name, InspectTemplate inspectTemplate, FieldMask updateMask, CallSettings callSettings = null)
Parameters
NameDescription
namestring

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

inspectTemplateInspectTemplate

New InspectTemplate value.

updateMaskFieldMask

Mask to control which fields get updated.

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 name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
InspectTemplate inspectTemplate = new InspectTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
InspectTemplate response = dlpServiceClient.UpdateInspectTemplate(name, inspectTemplate, updateMask);

UpdateInspectTemplateAsync(InspectTemplateName, InspectTemplate, FieldMask, CallSettings)

public virtual Task<InspectTemplate> UpdateInspectTemplateAsync(InspectTemplateName name, InspectTemplate inspectTemplate, FieldMask updateMask, CallSettings callSettings = null)
Parameters
NameDescription
nameInspectTemplateName

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

inspectTemplateInspectTemplate

New InspectTemplate value.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInspectTemplate

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
InspectTemplate inspectTemplate = new InspectTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
InspectTemplate response = await dlpServiceClient.UpdateInspectTemplateAsync(name, inspectTemplate, updateMask);

UpdateInspectTemplateAsync(InspectTemplateName, InspectTemplate, FieldMask, CancellationToken)

public virtual Task<InspectTemplate> UpdateInspectTemplateAsync(InspectTemplateName name, InspectTemplate inspectTemplate, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
NameDescription
nameInspectTemplateName

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

inspectTemplateInspectTemplate

New InspectTemplate value.

updateMaskFieldMask

Mask to control which fields get updated.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskInspectTemplate

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
InspectTemplate inspectTemplate = new InspectTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
InspectTemplate response = await dlpServiceClient.UpdateInspectTemplateAsync(name, inspectTemplate, updateMask);

UpdateInspectTemplateAsync(UpdateInspectTemplateRequest, CallSettings)

public virtual Task<InspectTemplate> UpdateInspectTemplateAsync(UpdateInspectTemplateRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestUpdateInspectTemplateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInspectTemplate

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateInspectTemplateRequest request = new UpdateInspectTemplateRequest
{
    InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
    InspectTemplate = new InspectTemplate(),
    UpdateMask = new FieldMask(),
};
// Make the request
InspectTemplate response = await dlpServiceClient.UpdateInspectTemplateAsync(request);

UpdateInspectTemplateAsync(UpdateInspectTemplateRequest, CancellationToken)

public virtual Task<InspectTemplate> UpdateInspectTemplateAsync(UpdateInspectTemplateRequest request, CancellationToken cancellationToken)
Parameters
NameDescription
requestUpdateInspectTemplateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskInspectTemplate

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateInspectTemplateRequest request = new UpdateInspectTemplateRequest
{
    InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
    InspectTemplate = new InspectTemplate(),
    UpdateMask = new FieldMask(),
};
// Make the request
InspectTemplate response = await dlpServiceClient.UpdateInspectTemplateAsync(request);

UpdateInspectTemplateAsync(string, InspectTemplate, FieldMask, CallSettings)

public virtual Task<InspectTemplate> UpdateInspectTemplateAsync(string name, InspectTemplate inspectTemplate, FieldMask updateMask, CallSettings callSettings = null)
Parameters
NameDescription
namestring

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

inspectTemplateInspectTemplate

New InspectTemplate value.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInspectTemplate

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
InspectTemplate inspectTemplate = new InspectTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
InspectTemplate response = await dlpServiceClient.UpdateInspectTemplateAsync(name, inspectTemplate, updateMask);

UpdateInspectTemplateAsync(string, InspectTemplate, FieldMask, CancellationToken)

public virtual Task<InspectTemplate> UpdateInspectTemplateAsync(string name, InspectTemplate inspectTemplate, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
NameDescription
namestring

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

inspectTemplateInspectTemplate

New InspectTemplate value.

updateMaskFieldMask

Mask to control which fields get updated.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskInspectTemplate

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
InspectTemplate inspectTemplate = new InspectTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
InspectTemplate response = await dlpServiceClient.UpdateInspectTemplateAsync(name, inspectTemplate, updateMask);

UpdateJobTrigger(JobTriggerName, JobTrigger, FieldMask, CallSettings)

public virtual JobTrigger UpdateJobTrigger(JobTriggerName name, JobTrigger jobTrigger, FieldMask updateMask, CallSettings callSettings = null)
Parameters
NameDescription
nameJobTriggerName

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

jobTriggerJobTrigger

New JobTrigger value.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
JobTrigger

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
JobTrigger jobTrigger = new JobTrigger();
FieldMask updateMask = new FieldMask();
// Make the request
JobTrigger response = dlpServiceClient.UpdateJobTrigger(name, jobTrigger, updateMask);

UpdateJobTrigger(UpdateJobTriggerRequest, CallSettings)

public virtual JobTrigger UpdateJobTrigger(UpdateJobTriggerRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestUpdateJobTriggerRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
JobTrigger

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
UpdateJobTriggerRequest request = new UpdateJobTriggerRequest
{
    JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
    JobTrigger = new JobTrigger(),
    UpdateMask = new FieldMask(),
};
// Make the request
JobTrigger response = dlpServiceClient.UpdateJobTrigger(request);

UpdateJobTrigger(string, JobTrigger, FieldMask, CallSettings)

public virtual JobTrigger UpdateJobTrigger(string name, JobTrigger jobTrigger, FieldMask updateMask, CallSettings callSettings = null)
Parameters
NameDescription
namestring

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

jobTriggerJobTrigger

New JobTrigger value.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
JobTrigger

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
JobTrigger jobTrigger = new JobTrigger();
FieldMask updateMask = new FieldMask();
// Make the request
JobTrigger response = dlpServiceClient.UpdateJobTrigger(name, jobTrigger, updateMask);

UpdateJobTriggerAsync(JobTriggerName, JobTrigger, FieldMask, CallSettings)

public virtual Task<JobTrigger> UpdateJobTriggerAsync(JobTriggerName name, JobTrigger jobTrigger, FieldMask updateMask, CallSettings callSettings = null)
Parameters
NameDescription
nameJobTriggerName

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

jobTriggerJobTrigger

New JobTrigger value.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
JobTrigger jobTrigger = new JobTrigger();
FieldMask updateMask = new FieldMask();
// Make the request
JobTrigger response = await dlpServiceClient.UpdateJobTriggerAsync(name, jobTrigger, updateMask);

UpdateJobTriggerAsync(JobTriggerName, JobTrigger, FieldMask, CancellationToken)

public virtual Task<JobTrigger> UpdateJobTriggerAsync(JobTriggerName name, JobTrigger jobTrigger, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
NameDescription
nameJobTriggerName

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

jobTriggerJobTrigger

New JobTrigger value.

updateMaskFieldMask

Mask to control which fields get updated.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
JobTrigger jobTrigger = new JobTrigger();
FieldMask updateMask = new FieldMask();
// Make the request
JobTrigger response = await dlpServiceClient.UpdateJobTriggerAsync(name, jobTrigger, updateMask);

UpdateJobTriggerAsync(UpdateJobTriggerRequest, CallSettings)

public virtual Task<JobTrigger> UpdateJobTriggerAsync(UpdateJobTriggerRequest request, CallSettings callSettings = null)
Parameters
NameDescription
requestUpdateJobTriggerRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateJobTriggerRequest request = new UpdateJobTriggerRequest
{
    JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
    JobTrigger = new JobTrigger(),
    UpdateMask = new FieldMask(),
};
// Make the request
JobTrigger response = await dlpServiceClient.UpdateJobTriggerAsync(request);

UpdateJobTriggerAsync(UpdateJobTriggerRequest, CancellationToken)

public virtual Task<JobTrigger> UpdateJobTriggerAsync(UpdateJobTriggerRequest request, CancellationToken cancellationToken)
Parameters
NameDescription
requestUpdateJobTriggerRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateJobTriggerRequest request = new UpdateJobTriggerRequest
{
    JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
    JobTrigger = new JobTrigger(),
    UpdateMask = new FieldMask(),
};
// Make the request
JobTrigger response = await dlpServiceClient.UpdateJobTriggerAsync(request);

UpdateJobTriggerAsync(string, JobTrigger, FieldMask, CallSettings)

public virtual Task<JobTrigger> UpdateJobTriggerAsync(string name, JobTrigger jobTrigger, FieldMask updateMask, CallSettings callSettings = null)
Parameters
NameDescription
namestring

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

jobTriggerJobTrigger

New JobTrigger value.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
JobTrigger jobTrigger = new JobTrigger();
FieldMask updateMask = new FieldMask();
// Make the request
JobTrigger response = await dlpServiceClient.UpdateJobTriggerAsync(name, jobTrigger, updateMask);

UpdateJobTriggerAsync(string, JobTrigger, FieldMask, CancellationToken)

public virtual Task<JobTrigger> UpdateJobTriggerAsync(string name, JobTrigger jobTrigger, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
NameDescription
namestring

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

jobTriggerJobTrigger

New JobTrigger value.

updateMaskFieldMask

Mask to control which fields get updated.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskJobTrigger

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
JobTrigger jobTrigger = new JobTrigger();
FieldMask updateMask = new FieldMask();
// Make the request
JobTrigger response = await dlpServiceClient.UpdateJobTriggerAsync(name, jobTrigger, updateMask);

UpdateStoredInfoType(StoredInfoTypeName, StoredInfoTypeConfig, FieldMask, CallSettings)

public virtual StoredInfoType UpdateStoredInfoType(StoredInfoTypeName name, StoredInfoTypeConfig config, FieldMask updateMask, CallSettings callSettings = null)

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
nameStoredInfoTypeName

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

configStoredInfoTypeConfig

Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StoredInfoType response = dlpServiceClient.UpdateStoredInfoType(name, config, updateMask);

UpdateStoredInfoType(UpdateStoredInfoTypeRequest, CallSettings)

public virtual StoredInfoType UpdateStoredInfoType(UpdateStoredInfoTypeRequest request, CallSettings callSettings = null)

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
requestUpdateStoredInfoTypeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
UpdateStoredInfoTypeRequest request = new UpdateStoredInfoTypeRequest
{
    StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
    Config = new StoredInfoTypeConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
StoredInfoType response = dlpServiceClient.UpdateStoredInfoType(request);

UpdateStoredInfoType(string, StoredInfoTypeConfig, FieldMask, CallSettings)

public virtual StoredInfoType UpdateStoredInfoType(string name, StoredInfoTypeConfig config, FieldMask updateMask, CallSettings callSettings = null)

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
namestring

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

configStoredInfoTypeConfig

Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StoredInfoType

The RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StoredInfoType response = dlpServiceClient.UpdateStoredInfoType(name, config, updateMask);

UpdateStoredInfoTypeAsync(StoredInfoTypeName, StoredInfoTypeConfig, FieldMask, CallSettings)

public virtual Task<StoredInfoType> UpdateStoredInfoTypeAsync(StoredInfoTypeName name, StoredInfoTypeConfig config, FieldMask updateMask, CallSettings callSettings = null)

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
nameStoredInfoTypeName

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

configStoredInfoTypeConfig

Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StoredInfoType response = await dlpServiceClient.UpdateStoredInfoTypeAsync(name, config, updateMask);

UpdateStoredInfoTypeAsync(StoredInfoTypeName, StoredInfoTypeConfig, FieldMask, CancellationToken)

public virtual Task<StoredInfoType> UpdateStoredInfoTypeAsync(StoredInfoTypeName name, StoredInfoTypeConfig config, FieldMask updateMask, CancellationToken cancellationToken)

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
nameStoredInfoTypeName

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

configStoredInfoTypeConfig

Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration.

updateMaskFieldMask

Mask to control which fields get updated.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StoredInfoType response = await dlpServiceClient.UpdateStoredInfoTypeAsync(name, config, updateMask);

UpdateStoredInfoTypeAsync(UpdateStoredInfoTypeRequest, CallSettings)

public virtual Task<StoredInfoType> UpdateStoredInfoTypeAsync(UpdateStoredInfoTypeRequest request, CallSettings callSettings = null)

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
requestUpdateStoredInfoTypeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateStoredInfoTypeRequest request = new UpdateStoredInfoTypeRequest
{
    StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
    Config = new StoredInfoTypeConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
StoredInfoType response = await dlpServiceClient.UpdateStoredInfoTypeAsync(request);

UpdateStoredInfoTypeAsync(UpdateStoredInfoTypeRequest, CancellationToken)

public virtual Task<StoredInfoType> UpdateStoredInfoTypeAsync(UpdateStoredInfoTypeRequest request, CancellationToken cancellationToken)

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
requestUpdateStoredInfoTypeRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateStoredInfoTypeRequest request = new UpdateStoredInfoTypeRequest
{
    StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
    Config = new StoredInfoTypeConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
StoredInfoType response = await dlpServiceClient.UpdateStoredInfoTypeAsync(request);

UpdateStoredInfoTypeAsync(string, StoredInfoTypeConfig, FieldMask, CallSettings)

public virtual Task<StoredInfoType> UpdateStoredInfoTypeAsync(string name, StoredInfoTypeConfig config, FieldMask updateMask, CallSettings callSettings = null)

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
namestring

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

configStoredInfoTypeConfig

Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration.

updateMaskFieldMask

Mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StoredInfoType response = await dlpServiceClient.UpdateStoredInfoTypeAsync(name, config, updateMask);

UpdateStoredInfoTypeAsync(string, StoredInfoTypeConfig, FieldMask, CancellationToken)

public virtual Task<StoredInfoType> UpdateStoredInfoTypeAsync(string name, StoredInfoTypeConfig config, FieldMask updateMask, CancellationToken cancellationToken)

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
namestring

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

configStoredInfoTypeConfig

Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration.

updateMaskFieldMask

Mask to control which fields get updated.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskStoredInfoType

A Task containing the RPC response.

Example
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StoredInfoType response = await dlpServiceClient.UpdateStoredInfoTypeAsync(name, config, updateMask);