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.
Derived Types
Namespace
Google.Cloud.Dlp.V2Assembly
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 | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default DlpService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default DlpService scopes are:
GrpcClient
public virtual DlpService.DlpServiceClient GrpcClient { get; }
The underlying gRPC DlpService client
Property Value | |
---|---|
Type | Description |
DlpServiceDlpServiceClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
ActivateJobTriggerRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DlpJob |
The RPC response. |
// 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 | |
---|---|
Name | Description |
request |
ActivateJobTriggerRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
ActivateJobTriggerRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CancelDlpJobRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
request |
CancelDlpJobRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CancelDlpJobRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// 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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
cancellationToken |
CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskDlpServiceClient |
The task representing the created DlpServiceClient. |
CreateConnection(LocationName, Connection, CallSettings)
public virtual Connection CreateConnection(LocationName parent, Connection connection, CallSettings callSettings = null)
Create a Connection to an external data source.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
|
connection |
Connection Required. The connection resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Connection |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Connection connection = new Connection();
// Make the request
Connection response = dlpServiceClient.CreateConnection(parent, connection);
CreateConnection(CreateConnectionRequest, CallSettings)
public virtual Connection CreateConnection(CreateConnectionRequest request, CallSettings callSettings = null)
Create a Connection to an external data source.
Parameters | |
---|---|
Name | Description |
request |
CreateConnectionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Connection |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
CreateConnectionRequest request = new CreateConnectionRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Connection = new Connection(),
};
// Make the request
Connection response = dlpServiceClient.CreateConnection(request);
CreateConnection(OrganizationLocationName, Connection, CallSettings)
public virtual Connection CreateConnection(OrganizationLocationName parent, Connection connection, CallSettings callSettings = null)
Create a Connection to an external data source.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
|
connection |
Connection Required. The connection resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Connection |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
Connection connection = new Connection();
// Make the request
Connection response = dlpServiceClient.CreateConnection(parent, connection);
CreateConnection(string, Connection, CallSettings)
public virtual Connection CreateConnection(string parent, Connection connection, CallSettings callSettings = null)
Create a Connection to an external data source.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
|
connection |
Connection Required. The connection resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Connection |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Connection connection = new Connection();
// Make the request
Connection response = dlpServiceClient.CreateConnection(parent, connection);
CreateConnectionAsync(LocationName, Connection, CallSettings)
public virtual Task<Connection> CreateConnectionAsync(LocationName parent, Connection connection, CallSettings callSettings = null)
Create a Connection to an external data source.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
|
connection |
Connection Required. The connection resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskConnection |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Connection connection = new Connection();
// Make the request
Connection response = await dlpServiceClient.CreateConnectionAsync(parent, connection);
CreateConnectionAsync(LocationName, Connection, CancellationToken)
public virtual Task<Connection> CreateConnectionAsync(LocationName parent, Connection connection, CancellationToken cancellationToken)
Create a Connection to an external data source.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
|
connection |
Connection Required. The connection resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskConnection |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Connection connection = new Connection();
// Make the request
Connection response = await dlpServiceClient.CreateConnectionAsync(parent, connection);
CreateConnectionAsync(CreateConnectionRequest, CallSettings)
public virtual Task<Connection> CreateConnectionAsync(CreateConnectionRequest request, CallSettings callSettings = null)
Create a Connection to an external data source.
Parameters | |
---|---|
Name | Description |
request |
CreateConnectionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskConnection |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateConnectionRequest request = new CreateConnectionRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Connection = new Connection(),
};
// Make the request
Connection response = await dlpServiceClient.CreateConnectionAsync(request);
CreateConnectionAsync(CreateConnectionRequest, CancellationToken)
public virtual Task<Connection> CreateConnectionAsync(CreateConnectionRequest request, CancellationToken cancellationToken)
Create a Connection to an external data source.
Parameters | |
---|---|
Name | Description |
request |
CreateConnectionRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskConnection |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateConnectionRequest request = new CreateConnectionRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Connection = new Connection(),
};
// Make the request
Connection response = await dlpServiceClient.CreateConnectionAsync(request);
CreateConnectionAsync(OrganizationLocationName, Connection, CallSettings)
public virtual Task<Connection> CreateConnectionAsync(OrganizationLocationName parent, Connection connection, CallSettings callSettings = null)
Create a Connection to an external data source.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
|
connection |
Connection Required. The connection resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskConnection |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
Connection connection = new Connection();
// Make the request
Connection response = await dlpServiceClient.CreateConnectionAsync(parent, connection);
CreateConnectionAsync(OrganizationLocationName, Connection, CancellationToken)
public virtual Task<Connection> CreateConnectionAsync(OrganizationLocationName parent, Connection connection, CancellationToken cancellationToken)
Create a Connection to an external data source.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
|
connection |
Connection Required. The connection resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskConnection |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
Connection connection = new Connection();
// Make the request
Connection response = await dlpServiceClient.CreateConnectionAsync(parent, connection);
CreateConnectionAsync(string, Connection, CallSettings)
public virtual Task<Connection> CreateConnectionAsync(string parent, Connection connection, CallSettings callSettings = null)
Create a Connection to an external data source.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
|
connection |
Connection Required. The connection resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskConnection |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Connection connection = new Connection();
// Make the request
Connection response = await dlpServiceClient.CreateConnectionAsync(parent, connection);
CreateConnectionAsync(string, Connection, CancellationToken)
public virtual Task<Connection> CreateConnectionAsync(string parent, Connection connection, CancellationToken cancellationToken)
Create a Connection to an external data source.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
|
connection |
Connection Required. The connection resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskConnection |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Connection connection = new Connection();
// Make the request
Connection response = await dlpServiceClient.CreateConnectionAsync(parent, connection);
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 | |
---|---|
Name | Description |
parent |
LocationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DeidentifyTemplate |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
OrganizationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DeidentifyTemplate |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DeidentifyTemplate |
The RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateDeidentifyTemplateRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DeidentifyTemplate |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
OrganizationLocationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DeidentifyTemplate |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DeidentifyTemplate |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDeidentifyTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDeidentifyTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
OrganizationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDeidentifyTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
OrganizationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDeidentifyTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDeidentifyTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDeidentifyTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateDeidentifyTemplateRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDeidentifyTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateDeidentifyTemplateRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDeidentifyTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
OrganizationLocationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDeidentifyTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
OrganizationLocationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDeidentifyTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDeidentifyTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string 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:
The following example parent=projects/example-project/locations/europe-west3 |
deidentifyTemplate |
DeidentifyTemplate Required. The DeidentifyTemplate to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDeidentifyTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
The following example parent=projects/example-project/locations/europe-west3 |
discoveryConfig |
DiscoveryConfig Required. The DiscoveryConfig to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DiscoveryConfig |
The RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateDiscoveryConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DiscoveryConfig |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
The following example parent=projects/example-project/locations/europe-west3 |
discoveryConfig |
DiscoveryConfig Required. The DiscoveryConfig to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DiscoveryConfig |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
The following example parent=projects/example-project/locations/europe-west3 |
discoveryConfig |
DiscoveryConfig Required. The DiscoveryConfig to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDiscoveryConfig |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
The following example parent=projects/example-project/locations/europe-west3 |
discoveryConfig |
DiscoveryConfig Required. The DiscoveryConfig to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDiscoveryConfig |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateDiscoveryConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDiscoveryConfig |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateDiscoveryConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDiscoveryConfig |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
The following example parent=projects/example-project/locations/europe-west3 |
discoveryConfig |
DiscoveryConfig Required. The DiscoveryConfig to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDiscoveryConfig |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):
The following example parent=projects/example-project/locations/europe-west3 |
discoveryConfig |
DiscoveryConfig Required. The DiscoveryConfig to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDiscoveryConfig |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
inspectJob |
InspectJobConfig An inspection job scans a storage repository for InfoTypes. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DlpJob |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
riskJob |
RiskAnalysisJobConfig A risk analysis job calculates re-identification risk metrics for a BigQuery table. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DlpJob |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
inspectJob |
InspectJobConfig An inspection job scans a storage repository for InfoTypes. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DlpJob |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
riskJob |
RiskAnalysisJobConfig A risk analysis job calculates re-identification risk metrics for a BigQuery table. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DlpJob |
The RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateDlpJobRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DlpJob |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
inspectJob |
InspectJobConfig An inspection job scans a storage repository for InfoTypes. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DlpJob |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
riskJob |
RiskAnalysisJobConfig A risk analysis job calculates re-identification risk metrics for a BigQuery table. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DlpJob |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
inspectJob |
InspectJobConfig An inspection job scans a storage repository for InfoTypes. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
inspectJob |
InspectJobConfig An inspection job scans a storage repository for InfoTypes. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
riskJob |
RiskAnalysisJobConfig A risk analysis job calculates re-identification risk metrics for a BigQuery table. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
riskJob |
RiskAnalysisJobConfig A risk analysis job calculates re-identification risk metrics for a BigQuery table. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
inspectJob |
InspectJobConfig An inspection job scans a storage repository for InfoTypes. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
inspectJob |
InspectJobConfig An inspection job scans a storage repository for InfoTypes. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
riskJob |
RiskAnalysisJobConfig A risk analysis job calculates re-identification risk metrics for a BigQuery table. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
riskJob |
RiskAnalysisJobConfig A risk analysis job calculates re-identification risk metrics for a BigQuery table. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateDlpJobRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateDlpJobRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
inspectJob |
InspectJobConfig An inspection job scans a storage repository for InfoTypes. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
inspectJob |
InspectJobConfig An inspection job scans a storage repository for InfoTypes. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
riskJob |
RiskAnalysisJobConfig A risk analysis job calculates re-identification risk metrics for a BigQuery table. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
riskJob |
RiskAnalysisJobConfig A risk analysis job calculates re-identification risk metrics for a BigQuery table. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDlpJob |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
InspectTemplate |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
OrganizationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
InspectTemplate |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
InspectTemplate |
The RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateInspectTemplateRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
InspectTemplate |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
OrganizationLocationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
InspectTemplate |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
InspectTemplate |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskInspectTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskInspectTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
OrganizationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskInspectTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
OrganizationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskInspectTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskInspectTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskInspectTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateInspectTemplateRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskInspectTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateInspectTemplateRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskInspectTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
OrganizationLocationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskInspectTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
OrganizationLocationName 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskInspectTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskInspectTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string 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:
The following example parent=projects/example-project/locations/europe-west3 |
inspectTemplate |
InspectTemplate Required. The InspectTemplate to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskInspectTemplate |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
jobTrigger |
JobTrigger Required. The JobTrigger to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
JobTrigger |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
jobTrigger |
JobTrigger Required. The JobTrigger to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
JobTrigger |
The RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateJobTriggerRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
JobTrigger |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
jobTrigger |
JobTrigger Required. The JobTrigger to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
JobTrigger |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
jobTrigger |
JobTrigger Required. The JobTrigger to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskJobTrigger |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
jobTrigger |
JobTrigger Required. The JobTrigger to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskJobTrigger |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
jobTrigger |
JobTrigger Required. The JobTrigger to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskJobTrigger |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
ProjectName Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
jobTrigger |
JobTrigger Required. The JobTrigger to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskJobTrigger |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateJobTriggerRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskJobTrigger |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateJobTriggerRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskJobTrigger |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
jobTrigger |
JobTrigger Required. The JobTrigger to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskJobTrigger |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example parent=projects/example-project/locations/europe-west3 |
jobTrigger |
JobTrigger Required. The JobTrigger to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |