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 in the format:
|
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(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 in the format:
|
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 in the format:
|
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 in the format:
|
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(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 in the format:
|
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 in the format:
|
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 |
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);
CreateStoredInfoType(LocationName, StoredInfoTypeConfig, CallSettings)
public virtual StoredInfoType CreateStoredInfoType(LocationName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
StoredInfoType |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = dlpServiceClient.CreateStoredInfoType(parent, config);
CreateStoredInfoType(OrganizationName, StoredInfoTypeConfig, CallSettings)
public virtual StoredInfoType CreateStoredInfoType(OrganizationName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
StoredInfoType |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = dlpServiceClient.CreateStoredInfoType(parent, config);
CreateStoredInfoType(ProjectName, StoredInfoTypeConfig, CallSettings)
public virtual StoredInfoType CreateStoredInfoType(ProjectName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
StoredInfoType |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = dlpServiceClient.CreateStoredInfoType(parent, config);
CreateStoredInfoType(CreateStoredInfoTypeRequest, CallSettings)
public virtual StoredInfoType CreateStoredInfoType(CreateStoredInfoTypeRequest request, CallSettings callSettings = null)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
request |
CreateStoredInfoTypeRequest 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 |
StoredInfoType |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
CreateStoredInfoTypeRequest request = new CreateStoredInfoTypeRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Config = new StoredInfoTypeConfig(),
StoredInfoTypeId = "",
LocationId = "",
};
// Make the request
StoredInfoType response = dlpServiceClient.CreateStoredInfoType(request);
CreateStoredInfoType(OrganizationLocationName, StoredInfoTypeConfig, CallSettings)
public virtual StoredInfoType CreateStoredInfoType(OrganizationLocationName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
StoredInfoType |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = dlpServiceClient.CreateStoredInfoType(parent, config);
CreateStoredInfoType(string, StoredInfoTypeConfig, CallSettings)
public virtual StoredInfoType CreateStoredInfoType(string parent, StoredInfoTypeConfig config, CallSettings callSettings = null)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
StoredInfoType |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = dlpServiceClient.CreateStoredInfoType(parent, config);
CreateStoredInfoTypeAsync(LocationName, StoredInfoTypeConfig, CallSettings)
public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(LocationName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);
CreateStoredInfoTypeAsync(LocationName, StoredInfoTypeConfig, CancellationToken)
public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(LocationName parent, StoredInfoTypeConfig config, CancellationToken cancellationToken)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);
CreateStoredInfoTypeAsync(OrganizationName, StoredInfoTypeConfig, CallSettings)
public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(OrganizationName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);
CreateStoredInfoTypeAsync(OrganizationName, StoredInfoTypeConfig, CancellationToken)
public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(OrganizationName parent, StoredInfoTypeConfig config, CancellationToken cancellationToken)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);
CreateStoredInfoTypeAsync(ProjectName, StoredInfoTypeConfig, CallSettings)
public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(ProjectName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);
CreateStoredInfoTypeAsync(ProjectName, StoredInfoTypeConfig, CancellationToken)
public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(ProjectName parent, StoredInfoTypeConfig config, CancellationToken cancellationToken)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);
CreateStoredInfoTypeAsync(CreateStoredInfoTypeRequest, CallSettings)
public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(CreateStoredInfoTypeRequest request, CallSettings callSettings = null)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
request |
CreateStoredInfoTypeRequest 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 |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateStoredInfoTypeRequest request = new CreateStoredInfoTypeRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Config = new StoredInfoTypeConfig(),
StoredInfoTypeId = "",
LocationId = "",
};
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(request);
CreateStoredInfoTypeAsync(CreateStoredInfoTypeRequest, CancellationToken)
public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(CreateStoredInfoTypeRequest request, CancellationToken cancellationToken)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
request |
CreateStoredInfoTypeRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateStoredInfoTypeRequest request = new CreateStoredInfoTypeRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Config = new StoredInfoTypeConfig(),
StoredInfoTypeId = "",
LocationId = "",
};
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(request);
CreateStoredInfoTypeAsync(OrganizationLocationName, StoredInfoTypeConfig, CallSettings)
public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(OrganizationLocationName parent, StoredInfoTypeConfig config, CallSettings callSettings = null)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);
CreateStoredInfoTypeAsync(OrganizationLocationName, StoredInfoTypeConfig, CancellationToken)
public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(OrganizationLocationName parent, StoredInfoTypeConfig config, CancellationToken cancellationToken)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);
CreateStoredInfoTypeAsync(string, StoredInfoTypeConfig, CallSettings)
public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(string parent, StoredInfoTypeConfig config, CallSettings callSettings = null)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);
CreateStoredInfoTypeAsync(string, StoredInfoTypeConfig, CancellationToken)
public virtual Task<StoredInfoType> CreateStoredInfoTypeAsync(string parent, StoredInfoTypeConfig config, CancellationToken cancellationToken)
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
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 |
config |
StoredInfoTypeConfig Required. Configuration of the storedInfoType to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
// Make the request
StoredInfoType response = await dlpServiceClient.CreateStoredInfoTypeAsync(parent, config);
DeidentifyContent(DeidentifyContentRequest, CallSettings)
public virtual DeidentifyContentResponse DeidentifyContent(DeidentifyContentRequest request, CallSettings callSettings = null)
De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn more.
When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
Parameters | |
---|---|
Name | Description |
request |
DeidentifyContentRequest 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 |
DeidentifyContentResponse |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DeidentifyContentRequest request = new DeidentifyContentRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
DeidentifyConfig = new DeidentifyConfig(),
InspectConfig = new InspectConfig(),
Item = new ContentItem(),
InspectTemplateName = "",
DeidentifyTemplateName = "",
LocationId = "",
};
// Make the request
DeidentifyContentResponse response = dlpServiceClient.DeidentifyContent(request);
DeidentifyContentAsync(DeidentifyContentRequest, CallSettings)
public virtual Task<DeidentifyContentResponse> DeidentifyContentAsync(DeidentifyContentRequest request, CallSettings callSettings = null)
De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn more.
When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
Parameters | |
---|---|
Name | Description |
request |
DeidentifyContentRequest 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 |
TaskDeidentifyContentResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeidentifyContentRequest request = new DeidentifyContentRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
DeidentifyConfig = new DeidentifyConfig(),
InspectConfig = new InspectConfig(),
Item = new ContentItem(),
InspectTemplateName = "",
DeidentifyTemplateName = "",
LocationId = "",
};
// Make the request
DeidentifyContentResponse response = await dlpServiceClient.DeidentifyContentAsync(request);
DeidentifyContentAsync(DeidentifyContentRequest, CancellationToken)
public virtual Task<DeidentifyContentResponse> DeidentifyContentAsync(DeidentifyContentRequest request, CancellationToken cancellationToken)
De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn more.
When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
Parameters | |
---|---|
Name | Description |
request |
DeidentifyContentRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDeidentifyContentResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DeidentifyContentRequest request = new DeidentifyContentRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
DeidentifyConfig = new DeidentifyConfig(),
InspectConfig = new InspectConfig(),
Item = new ContentItem(),
InspectTemplateName = "",
DeidentifyTemplateName = "",
LocationId = "",
};
// Make the request
DeidentifyContentResponse response = await dlpServiceClient.DeidentifyContentAsync(request);
DeleteConnection(ConnectionName, CallSettings)
public virtual void DeleteConnection(ConnectionName name, CallSettings callSettings = null)
Delete a Connection.
Parameters | |
---|---|
Name | Description |
name |
ConnectionName Required. Resource name of the Connection to be deleted, in the format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
dlpServiceClient.DeleteConnection(name);
DeleteConnection(DeleteConnectionRequest, CallSettings)
public virtual void DeleteConnection(DeleteConnectionRequest request, CallSettings callSettings = null)
Delete a Connection.
Parameters | |
---|---|
Name | Description |
request |
DeleteConnectionRequest 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)
DeleteConnectionRequest request = new DeleteConnectionRequest
{
ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
dlpServiceClient.DeleteConnection(request);
DeleteConnection(string, CallSettings)
public virtual void DeleteConnection(string name, CallSettings callSettings = null)
Delete a Connection.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the Connection to be deleted, in the format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
dlpServiceClient.DeleteConnection(name);
DeleteConnectionAsync(ConnectionName, CallSettings)
public virtual Task DeleteConnectionAsync(ConnectionName name, CallSettings callSettings = null)
Delete a Connection.
Parameters | |
---|---|
Name | Description |
name |
ConnectionName Required. Resource name of the Connection to be deleted, in the format:
|
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)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
await dlpServiceClient.DeleteConnectionAsync(name);
DeleteConnectionAsync(ConnectionName, CancellationToken)
public virtual Task DeleteConnectionAsync(ConnectionName name, CancellationToken cancellationToken)
Delete a Connection.
Parameters | |
---|---|
Name | Description |
name |
ConnectionName Required. Resource name of the Connection to be deleted, in the format:
|
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)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
await dlpServiceClient.DeleteConnectionAsync(name);
DeleteConnectionAsync(DeleteConnectionRequest, CallSettings)
public virtual Task DeleteConnectionAsync(DeleteConnectionRequest request, CallSettings callSettings = null)
Delete a Connection.
Parameters | |
---|---|
Name | Description |
request |
DeleteConnectionRequest 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)
DeleteConnectionRequest request = new DeleteConnectionRequest
{
ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
await dlpServiceClient.DeleteConnectionAsync(request);
DeleteConnectionAsync(DeleteConnectionRequest, CancellationToken)
public virtual Task DeleteConnectionAsync(DeleteConnectionRequest request, CancellationToken cancellationToken)
Delete a Connection.
Parameters | |
---|---|
Name | Description |
request |
DeleteConnectionRequest 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)
DeleteConnectionRequest request = new DeleteConnectionRequest
{
ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
await dlpServiceClient.DeleteConnectionAsync(request);
DeleteConnectionAsync(string, CallSettings)
public virtual Task DeleteConnectionAsync(string name, CallSettings callSettings = null)
Delete a Connection.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the Connection to be deleted, in the format:
|
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)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
await dlpServiceClient.DeleteConnectionAsync(name);
DeleteConnectionAsync(string, CancellationToken)
public virtual Task DeleteConnectionAsync(string name, CancellationToken cancellationToken)
Delete a Connection.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the Connection to be deleted, in the format:
|
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)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
await dlpServiceClient.DeleteConnectionAsync(name);
DeleteDeidentifyTemplate(DeidentifyTemplateName, CallSettings)
public virtual void DeleteDeidentifyTemplate(DeidentifyTemplateName name, CallSettings callSettings = null)
Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
DeidentifyTemplateName Required. Resource name of the organization and deidentify template to be
deleted, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
// Make the request
dlpServiceClient.DeleteDeidentifyTemplate(name);
DeleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest, CallSettings)
public virtual void DeleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request, CallSettings callSettings = null)
Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteDeidentifyTemplateRequest 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)
DeleteDeidentifyTemplateRequest request = new DeleteDeidentifyTemplateRequest
{
DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
};
// Make the request
dlpServiceClient.DeleteDeidentifyTemplate(request);
DeleteDeidentifyTemplate(string, CallSettings)
public virtual void DeleteDeidentifyTemplate(string name, CallSettings callSettings = null)
Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and deidentify template to be
deleted, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
// Make the request
dlpServiceClient.DeleteDeidentifyTemplate(name);
DeleteDeidentifyTemplateAsync(DeidentifyTemplateName, CallSettings)
public virtual Task DeleteDeidentifyTemplateAsync(DeidentifyTemplateName name, CallSettings callSettings = null)
Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
DeidentifyTemplateName Required. Resource name of the organization and deidentify template to be
deleted, for example
|
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)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
// Make the request
await dlpServiceClient.DeleteDeidentifyTemplateAsync(name);
DeleteDeidentifyTemplateAsync(DeidentifyTemplateName, CancellationToken)
public virtual Task DeleteDeidentifyTemplateAsync(DeidentifyTemplateName name, CancellationToken cancellationToken)
Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
DeidentifyTemplateName Required. Resource name of the organization and deidentify template to be
deleted, for example
|
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)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
// Make the request
await dlpServiceClient.DeleteDeidentifyTemplateAsync(name);
DeleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest, CallSettings)
public virtual Task DeleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest request, CallSettings callSettings = null)
Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteDeidentifyTemplateRequest 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)
DeleteDeidentifyTemplateRequest request = new DeleteDeidentifyTemplateRequest
{
DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
};
// Make the request
await dlpServiceClient.DeleteDeidentifyTemplateAsync(request);
DeleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest, CancellationToken)
public virtual Task DeleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest request, CancellationToken cancellationToken)
Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteDeidentifyTemplateRequest 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)
DeleteDeidentifyTemplateRequest request = new DeleteDeidentifyTemplateRequest
{
DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
};
// Make the request
await dlpServiceClient.DeleteDeidentifyTemplateAsync(request);
DeleteDeidentifyTemplateAsync(string, CallSettings)
public virtual Task DeleteDeidentifyTemplateAsync(string name, CallSettings callSettings = null)
Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and deidentify template to be
deleted, for example
|
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)
string name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
// Make the request
await dlpServiceClient.DeleteDeidentifyTemplateAsync(name);
DeleteDeidentifyTemplateAsync(string, CancellationToken)
public virtual Task DeleteDeidentifyTemplateAsync(string name, CancellationToken cancellationToken)
Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and deidentify template to be
deleted, for example
|
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)
string name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
// Make the request
await dlpServiceClient.DeleteDeidentifyTemplateAsync(name);
DeleteDiscoveryConfig(DeleteDiscoveryConfigRequest, CallSettings)
public virtual void DeleteDiscoveryConfig(DeleteDiscoveryConfigRequest request, CallSettings callSettings = null)
Deletes a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
DeleteDiscoveryConfigRequest 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)
DeleteDiscoveryConfigRequest request = new DeleteDiscoveryConfigRequest
{
DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
};
// Make the request
dlpServiceClient.DeleteDiscoveryConfig(request);
DeleteDiscoveryConfig(DiscoveryConfigName, CallSettings)
public virtual void DeleteDiscoveryConfig(DiscoveryConfigName name, CallSettings callSettings = null)
Deletes a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
DiscoveryConfigName Required. Resource name of the project and the config, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
// Make the request
dlpServiceClient.DeleteDiscoveryConfig(name);
DeleteDiscoveryConfig(string, CallSettings)
public virtual void DeleteDiscoveryConfig(string name, CallSettings callSettings = null)
Deletes a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the config, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
// Make the request
dlpServiceClient.DeleteDiscoveryConfig(name);
DeleteDiscoveryConfigAsync(DeleteDiscoveryConfigRequest, CallSettings)
public virtual Task DeleteDiscoveryConfigAsync(DeleteDiscoveryConfigRequest request, CallSettings callSettings = null)
Deletes a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
DeleteDiscoveryConfigRequest 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)
DeleteDiscoveryConfigRequest request = new DeleteDiscoveryConfigRequest
{
DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
};
// Make the request
await dlpServiceClient.DeleteDiscoveryConfigAsync(request);
DeleteDiscoveryConfigAsync(DeleteDiscoveryConfigRequest, CancellationToken)
public virtual Task DeleteDiscoveryConfigAsync(DeleteDiscoveryConfigRequest request, CancellationToken cancellationToken)
Deletes a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
DeleteDiscoveryConfigRequest 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)
DeleteDiscoveryConfigRequest request = new DeleteDiscoveryConfigRequest
{
DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
};
// Make the request
await dlpServiceClient.DeleteDiscoveryConfigAsync(request);
DeleteDiscoveryConfigAsync(DiscoveryConfigName, CallSettings)
public virtual Task DeleteDiscoveryConfigAsync(DiscoveryConfigName name, CallSettings callSettings = null)
Deletes a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
DiscoveryConfigName Required. Resource name of the project and the config, for example
|
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)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
// Make the request
await dlpServiceClient.DeleteDiscoveryConfigAsync(name);
DeleteDiscoveryConfigAsync(DiscoveryConfigName, CancellationToken)
public virtual Task DeleteDiscoveryConfigAsync(DiscoveryConfigName name, CancellationToken cancellationToken)
Deletes a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
DiscoveryConfigName Required. Resource name of the project and the config, for example
|
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)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
// Make the request
await dlpServiceClient.DeleteDiscoveryConfigAsync(name);
DeleteDiscoveryConfigAsync(string, CallSettings)
public virtual Task DeleteDiscoveryConfigAsync(string name, CallSettings callSettings = null)
Deletes a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the config, for example
|
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)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
// Make the request
await dlpServiceClient.DeleteDiscoveryConfigAsync(name);
DeleteDiscoveryConfigAsync(string, CancellationToken)
public virtual Task DeleteDiscoveryConfigAsync(string name, CancellationToken cancellationToken)
Deletes a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the config, for example
|
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)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
// Make the request
await dlpServiceClient.DeleteDiscoveryConfigAsync(name);
DeleteDlpJob(DeleteDlpJobRequest, CallSettings)
public virtual void DeleteDlpJob(DeleteDlpJobRequest request, CallSettings callSettings = null)
Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteDlpJobRequest 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)
DeleteDlpJobRequest request = new DeleteDlpJobRequest
{
DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
dlpServiceClient.DeleteDlpJob(request);
DeleteDlpJob(DlpJobName, CallSettings)
public virtual void DeleteDlpJob(DlpJobName name, CallSettings callSettings = null)
Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Parameters | |
---|---|
Name | Description |
name |
DlpJobName Required. The name of the DlpJob resource to be deleted. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DlpJobName name = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]");
// Make the request
dlpServiceClient.DeleteDlpJob(name);
DeleteDlpJob(string, CallSettings)
public virtual void DeleteDlpJob(string name, CallSettings callSettings = null)
Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the DlpJob resource to be deleted. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/dlpJobs/[DLP_JOB]";
// Make the request
dlpServiceClient.DeleteDlpJob(name);
DeleteDlpJobAsync(DeleteDlpJobRequest, CallSettings)
public virtual Task DeleteDlpJobAsync(DeleteDlpJobRequest request, CallSettings callSettings = null)
Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteDlpJobRequest 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)
DeleteDlpJobRequest request = new DeleteDlpJobRequest
{
DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
await dlpServiceClient.DeleteDlpJobAsync(request);
DeleteDlpJobAsync(DeleteDlpJobRequest, CancellationToken)
public virtual Task DeleteDlpJobAsync(DeleteDlpJobRequest request, CancellationToken cancellationToken)
Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteDlpJobRequest 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)
DeleteDlpJobRequest request = new DeleteDlpJobRequest
{
DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
await dlpServiceClient.DeleteDlpJobAsync(request);
DeleteDlpJobAsync(DlpJobName, CallSettings)
public virtual Task DeleteDlpJobAsync(DlpJobName name, CallSettings callSettings = null)
Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Parameters | |
---|---|
Name | Description |
name |
DlpJobName Required. The name of the DlpJob resource to be deleted. |
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)
DlpJobName name = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]");
// Make the request
await dlpServiceClient.DeleteDlpJobAsync(name);
DeleteDlpJobAsync(DlpJobName, CancellationToken)
public virtual Task DeleteDlpJobAsync(DlpJobName name, CancellationToken cancellationToken)
Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Parameters | |
---|---|
Name | Description |
name |
DlpJobName Required. The name of the DlpJob resource to be deleted. |
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)
DlpJobName name = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]");
// Make the request
await dlpServiceClient.DeleteDlpJobAsync(name);
DeleteDlpJobAsync(string, CallSettings)
public virtual Task DeleteDlpJobAsync(string name, CallSettings callSettings = null)
Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the DlpJob resource to be deleted. |
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)
string name = "projects/[PROJECT]/dlpJobs/[DLP_JOB]";
// Make the request
await dlpServiceClient.DeleteDlpJobAsync(name);
DeleteDlpJobAsync(string, CancellationToken)
public virtual Task DeleteDlpJobAsync(string name, CancellationToken cancellationToken)
Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the DlpJob resource to be deleted. |
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)
string name = "projects/[PROJECT]/dlpJobs/[DLP_JOB]";
// Make the request
await dlpServiceClient.DeleteDlpJobAsync(name);
DeleteFileStoreDataProfile(DeleteFileStoreDataProfileRequest, CallSettings)
public virtual void DeleteFileStoreDataProfile(DeleteFileStoreDataProfileRequest request, CallSettings callSettings = null)
Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
DeleteFileStoreDataProfileRequest 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)
DeleteFileStoreDataProfileRequest request = new DeleteFileStoreDataProfileRequest
{
FileStoreDataProfileName = FileStoreDataProfileName.FromOrganizationLocationFileStoreDataProfile("[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]"),
};
// Make the request
dlpServiceClient.DeleteFileStoreDataProfile(request);
DeleteFileStoreDataProfile(FileStoreDataProfileName, CallSettings)
public virtual void DeleteFileStoreDataProfile(FileStoreDataProfileName name, CallSettings callSettings = null)
Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
FileStoreDataProfileName Required. Resource name of the file store data profile. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
FileStoreDataProfileName name = FileStoreDataProfileName.FromOrganizationLocationFileStoreDataProfile("[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]");
// Make the request
dlpServiceClient.DeleteFileStoreDataProfile(name);
DeleteFileStoreDataProfile(string, CallSettings)
public virtual void DeleteFileStoreDataProfile(string name, CallSettings callSettings = null)
Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the file store data profile. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/fileStoreDataProfiles/[FILE_STORE_DATA_PROFILE]";
// Make the request
dlpServiceClient.DeleteFileStoreDataProfile(name);
DeleteFileStoreDataProfileAsync(DeleteFileStoreDataProfileRequest, CallSettings)
public virtual Task DeleteFileStoreDataProfileAsync(DeleteFileStoreDataProfileRequest request, CallSettings callSettings = null)
Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
DeleteFileStoreDataProfileRequest 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)
DeleteFileStoreDataProfileRequest request = new DeleteFileStoreDataProfileRequest
{
FileStoreDataProfileName = FileStoreDataProfileName.FromOrganizationLocationFileStoreDataProfile("[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]"),
};
// Make the request
await dlpServiceClient.DeleteFileStoreDataProfileAsync(request);
DeleteFileStoreDataProfileAsync(DeleteFileStoreDataProfileRequest, CancellationToken)
public virtual Task DeleteFileStoreDataProfileAsync(DeleteFileStoreDataProfileRequest request, CancellationToken cancellationToken)
Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
DeleteFileStoreDataProfileRequest 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)
DeleteFileStoreDataProfileRequest request = new DeleteFileStoreDataProfileRequest
{
FileStoreDataProfileName = FileStoreDataProfileName.FromOrganizationLocationFileStoreDataProfile("[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]"),
};
// Make the request
await dlpServiceClient.DeleteFileStoreDataProfileAsync(request);
DeleteFileStoreDataProfileAsync(FileStoreDataProfileName, CallSettings)
public virtual Task DeleteFileStoreDataProfileAsync(FileStoreDataProfileName name, CallSettings callSettings = null)
Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
FileStoreDataProfileName Required. Resource name of the file store data profile. |
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)
FileStoreDataProfileName name = FileStoreDataProfileName.FromOrganizationLocationFileStoreDataProfile("[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]");
// Make the request
await dlpServiceClient.DeleteFileStoreDataProfileAsync(name);
DeleteFileStoreDataProfileAsync(FileStoreDataProfileName, CancellationToken)
public virtual Task DeleteFileStoreDataProfileAsync(FileStoreDataProfileName name, CancellationToken cancellationToken)
Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
FileStoreDataProfileName Required. Resource name of the file store data profile. |
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)
FileStoreDataProfileName name = FileStoreDataProfileName.FromOrganizationLocationFileStoreDataProfile("[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]");
// Make the request
await dlpServiceClient.DeleteFileStoreDataProfileAsync(name);
DeleteFileStoreDataProfileAsync(string, CallSettings)
public virtual Task DeleteFileStoreDataProfileAsync(string name, CallSettings callSettings = null)
Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the file store data profile. |
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)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/fileStoreDataProfiles/[FILE_STORE_DATA_PROFILE]";
// Make the request
await dlpServiceClient.DeleteFileStoreDataProfileAsync(name);
DeleteFileStoreDataProfileAsync(string, CancellationToken)
public virtual Task DeleteFileStoreDataProfileAsync(string name, CancellationToken cancellationToken)
Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the file store data profile. |
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)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/fileStoreDataProfiles/[FILE_STORE_DATA_PROFILE]";
// Make the request
await dlpServiceClient.DeleteFileStoreDataProfileAsync(name);
DeleteInspectTemplate(DeleteInspectTemplateRequest, CallSettings)
public virtual void DeleteInspectTemplate(DeleteInspectTemplateRequest request, CallSettings callSettings = null)
Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteInspectTemplateRequest 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)
DeleteInspectTemplateRequest request = new DeleteInspectTemplateRequest
{
InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
};
// Make the request
dlpServiceClient.DeleteInspectTemplate(request);
DeleteInspectTemplate(InspectTemplateName, CallSettings)
public virtual void DeleteInspectTemplate(InspectTemplateName name, CallSettings callSettings = null)
Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
InspectTemplateName Required. Resource name of the organization and inspectTemplate to be
deleted, for example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
// Make the request
dlpServiceClient.DeleteInspectTemplate(name);
DeleteInspectTemplate(string, CallSettings)
public virtual void DeleteInspectTemplate(string name, CallSettings callSettings = null)
Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and inspectTemplate to be
deleted, for example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
// Make the request
dlpServiceClient.DeleteInspectTemplate(name);
DeleteInspectTemplateAsync(DeleteInspectTemplateRequest, CallSettings)
public virtual Task DeleteInspectTemplateAsync(DeleteInspectTemplateRequest request, CallSettings callSettings = null)
Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteInspectTemplateRequest 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)
DeleteInspectTemplateRequest request = new DeleteInspectTemplateRequest
{
InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
};
// Make the request
await dlpServiceClient.DeleteInspectTemplateAsync(request);
DeleteInspectTemplateAsync(DeleteInspectTemplateRequest, CancellationToken)
public virtual Task DeleteInspectTemplateAsync(DeleteInspectTemplateRequest request, CancellationToken cancellationToken)
Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteInspectTemplateRequest 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)
DeleteInspectTemplateRequest request = new DeleteInspectTemplateRequest
{
InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
};
// Make the request
await dlpServiceClient.DeleteInspectTemplateAsync(request);
DeleteInspectTemplateAsync(InspectTemplateName, CallSettings)
public virtual Task DeleteInspectTemplateAsync(InspectTemplateName name, CallSettings callSettings = null)
Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
InspectTemplateName Required. Resource name of the organization and inspectTemplate to be
deleted, for example |
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)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
// Make the request
await dlpServiceClient.DeleteInspectTemplateAsync(name);
DeleteInspectTemplateAsync(InspectTemplateName, CancellationToken)
public virtual Task DeleteInspectTemplateAsync(InspectTemplateName name, CancellationToken cancellationToken)
Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
InspectTemplateName Required. Resource name of the organization and inspectTemplate to be
deleted, for example |
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)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
// Make the request
await dlpServiceClient.DeleteInspectTemplateAsync(name);
DeleteInspectTemplateAsync(string, CallSettings)
public virtual Task DeleteInspectTemplateAsync(string name, CallSettings callSettings = null)
Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and inspectTemplate to be
deleted, for example |
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)
string name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
// Make the request
await dlpServiceClient.DeleteInspectTemplateAsync(name);
DeleteInspectTemplateAsync(string, CancellationToken)
public virtual Task DeleteInspectTemplateAsync(string name, CancellationToken cancellationToken)
Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and inspectTemplate to be
deleted, for example |
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)
string name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
// Make the request
await dlpServiceClient.DeleteInspectTemplateAsync(name);
DeleteJobTrigger(DeleteJobTriggerRequest, CallSettings)
public virtual void DeleteJobTrigger(DeleteJobTriggerRequest request, CallSettings callSettings = null)
Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteJobTriggerRequest 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)
DeleteJobTriggerRequest request = new DeleteJobTriggerRequest
{
JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
};
// Make the request
dlpServiceClient.DeleteJobTrigger(request);
DeleteJobTrigger(JobTriggerName, CallSettings)
public virtual void DeleteJobTrigger(JobTriggerName name, CallSettings callSettings = null)
Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
JobTriggerName Required. Resource name of the project and the triggeredJob, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
// Make the request
dlpServiceClient.DeleteJobTrigger(name);
DeleteJobTrigger(string, CallSettings)
public virtual void DeleteJobTrigger(string name, CallSettings callSettings = null)
Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the triggeredJob, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
// Make the request
dlpServiceClient.DeleteJobTrigger(name);
DeleteJobTriggerAsync(DeleteJobTriggerRequest, CallSettings)
public virtual Task DeleteJobTriggerAsync(DeleteJobTriggerRequest request, CallSettings callSettings = null)
Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteJobTriggerRequest 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)
DeleteJobTriggerRequest request = new DeleteJobTriggerRequest
{
JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
};
// Make the request
await dlpServiceClient.DeleteJobTriggerAsync(request);
DeleteJobTriggerAsync(DeleteJobTriggerRequest, CancellationToken)
public virtual Task DeleteJobTriggerAsync(DeleteJobTriggerRequest request, CancellationToken cancellationToken)
Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteJobTriggerRequest 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)
DeleteJobTriggerRequest request = new DeleteJobTriggerRequest
{
JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
};
// Make the request
await dlpServiceClient.DeleteJobTriggerAsync(request);
DeleteJobTriggerAsync(JobTriggerName, CallSettings)
public virtual Task DeleteJobTriggerAsync(JobTriggerName name, CallSettings callSettings = null)
Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
JobTriggerName Required. Resource name of the project and the triggeredJob, for example
|
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)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
// Make the request
await dlpServiceClient.DeleteJobTriggerAsync(name);
DeleteJobTriggerAsync(JobTriggerName, CancellationToken)
public virtual Task DeleteJobTriggerAsync(JobTriggerName name, CancellationToken cancellationToken)
Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
JobTriggerName Required. Resource name of the project and the triggeredJob, for example
|
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)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
// Make the request
await dlpServiceClient.DeleteJobTriggerAsync(name);
DeleteJobTriggerAsync(string, CallSettings)
public virtual Task DeleteJobTriggerAsync(string name, CallSettings callSettings = null)
Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the triggeredJob, for example
|
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)
string name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
// Make the request
await dlpServiceClient.DeleteJobTriggerAsync(name);
DeleteJobTriggerAsync(string, CancellationToken)
public virtual Task DeleteJobTriggerAsync(string name, CancellationToken cancellationToken)
Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the triggeredJob, for example
|
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)
string name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
// Make the request
await dlpServiceClient.DeleteJobTriggerAsync(name);
DeleteStoredInfoType(DeleteStoredInfoTypeRequest, CallSettings)
public virtual void DeleteStoredInfoType(DeleteStoredInfoTypeRequest request, CallSettings callSettings = null)
Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteStoredInfoTypeRequest 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)
DeleteStoredInfoTypeRequest request = new DeleteStoredInfoTypeRequest
{
StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
};
// Make the request
dlpServiceClient.DeleteStoredInfoType(request);
DeleteStoredInfoType(StoredInfoTypeName, CallSettings)
public virtual void DeleteStoredInfoType(StoredInfoTypeName name, CallSettings callSettings = null)
Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
StoredInfoTypeName Required. Resource name of the organization and storedInfoType to be
deleted, for example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
// Make the request
dlpServiceClient.DeleteStoredInfoType(name);
DeleteStoredInfoType(string, CallSettings)
public virtual void DeleteStoredInfoType(string name, CallSettings callSettings = null)
Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and storedInfoType to be
deleted, for example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
// Make the request
dlpServiceClient.DeleteStoredInfoType(name);
DeleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest, CallSettings)
public virtual Task DeleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest request, CallSettings callSettings = null)
Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteStoredInfoTypeRequest 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)
DeleteStoredInfoTypeRequest request = new DeleteStoredInfoTypeRequest
{
StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
};
// Make the request
await dlpServiceClient.DeleteStoredInfoTypeAsync(request);
DeleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest, CancellationToken)
public virtual Task DeleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest request, CancellationToken cancellationToken)
Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
request |
DeleteStoredInfoTypeRequest 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)
DeleteStoredInfoTypeRequest request = new DeleteStoredInfoTypeRequest
{
StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
};
// Make the request
await dlpServiceClient.DeleteStoredInfoTypeAsync(request);
DeleteStoredInfoTypeAsync(StoredInfoTypeName, CallSettings)
public virtual Task DeleteStoredInfoTypeAsync(StoredInfoTypeName name, CallSettings callSettings = null)
Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
StoredInfoTypeName Required. Resource name of the organization and storedInfoType to be
deleted, for example |
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)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
// Make the request
await dlpServiceClient.DeleteStoredInfoTypeAsync(name);
DeleteStoredInfoTypeAsync(StoredInfoTypeName, CancellationToken)
public virtual Task DeleteStoredInfoTypeAsync(StoredInfoTypeName name, CancellationToken cancellationToken)
Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
StoredInfoTypeName Required. Resource name of the organization and storedInfoType to be
deleted, for example |
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)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
// Make the request
await dlpServiceClient.DeleteStoredInfoTypeAsync(name);
DeleteStoredInfoTypeAsync(string, CallSettings)
public virtual Task DeleteStoredInfoTypeAsync(string name, CallSettings callSettings = null)
Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and storedInfoType to be
deleted, for example |
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)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
// Make the request
await dlpServiceClient.DeleteStoredInfoTypeAsync(name);
DeleteStoredInfoTypeAsync(string, CancellationToken)
public virtual Task DeleteStoredInfoTypeAsync(string name, CancellationToken cancellationToken)
Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and storedInfoType to be
deleted, for example |
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)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
// Make the request
await dlpServiceClient.DeleteStoredInfoTypeAsync(name);
DeleteTableDataProfile(DeleteTableDataProfileRequest, CallSettings)
public virtual void DeleteTableDataProfile(DeleteTableDataProfileRequest request, CallSettings callSettings = null)
Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
DeleteTableDataProfileRequest 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)
DeleteTableDataProfileRequest request = new DeleteTableDataProfileRequest
{
TableDataProfileName = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"),
};
// Make the request
dlpServiceClient.DeleteTableDataProfile(request);
DeleteTableDataProfile(TableDataProfileName, CallSettings)
public virtual void DeleteTableDataProfile(TableDataProfileName name, CallSettings callSettings = null)
Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
TableDataProfileName Required. Resource name of the table data profile. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
TableDataProfileName name = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]");
// Make the request
dlpServiceClient.DeleteTableDataProfile(name);
DeleteTableDataProfile(string, CallSettings)
public virtual void DeleteTableDataProfile(string name, CallSettings callSettings = null)
Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the table data profile. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/tableDataProfiles/[TABLE_DATA_PROFILE]";
// Make the request
dlpServiceClient.DeleteTableDataProfile(name);
DeleteTableDataProfileAsync(DeleteTableDataProfileRequest, CallSettings)
public virtual Task DeleteTableDataProfileAsync(DeleteTableDataProfileRequest request, CallSettings callSettings = null)
Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
DeleteTableDataProfileRequest 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)
DeleteTableDataProfileRequest request = new DeleteTableDataProfileRequest
{
TableDataProfileName = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"),
};
// Make the request
await dlpServiceClient.DeleteTableDataProfileAsync(request);
DeleteTableDataProfileAsync(DeleteTableDataProfileRequest, CancellationToken)
public virtual Task DeleteTableDataProfileAsync(DeleteTableDataProfileRequest request, CancellationToken cancellationToken)
Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
DeleteTableDataProfileRequest 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)
DeleteTableDataProfileRequest request = new DeleteTableDataProfileRequest
{
TableDataProfileName = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"),
};
// Make the request
await dlpServiceClient.DeleteTableDataProfileAsync(request);
DeleteTableDataProfileAsync(TableDataProfileName, CallSettings)
public virtual Task DeleteTableDataProfileAsync(TableDataProfileName name, CallSettings callSettings = null)
Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
TableDataProfileName Required. Resource name of the table data profile. |
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)
TableDataProfileName name = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]");
// Make the request
await dlpServiceClient.DeleteTableDataProfileAsync(name);
DeleteTableDataProfileAsync(TableDataProfileName, CancellationToken)
public virtual Task DeleteTableDataProfileAsync(TableDataProfileName name, CancellationToken cancellationToken)
Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
TableDataProfileName Required. Resource name of the table data profile. |
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)
TableDataProfileName name = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]");
// Make the request
await dlpServiceClient.DeleteTableDataProfileAsync(name);
DeleteTableDataProfileAsync(string, CallSettings)
public virtual Task DeleteTableDataProfileAsync(string name, CallSettings callSettings = null)
Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the table data profile. |
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)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/tableDataProfiles/[TABLE_DATA_PROFILE]";
// Make the request
await dlpServiceClient.DeleteTableDataProfileAsync(name);
DeleteTableDataProfileAsync(string, CancellationToken)
public virtual Task DeleteTableDataProfileAsync(string name, CancellationToken cancellationToken)
Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the table data profile. |
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)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/tableDataProfiles/[TABLE_DATA_PROFILE]";
// Make the request
await dlpServiceClient.DeleteTableDataProfileAsync(name);
FinishDlpJob(FinishDlpJobRequest, CallSettings)
public virtual void FinishDlpJob(FinishDlpJobRequest request, CallSettings callSettings = null)
Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled actions that have not yet run.
Parameters | |
---|---|
Name | Description |
request |
FinishDlpJobRequest 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)
FinishDlpJobRequest request = new FinishDlpJobRequest
{
DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
dlpServiceClient.FinishDlpJob(request);
FinishDlpJobAsync(FinishDlpJobRequest, CallSettings)
public virtual Task FinishDlpJobAsync(FinishDlpJobRequest request, CallSettings callSettings = null)
Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled actions that have not yet run.
Parameters | |
---|---|
Name | Description |
request |
FinishDlpJobRequest 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)
FinishDlpJobRequest request = new FinishDlpJobRequest
{
DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
await dlpServiceClient.FinishDlpJobAsync(request);
FinishDlpJobAsync(FinishDlpJobRequest, CancellationToken)
public virtual Task FinishDlpJobAsync(FinishDlpJobRequest request, CancellationToken cancellationToken)
Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled actions that have not yet run.
Parameters | |
---|---|
Name | Description |
request |
FinishDlpJobRequest 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)
FinishDlpJobRequest request = new FinishDlpJobRequest
{
DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
await dlpServiceClient.FinishDlpJobAsync(request);
GetColumnDataProfile(ColumnDataProfileName, CallSettings)
public virtual ColumnDataProfile GetColumnDataProfile(ColumnDataProfileName name, CallSettings callSettings = null)
Gets a column data profile.
Parameters | |
---|---|
Name | Description |
name |
ColumnDataProfileName Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ColumnDataProfile |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ColumnDataProfileName name = ColumnDataProfileName.FromOrganizationLocationColumnDataProfile("[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]");
// Make the request
ColumnDataProfile response = dlpServiceClient.GetColumnDataProfile(name);
GetColumnDataProfile(GetColumnDataProfileRequest, CallSettings)
public virtual ColumnDataProfile GetColumnDataProfile(GetColumnDataProfileRequest request, CallSettings callSettings = null)
Gets a column data profile.
Parameters | |
---|---|
Name | Description |
request |
GetColumnDataProfileRequest 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 |
ColumnDataProfile |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
GetColumnDataProfileRequest request = new GetColumnDataProfileRequest
{
ColumnDataProfileName = ColumnDataProfileName.FromOrganizationLocationColumnDataProfile("[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]"),
};
// Make the request
ColumnDataProfile response = dlpServiceClient.GetColumnDataProfile(request);
GetColumnDataProfile(string, CallSettings)
public virtual ColumnDataProfile GetColumnDataProfile(string name, CallSettings callSettings = null)
Gets a column data profile.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ColumnDataProfile |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/columnDataProfiles/[COLUMN_DATA_PROFILE]";
// Make the request
ColumnDataProfile response = dlpServiceClient.GetColumnDataProfile(name);
GetColumnDataProfileAsync(ColumnDataProfileName, CallSettings)
public virtual Task<ColumnDataProfile> GetColumnDataProfileAsync(ColumnDataProfileName name, CallSettings callSettings = null)
Gets a column data profile.
Parameters | |
---|---|
Name | Description |
name |
ColumnDataProfileName Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskColumnDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ColumnDataProfileName name = ColumnDataProfileName.FromOrganizationLocationColumnDataProfile("[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]");
// Make the request
ColumnDataProfile response = await dlpServiceClient.GetColumnDataProfileAsync(name);
GetColumnDataProfileAsync(ColumnDataProfileName, CancellationToken)
public virtual Task<ColumnDataProfile> GetColumnDataProfileAsync(ColumnDataProfileName name, CancellationToken cancellationToken)
Gets a column data profile.
Parameters | |
---|---|
Name | Description |
name |
ColumnDataProfileName Required. Resource name, for example
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskColumnDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ColumnDataProfileName name = ColumnDataProfileName.FromOrganizationLocationColumnDataProfile("[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]");
// Make the request
ColumnDataProfile response = await dlpServiceClient.GetColumnDataProfileAsync(name);
GetColumnDataProfileAsync(GetColumnDataProfileRequest, CallSettings)
public virtual Task<ColumnDataProfile> GetColumnDataProfileAsync(GetColumnDataProfileRequest request, CallSettings callSettings = null)
Gets a column data profile.
Parameters | |
---|---|
Name | Description |
request |
GetColumnDataProfileRequest 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 |
TaskColumnDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetColumnDataProfileRequest request = new GetColumnDataProfileRequest
{
ColumnDataProfileName = ColumnDataProfileName.FromOrganizationLocationColumnDataProfile("[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]"),
};
// Make the request
ColumnDataProfile response = await dlpServiceClient.GetColumnDataProfileAsync(request);
GetColumnDataProfileAsync(GetColumnDataProfileRequest, CancellationToken)
public virtual Task<ColumnDataProfile> GetColumnDataProfileAsync(GetColumnDataProfileRequest request, CancellationToken cancellationToken)
Gets a column data profile.
Parameters | |
---|---|
Name | Description |
request |
GetColumnDataProfileRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskColumnDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetColumnDataProfileRequest request = new GetColumnDataProfileRequest
{
ColumnDataProfileName = ColumnDataProfileName.FromOrganizationLocationColumnDataProfile("[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]"),
};
// Make the request
ColumnDataProfile response = await dlpServiceClient.GetColumnDataProfileAsync(request);
GetColumnDataProfileAsync(string, CallSettings)
public virtual Task<ColumnDataProfile> GetColumnDataProfileAsync(string name, CallSettings callSettings = null)
Gets a column data profile.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskColumnDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/columnDataProfiles/[COLUMN_DATA_PROFILE]";
// Make the request
ColumnDataProfile response = await dlpServiceClient.GetColumnDataProfileAsync(name);
GetColumnDataProfileAsync(string, CancellationToken)
public virtual Task<ColumnDataProfile> GetColumnDataProfileAsync(string name, CancellationToken cancellationToken)
Gets a column data profile.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name, for example
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskColumnDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/columnDataProfiles/[COLUMN_DATA_PROFILE]";
// Make the request
ColumnDataProfile response = await dlpServiceClient.GetColumnDataProfileAsync(name);
GetConnection(ConnectionName, CallSettings)
public virtual Connection GetConnection(ConnectionName name, CallSettings callSettings = null)
Get a Connection by name.
Parameters | |
---|---|
Name | Description |
name |
ConnectionName Required. Resource name in the format:
|
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)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Connection response = dlpServiceClient.GetConnection(name);
GetConnection(GetConnectionRequest, CallSettings)
public virtual Connection GetConnection(GetConnectionRequest request, CallSettings callSettings = null)
Get a Connection by name.
Parameters | |
---|---|
Name | Description |
request |
GetConnectionRequest 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)
GetConnectionRequest request = new GetConnectionRequest
{
ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
Connection response = dlpServiceClient.GetConnection(request);
GetConnection(string, CallSettings)
public virtual Connection GetConnection(string name, CallSettings callSettings = null)
Get a Connection by name.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name in the format:
|
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 name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Connection response = dlpServiceClient.GetConnection(name);
GetConnectionAsync(ConnectionName, CallSettings)
public virtual Task<Connection> GetConnectionAsync(ConnectionName name, CallSettings callSettings = null)
Get a Connection by name.
Parameters | |
---|---|
Name | Description |
name |
ConnectionName Required. Resource name in the format:
|
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)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Connection response = await dlpServiceClient.GetConnectionAsync(name);
GetConnectionAsync(ConnectionName, CancellationToken)
public virtual Task<Connection> GetConnectionAsync(ConnectionName name, CancellationToken cancellationToken)
Get a Connection by name.
Parameters | |
---|---|
Name | Description |
name |
ConnectionName Required. Resource name in the format:
|
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)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Connection response = await dlpServiceClient.GetConnectionAsync(name);
GetConnectionAsync(GetConnectionRequest, CallSettings)
public virtual Task<Connection> GetConnectionAsync(GetConnectionRequest request, CallSettings callSettings = null)
Get a Connection by name.
Parameters | |
---|---|
Name | Description |
request |
GetConnectionRequest 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)
GetConnectionRequest request = new GetConnectionRequest
{
ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
Connection response = await dlpServiceClient.GetConnectionAsync(request);
GetConnectionAsync(GetConnectionRequest, CancellationToken)
public virtual Task<Connection> GetConnectionAsync(GetConnectionRequest request, CancellationToken cancellationToken)
Get a Connection by name.
Parameters | |
---|---|
Name | Description |
request |
GetConnectionRequest 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)
GetConnectionRequest request = new GetConnectionRequest
{
ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
Connection response = await dlpServiceClient.GetConnectionAsync(request);
GetConnectionAsync(string, CallSettings)
public virtual Task<Connection> GetConnectionAsync(string name, CallSettings callSettings = null)
Get a Connection by name.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name in the format:
|
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 name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Connection response = await dlpServiceClient.GetConnectionAsync(name);
GetConnectionAsync(string, CancellationToken)
public virtual Task<Connection> GetConnectionAsync(string name, CancellationToken cancellationToken)
Get a Connection by name.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name in the format:
|
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 name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Connection response = await dlpServiceClient.GetConnectionAsync(name);
GetDeidentifyTemplate(DeidentifyTemplateName, CallSettings)
public virtual DeidentifyTemplate GetDeidentifyTemplate(DeidentifyTemplateName name, CallSettings callSettings = null)
Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
DeidentifyTemplateName Required. Resource name of the organization and deidentify template to be
read, for example |
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)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
// Make the request
DeidentifyTemplate response = dlpServiceClient.GetDeidentifyTemplate(name);
GetDeidentifyTemplate(GetDeidentifyTemplateRequest, CallSettings)
public virtual DeidentifyTemplate GetDeidentifyTemplate(GetDeidentifyTemplateRequest request, CallSettings callSettings = null)
Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
request |
GetDeidentifyTemplateRequest 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)
GetDeidentifyTemplateRequest request = new GetDeidentifyTemplateRequest
{
DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
};
// Make the request
DeidentifyTemplate response = dlpServiceClient.GetDeidentifyTemplate(request);
GetDeidentifyTemplate(string, CallSettings)
public virtual DeidentifyTemplate GetDeidentifyTemplate(string name, CallSettings callSettings = null)
Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and deidentify template to be
read, for example |
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 name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
// Make the request
DeidentifyTemplate response = dlpServiceClient.GetDeidentifyTemplate(name);
GetDeidentifyTemplateAsync(DeidentifyTemplateName, CallSettings)
public virtual Task<DeidentifyTemplate> GetDeidentifyTemplateAsync(DeidentifyTemplateName name, CallSettings callSettings = null)
Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
DeidentifyTemplateName Required. Resource name of the organization and deidentify template to be
read, for example |
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)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
// Make the request
DeidentifyTemplate response = await dlpServiceClient.GetDeidentifyTemplateAsync(name);
GetDeidentifyTemplateAsync(DeidentifyTemplateName, CancellationToken)
public virtual Task<DeidentifyTemplate> GetDeidentifyTemplateAsync(DeidentifyTemplateName name, CancellationToken cancellationToken)
Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
DeidentifyTemplateName Required. Resource name of the organization and deidentify template to be
read, for example |
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)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
// Make the request
DeidentifyTemplate response = await dlpServiceClient.GetDeidentifyTemplateAsync(name);
GetDeidentifyTemplateAsync(GetDeidentifyTemplateRequest, CallSettings)
public virtual Task<DeidentifyTemplate> GetDeidentifyTemplateAsync(GetDeidentifyTemplateRequest request, CallSettings callSettings = null)
Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
request |
GetDeidentifyTemplateRequest 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)
GetDeidentifyTemplateRequest request = new GetDeidentifyTemplateRequest
{
DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
};
// Make the request
DeidentifyTemplate response = await dlpServiceClient.GetDeidentifyTemplateAsync(request);
GetDeidentifyTemplateAsync(GetDeidentifyTemplateRequest, CancellationToken)
public virtual Task<DeidentifyTemplate> GetDeidentifyTemplateAsync(GetDeidentifyTemplateRequest request, CancellationToken cancellationToken)
Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
request |
GetDeidentifyTemplateRequest 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)
GetDeidentifyTemplateRequest request = new GetDeidentifyTemplateRequest
{
DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
};
// Make the request
DeidentifyTemplate response = await dlpServiceClient.GetDeidentifyTemplateAsync(request);
GetDeidentifyTemplateAsync(string, CallSettings)
public virtual Task<DeidentifyTemplate> GetDeidentifyTemplateAsync(string name, CallSettings callSettings = null)
Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and deidentify template to be
read, for example |
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 name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
// Make the request
DeidentifyTemplate response = await dlpServiceClient.GetDeidentifyTemplateAsync(name);
GetDeidentifyTemplateAsync(string, CancellationToken)
public virtual Task<DeidentifyTemplate> GetDeidentifyTemplateAsync(string name, CancellationToken cancellationToken)
Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and deidentify template to be
read, for example |
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 name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
// Make the request
DeidentifyTemplate response = await dlpServiceClient.GetDeidentifyTemplateAsync(name);
GetDiscoveryConfig(DiscoveryConfigName, CallSettings)
public virtual DiscoveryConfig GetDiscoveryConfig(DiscoveryConfigName name, CallSettings callSettings = null)
Gets a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
DiscoveryConfigName Required. Resource name of the project and the configuration, for example
|
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)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
// Make the request
DiscoveryConfig response = dlpServiceClient.GetDiscoveryConfig(name);
GetDiscoveryConfig(GetDiscoveryConfigRequest, CallSettings)
public virtual DiscoveryConfig GetDiscoveryConfig(GetDiscoveryConfigRequest request, CallSettings callSettings = null)
Gets a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
GetDiscoveryConfigRequest 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)
GetDiscoveryConfigRequest request = new GetDiscoveryConfigRequest
{
DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
};
// Make the request
DiscoveryConfig response = dlpServiceClient.GetDiscoveryConfig(request);
GetDiscoveryConfig(string, CallSettings)
public virtual DiscoveryConfig GetDiscoveryConfig(string name, CallSettings callSettings = null)
Gets a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the configuration, for example
|
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 name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
// Make the request
DiscoveryConfig response = dlpServiceClient.GetDiscoveryConfig(name);
GetDiscoveryConfigAsync(DiscoveryConfigName, CallSettings)
public virtual Task<DiscoveryConfig> GetDiscoveryConfigAsync(DiscoveryConfigName name, CallSettings callSettings = null)
Gets a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
DiscoveryConfigName Required. Resource name of the project and the configuration, for example
|
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)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
// Make the request
DiscoveryConfig response = await dlpServiceClient.GetDiscoveryConfigAsync(name);
GetDiscoveryConfigAsync(DiscoveryConfigName, CancellationToken)
public virtual Task<DiscoveryConfig> GetDiscoveryConfigAsync(DiscoveryConfigName name, CancellationToken cancellationToken)
Gets a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
DiscoveryConfigName Required. Resource name of the project and the configuration, for example
|
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)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
// Make the request
DiscoveryConfig response = await dlpServiceClient.GetDiscoveryConfigAsync(name);
GetDiscoveryConfigAsync(GetDiscoveryConfigRequest, CallSettings)
public virtual Task<DiscoveryConfig> GetDiscoveryConfigAsync(GetDiscoveryConfigRequest request, CallSettings callSettings = null)
Gets a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
GetDiscoveryConfigRequest 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)
GetDiscoveryConfigRequest request = new GetDiscoveryConfigRequest
{
DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
};
// Make the request
DiscoveryConfig response = await dlpServiceClient.GetDiscoveryConfigAsync(request);
GetDiscoveryConfigAsync(GetDiscoveryConfigRequest, CancellationToken)
public virtual Task<DiscoveryConfig> GetDiscoveryConfigAsync(GetDiscoveryConfigRequest request, CancellationToken cancellationToken)
Gets a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
GetDiscoveryConfigRequest 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)
GetDiscoveryConfigRequest request = new GetDiscoveryConfigRequest
{
DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
};
// Make the request
DiscoveryConfig response = await dlpServiceClient.GetDiscoveryConfigAsync(request);
GetDiscoveryConfigAsync(string, CallSettings)
public virtual Task<DiscoveryConfig> GetDiscoveryConfigAsync(string name, CallSettings callSettings = null)
Gets a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the configuration, for example
|
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 name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
// Make the request
DiscoveryConfig response = await dlpServiceClient.GetDiscoveryConfigAsync(name);
GetDiscoveryConfigAsync(string, CancellationToken)
public virtual Task<DiscoveryConfig> GetDiscoveryConfigAsync(string name, CancellationToken cancellationToken)
Gets a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the configuration, for example
|
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 name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
// Make the request
DiscoveryConfig response = await dlpServiceClient.GetDiscoveryConfigAsync(name);
GetDlpJob(DlpJobName, CallSettings)
public virtual DlpJob GetDlpJob(DlpJobName name, CallSettings callSettings = null)
Gets the latest state of a long-running DlpJob. 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 |
name |
DlpJobName Required. The name of the DlpJob resource. |
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)
DlpJobName name = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]");
// Make the request
DlpJob response = dlpServiceClient.GetDlpJob(name);
GetDlpJob(GetDlpJobRequest, CallSettings)
public virtual DlpJob GetDlpJob(GetDlpJobRequest request, CallSettings callSettings = null)
Gets the latest state of a long-running DlpJob. See https://cloud.google.com/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 |
GetDlpJobRequest 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)
GetDlpJobRequest request = new GetDlpJobRequest
{
DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
DlpJob response = dlpServiceClient.GetDlpJob(request);
GetDlpJob(string, CallSettings)
public virtual DlpJob GetDlpJob(string name, CallSettings callSettings = null)
Gets the latest state of a long-running DlpJob. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the DlpJob resource. |
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 name = "projects/[PROJECT]/dlpJobs/[DLP_JOB]";
// Make the request
DlpJob response = dlpServiceClient.GetDlpJob(name);
GetDlpJobAsync(DlpJobName, CallSettings)
public virtual Task<DlpJob> GetDlpJobAsync(DlpJobName name, CallSettings callSettings = null)
Gets the latest state of a long-running DlpJob. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Parameters | |
---|---|
Name | Description |
name |
DlpJobName Required. The name of the DlpJob resource. |
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)
DlpJobName name = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]");
// Make the request
DlpJob response = await dlpServiceClient.GetDlpJobAsync(name);
GetDlpJobAsync(DlpJobName, CancellationToken)
public virtual Task<DlpJob> GetDlpJobAsync(DlpJobName name, CancellationToken cancellationToken)
Gets the latest state of a long-running DlpJob. 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 |
name |
DlpJobName Required. The name of the DlpJob resource. |
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)
DlpJobName name = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]");
// Make the request
DlpJob response = await dlpServiceClient.GetDlpJobAsync(name);
GetDlpJobAsync(GetDlpJobRequest, CallSettings)
public virtual Task<DlpJob> GetDlpJobAsync(GetDlpJobRequest request, CallSettings callSettings = null)
Gets the latest state of a long-running DlpJob. 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 |
GetDlpJobRequest 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)
GetDlpJobRequest request = new GetDlpJobRequest
{
DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
DlpJob response = await dlpServiceClient.GetDlpJobAsync(request);
GetDlpJobAsync(GetDlpJobRequest, CancellationToken)
public virtual Task<DlpJob> GetDlpJobAsync(GetDlpJobRequest request, CancellationToken cancellationToken)
Gets the latest state of a long-running DlpJob. 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 |
GetDlpJobRequest 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)
GetDlpJobRequest request = new GetDlpJobRequest
{
DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
DlpJob response = await dlpServiceClient.GetDlpJobAsync(request);
GetDlpJobAsync(string, CallSettings)
public virtual Task<DlpJob> GetDlpJobAsync(string name, CallSettings callSettings = null)
Gets the latest state of a long-running DlpJob. 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 |
name |
string Required. The name of the DlpJob resource. |
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 name = "projects/[PROJECT]/dlpJobs/[DLP_JOB]";
// Make the request
DlpJob response = await dlpServiceClient.GetDlpJobAsync(name);
GetDlpJobAsync(string, CancellationToken)
public virtual Task<DlpJob> GetDlpJobAsync(string name, CancellationToken cancellationToken)
Gets the latest state of a long-running DlpJob. 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 |
name |
string Required. The name of the DlpJob resource. |
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 name = "projects/[PROJECT]/dlpJobs/[DLP_JOB]";
// Make the request
DlpJob response = await dlpServiceClient.GetDlpJobAsync(name);
GetFileStoreDataProfile(GetFileStoreDataProfileRequest, CallSettings)
public virtual FileStoreDataProfile GetFileStoreDataProfile(GetFileStoreDataProfileRequest request, CallSettings callSettings = null)
Gets a file store data profile.
Parameters | |
---|---|
Name | Description |
request |
GetFileStoreDataProfileRequest 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 |
FileStoreDataProfile |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
GetFileStoreDataProfileRequest request = new GetFileStoreDataProfileRequest
{
ProjectDataProfileName = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"),
};
// Make the request
FileStoreDataProfile response = dlpServiceClient.GetFileStoreDataProfile(request);
GetFileStoreDataProfile(ProjectDataProfileName, CallSettings)
public virtual FileStoreDataProfile GetFileStoreDataProfile(ProjectDataProfileName name, CallSettings callSettings = null)
Gets a file store data profile.
Parameters | |
---|---|
Name | Description |
name |
ProjectDataProfileName Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FileStoreDataProfile |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectDataProfileName name = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]");
// Make the request
FileStoreDataProfile response = dlpServiceClient.GetFileStoreDataProfile(name);
GetFileStoreDataProfile(string, CallSettings)
public virtual FileStoreDataProfile GetFileStoreDataProfile(string name, CallSettings callSettings = null)
Gets a file store data profile.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FileStoreDataProfile |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/projectDataProfiles/[PROJECT_DATA_PROFILE]";
// Make the request
FileStoreDataProfile response = dlpServiceClient.GetFileStoreDataProfile(name);
GetFileStoreDataProfileAsync(GetFileStoreDataProfileRequest, CallSettings)
public virtual Task<FileStoreDataProfile> GetFileStoreDataProfileAsync(GetFileStoreDataProfileRequest request, CallSettings callSettings = null)
Gets a file store data profile.
Parameters | |
---|---|
Name | Description |
request |
GetFileStoreDataProfileRequest 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 |
TaskFileStoreDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetFileStoreDataProfileRequest request = new GetFileStoreDataProfileRequest
{
ProjectDataProfileName = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"),
};
// Make the request
FileStoreDataProfile response = await dlpServiceClient.GetFileStoreDataProfileAsync(request);
GetFileStoreDataProfileAsync(GetFileStoreDataProfileRequest, CancellationToken)
public virtual Task<FileStoreDataProfile> GetFileStoreDataProfileAsync(GetFileStoreDataProfileRequest request, CancellationToken cancellationToken)
Gets a file store data profile.
Parameters | |
---|---|
Name | Description |
request |
GetFileStoreDataProfileRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFileStoreDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetFileStoreDataProfileRequest request = new GetFileStoreDataProfileRequest
{
ProjectDataProfileName = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"),
};
// Make the request
FileStoreDataProfile response = await dlpServiceClient.GetFileStoreDataProfileAsync(request);
GetFileStoreDataProfileAsync(ProjectDataProfileName, CallSettings)
public virtual Task<FileStoreDataProfile> GetFileStoreDataProfileAsync(ProjectDataProfileName name, CallSettings callSettings = null)
Gets a file store data profile.
Parameters | |
---|---|
Name | Description |
name |
ProjectDataProfileName Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFileStoreDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectDataProfileName name = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]");
// Make the request
FileStoreDataProfile response = await dlpServiceClient.GetFileStoreDataProfileAsync(name);
GetFileStoreDataProfileAsync(ProjectDataProfileName, CancellationToken)
public virtual Task<FileStoreDataProfile> GetFileStoreDataProfileAsync(ProjectDataProfileName name, CancellationToken cancellationToken)
Gets a file store data profile.
Parameters | |
---|---|
Name | Description |
name |
ProjectDataProfileName Required. Resource name, for example
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFileStoreDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectDataProfileName name = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]");
// Make the request
FileStoreDataProfile response = await dlpServiceClient.GetFileStoreDataProfileAsync(name);
GetFileStoreDataProfileAsync(string, CallSettings)
public virtual Task<FileStoreDataProfile> GetFileStoreDataProfileAsync(string name, CallSettings callSettings = null)
Gets a file store data profile.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFileStoreDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/projectDataProfiles/[PROJECT_DATA_PROFILE]";
// Make the request
FileStoreDataProfile response = await dlpServiceClient.GetFileStoreDataProfileAsync(name);
GetFileStoreDataProfileAsync(string, CancellationToken)
public virtual Task<FileStoreDataProfile> GetFileStoreDataProfileAsync(string name, CancellationToken cancellationToken)
Gets a file store data profile.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name, for example
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFileStoreDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/projectDataProfiles/[PROJECT_DATA_PROFILE]";
// Make the request
FileStoreDataProfile response = await dlpServiceClient.GetFileStoreDataProfileAsync(name);
GetInspectTemplate(GetInspectTemplateRequest, CallSettings)
public virtual InspectTemplate GetInspectTemplate(GetInspectTemplateRequest request, CallSettings callSettings = null)
Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
request |
GetInspectTemplateRequest 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)
GetInspectTemplateRequest request = new GetInspectTemplateRequest
{
InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
};
// Make the request
InspectTemplate response = dlpServiceClient.GetInspectTemplate(request);
GetInspectTemplate(InspectTemplateName, CallSettings)
public virtual InspectTemplate GetInspectTemplate(InspectTemplateName name, CallSettings callSettings = null)
Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
InspectTemplateName Required. Resource name of the organization and inspectTemplate to be read,
for example |
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)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
// Make the request
InspectTemplate response = dlpServiceClient.GetInspectTemplate(name);
GetInspectTemplate(string, CallSettings)
public virtual InspectTemplate GetInspectTemplate(string name, CallSettings callSettings = null)
Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and inspectTemplate to be read,
for example |
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 name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
// Make the request
InspectTemplate response = dlpServiceClient.GetInspectTemplate(name);
GetInspectTemplateAsync(GetInspectTemplateRequest, CallSettings)
public virtual Task<InspectTemplate> GetInspectTemplateAsync(GetInspectTemplateRequest request, CallSettings callSettings = null)
Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
request |
GetInspectTemplateRequest 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)
GetInspectTemplateRequest request = new GetInspectTemplateRequest
{
InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
};
// Make the request
InspectTemplate response = await dlpServiceClient.GetInspectTemplateAsync(request);
GetInspectTemplateAsync(GetInspectTemplateRequest, CancellationToken)
public virtual Task<InspectTemplate> GetInspectTemplateAsync(GetInspectTemplateRequest request, CancellationToken cancellationToken)
Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
request |
GetInspectTemplateRequest 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)
GetInspectTemplateRequest request = new GetInspectTemplateRequest
{
InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
};
// Make the request
InspectTemplate response = await dlpServiceClient.GetInspectTemplateAsync(request);
GetInspectTemplateAsync(InspectTemplateName, CallSettings)
public virtual Task<InspectTemplate> GetInspectTemplateAsync(InspectTemplateName name, CallSettings callSettings = null)
Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
InspectTemplateName Required. Resource name of the organization and inspectTemplate to be read,
for example |
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)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
// Make the request
InspectTemplate response = await dlpServiceClient.GetInspectTemplateAsync(name);
GetInspectTemplateAsync(InspectTemplateName, CancellationToken)
public virtual Task<InspectTemplate> GetInspectTemplateAsync(InspectTemplateName name, CancellationToken cancellationToken)
Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
InspectTemplateName Required. Resource name of the organization and inspectTemplate to be read,
for example |
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)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
// Make the request
InspectTemplate response = await dlpServiceClient.GetInspectTemplateAsync(name);
GetInspectTemplateAsync(string, CallSettings)
public virtual Task<InspectTemplate> GetInspectTemplateAsync(string name, CallSettings callSettings = null)
Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and inspectTemplate to be read,
for example |
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 name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
// Make the request
InspectTemplate response = await dlpServiceClient.GetInspectTemplateAsync(name);
GetInspectTemplateAsync(string, CancellationToken)
public virtual Task<InspectTemplate> GetInspectTemplateAsync(string name, CancellationToken cancellationToken)
Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and inspectTemplate to be read,
for example |
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 name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
// Make the request
InspectTemplate response = await dlpServiceClient.GetInspectTemplateAsync(name);
GetJobTrigger(GetJobTriggerRequest, CallSettings)
public virtual JobTrigger GetJobTrigger(GetJobTriggerRequest request, CallSettings callSettings = null)
Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
request |
GetJobTriggerRequest 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)
GetJobTriggerRequest request = new GetJobTriggerRequest
{
JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
};
// Make the request
JobTrigger response = dlpServiceClient.GetJobTrigger(request);
GetJobTrigger(JobTriggerName, CallSettings)
public virtual JobTrigger GetJobTrigger(JobTriggerName name, CallSettings callSettings = null)
Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
JobTriggerName Required. Resource name of the project and the triggeredJob, for example
|
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)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
// Make the request
JobTrigger response = dlpServiceClient.GetJobTrigger(name);
GetJobTrigger(string, CallSettings)
public virtual JobTrigger GetJobTrigger(string name, CallSettings callSettings = null)
Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the triggeredJob, for example
|
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 name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
// Make the request
JobTrigger response = dlpServiceClient.GetJobTrigger(name);
GetJobTriggerAsync(GetJobTriggerRequest, CallSettings)
public virtual Task<JobTrigger> GetJobTriggerAsync(GetJobTriggerRequest request, CallSettings callSettings = null)
Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
request |
GetJobTriggerRequest 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)
GetJobTriggerRequest request = new GetJobTriggerRequest
{
JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
};
// Make the request
JobTrigger response = await dlpServiceClient.GetJobTriggerAsync(request);
GetJobTriggerAsync(GetJobTriggerRequest, CancellationToken)
public virtual Task<JobTrigger> GetJobTriggerAsync(GetJobTriggerRequest request, CancellationToken cancellationToken)
Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
request |
GetJobTriggerRequest 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)
GetJobTriggerRequest request = new GetJobTriggerRequest
{
JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
};
// Make the request
JobTrigger response = await dlpServiceClient.GetJobTriggerAsync(request);
GetJobTriggerAsync(JobTriggerName, CallSettings)
public virtual Task<JobTrigger> GetJobTriggerAsync(JobTriggerName name, CallSettings callSettings = null)
Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
JobTriggerName Required. Resource name of the project and the triggeredJob, for example
|
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)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
// Make the request
JobTrigger response = await dlpServiceClient.GetJobTriggerAsync(name);
GetJobTriggerAsync(JobTriggerName, CancellationToken)
public virtual Task<JobTrigger> GetJobTriggerAsync(JobTriggerName name, CancellationToken cancellationToken)
Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
JobTriggerName Required. Resource name of the project and the triggeredJob, for example
|
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)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
// Make the request
JobTrigger response = await dlpServiceClient.GetJobTriggerAsync(name);
GetJobTriggerAsync(string, CallSettings)
public virtual Task<JobTrigger> GetJobTriggerAsync(string name, CallSettings callSettings = null)
Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the triggeredJob, for example
|
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 name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
// Make the request
JobTrigger response = await dlpServiceClient.GetJobTriggerAsync(name);
GetJobTriggerAsync(string, CancellationToken)
public virtual Task<JobTrigger> GetJobTriggerAsync(string name, CancellationToken cancellationToken)
Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the triggeredJob, for example
|
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)
string name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
// Make the request
JobTrigger response = await dlpServiceClient.GetJobTriggerAsync(name);
GetProjectDataProfile(GetProjectDataProfileRequest, CallSettings)
public virtual ProjectDataProfile GetProjectDataProfile(GetProjectDataProfileRequest request, CallSettings callSettings = null)
Gets a project data profile.
Parameters | |
---|---|
Name | Description |
request |
GetProjectDataProfileRequest 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 |
ProjectDataProfile |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
GetProjectDataProfileRequest request = new GetProjectDataProfileRequest
{
ProjectDataProfileName = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"),
};
// Make the request
ProjectDataProfile response = dlpServiceClient.GetProjectDataProfile(request);
GetProjectDataProfile(ProjectDataProfileName, CallSettings)
public virtual ProjectDataProfile GetProjectDataProfile(ProjectDataProfileName name, CallSettings callSettings = null)
Gets a project data profile.
Parameters | |
---|---|
Name | Description |
name |
ProjectDataProfileName Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ProjectDataProfile |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectDataProfileName name = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]");
// Make the request
ProjectDataProfile response = dlpServiceClient.GetProjectDataProfile(name);
GetProjectDataProfile(string, CallSettings)
public virtual ProjectDataProfile GetProjectDataProfile(string name, CallSettings callSettings = null)
Gets a project data profile.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ProjectDataProfile |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/projectDataProfiles/[PROJECT_DATA_PROFILE]";
// Make the request
ProjectDataProfile response = dlpServiceClient.GetProjectDataProfile(name);
GetProjectDataProfileAsync(GetProjectDataProfileRequest, CallSettings)
public virtual Task<ProjectDataProfile> GetProjectDataProfileAsync(GetProjectDataProfileRequest request, CallSettings callSettings = null)
Gets a project data profile.
Parameters | |
---|---|
Name | Description |
request |
GetProjectDataProfileRequest 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 |
TaskProjectDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetProjectDataProfileRequest request = new GetProjectDataProfileRequest
{
ProjectDataProfileName = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"),
};
// Make the request
ProjectDataProfile response = await dlpServiceClient.GetProjectDataProfileAsync(request);
GetProjectDataProfileAsync(GetProjectDataProfileRequest, CancellationToken)
public virtual Task<ProjectDataProfile> GetProjectDataProfileAsync(GetProjectDataProfileRequest request, CancellationToken cancellationToken)
Gets a project data profile.
Parameters | |
---|---|
Name | Description |
request |
GetProjectDataProfileRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskProjectDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetProjectDataProfileRequest request = new GetProjectDataProfileRequest
{
ProjectDataProfileName = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"),
};
// Make the request
ProjectDataProfile response = await dlpServiceClient.GetProjectDataProfileAsync(request);
GetProjectDataProfileAsync(ProjectDataProfileName, CallSettings)
public virtual Task<ProjectDataProfile> GetProjectDataProfileAsync(ProjectDataProfileName name, CallSettings callSettings = null)
Gets a project data profile.
Parameters | |
---|---|
Name | Description |
name |
ProjectDataProfileName Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskProjectDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectDataProfileName name = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]");
// Make the request
ProjectDataProfile response = await dlpServiceClient.GetProjectDataProfileAsync(name);
GetProjectDataProfileAsync(ProjectDataProfileName, CancellationToken)
public virtual Task<ProjectDataProfile> GetProjectDataProfileAsync(ProjectDataProfileName name, CancellationToken cancellationToken)
Gets a project data profile.
Parameters | |
---|---|
Name | Description |
name |
ProjectDataProfileName Required. Resource name, for example
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskProjectDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectDataProfileName name = ProjectDataProfileName.FromOrganizationLocationProjectDataProfile("[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]");
// Make the request
ProjectDataProfile response = await dlpServiceClient.GetProjectDataProfileAsync(name);
GetProjectDataProfileAsync(string, CallSettings)
public virtual Task<ProjectDataProfile> GetProjectDataProfileAsync(string name, CallSettings callSettings = null)
Gets a project data profile.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskProjectDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/projectDataProfiles/[PROJECT_DATA_PROFILE]";
// Make the request
ProjectDataProfile response = await dlpServiceClient.GetProjectDataProfileAsync(name);
GetProjectDataProfileAsync(string, CancellationToken)
public virtual Task<ProjectDataProfile> GetProjectDataProfileAsync(string name, CancellationToken cancellationToken)
Gets a project data profile.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name, for example
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskProjectDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/projectDataProfiles/[PROJECT_DATA_PROFILE]";
// Make the request
ProjectDataProfile response = await dlpServiceClient.GetProjectDataProfileAsync(name);
GetStoredInfoType(GetStoredInfoTypeRequest, CallSettings)
public virtual StoredInfoType GetStoredInfoType(GetStoredInfoTypeRequest request, CallSettings callSettings = null)
Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
request |
GetStoredInfoTypeRequest 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 |
StoredInfoType |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
GetStoredInfoTypeRequest request = new GetStoredInfoTypeRequest
{
StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
};
// Make the request
StoredInfoType response = dlpServiceClient.GetStoredInfoType(request);
GetStoredInfoType(StoredInfoTypeName, CallSettings)
public virtual StoredInfoType GetStoredInfoType(StoredInfoTypeName name, CallSettings callSettings = null)
Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
StoredInfoTypeName Required. Resource name of the organization and storedInfoType to be read,
for example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
StoredInfoType |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
// Make the request
StoredInfoType response = dlpServiceClient.GetStoredInfoType(name);
GetStoredInfoType(string, CallSettings)
public virtual StoredInfoType GetStoredInfoType(string name, CallSettings callSettings = null)
Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and storedInfoType to be read,
for example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
StoredInfoType |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
// Make the request
StoredInfoType response = dlpServiceClient.GetStoredInfoType(name);
GetStoredInfoTypeAsync(GetStoredInfoTypeRequest, CallSettings)
public virtual Task<StoredInfoType> GetStoredInfoTypeAsync(GetStoredInfoTypeRequest request, CallSettings callSettings = null)
Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
request |
GetStoredInfoTypeRequest 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 |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetStoredInfoTypeRequest request = new GetStoredInfoTypeRequest
{
StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
};
// Make the request
StoredInfoType response = await dlpServiceClient.GetStoredInfoTypeAsync(request);
GetStoredInfoTypeAsync(GetStoredInfoTypeRequest, CancellationToken)
public virtual Task<StoredInfoType> GetStoredInfoTypeAsync(GetStoredInfoTypeRequest request, CancellationToken cancellationToken)
Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
request |
GetStoredInfoTypeRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetStoredInfoTypeRequest request = new GetStoredInfoTypeRequest
{
StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
};
// Make the request
StoredInfoType response = await dlpServiceClient.GetStoredInfoTypeAsync(request);
GetStoredInfoTypeAsync(StoredInfoTypeName, CallSettings)
public virtual Task<StoredInfoType> GetStoredInfoTypeAsync(StoredInfoTypeName name, CallSettings callSettings = null)
Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
StoredInfoTypeName Required. Resource name of the organization and storedInfoType to be read,
for example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
// Make the request
StoredInfoType response = await dlpServiceClient.GetStoredInfoTypeAsync(name);
GetStoredInfoTypeAsync(StoredInfoTypeName, CancellationToken)
public virtual Task<StoredInfoType> GetStoredInfoTypeAsync(StoredInfoTypeName name, CancellationToken cancellationToken)
Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
StoredInfoTypeName Required. Resource name of the organization and storedInfoType to be read,
for example |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
// Make the request
StoredInfoType response = await dlpServiceClient.GetStoredInfoTypeAsync(name);
GetStoredInfoTypeAsync(string, CallSettings)
public virtual Task<StoredInfoType> GetStoredInfoTypeAsync(string name, CallSettings callSettings = null)
Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and storedInfoType to be read,
for example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
// Make the request
StoredInfoType response = await dlpServiceClient.GetStoredInfoTypeAsync(name);
GetStoredInfoTypeAsync(string, CancellationToken)
public virtual Task<StoredInfoType> GetStoredInfoTypeAsync(string name, CancellationToken cancellationToken)
Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the organization and storedInfoType to be read,
for example |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
// Make the request
StoredInfoType response = await dlpServiceClient.GetStoredInfoTypeAsync(name);
GetTableDataProfile(GetTableDataProfileRequest, CallSettings)
public virtual TableDataProfile GetTableDataProfile(GetTableDataProfileRequest request, CallSettings callSettings = null)
Gets a table data profile.
Parameters | |
---|---|
Name | Description |
request |
GetTableDataProfileRequest 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 |
TableDataProfile |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
GetTableDataProfileRequest request = new GetTableDataProfileRequest
{
TableDataProfileName = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"),
};
// Make the request
TableDataProfile response = dlpServiceClient.GetTableDataProfile(request);
GetTableDataProfile(TableDataProfileName, CallSettings)
public virtual TableDataProfile GetTableDataProfile(TableDataProfileName name, CallSettings callSettings = null)
Gets a table data profile.
Parameters | |
---|---|
Name | Description |
name |
TableDataProfileName Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TableDataProfile |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
TableDataProfileName name = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]");
// Make the request
TableDataProfile response = dlpServiceClient.GetTableDataProfile(name);
GetTableDataProfile(string, CallSettings)
public virtual TableDataProfile GetTableDataProfile(string name, CallSettings callSettings = null)
Gets a table data profile.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TableDataProfile |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/tableDataProfiles/[TABLE_DATA_PROFILE]";
// Make the request
TableDataProfile response = dlpServiceClient.GetTableDataProfile(name);
GetTableDataProfileAsync(GetTableDataProfileRequest, CallSettings)
public virtual Task<TableDataProfile> GetTableDataProfileAsync(GetTableDataProfileRequest request, CallSettings callSettings = null)
Gets a table data profile.
Parameters | |
---|---|
Name | Description |
request |
GetTableDataProfileRequest 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 |
TaskTableDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetTableDataProfileRequest request = new GetTableDataProfileRequest
{
TableDataProfileName = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"),
};
// Make the request
TableDataProfile response = await dlpServiceClient.GetTableDataProfileAsync(request);
GetTableDataProfileAsync(GetTableDataProfileRequest, CancellationToken)
public virtual Task<TableDataProfile> GetTableDataProfileAsync(GetTableDataProfileRequest request, CancellationToken cancellationToken)
Gets a table data profile.
Parameters | |
---|---|
Name | Description |
request |
GetTableDataProfileRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTableDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
GetTableDataProfileRequest request = new GetTableDataProfileRequest
{
TableDataProfileName = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"),
};
// Make the request
TableDataProfile response = await dlpServiceClient.GetTableDataProfileAsync(request);
GetTableDataProfileAsync(TableDataProfileName, CallSettings)
public virtual Task<TableDataProfile> GetTableDataProfileAsync(TableDataProfileName name, CallSettings callSettings = null)
Gets a table data profile.
Parameters | |
---|---|
Name | Description |
name |
TableDataProfileName Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTableDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
TableDataProfileName name = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]");
// Make the request
TableDataProfile response = await dlpServiceClient.GetTableDataProfileAsync(name);
GetTableDataProfileAsync(TableDataProfileName, CancellationToken)
public virtual Task<TableDataProfile> GetTableDataProfileAsync(TableDataProfileName name, CancellationToken cancellationToken)
Gets a table data profile.
Parameters | |
---|---|
Name | Description |
name |
TableDataProfileName Required. Resource name, for example
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTableDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
TableDataProfileName name = TableDataProfileName.FromOrganizationLocationTableDataProfile("[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]");
// Make the request
TableDataProfile response = await dlpServiceClient.GetTableDataProfileAsync(name);
GetTableDataProfileAsync(string, CallSettings)
public virtual Task<TableDataProfile> GetTableDataProfileAsync(string name, CallSettings callSettings = null)
Gets a table data profile.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name, for example
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTableDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/tableDataProfiles/[TABLE_DATA_PROFILE]";
// Make the request
TableDataProfile response = await dlpServiceClient.GetTableDataProfileAsync(name);
GetTableDataProfileAsync(string, CancellationToken)
public virtual Task<TableDataProfile> GetTableDataProfileAsync(string name, CancellationToken cancellationToken)
Gets a table data profile.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name, for example
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTableDataProfile |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/tableDataProfiles/[TABLE_DATA_PROFILE]";
// Make the request
TableDataProfile response = await dlpServiceClient.GetTableDataProfileAsync(name);
HybridInspectDlpJob(DlpJobName, CallSettings)
public virtual HybridInspectResponse HybridInspectDlpJob(DlpJobName name, CallSettings callSettings = null)
Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.
Parameters | |
---|---|
Name | Description |
name |
DlpJobName Required. Resource name of the job to execute a hybrid inspect on, for
example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
HybridInspectResponse |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
DlpJobName name = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]");
// Make the request
HybridInspectResponse response = dlpServiceClient.HybridInspectDlpJob(name);
HybridInspectDlpJob(HybridInspectDlpJobRequest, CallSettings)
public virtual HybridInspectResponse HybridInspectDlpJob(HybridInspectDlpJobRequest request, CallSettings callSettings = null)
Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.
Parameters | |
---|---|
Name | Description |
request |
HybridInspectDlpJobRequest 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 |
HybridInspectResponse |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
HybridInspectDlpJobRequest request = new HybridInspectDlpJobRequest
{
DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
HybridItem = new HybridContentItem(),
};
// Make the request
HybridInspectResponse response = dlpServiceClient.HybridInspectDlpJob(request);
HybridInspectDlpJob(string, CallSettings)
public virtual HybridInspectResponse HybridInspectDlpJob(string name, CallSettings callSettings = null)
Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the job to execute a hybrid inspect on, for
example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
HybridInspectResponse |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/dlpJobs/[DLP_JOB]";
// Make the request
HybridInspectResponse response = dlpServiceClient.HybridInspectDlpJob(name);
HybridInspectDlpJobAsync(DlpJobName, CallSettings)
public virtual Task<HybridInspectResponse> HybridInspectDlpJobAsync(DlpJobName name, CallSettings callSettings = null)
Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.
Parameters | |
---|---|
Name | Description |
name |
DlpJobName Required. Resource name of the job to execute a hybrid inspect on, for
example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskHybridInspectResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DlpJobName name = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]");
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectDlpJobAsync(name);
HybridInspectDlpJobAsync(DlpJobName, CancellationToken)
public virtual Task<HybridInspectResponse> HybridInspectDlpJobAsync(DlpJobName name, CancellationToken cancellationToken)
Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.
Parameters | |
---|---|
Name | Description |
name |
DlpJobName Required. Resource name of the job to execute a hybrid inspect on, for
example |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskHybridInspectResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
DlpJobName name = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]");
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectDlpJobAsync(name);
HybridInspectDlpJobAsync(HybridInspectDlpJobRequest, CallSettings)
public virtual Task<HybridInspectResponse> HybridInspectDlpJobAsync(HybridInspectDlpJobRequest request, CallSettings callSettings = null)
Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.
Parameters | |
---|---|
Name | Description |
request |
HybridInspectDlpJobRequest 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 |
TaskHybridInspectResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
HybridInspectDlpJobRequest request = new HybridInspectDlpJobRequest
{
DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
HybridItem = new HybridContentItem(),
};
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectDlpJobAsync(request);
HybridInspectDlpJobAsync(HybridInspectDlpJobRequest, CancellationToken)
public virtual Task<HybridInspectResponse> HybridInspectDlpJobAsync(HybridInspectDlpJobRequest request, CancellationToken cancellationToken)
Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.
Parameters | |
---|---|
Name | Description |
request |
HybridInspectDlpJobRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskHybridInspectResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
HybridInspectDlpJobRequest request = new HybridInspectDlpJobRequest
{
DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
HybridItem = new HybridContentItem(),
};
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectDlpJobAsync(request);
HybridInspectDlpJobAsync(string, CallSettings)
public virtual Task<HybridInspectResponse> HybridInspectDlpJobAsync(string name, CallSettings callSettings = null)
Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the job to execute a hybrid inspect on, for
example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskHybridInspectResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/dlpJobs/[DLP_JOB]";
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectDlpJobAsync(name);
HybridInspectDlpJobAsync(string, CancellationToken)
public virtual Task<HybridInspectResponse> HybridInspectDlpJobAsync(string name, CancellationToken cancellationToken)
Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the job to execute a hybrid inspect on, for
example |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskHybridInspectResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/dlpJobs/[DLP_JOB]";
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectDlpJobAsync(name);
HybridInspectJobTrigger(HybridInspectJobTriggerRequest, CallSettings)
public virtual HybridInspectResponse HybridInspectJobTrigger(HybridInspectJobTriggerRequest request, CallSettings callSettings = null)
Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.
Parameters | |
---|---|
Name | Description |
request |
HybridInspectJobTriggerRequest 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 |
HybridInspectResponse |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
HybridInspectJobTriggerRequest request = new HybridInspectJobTriggerRequest
{
JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
HybridItem = new HybridContentItem(),
};
// Make the request
HybridInspectResponse response = dlpServiceClient.HybridInspectJobTrigger(request);
HybridInspectJobTrigger(JobTriggerName, CallSettings)
public virtual HybridInspectResponse HybridInspectJobTrigger(JobTriggerName name, CallSettings callSettings = null)
Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.
Parameters | |
---|---|
Name | Description |
name |
JobTriggerName Required. Resource name of the trigger to execute a hybrid inspect on, for
example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
HybridInspectResponse |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
// Make the request
HybridInspectResponse response = dlpServiceClient.HybridInspectJobTrigger(name);
HybridInspectJobTrigger(string, CallSettings)
public virtual HybridInspectResponse HybridInspectJobTrigger(string name, CallSettings callSettings = null)
Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the trigger to execute a hybrid inspect on, for
example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
HybridInspectResponse |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
// Make the request
HybridInspectResponse response = dlpServiceClient.HybridInspectJobTrigger(name);
HybridInspectJobTriggerAsync(HybridInspectJobTriggerRequest, CallSettings)
public virtual Task<HybridInspectResponse> HybridInspectJobTriggerAsync(HybridInspectJobTriggerRequest request, CallSettings callSettings = null)
Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.
Parameters | |
---|---|
Name | Description |
request |
HybridInspectJobTriggerRequest 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 |
TaskHybridInspectResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
HybridInspectJobTriggerRequest request = new HybridInspectJobTriggerRequest
{
JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
HybridItem = new HybridContentItem(),
};
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectJobTriggerAsync(request);
HybridInspectJobTriggerAsync(HybridInspectJobTriggerRequest, CancellationToken)
public virtual Task<HybridInspectResponse> HybridInspectJobTriggerAsync(HybridInspectJobTriggerRequest request, CancellationToken cancellationToken)
Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.
Parameters | |
---|---|
Name | Description |
request |
HybridInspectJobTriggerRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskHybridInspectResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
HybridInspectJobTriggerRequest request = new HybridInspectJobTriggerRequest
{
JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
HybridItem = new HybridContentItem(),
};
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectJobTriggerAsync(request);
HybridInspectJobTriggerAsync(JobTriggerName, CallSettings)
public virtual Task<HybridInspectResponse> HybridInspectJobTriggerAsync(JobTriggerName name, CallSettings callSettings = null)
Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.
Parameters | |
---|---|
Name | Description |
name |
JobTriggerName Required. Resource name of the trigger to execute a hybrid inspect on, for
example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskHybridInspectResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectJobTriggerAsync(name);
HybridInspectJobTriggerAsync(JobTriggerName, CancellationToken)
public virtual Task<HybridInspectResponse> HybridInspectJobTriggerAsync(JobTriggerName name, CancellationToken cancellationToken)
Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.
Parameters | |
---|---|
Name | Description |
name |
JobTriggerName Required. Resource name of the trigger to execute a hybrid inspect on, for
example |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskHybridInspectResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectJobTriggerAsync(name);
HybridInspectJobTriggerAsync(string, CallSettings)
public virtual Task<HybridInspectResponse> HybridInspectJobTriggerAsync(string name, CallSettings callSettings = null)
Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the trigger to execute a hybrid inspect on, for
example |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskHybridInspectResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectJobTriggerAsync(name);
HybridInspectJobTriggerAsync(string, CancellationToken)
public virtual Task<HybridInspectResponse> HybridInspectJobTriggerAsync(string name, CancellationToken cancellationToken)
Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the trigger to execute a hybrid inspect on, for
example |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskHybridInspectResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
// Make the request
HybridInspectResponse response = await dlpServiceClient.HybridInspectJobTriggerAsync(name);
InspectContent(InspectContentRequest, CallSettings)
public virtual InspectContentResponse InspectContent(InspectContentRequest request, CallSettings callSettings = null)
Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size.
When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
For how to guides, see https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,
Parameters | |
---|---|
Name | Description |
request |
InspectContentRequest 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 |
InspectContentResponse |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
InspectContentRequest request = new InspectContentRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
InspectConfig = new InspectConfig(),
Item = new ContentItem(),
InspectTemplateName = "",
LocationId = "",
};
// Make the request
InspectContentResponse response = dlpServiceClient.InspectContent(request);
InspectContentAsync(InspectContentRequest, CallSettings)
public virtual Task<InspectContentResponse> InspectContentAsync(InspectContentRequest request, CallSettings callSettings = null)
Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size.
When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
For how to guides, see https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,
Parameters | |
---|---|
Name | Description |
request |
InspectContentRequest 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 |
TaskInspectContentResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
InspectContentRequest request = new InspectContentRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
InspectConfig = new InspectConfig(),
Item = new ContentItem(),
InspectTemplateName = "",
LocationId = "",
};
// Make the request
InspectContentResponse response = await dlpServiceClient.InspectContentAsync(request);
InspectContentAsync(InspectContentRequest, CancellationToken)
public virtual Task<InspectContentResponse> InspectContentAsync(InspectContentRequest request, CancellationToken cancellationToken)
Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size.
When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
For how to guides, see https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,
Parameters | |
---|---|
Name | Description |
request |
InspectContentRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskInspectContentResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
InspectContentRequest request = new InspectContentRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
InspectConfig = new InspectConfig(),
Item = new ContentItem(),
InspectTemplateName = "",
LocationId = "",
};
// Make the request
InspectContentResponse response = await dlpServiceClient.InspectContentAsync(request);
ListColumnDataProfiles(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfiles(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists column data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListColumnDataProfilesResponseColumnDataProfile |
A pageable sequence of ColumnDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ColumnDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListColumnDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ColumnDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListColumnDataProfiles(ListColumnDataProfilesRequest, CallSettings)
public virtual PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfiles(ListColumnDataProfilesRequest request, CallSettings callSettings = null)
Lists column data profiles for an organization.
Parameters | |
---|---|
Name | Description |
request |
ListColumnDataProfilesRequest 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 |
PagedEnumerableListColumnDataProfilesResponseColumnDataProfile |
A pageable sequence of ColumnDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListColumnDataProfilesRequest request = new ListColumnDataProfilesRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfiles(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (ColumnDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListColumnDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ColumnDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListColumnDataProfiles(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfiles(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists column data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListColumnDataProfilesResponseColumnDataProfile |
A pageable sequence of ColumnDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ColumnDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListColumnDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ColumnDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListColumnDataProfiles(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfiles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists column data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListColumnDataProfilesResponseColumnDataProfile |
A pageable sequence of ColumnDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ColumnDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListColumnDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ColumnDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListColumnDataProfilesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfilesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists column data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListColumnDataProfilesResponseColumnDataProfile |
A pageable asynchronous sequence of ColumnDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ColumnDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListColumnDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ColumnDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListColumnDataProfilesAsync(ListColumnDataProfilesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfilesAsync(ListColumnDataProfilesRequest request, CallSettings callSettings = null)
Lists column data profiles for an organization.
Parameters | |
---|---|
Name | Description |
request |
ListColumnDataProfilesRequest 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 |
PagedAsyncEnumerableListColumnDataProfilesResponseColumnDataProfile |
A pageable asynchronous sequence of ColumnDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListColumnDataProfilesRequest request = new ListColumnDataProfilesRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfilesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ColumnDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListColumnDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ColumnDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListColumnDataProfilesAsync(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfilesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists column data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListColumnDataProfilesResponseColumnDataProfile |
A pageable asynchronous sequence of ColumnDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ColumnDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListColumnDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ColumnDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListColumnDataProfilesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> ListColumnDataProfilesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists column data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListColumnDataProfilesResponseColumnDataProfile |
A pageable asynchronous sequence of ColumnDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListColumnDataProfilesResponse, ColumnDataProfile> response = dlpServiceClient.ListColumnDataProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ColumnDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListColumnDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ColumnDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ColumnDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ColumnDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListConnections(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListConnectionsResponse, Connection> ListConnections(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Connections in a parent.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Parent name, for example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListConnectionsResponseConnection |
A pageable sequence of Connection resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListConnectionsResponse, Connection> response = dlpServiceClient.ListConnections(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Connection item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Connection item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListConnections(ListConnectionsRequest, CallSettings)
public virtual PagedEnumerable<ListConnectionsResponse, Connection> ListConnections(ListConnectionsRequest request, CallSettings callSettings = null)
Lists Connections in a parent.
Parameters | |
---|---|
Name | Description |
request |
ListConnectionsRequest 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 |
PagedEnumerableListConnectionsResponseConnection |
A pageable sequence of Connection resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListConnectionsRequest request = new ListConnectionsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
};
// Make the request
PagedEnumerable<ListConnectionsResponse, Connection> response = dlpServiceClient.ListConnections(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Connection item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Connection item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListConnections(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListConnectionsResponse, Connection> ListConnections(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Connections in a parent.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Parent name, for example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListConnectionsResponseConnection |
A pageable sequence of Connection resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListConnectionsResponse, Connection> response = dlpServiceClient.ListConnections(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Connection item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Connection item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListConnectionsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListConnectionsResponse, Connection> ListConnectionsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Connections in a parent.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Parent name, for example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListConnectionsResponseConnection |
A pageable asynchronous sequence of Connection resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListConnectionsResponse, Connection> response = dlpServiceClient.ListConnectionsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Connection item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Connection item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListConnectionsAsync(ListConnectionsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListConnectionsResponse, Connection> ListConnectionsAsync(ListConnectionsRequest request, CallSettings callSettings = null)
Lists Connections in a parent.
Parameters | |
---|---|
Name | Description |
request |
ListConnectionsRequest 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 |
PagedAsyncEnumerableListConnectionsResponseConnection |
A pageable asynchronous sequence of Connection resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListConnectionsRequest request = new ListConnectionsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListConnectionsResponse, Connection> response = dlpServiceClient.ListConnectionsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Connection item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Connection item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListConnectionsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListConnectionsResponse, Connection> ListConnectionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Connections in a parent.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Parent name, for example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListConnectionsResponseConnection |
A pageable asynchronous sequence of Connection resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListConnectionsResponse, Connection> response = dlpServiceClient.ListConnectionsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Connection item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Connection item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeidentifyTemplates(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplates(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DeidentifyTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate |
A pageable sequence of DeidentifyTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DeidentifyTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeidentifyTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeidentifyTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeidentifyTemplates(OrganizationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplates(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DeidentifyTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate |
A pageable sequence of DeidentifyTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DeidentifyTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeidentifyTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeidentifyTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeidentifyTemplates(ProjectName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplates(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DeidentifyTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate |
A pageable sequence of DeidentifyTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DeidentifyTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeidentifyTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeidentifyTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeidentifyTemplates(ListDeidentifyTemplatesRequest, CallSettings)
public virtual PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplates(ListDeidentifyTemplatesRequest request, CallSettings callSettings = null)
Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
request |
ListDeidentifyTemplatesRequest 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 |
PagedEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate |
A pageable sequence of DeidentifyTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListDeidentifyTemplatesRequest request = new ListDeidentifyTemplatesRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
OrderBy = "",
LocationId = "",
};
// Make the request
PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplates(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (DeidentifyTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeidentifyTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeidentifyTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeidentifyTemplates(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplates(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DeidentifyTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate |
A pageable sequence of DeidentifyTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DeidentifyTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeidentifyTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeidentifyTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeidentifyTemplates(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplates(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DeidentifyTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate |
A pageable sequence of DeidentifyTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DeidentifyTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeidentifyTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeidentifyTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeidentifyTemplatesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplatesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DeidentifyTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate |
A pageable asynchronous sequence of DeidentifyTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeidentifyTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeidentifyTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeidentifyTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeidentifyTemplatesAsync(OrganizationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplatesAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DeidentifyTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate |
A pageable asynchronous sequence of DeidentifyTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeidentifyTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeidentifyTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeidentifyTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeidentifyTemplatesAsync(ProjectName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplatesAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DeidentifyTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate |
A pageable asynchronous sequence of DeidentifyTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeidentifyTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeidentifyTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeidentifyTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeidentifyTemplatesAsync(ListDeidentifyTemplatesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplatesAsync(ListDeidentifyTemplatesRequest request, CallSettings callSettings = null)
Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
request |
ListDeidentifyTemplatesRequest 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 |
PagedAsyncEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate |
A pageable asynchronous sequence of DeidentifyTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListDeidentifyTemplatesRequest request = new ListDeidentifyTemplatesRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
OrderBy = "",
LocationId = "",
};
// Make the request
PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplatesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeidentifyTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeidentifyTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeidentifyTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeidentifyTemplatesAsync(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplatesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DeidentifyTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate |
A pageable asynchronous sequence of DeidentifyTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeidentifyTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeidentifyTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeidentifyTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeidentifyTemplatesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> ListDeidentifyTemplatesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DeidentifyTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDeidentifyTemplatesResponseDeidentifyTemplate |
A pageable asynchronous sequence of DeidentifyTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedAsyncEnumerable<ListDeidentifyTemplatesResponse, DeidentifyTemplate> response = dlpServiceClient.ListDeidentifyTemplatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeidentifyTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeidentifyTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeidentifyTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeidentifyTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeidentifyTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDiscoveryConfigs(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> ListDiscoveryConfigs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists discovery configurations.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value is as follows:
The following example parent=projects/example-project/locations/europe-west3 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDiscoveryConfigsResponseDiscoveryConfig |
A pageable sequence of DiscoveryConfig resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> response = dlpServiceClient.ListDiscoveryConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DiscoveryConfig item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDiscoveryConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DiscoveryConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DiscoveryConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DiscoveryConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDiscoveryConfigs(ListDiscoveryConfigsRequest, CallSettings)
public virtual PagedEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> ListDiscoveryConfigs(ListDiscoveryConfigsRequest request, CallSettings callSettings = null)
Lists discovery configurations.
Parameters | |
---|---|
Name | Description |
request |
ListDiscoveryConfigsRequest 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 |
PagedEnumerableListDiscoveryConfigsResponseDiscoveryConfig |
A pageable sequence of DiscoveryConfig resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListDiscoveryConfigsRequest request = new ListDiscoveryConfigsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OrderBy = "",
};
// Make the request
PagedEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> response = dlpServiceClient.ListDiscoveryConfigs(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (DiscoveryConfig item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDiscoveryConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DiscoveryConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DiscoveryConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DiscoveryConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDiscoveryConfigs(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> ListDiscoveryConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists discovery configurations.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value is as follows:
The following example parent=projects/example-project/locations/europe-west3 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDiscoveryConfigsResponseDiscoveryConfig |
A pageable sequence of DiscoveryConfig resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> response = dlpServiceClient.ListDiscoveryConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DiscoveryConfig item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDiscoveryConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DiscoveryConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DiscoveryConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DiscoveryConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDiscoveryConfigsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> ListDiscoveryConfigsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists discovery configurations.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Parent resource name. The format of this value is as follows:
The following example parent=projects/example-project/locations/europe-west3 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDiscoveryConfigsResponseDiscoveryConfig |
A pageable asynchronous sequence of DiscoveryConfig resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> response = dlpServiceClient.ListDiscoveryConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DiscoveryConfig item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDiscoveryConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DiscoveryConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DiscoveryConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DiscoveryConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDiscoveryConfigsAsync(ListDiscoveryConfigsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> ListDiscoveryConfigsAsync(ListDiscoveryConfigsRequest request, CallSettings callSettings = null)
Lists discovery configurations.
Parameters | |
---|---|
Name | Description |
request |
ListDiscoveryConfigsRequest 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 |
PagedAsyncEnumerableListDiscoveryConfigsResponseDiscoveryConfig |
A pageable asynchronous sequence of DiscoveryConfig resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListDiscoveryConfigsRequest request = new ListDiscoveryConfigsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> response = dlpServiceClient.ListDiscoveryConfigsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DiscoveryConfig item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDiscoveryConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DiscoveryConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DiscoveryConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DiscoveryConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDiscoveryConfigsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> ListDiscoveryConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists discovery configurations.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Parent resource name. The format of this value is as follows:
The following example parent=projects/example-project/locations/europe-west3 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDiscoveryConfigsResponseDiscoveryConfig |
A pageable asynchronous sequence of DiscoveryConfig resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListDiscoveryConfigsResponse, DiscoveryConfig> response = dlpServiceClient.ListDiscoveryConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DiscoveryConfig item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDiscoveryConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DiscoveryConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DiscoveryConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DiscoveryConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDlpJobs(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DlpJobs that match the specified filter in the request. 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 |
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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDlpJobsResponseDlpJob |
A pageable sequence of DlpJob resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DlpJob item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDlpJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DlpJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDlpJobs(ProjectName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobs(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DlpJobs that match the specified filter in the request. 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 |
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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDlpJobsResponseDlpJob |
A pageable sequence of DlpJob resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DlpJob item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDlpJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DlpJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDlpJobs(ListDlpJobsRequest, CallSettings)
public virtual PagedEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobs(ListDlpJobsRequest request, CallSettings callSettings = null)
Lists DlpJobs that match the specified filter in the request. 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 |
ListDlpJobsRequest 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 |
PagedEnumerableListDlpJobsResponseDlpJob |
A pageable sequence of DlpJob resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListDlpJobsRequest request = new ListDlpJobsRequest
{
Filter = "",
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
Type = DlpJobType.Unspecified,
OrderBy = "",
LocationId = "",
};
// Make the request
PagedEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobs(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (DlpJob item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDlpJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DlpJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDlpJobs(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DlpJobs that match the specified filter in the request. 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 |
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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDlpJobsResponseDlpJob |
A pageable sequence of DlpJob resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DlpJob item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDlpJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DlpJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDlpJobsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DlpJobs that match the specified filter in the request. 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 |
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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDlpJobsResponseDlpJob |
A pageable asynchronous sequence of DlpJob resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DlpJob item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDlpJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DlpJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDlpJobsAsync(ProjectName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobsAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DlpJobs that match the specified filter in the request. 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 |
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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDlpJobsResponseDlpJob |
A pageable asynchronous sequence of DlpJob resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DlpJob item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDlpJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DlpJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDlpJobsAsync(ListDlpJobsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobsAsync(ListDlpJobsRequest request, CallSettings callSettings = null)
Lists DlpJobs that match the specified filter in the request. 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 |
ListDlpJobsRequest 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 |
PagedAsyncEnumerableListDlpJobsResponseDlpJob |
A pageable asynchronous sequence of DlpJob resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListDlpJobsRequest request = new ListDlpJobsRequest
{
Filter = "",
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
Type = DlpJobType.Unspecified,
OrderBy = "",
LocationId = "",
};
// Make the request
PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DlpJob item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDlpJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DlpJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDlpJobsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> ListDlpJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists DlpJobs that match the specified filter in the request. 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 |
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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDlpJobsResponseDlpJob |
A pageable asynchronous sequence of DlpJob resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedAsyncEnumerable<ListDlpJobsResponse, DlpJob> response = dlpServiceClient.ListDlpJobsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DlpJob item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDlpJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DlpJob item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DlpJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DlpJob item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFileStoreDataProfiles(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> ListFileStoreDataProfiles(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists file store data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListFileStoreDataProfilesResponseFileStoreDataProfile |
A pageable sequence of FileStoreDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> response = dlpServiceClient.ListFileStoreDataProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FileStoreDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFileStoreDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FileStoreDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FileStoreDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FileStoreDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFileStoreDataProfiles(ListFileStoreDataProfilesRequest, CallSettings)
public virtual PagedEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> ListFileStoreDataProfiles(ListFileStoreDataProfilesRequest request, CallSettings callSettings = null)
Lists file store data profiles for an organization.
Parameters | |
---|---|
Name | Description |
request |
ListFileStoreDataProfilesRequest 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 |
PagedEnumerableListFileStoreDataProfilesResponseFileStoreDataProfile |
A pageable sequence of FileStoreDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListFileStoreDataProfilesRequest request = new ListFileStoreDataProfilesRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> response = dlpServiceClient.ListFileStoreDataProfiles(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (FileStoreDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFileStoreDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FileStoreDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FileStoreDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FileStoreDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFileStoreDataProfiles(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> ListFileStoreDataProfiles(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists file store data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListFileStoreDataProfilesResponseFileStoreDataProfile |
A pageable sequence of FileStoreDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> response = dlpServiceClient.ListFileStoreDataProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FileStoreDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFileStoreDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FileStoreDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FileStoreDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FileStoreDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFileStoreDataProfiles(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> ListFileStoreDataProfiles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists file store data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListFileStoreDataProfilesResponseFileStoreDataProfile |
A pageable sequence of FileStoreDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> response = dlpServiceClient.ListFileStoreDataProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FileStoreDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFileStoreDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FileStoreDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FileStoreDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FileStoreDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFileStoreDataProfilesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> ListFileStoreDataProfilesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists file store data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListFileStoreDataProfilesResponseFileStoreDataProfile |
A pageable asynchronous sequence of FileStoreDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> response = dlpServiceClient.ListFileStoreDataProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FileStoreDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFileStoreDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FileStoreDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FileStoreDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FileStoreDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFileStoreDataProfilesAsync(ListFileStoreDataProfilesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> ListFileStoreDataProfilesAsync(ListFileStoreDataProfilesRequest request, CallSettings callSettings = null)
Lists file store data profiles for an organization.
Parameters | |
---|---|
Name | Description |
request |
ListFileStoreDataProfilesRequest 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 |
PagedAsyncEnumerableListFileStoreDataProfilesResponseFileStoreDataProfile |
A pageable asynchronous sequence of FileStoreDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListFileStoreDataProfilesRequest request = new ListFileStoreDataProfilesRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> response = dlpServiceClient.ListFileStoreDataProfilesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FileStoreDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFileStoreDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FileStoreDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FileStoreDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FileStoreDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFileStoreDataProfilesAsync(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> ListFileStoreDataProfilesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists file store data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListFileStoreDataProfilesResponseFileStoreDataProfile |
A pageable asynchronous sequence of FileStoreDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> response = dlpServiceClient.ListFileStoreDataProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FileStoreDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFileStoreDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FileStoreDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FileStoreDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FileStoreDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFileStoreDataProfilesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> ListFileStoreDataProfilesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists file store data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListFileStoreDataProfilesResponseFileStoreDataProfile |
A pageable asynchronous sequence of FileStoreDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListFileStoreDataProfilesResponse, FileStoreDataProfile> response = dlpServiceClient.ListFileStoreDataProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FileStoreDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFileStoreDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FileStoreDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FileStoreDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FileStoreDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListInfoTypes(ListInfoTypesRequest, CallSettings)
public virtual ListInfoTypesResponse ListInfoTypes(ListInfoTypesRequest request, CallSettings callSettings = null)
Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.
Parameters | |
---|---|
Name | Description |
request |
ListInfoTypesRequest 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 |
ListInfoTypesResponse |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListInfoTypesRequest request = new ListInfoTypesRequest
{
LanguageCode = "",
Filter = "",
LocationId = "",
Parent = "",
};
// Make the request
ListInfoTypesResponse response = dlpServiceClient.ListInfoTypes(request);
ListInfoTypes(string, CallSettings)
public virtual ListInfoTypesResponse ListInfoTypes(string parent, CallSettings callSettings = null)
Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.
Parameters | |
---|---|
Name | Description |
parent |
string The parent resource name. The format of this value is as follows: locations/<var>LOCATION_ID</var> |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ListInfoTypesResponse |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "";
// Make the request
ListInfoTypesResponse response = dlpServiceClient.ListInfoTypes(parent);
ListInfoTypesAsync(ListInfoTypesRequest, CallSettings)
public virtual Task<ListInfoTypesResponse> ListInfoTypesAsync(ListInfoTypesRequest request, CallSettings callSettings = null)
Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.
Parameters | |
---|---|
Name | Description |
request |
ListInfoTypesRequest 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 |
TaskListInfoTypesResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListInfoTypesRequest request = new ListInfoTypesRequest
{
LanguageCode = "",
Filter = "",
LocationId = "",
Parent = "",
};
// Make the request
ListInfoTypesResponse response = await dlpServiceClient.ListInfoTypesAsync(request);
ListInfoTypesAsync(ListInfoTypesRequest, CancellationToken)
public virtual Task<ListInfoTypesResponse> ListInfoTypesAsync(ListInfoTypesRequest request, CancellationToken cancellationToken)
Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.
Parameters | |
---|---|
Name | Description |
request |
ListInfoTypesRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskListInfoTypesResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListInfoTypesRequest request = new ListInfoTypesRequest
{
LanguageCode = "",
Filter = "",
LocationId = "",
Parent = "",
};
// Make the request
ListInfoTypesResponse response = await dlpServiceClient.ListInfoTypesAsync(request);
ListInfoTypesAsync(string, CallSettings)
public virtual Task<ListInfoTypesResponse> ListInfoTypesAsync(string parent, CallSettings callSettings = null)
Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.
Parameters | |
---|---|
Name | Description |
parent |
string The parent resource name. The format of this value is as follows: locations/<var>LOCATION_ID</var> |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskListInfoTypesResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
// Make the request
ListInfoTypesResponse response = await dlpServiceClient.ListInfoTypesAsync(parent);
ListInfoTypesAsync(string, CancellationToken)
public virtual Task<ListInfoTypesResponse> ListInfoTypesAsync(string parent, CancellationToken cancellationToken)
Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.
Parameters | |
---|---|
Name | Description |
parent |
string The parent resource name. The format of this value is as follows: locations/<var>LOCATION_ID</var> |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskListInfoTypesResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
// Make the request
ListInfoTypesResponse response = await dlpServiceClient.ListInfoTypesAsync(parent);
ListInspectTemplates(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplates(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists InspectTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListInspectTemplatesResponseInspectTemplate |
A pageable sequence of InspectTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (InspectTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInspectTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InspectTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListInspectTemplates(OrganizationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplates(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists InspectTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListInspectTemplatesResponseInspectTemplate |
A pageable sequence of InspectTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (InspectTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInspectTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InspectTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListInspectTemplates(ProjectName, string, int?, CallSettings)
public virtual PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplates(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists InspectTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListInspectTemplatesResponseInspectTemplate |
A pageable sequence of InspectTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (InspectTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInspectTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InspectTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListInspectTemplates(ListInspectTemplatesRequest, CallSettings)
public virtual PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplates(ListInspectTemplatesRequest request, CallSettings callSettings = null)
Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
request |
ListInspectTemplatesRequest 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 |
PagedEnumerableListInspectTemplatesResponseInspectTemplate |
A pageable sequence of InspectTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListInspectTemplatesRequest request = new ListInspectTemplatesRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
OrderBy = "",
LocationId = "",
};
// Make the request
PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplates(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (InspectTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInspectTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InspectTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListInspectTemplates(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplates(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists InspectTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListInspectTemplatesResponseInspectTemplate |
A pageable sequence of InspectTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (InspectTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInspectTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InspectTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListInspectTemplates(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplates(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists InspectTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListInspectTemplatesResponseInspectTemplate |
A pageable sequence of InspectTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (InspectTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInspectTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InspectTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListInspectTemplatesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplatesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists InspectTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListInspectTemplatesResponseInspectTemplate |
A pageable asynchronous sequence of InspectTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((InspectTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInspectTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InspectTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListInspectTemplatesAsync(OrganizationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplatesAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists InspectTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListInspectTemplatesResponseInspectTemplate |
A pageable asynchronous sequence of InspectTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((InspectTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInspectTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InspectTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListInspectTemplatesAsync(ProjectName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplatesAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists InspectTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListInspectTemplatesResponseInspectTemplate |
A pageable asynchronous sequence of InspectTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((InspectTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInspectTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InspectTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListInspectTemplatesAsync(ListInspectTemplatesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplatesAsync(ListInspectTemplatesRequest request, CallSettings callSettings = null)
Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
request |
ListInspectTemplatesRequest 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 |
PagedAsyncEnumerableListInspectTemplatesResponseInspectTemplate |
A pageable asynchronous sequence of InspectTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListInspectTemplatesRequest request = new ListInspectTemplatesRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
OrderBy = "",
LocationId = "",
};
// Make the request
PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplatesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((InspectTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInspectTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InspectTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListInspectTemplatesAsync(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplatesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists InspectTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListInspectTemplatesResponseInspectTemplate |
A pageable asynchronous sequence of InspectTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((InspectTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInspectTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InspectTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListInspectTemplatesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> ListInspectTemplatesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists InspectTemplates. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListInspectTemplatesResponseInspectTemplate |
A pageable asynchronous sequence of InspectTemplate resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedAsyncEnumerable<ListInspectTemplatesResponse, InspectTemplate> response = dlpServiceClient.ListInspectTemplatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((InspectTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInspectTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InspectTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InspectTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InspectTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListJobTriggers(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggers(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists job triggers. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListJobTriggersResponseJobTrigger |
A pageable sequence of JobTrigger resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggers(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (JobTrigger item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListJobTriggersResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (JobTrigger item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListJobTriggers(ProjectName, string, int?, CallSettings)
public virtual PagedEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggers(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists job triggers. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListJobTriggersResponseJobTrigger |
A pageable sequence of JobTrigger resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggers(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (JobTrigger item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListJobTriggersResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (JobTrigger item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListJobTriggers(ListJobTriggersRequest, CallSettings)
public virtual PagedEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggers(ListJobTriggersRequest request, CallSettings callSettings = null)
Lists job triggers. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
request |
ListJobTriggersRequest 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 |
PagedEnumerableListJobTriggersResponseJobTrigger |
A pageable sequence of JobTrigger resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListJobTriggersRequest request = new ListJobTriggersRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
OrderBy = "",
Filter = "",
Type = DlpJobType.Unspecified,
LocationId = "",
};
// Make the request
PagedEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggers(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (JobTrigger item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListJobTriggersResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (JobTrigger item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListJobTriggers(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggers(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists job triggers. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListJobTriggersResponseJobTrigger |
A pageable sequence of JobTrigger resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggers(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (JobTrigger item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListJobTriggersResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (JobTrigger item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListJobTriggersAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggersAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists job triggers. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListJobTriggersResponseJobTrigger |
A pageable asynchronous sequence of JobTrigger resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggersAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((JobTrigger item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListJobTriggersResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (JobTrigger item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListJobTriggersAsync(ProjectName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggersAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists job triggers. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListJobTriggersResponseJobTrigger |
A pageable asynchronous sequence of JobTrigger resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggersAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((JobTrigger item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListJobTriggersResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (JobTrigger item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListJobTriggersAsync(ListJobTriggersRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggersAsync(ListJobTriggersRequest request, CallSettings callSettings = null)
Lists job triggers. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
request |
ListJobTriggersRequest 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 |
PagedAsyncEnumerableListJobTriggersResponseJobTrigger |
A pageable asynchronous sequence of JobTrigger resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListJobTriggersRequest request = new ListJobTriggersRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
OrderBy = "",
Filter = "",
Type = DlpJobType.Unspecified,
LocationId = "",
};
// Make the request
PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggersAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((JobTrigger item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListJobTriggersResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (JobTrigger item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListJobTriggersAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> ListJobTriggersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists job triggers. 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListJobTriggersResponseJobTrigger |
A pageable asynchronous sequence of JobTrigger resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedAsyncEnumerable<ListJobTriggersResponse, JobTrigger> response = dlpServiceClient.ListJobTriggersAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((JobTrigger item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListJobTriggersResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (JobTrigger item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<JobTrigger> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (JobTrigger item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListProjectDataProfiles(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfiles(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists project data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. organizations/{org_id}/locations/{loc_id} |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListProjectDataProfilesResponseProjectDataProfile |
A pageable sequence of ProjectDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ProjectDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProjectDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ProjectDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListProjectDataProfiles(ListProjectDataProfilesRequest, CallSettings)
public virtual PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfiles(ListProjectDataProfilesRequest request, CallSettings callSettings = null)
Lists project data profiles for an organization.
Parameters | |
---|---|
Name | Description |
request |
ListProjectDataProfilesRequest 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 |
PagedEnumerableListProjectDataProfilesResponseProjectDataProfile |
A pageable sequence of ProjectDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListProjectDataProfilesRequest request = new ListProjectDataProfilesRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfiles(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (ProjectDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProjectDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ProjectDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListProjectDataProfiles(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfiles(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists project data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. organizations/{org_id}/locations/{loc_id} |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListProjectDataProfilesResponseProjectDataProfile |
A pageable sequence of ProjectDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ProjectDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProjectDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ProjectDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListProjectDataProfiles(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfiles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists project data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
string Required. organizations/{org_id}/locations/{loc_id} |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListProjectDataProfilesResponseProjectDataProfile |
A pageable sequence of ProjectDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ProjectDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProjectDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ProjectDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListProjectDataProfilesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfilesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists project data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. organizations/{org_id}/locations/{loc_id} |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListProjectDataProfilesResponseProjectDataProfile |
A pageable asynchronous sequence of ProjectDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ProjectDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProjectDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ProjectDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListProjectDataProfilesAsync(ListProjectDataProfilesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfilesAsync(ListProjectDataProfilesRequest request, CallSettings callSettings = null)
Lists project data profiles for an organization.
Parameters | |
---|---|
Name | Description |
request |
ListProjectDataProfilesRequest 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 |
PagedAsyncEnumerableListProjectDataProfilesResponseProjectDataProfile |
A pageable asynchronous sequence of ProjectDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListProjectDataProfilesRequest request = new ListProjectDataProfilesRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfilesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ProjectDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProjectDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ProjectDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListProjectDataProfilesAsync(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfilesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists project data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. organizations/{org_id}/locations/{loc_id} |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListProjectDataProfilesResponseProjectDataProfile |
A pageable asynchronous sequence of ProjectDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ProjectDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProjectDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ProjectDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListProjectDataProfilesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> ListProjectDataProfilesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists project data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
string Required. organizations/{org_id}/locations/{loc_id} |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListProjectDataProfilesResponseProjectDataProfile |
A pageable asynchronous sequence of ProjectDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListProjectDataProfilesResponse, ProjectDataProfile> response = dlpServiceClient.ListProjectDataProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ProjectDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProjectDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ProjectDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProjectDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProjectDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListStoredInfoTypes(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypes(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListStoredInfoTypesResponseStoredInfoType |
A pageable sequence of StoredInfoType resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (StoredInfoType item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoredInfoTypesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (StoredInfoType item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListStoredInfoTypes(OrganizationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypes(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListStoredInfoTypesResponseStoredInfoType |
A pageable sequence of StoredInfoType resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (StoredInfoType item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoredInfoTypesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (StoredInfoType item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListStoredInfoTypes(ProjectName, string, int?, CallSettings)
public virtual PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypes(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListStoredInfoTypesResponseStoredInfoType |
A pageable sequence of StoredInfoType resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (StoredInfoType item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoredInfoTypesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (StoredInfoType item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListStoredInfoTypes(ListStoredInfoTypesRequest, CallSettings)
public virtual PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypes(ListStoredInfoTypesRequest request, CallSettings callSettings = null)
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
request |
ListStoredInfoTypesRequest 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 |
PagedEnumerableListStoredInfoTypesResponseStoredInfoType |
A pageable sequence of StoredInfoType resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListStoredInfoTypesRequest request = new ListStoredInfoTypesRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
OrderBy = "",
LocationId = "",
};
// Make the request
PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypes(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (StoredInfoType item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoredInfoTypesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (StoredInfoType item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListStoredInfoTypes(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypes(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListStoredInfoTypesResponseStoredInfoType |
A pageable sequence of StoredInfoType resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (StoredInfoType item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoredInfoTypesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (StoredInfoType item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListStoredInfoTypes(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypes(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListStoredInfoTypesResponseStoredInfoType |
A pageable sequence of StoredInfoType resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (StoredInfoType item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoredInfoTypesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (StoredInfoType item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListStoredInfoTypesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListStoredInfoTypesResponseStoredInfoType |
A pageable asynchronous sequence of StoredInfoType resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoredInfoType item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoredInfoTypesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (StoredInfoType item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListStoredInfoTypesAsync(OrganizationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypesAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListStoredInfoTypesResponseStoredInfoType |
A pageable asynchronous sequence of StoredInfoType resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoredInfoType item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoredInfoTypesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (StoredInfoType item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListStoredInfoTypesAsync(ProjectName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypesAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListStoredInfoTypesResponseStoredInfoType |
A pageable asynchronous sequence of StoredInfoType resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoredInfoType item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoredInfoTypesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (StoredInfoType item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListStoredInfoTypesAsync(ListStoredInfoTypesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypesAsync(ListStoredInfoTypesRequest request, CallSettings callSettings = null)
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
request |
ListStoredInfoTypesRequest 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 |
PagedAsyncEnumerableListStoredInfoTypesResponseStoredInfoType |
A pageable asynchronous sequence of StoredInfoType resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListStoredInfoTypesRequest request = new ListStoredInfoTypesRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
OrderBy = "",
LocationId = "",
};
// Make the request
PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoredInfoType item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoredInfoTypesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (StoredInfoType item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListStoredInfoTypesAsync(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListStoredInfoTypesResponseStoredInfoType |
A pageable asynchronous sequence of StoredInfoType resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoredInfoType item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoredInfoTypesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (StoredInfoType item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListStoredInfoTypesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> ListStoredInfoTypesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes 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 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListStoredInfoTypesResponseStoredInfoType |
A pageable asynchronous sequence of StoredInfoType resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedAsyncEnumerable<ListStoredInfoTypesResponse, StoredInfoType> response = dlpServiceClient.ListStoredInfoTypesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoredInfoType item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoredInfoTypesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (StoredInfoType item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoredInfoType> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoredInfoType item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTableDataProfiles(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfiles(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists table data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListTableDataProfilesResponseTableDataProfile |
A pageable sequence of TableDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (TableDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTableDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TableDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTableDataProfiles(ListTableDataProfilesRequest, CallSettings)
public virtual PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfiles(ListTableDataProfilesRequest request, CallSettings callSettings = null)
Lists table data profiles for an organization.
Parameters | |
---|---|
Name | Description |
request |
ListTableDataProfilesRequest 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 |
PagedEnumerableListTableDataProfilesResponseTableDataProfile |
A pageable sequence of TableDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ListTableDataProfilesRequest request = new ListTableDataProfilesRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfiles(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (TableDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTableDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TableDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTableDataProfiles(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfiles(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists table data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListTableDataProfilesResponseTableDataProfile |
A pageable sequence of TableDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (TableDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTableDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TableDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTableDataProfiles(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfiles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists table data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListTableDataProfilesResponseTableDataProfile |
A pageable sequence of TableDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (TableDataProfile item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTableDataProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TableDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTableDataProfilesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfilesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists table data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListTableDataProfilesResponseTableDataProfile |
A pageable asynchronous sequence of TableDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TableDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTableDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TableDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTableDataProfilesAsync(ListTableDataProfilesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfilesAsync(ListTableDataProfilesRequest request, CallSettings callSettings = null)
Lists table data profiles for an organization.
Parameters | |
---|---|
Name | Description |
request |
ListTableDataProfilesRequest 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 |
PagedAsyncEnumerableListTableDataProfilesResponseTableDataProfile |
A pageable asynchronous sequence of TableDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ListTableDataProfilesRequest request = new ListTableDataProfilesRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfilesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TableDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTableDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TableDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTableDataProfilesAsync(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfilesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists table data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListTableDataProfilesResponseTableDataProfile |
A pageable asynchronous sequence of TableDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TableDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTableDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TableDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTableDataProfilesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> ListTableDataProfilesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists table data profiles for an organization.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the organization or project, for
example |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListTableDataProfilesResponseTableDataProfile |
A pageable asynchronous sequence of TableDataProfile resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListTableDataProfilesResponse, TableDataProfile> response = dlpServiceClient.ListTableDataProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TableDataProfile item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTableDataProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TableDataProfile item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TableDataProfile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TableDataProfile item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
RedactImage(RedactImageRequest, CallSettings)
public virtual RedactImageResponse RedactImage(RedactImageRequest request, CallSettings callSettings = null)
Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to learn more.
When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
Parameters | |
---|---|
Name | Description |
request |
RedactImageRequest 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 |
RedactImageResponse |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
RedactImageRequest request = new RedactImageRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
InspectConfig = new InspectConfig(),
ImageRedactionConfigs =
{
new RedactImageRequest.Types.ImageRedactionConfig(),
},
IncludeFindings = false,
ByteItem = new ByteContentItem(),
LocationId = "",
};
// Make the request
RedactImageResponse response = dlpServiceClient.RedactImage(request);
RedactImageAsync(RedactImageRequest, CallSettings)
public virtual Task<RedactImageResponse> RedactImageAsync(RedactImageRequest request, CallSettings callSettings = null)
Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to learn more.
When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
Parameters | |
---|---|
Name | Description |
request |
RedactImageRequest 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 |
TaskRedactImageResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
RedactImageRequest request = new RedactImageRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
InspectConfig = new InspectConfig(),
ImageRedactionConfigs =
{
new RedactImageRequest.Types.ImageRedactionConfig(),
},
IncludeFindings = false,
ByteItem = new ByteContentItem(),
LocationId = "",
};
// Make the request
RedactImageResponse response = await dlpServiceClient.RedactImageAsync(request);
RedactImageAsync(RedactImageRequest, CancellationToken)
public virtual Task<RedactImageResponse> RedactImageAsync(RedactImageRequest request, CancellationToken cancellationToken)
Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to learn more.
When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
Parameters | |
---|---|
Name | Description |
request |
RedactImageRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRedactImageResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
RedactImageRequest request = new RedactImageRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
InspectConfig = new InspectConfig(),
ImageRedactionConfigs =
{
new RedactImageRequest.Types.ImageRedactionConfig(),
},
IncludeFindings = false,
ByteItem = new ByteContentItem(),
LocationId = "",
};
// Make the request
RedactImageResponse response = await dlpServiceClient.RedactImageAsync(request);
ReidentifyContent(ReidentifyContentRequest, CallSettings)
public virtual ReidentifyContentResponse ReidentifyContent(ReidentifyContentRequest request, CallSettings callSettings = null)
Re-identifies content that has been de-identified. See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example to learn more.
Parameters | |
---|---|
Name | Description |
request |
ReidentifyContentRequest 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 |
ReidentifyContentResponse |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ReidentifyContentRequest request = new ReidentifyContentRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
ReidentifyConfig = new DeidentifyConfig(),
InspectConfig = new InspectConfig(),
Item = new ContentItem(),
InspectTemplateName = "",
ReidentifyTemplateName = "",
LocationId = "",
};
// Make the request
ReidentifyContentResponse response = dlpServiceClient.ReidentifyContent(request);
ReidentifyContentAsync(ReidentifyContentRequest, CallSettings)
public virtual Task<ReidentifyContentResponse> ReidentifyContentAsync(ReidentifyContentRequest request, CallSettings callSettings = null)
Re-identifies content that has been de-identified. See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example to learn more.
Parameters | |
---|---|
Name | Description |
request |
ReidentifyContentRequest 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 |
TaskReidentifyContentResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ReidentifyContentRequest request = new ReidentifyContentRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
ReidentifyConfig = new DeidentifyConfig(),
InspectConfig = new InspectConfig(),
Item = new ContentItem(),
InspectTemplateName = "",
ReidentifyTemplateName = "",
LocationId = "",
};
// Make the request
ReidentifyContentResponse response = await dlpServiceClient.ReidentifyContentAsync(request);
ReidentifyContentAsync(ReidentifyContentRequest, CancellationToken)
public virtual Task<ReidentifyContentResponse> ReidentifyContentAsync(ReidentifyContentRequest request, CancellationToken cancellationToken)
Re-identifies content that has been de-identified. See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example to learn more.
Parameters | |
---|---|
Name | Description |
request |
ReidentifyContentRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskReidentifyContentResponse |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ReidentifyContentRequest request = new ReidentifyContentRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
ReidentifyConfig = new DeidentifyConfig(),
InspectConfig = new InspectConfig(),
Item = new ContentItem(),
InspectTemplateName = "",
ReidentifyTemplateName = "",
LocationId = "",
};
// Make the request
ReidentifyContentResponse response = await dlpServiceClient.ReidentifyContentAsync(request);
SearchConnections(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<SearchConnectionsResponse, Connection> SearchConnections(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Searches for Connections in a parent.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Parent name, typically an organization, without location.
For example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableSearchConnectionsResponseConnection |
A pageable sequence of Connection resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<SearchConnectionsResponse, Connection> response = dlpServiceClient.SearchConnections(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Connection item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchConnectionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Connection item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
SearchConnections(SearchConnectionsRequest, CallSettings)
public virtual PagedEnumerable<SearchConnectionsResponse, Connection> SearchConnections(SearchConnectionsRequest request, CallSettings callSettings = null)
Searches for Connections in a parent.
Parameters | |
---|---|
Name | Description |
request |
SearchConnectionsRequest 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 |
PagedEnumerableSearchConnectionsResponseConnection |
A pageable sequence of Connection resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
SearchConnectionsRequest request = new SearchConnectionsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
};
// Make the request
PagedEnumerable<SearchConnectionsResponse, Connection> response = dlpServiceClient.SearchConnections(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Connection item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchConnectionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Connection item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
SearchConnections(string, string, int?, CallSettings)
public virtual PagedEnumerable<SearchConnectionsResponse, Connection> SearchConnections(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Searches for Connections in a parent.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Parent name, typically an organization, without location.
For example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableSearchConnectionsResponseConnection |
A pageable sequence of Connection resources. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<SearchConnectionsResponse, Connection> response = dlpServiceClient.SearchConnections(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Connection item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchConnectionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Connection item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
SearchConnectionsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<SearchConnectionsResponse, Connection> SearchConnectionsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Searches for Connections in a parent.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Parent name, typically an organization, without location.
For example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableSearchConnectionsResponseConnection |
A pageable asynchronous sequence of Connection resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<SearchConnectionsResponse, Connection> response = dlpServiceClient.SearchConnectionsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Connection item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchConnectionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Connection item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
SearchConnectionsAsync(SearchConnectionsRequest, CallSettings)
public virtual PagedAsyncEnumerable<SearchConnectionsResponse, Connection> SearchConnectionsAsync(SearchConnectionsRequest request, CallSettings callSettings = null)
Searches for Connections in a parent.
Parameters | |
---|---|
Name | Description |
request |
SearchConnectionsRequest 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 |
PagedAsyncEnumerableSearchConnectionsResponseConnection |
A pageable asynchronous sequence of Connection resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
SearchConnectionsRequest request = new SearchConnectionsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<SearchConnectionsResponse, Connection> response = dlpServiceClient.SearchConnectionsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Connection item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchConnectionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Connection item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
SearchConnectionsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<SearchConnectionsResponse, Connection> SearchConnectionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Searches for Connections in a parent.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Parent name, typically an organization, without location.
For example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableSearchConnectionsResponseConnection |
A pageable asynchronous sequence of Connection resources. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<SearchConnectionsResponse, Connection> response = dlpServiceClient.SearchConnectionsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Connection item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchConnectionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Connection item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateConnection(ConnectionName, CallSettings)
public virtual Connection UpdateConnection(ConnectionName name, CallSettings callSettings = null)
Update a Connection.
Parameters | |
---|---|
Name | Description |
name |
ConnectionName Required. Resource name in the format:
|
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)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Connection response = dlpServiceClient.UpdateConnection(name);
UpdateConnection(UpdateConnectionRequest, CallSettings)
public virtual Connection UpdateConnection(UpdateConnectionRequest request, CallSettings callSettings = null)
Update a Connection.
Parameters | |
---|---|
Name | Description |
request |
UpdateConnectionRequest 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)
UpdateConnectionRequest request = new UpdateConnectionRequest
{
ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
Connection = new Connection(),
UpdateMask = new FieldMask(),
};
// Make the request
Connection response = dlpServiceClient.UpdateConnection(request);
UpdateConnection(string, CallSettings)
public virtual Connection UpdateConnection(string name, CallSettings callSettings = null)
Update a Connection.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name in the format:
|
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 name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Connection response = dlpServiceClient.UpdateConnection(name);
UpdateConnectionAsync(ConnectionName, CallSettings)
public virtual Task<Connection> UpdateConnectionAsync(ConnectionName name, CallSettings callSettings = null)
Update a Connection.
Parameters | |
---|---|
Name | Description |
name |
ConnectionName Required. Resource name in the format:
|
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)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Connection response = await dlpServiceClient.UpdateConnectionAsync(name);
UpdateConnectionAsync(ConnectionName, CancellationToken)
public virtual Task<Connection> UpdateConnectionAsync(ConnectionName name, CancellationToken cancellationToken)
Update a Connection.
Parameters | |
---|---|
Name | Description |
name |
ConnectionName Required. Resource name in the format:
|
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)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Connection response = await dlpServiceClient.UpdateConnectionAsync(name);
UpdateConnectionAsync(UpdateConnectionRequest, CallSettings)
public virtual Task<Connection> UpdateConnectionAsync(UpdateConnectionRequest request, CallSettings callSettings = null)
Update a Connection.
Parameters | |
---|---|
Name | Description |
request |
UpdateConnectionRequest 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)
UpdateConnectionRequest request = new UpdateConnectionRequest
{
ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
Connection = new Connection(),
UpdateMask = new FieldMask(),
};
// Make the request
Connection response = await dlpServiceClient.UpdateConnectionAsync(request);
UpdateConnectionAsync(UpdateConnectionRequest, CancellationToken)
public virtual Task<Connection> UpdateConnectionAsync(UpdateConnectionRequest request, CancellationToken cancellationToken)
Update a Connection.
Parameters | |
---|---|
Name | Description |
request |
UpdateConnectionRequest 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)
UpdateConnectionRequest request = new UpdateConnectionRequest
{
ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
Connection = new Connection(),
UpdateMask = new FieldMask(),
};
// Make the request
Connection response = await dlpServiceClient.UpdateConnectionAsync(request);
UpdateConnectionAsync(string, CallSettings)
public virtual Task<Connection> UpdateConnectionAsync(string name, CallSettings callSettings = null)
Update a Connection.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name in the format:
|
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 name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Connection response = await dlpServiceClient.UpdateConnectionAsync(name);
UpdateConnectionAsync(string, CancellationToken)
public virtual Task<Connection> UpdateConnectionAsync(string name, CancellationToken cancellationToken)
Update a Connection.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name in the format:
|
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 name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Connection response = await dlpServiceClient.UpdateConnectionAsync(name);
UpdateDeidentifyTemplate(DeidentifyTemplateName, DeidentifyTemplate, FieldMask, CallSettings)
public virtual DeidentifyTemplate UpdateDeidentifyTemplate(DeidentifyTemplateName name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask, CallSettings callSettings = null)
Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
DeidentifyTemplateName Required. Resource name of organization and deidentify template to be
updated, for example
|
deidentifyTemplate |
DeidentifyTemplate New DeidentifyTemplate value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
DeidentifyTemplate response = dlpServiceClient.UpdateDeidentifyTemplate(name, deidentifyTemplate, updateMask);
UpdateDeidentifyTemplate(UpdateDeidentifyTemplateRequest, CallSettings)
public virtual DeidentifyTemplate UpdateDeidentifyTemplate(UpdateDeidentifyTemplateRequest request, CallSettings callSettings = null)
Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
request |
UpdateDeidentifyTemplateRequest 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)
UpdateDeidentifyTemplateRequest request = new UpdateDeidentifyTemplateRequest
{
DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
DeidentifyTemplate = new DeidentifyTemplate(),
UpdateMask = new FieldMask(),
};
// Make the request
DeidentifyTemplate response = dlpServiceClient.UpdateDeidentifyTemplate(request);
UpdateDeidentifyTemplate(string, DeidentifyTemplate, FieldMask, CallSettings)
public virtual DeidentifyTemplate UpdateDeidentifyTemplate(string name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask, CallSettings callSettings = null)
Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of organization and deidentify template to be
updated, for example
|
deidentifyTemplate |
DeidentifyTemplate New DeidentifyTemplate value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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 name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
DeidentifyTemplate response = dlpServiceClient.UpdateDeidentifyTemplate(name, deidentifyTemplate, updateMask);
UpdateDeidentifyTemplateAsync(DeidentifyTemplateName, DeidentifyTemplate, FieldMask, CallSettings)
public virtual Task<DeidentifyTemplate> UpdateDeidentifyTemplateAsync(DeidentifyTemplateName name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask, CallSettings callSettings = null)
Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
DeidentifyTemplateName Required. Resource name of organization and deidentify template to be
updated, for example
|
deidentifyTemplate |
DeidentifyTemplate New DeidentifyTemplate value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
DeidentifyTemplate response = await dlpServiceClient.UpdateDeidentifyTemplateAsync(name, deidentifyTemplate, updateMask);
UpdateDeidentifyTemplateAsync(DeidentifyTemplateName, DeidentifyTemplate, FieldMask, CancellationToken)
public virtual Task<DeidentifyTemplate> UpdateDeidentifyTemplateAsync(DeidentifyTemplateName name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask, CancellationToken cancellationToken)
Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
DeidentifyTemplateName Required. Resource name of organization and deidentify template to be
updated, for example
|
deidentifyTemplate |
DeidentifyTemplate New DeidentifyTemplate value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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)
DeidentifyTemplateName name = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
DeidentifyTemplate response = await dlpServiceClient.UpdateDeidentifyTemplateAsync(name, deidentifyTemplate, updateMask);
UpdateDeidentifyTemplateAsync(UpdateDeidentifyTemplateRequest, CallSettings)
public virtual Task<DeidentifyTemplate> UpdateDeidentifyTemplateAsync(UpdateDeidentifyTemplateRequest request, CallSettings callSettings = null)
Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
request |
UpdateDeidentifyTemplateRequest 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)
UpdateDeidentifyTemplateRequest request = new UpdateDeidentifyTemplateRequest
{
DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
DeidentifyTemplate = new DeidentifyTemplate(),
UpdateMask = new FieldMask(),
};
// Make the request
DeidentifyTemplate response = await dlpServiceClient.UpdateDeidentifyTemplateAsync(request);
UpdateDeidentifyTemplateAsync(UpdateDeidentifyTemplateRequest, CancellationToken)
public virtual Task<DeidentifyTemplate> UpdateDeidentifyTemplateAsync(UpdateDeidentifyTemplateRequest request, CancellationToken cancellationToken)
Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
request |
UpdateDeidentifyTemplateRequest 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)
UpdateDeidentifyTemplateRequest request = new UpdateDeidentifyTemplateRequest
{
DeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationDeidentifyTemplate("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]"),
DeidentifyTemplate = new DeidentifyTemplate(),
UpdateMask = new FieldMask(),
};
// Make the request
DeidentifyTemplate response = await dlpServiceClient.UpdateDeidentifyTemplateAsync(request);
UpdateDeidentifyTemplateAsync(string, DeidentifyTemplate, FieldMask, CallSettings)
public virtual Task<DeidentifyTemplate> UpdateDeidentifyTemplateAsync(string name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask, CallSettings callSettings = null)
Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of organization and deidentify template to be
updated, for example
|
deidentifyTemplate |
DeidentifyTemplate New DeidentifyTemplate value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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 name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
DeidentifyTemplate response = await dlpServiceClient.UpdateDeidentifyTemplateAsync(name, deidentifyTemplate, updateMask);
UpdateDeidentifyTemplateAsync(string, DeidentifyTemplate, FieldMask, CancellationToken)
public virtual Task<DeidentifyTemplate> UpdateDeidentifyTemplateAsync(string name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask, CancellationToken cancellationToken)
Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of organization and deidentify template to be
updated, for example
|
deidentifyTemplate |
DeidentifyTemplate New DeidentifyTemplate value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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 name = "organizations/[ORGANIZATION]/deidentifyTemplates/[DEIDENTIFY_TEMPLATE]";
DeidentifyTemplate deidentifyTemplate = new DeidentifyTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
DeidentifyTemplate response = await dlpServiceClient.UpdateDeidentifyTemplateAsync(name, deidentifyTemplate, updateMask);
UpdateDiscoveryConfig(DiscoveryConfigName, DiscoveryConfig, FieldMask, CallSettings)
public virtual DiscoveryConfig UpdateDiscoveryConfig(DiscoveryConfigName name, DiscoveryConfig discoveryConfig, FieldMask updateMask, CallSettings callSettings = null)
Updates a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
DiscoveryConfigName Required. Resource name of the project and the configuration, for example
|
discoveryConfig |
DiscoveryConfig Required. New DiscoveryConfig value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
FieldMask updateMask = new FieldMask();
// Make the request
DiscoveryConfig response = dlpServiceClient.UpdateDiscoveryConfig(name, discoveryConfig, updateMask);
UpdateDiscoveryConfig(UpdateDiscoveryConfigRequest, CallSettings)
public virtual DiscoveryConfig UpdateDiscoveryConfig(UpdateDiscoveryConfigRequest request, CallSettings callSettings = null)
Updates a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
UpdateDiscoveryConfigRequest 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)
UpdateDiscoveryConfigRequest request = new UpdateDiscoveryConfigRequest
{
DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
DiscoveryConfig = new DiscoveryConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
DiscoveryConfig response = dlpServiceClient.UpdateDiscoveryConfig(request);
UpdateDiscoveryConfig(string, DiscoveryConfig, FieldMask, CallSettings)
public virtual DiscoveryConfig UpdateDiscoveryConfig(string name, DiscoveryConfig discoveryConfig, FieldMask updateMask, CallSettings callSettings = null)
Updates a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the configuration, for example
|
discoveryConfig |
DiscoveryConfig Required. New DiscoveryConfig value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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 name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
FieldMask updateMask = new FieldMask();
// Make the request
DiscoveryConfig response = dlpServiceClient.UpdateDiscoveryConfig(name, discoveryConfig, updateMask);
UpdateDiscoveryConfigAsync(DiscoveryConfigName, DiscoveryConfig, FieldMask, CallSettings)
public virtual Task<DiscoveryConfig> UpdateDiscoveryConfigAsync(DiscoveryConfigName name, DiscoveryConfig discoveryConfig, FieldMask updateMask, CallSettings callSettings = null)
Updates a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
DiscoveryConfigName Required. Resource name of the project and the configuration, for example
|
discoveryConfig |
DiscoveryConfig Required. New DiscoveryConfig value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
FieldMask updateMask = new FieldMask();
// Make the request
DiscoveryConfig response = await dlpServiceClient.UpdateDiscoveryConfigAsync(name, discoveryConfig, updateMask);
UpdateDiscoveryConfigAsync(DiscoveryConfigName, DiscoveryConfig, FieldMask, CancellationToken)
public virtual Task<DiscoveryConfig> UpdateDiscoveryConfigAsync(DiscoveryConfigName name, DiscoveryConfig discoveryConfig, FieldMask updateMask, CancellationToken cancellationToken)
Updates a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
DiscoveryConfigName Required. Resource name of the project and the configuration, for example
|
discoveryConfig |
DiscoveryConfig Required. New DiscoveryConfig value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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)
DiscoveryConfigName name = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]");
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
FieldMask updateMask = new FieldMask();
// Make the request
DiscoveryConfig response = await dlpServiceClient.UpdateDiscoveryConfigAsync(name, discoveryConfig, updateMask);
UpdateDiscoveryConfigAsync(UpdateDiscoveryConfigRequest, CallSettings)
public virtual Task<DiscoveryConfig> UpdateDiscoveryConfigAsync(UpdateDiscoveryConfigRequest request, CallSettings callSettings = null)
Updates a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
UpdateDiscoveryConfigRequest 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)
UpdateDiscoveryConfigRequest request = new UpdateDiscoveryConfigRequest
{
DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
DiscoveryConfig = new DiscoveryConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
DiscoveryConfig response = await dlpServiceClient.UpdateDiscoveryConfigAsync(request);
UpdateDiscoveryConfigAsync(UpdateDiscoveryConfigRequest, CancellationToken)
public virtual Task<DiscoveryConfig> UpdateDiscoveryConfigAsync(UpdateDiscoveryConfigRequest request, CancellationToken cancellationToken)
Updates a discovery configuration.
Parameters | |
---|---|
Name | Description |
request |
UpdateDiscoveryConfigRequest 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)
UpdateDiscoveryConfigRequest request = new UpdateDiscoveryConfigRequest
{
DiscoveryConfigName = DiscoveryConfigName.FromProjectLocationDiscoveryConfig("[PROJECT]", "[LOCATION]", "[DISCOVERY_CONFIG]"),
DiscoveryConfig = new DiscoveryConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
DiscoveryConfig response = await dlpServiceClient.UpdateDiscoveryConfigAsync(request);
UpdateDiscoveryConfigAsync(string, DiscoveryConfig, FieldMask, CallSettings)
public virtual Task<DiscoveryConfig> UpdateDiscoveryConfigAsync(string name, DiscoveryConfig discoveryConfig, FieldMask updateMask, CallSettings callSettings = null)
Updates a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the configuration, for example
|
discoveryConfig |
DiscoveryConfig Required. New DiscoveryConfig value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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 name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
FieldMask updateMask = new FieldMask();
// Make the request
DiscoveryConfig response = await dlpServiceClient.UpdateDiscoveryConfigAsync(name, discoveryConfig, updateMask);
UpdateDiscoveryConfigAsync(string, DiscoveryConfig, FieldMask, CancellationToken)
public virtual Task<DiscoveryConfig> UpdateDiscoveryConfigAsync(string name, DiscoveryConfig discoveryConfig, FieldMask updateMask, CancellationToken cancellationToken)
Updates a discovery configuration.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the configuration, for example
|
discoveryConfig |
DiscoveryConfig Required. New DiscoveryConfig value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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 name = "projects/[PROJECT]/locations/[LOCATION]/discoveryConfigs/[DISCOVERY_CONFIG]";
DiscoveryConfig discoveryConfig = new DiscoveryConfig();
FieldMask updateMask = new FieldMask();
// Make the request
DiscoveryConfig response = await dlpServiceClient.UpdateDiscoveryConfigAsync(name, discoveryConfig, updateMask);
UpdateInspectTemplate(InspectTemplateName, InspectTemplate, FieldMask, CallSettings)
public virtual InspectTemplate UpdateInspectTemplate(InspectTemplateName name, InspectTemplate inspectTemplate, FieldMask updateMask, CallSettings callSettings = null)
Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
InspectTemplateName Required. Resource name of organization and inspectTemplate to be updated,
for example |
inspectTemplate |
InspectTemplate New InspectTemplate value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
InspectTemplate inspectTemplate = new InspectTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
InspectTemplate response = dlpServiceClient.UpdateInspectTemplate(name, inspectTemplate, updateMask);
UpdateInspectTemplate(UpdateInspectTemplateRequest, CallSettings)
public virtual InspectTemplate UpdateInspectTemplate(UpdateInspectTemplateRequest request, CallSettings callSettings = null)
Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
request |
UpdateInspectTemplateRequest 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)
UpdateInspectTemplateRequest request = new UpdateInspectTemplateRequest
{
InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
InspectTemplate = new InspectTemplate(),
UpdateMask = new FieldMask(),
};
// Make the request
InspectTemplate response = dlpServiceClient.UpdateInspectTemplate(request);
UpdateInspectTemplate(string, InspectTemplate, FieldMask, CallSettings)
public virtual InspectTemplate UpdateInspectTemplate(string name, InspectTemplate inspectTemplate, FieldMask updateMask, CallSettings callSettings = null)
Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of organization and inspectTemplate to be updated,
for example |
inspectTemplate |
InspectTemplate New InspectTemplate value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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 name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
InspectTemplate inspectTemplate = new InspectTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
InspectTemplate response = dlpServiceClient.UpdateInspectTemplate(name, inspectTemplate, updateMask);
UpdateInspectTemplateAsync(InspectTemplateName, InspectTemplate, FieldMask, CallSettings)
public virtual Task<InspectTemplate> UpdateInspectTemplateAsync(InspectTemplateName name, InspectTemplate inspectTemplate, FieldMask updateMask, CallSettings callSettings = null)
Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
InspectTemplateName Required. Resource name of organization and inspectTemplate to be updated,
for example |
inspectTemplate |
InspectTemplate New InspectTemplate value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
InspectTemplate inspectTemplate = new InspectTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
InspectTemplate response = await dlpServiceClient.UpdateInspectTemplateAsync(name, inspectTemplate, updateMask);
UpdateInspectTemplateAsync(InspectTemplateName, InspectTemplate, FieldMask, CancellationToken)
public virtual Task<InspectTemplate> UpdateInspectTemplateAsync(InspectTemplateName name, InspectTemplate inspectTemplate, FieldMask updateMask, CancellationToken cancellationToken)
Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
InspectTemplateName Required. Resource name of organization and inspectTemplate to be updated,
for example |
inspectTemplate |
InspectTemplate New InspectTemplate value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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)
InspectTemplateName name = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
InspectTemplate inspectTemplate = new InspectTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
InspectTemplate response = await dlpServiceClient.UpdateInspectTemplateAsync(name, inspectTemplate, updateMask);
UpdateInspectTemplateAsync(UpdateInspectTemplateRequest, CallSettings)
public virtual Task<InspectTemplate> UpdateInspectTemplateAsync(UpdateInspectTemplateRequest request, CallSettings callSettings = null)
Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
request |
UpdateInspectTemplateRequest 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)
UpdateInspectTemplateRequest request = new UpdateInspectTemplateRequest
{
InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
InspectTemplate = new InspectTemplate(),
UpdateMask = new FieldMask(),
};
// Make the request
InspectTemplate response = await dlpServiceClient.UpdateInspectTemplateAsync(request);
UpdateInspectTemplateAsync(UpdateInspectTemplateRequest, CancellationToken)
public virtual Task<InspectTemplate> UpdateInspectTemplateAsync(UpdateInspectTemplateRequest request, CancellationToken cancellationToken)
Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
request |
UpdateInspectTemplateRequest 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)
UpdateInspectTemplateRequest request = new UpdateInspectTemplateRequest
{
InspectTemplateName = InspectTemplateName.FromOrganizationInspectTemplate("[ORGANIZATION]", "[INSPECT_TEMPLATE]"),
InspectTemplate = new InspectTemplate(),
UpdateMask = new FieldMask(),
};
// Make the request
InspectTemplate response = await dlpServiceClient.UpdateInspectTemplateAsync(request);
UpdateInspectTemplateAsync(string, InspectTemplate, FieldMask, CallSettings)
public virtual Task<InspectTemplate> UpdateInspectTemplateAsync(string name, InspectTemplate inspectTemplate, FieldMask updateMask, CallSettings callSettings = null)
Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of organization and inspectTemplate to be updated,
for example |
inspectTemplate |
InspectTemplate New InspectTemplate value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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 name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
InspectTemplate inspectTemplate = new InspectTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
InspectTemplate response = await dlpServiceClient.UpdateInspectTemplateAsync(name, inspectTemplate, updateMask);
UpdateInspectTemplateAsync(string, InspectTemplate, FieldMask, CancellationToken)
public virtual Task<InspectTemplate> UpdateInspectTemplateAsync(string name, InspectTemplate inspectTemplate, FieldMask updateMask, CancellationToken cancellationToken)
Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of organization and inspectTemplate to be updated,
for example |
inspectTemplate |
InspectTemplate New InspectTemplate value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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 name = "organizations/[ORGANIZATION]/inspectTemplates/[INSPECT_TEMPLATE]";
InspectTemplate inspectTemplate = new InspectTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
InspectTemplate response = await dlpServiceClient.UpdateInspectTemplateAsync(name, inspectTemplate, updateMask);
UpdateJobTrigger(JobTriggerName, JobTrigger, FieldMask, CallSettings)
public virtual JobTrigger UpdateJobTrigger(JobTriggerName name, JobTrigger jobTrigger, FieldMask updateMask, CallSettings callSettings = null)
Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
JobTriggerName Required. Resource name of the project and the triggeredJob, for example
|
jobTrigger |
JobTrigger New JobTrigger value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
JobTrigger jobTrigger = new JobTrigger();
FieldMask updateMask = new FieldMask();
// Make the request
JobTrigger response = dlpServiceClient.UpdateJobTrigger(name, jobTrigger, updateMask);
UpdateJobTrigger(UpdateJobTriggerRequest, CallSettings)
public virtual JobTrigger UpdateJobTrigger(UpdateJobTriggerRequest request, CallSettings callSettings = null)
Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
request |
UpdateJobTriggerRequest 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)
UpdateJobTriggerRequest request = new UpdateJobTriggerRequest
{
JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
JobTrigger = new JobTrigger(),
UpdateMask = new FieldMask(),
};
// Make the request
JobTrigger response = dlpServiceClient.UpdateJobTrigger(request);
UpdateJobTrigger(string, JobTrigger, FieldMask, CallSettings)
public virtual JobTrigger UpdateJobTrigger(string name, JobTrigger jobTrigger, FieldMask updateMask, CallSettings callSettings = null)
Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the triggeredJob, for example
|
jobTrigger |
JobTrigger New JobTrigger value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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 name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
JobTrigger jobTrigger = new JobTrigger();
FieldMask updateMask = new FieldMask();
// Make the request
JobTrigger response = dlpServiceClient.UpdateJobTrigger(name, jobTrigger, updateMask);
UpdateJobTriggerAsync(JobTriggerName, JobTrigger, FieldMask, CallSettings)
public virtual Task<JobTrigger> UpdateJobTriggerAsync(JobTriggerName name, JobTrigger jobTrigger, FieldMask updateMask, CallSettings callSettings = null)
Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
JobTriggerName Required. Resource name of the project and the triggeredJob, for example
|
jobTrigger |
JobTrigger New JobTrigger value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
JobTrigger jobTrigger = new JobTrigger();
FieldMask updateMask = new FieldMask();
// Make the request
JobTrigger response = await dlpServiceClient.UpdateJobTriggerAsync(name, jobTrigger, updateMask);
UpdateJobTriggerAsync(JobTriggerName, JobTrigger, FieldMask, CancellationToken)
public virtual Task<JobTrigger> UpdateJobTriggerAsync(JobTriggerName name, JobTrigger jobTrigger, FieldMask updateMask, CancellationToken cancellationToken)
Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
JobTriggerName Required. Resource name of the project and the triggeredJob, for example
|
jobTrigger |
JobTrigger New JobTrigger value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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)
JobTriggerName name = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]");
JobTrigger jobTrigger = new JobTrigger();
FieldMask updateMask = new FieldMask();
// Make the request
JobTrigger response = await dlpServiceClient.UpdateJobTriggerAsync(name, jobTrigger, updateMask);
UpdateJobTriggerAsync(UpdateJobTriggerRequest, CallSettings)
public virtual Task<JobTrigger> UpdateJobTriggerAsync(UpdateJobTriggerRequest request, CallSettings callSettings = null)
Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
request |
UpdateJobTriggerRequest 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)
UpdateJobTriggerRequest request = new UpdateJobTriggerRequest
{
JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
JobTrigger = new JobTrigger(),
UpdateMask = new FieldMask(),
};
// Make the request
JobTrigger response = await dlpServiceClient.UpdateJobTriggerAsync(request);
UpdateJobTriggerAsync(UpdateJobTriggerRequest, CancellationToken)
public virtual Task<JobTrigger> UpdateJobTriggerAsync(UpdateJobTriggerRequest request, CancellationToken cancellationToken)
Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
request |
UpdateJobTriggerRequest 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)
UpdateJobTriggerRequest request = new UpdateJobTriggerRequest
{
JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
JobTrigger = new JobTrigger(),
UpdateMask = new FieldMask(),
};
// Make the request
JobTrigger response = await dlpServiceClient.UpdateJobTriggerAsync(request);
UpdateJobTriggerAsync(string, JobTrigger, FieldMask, CallSettings)
public virtual Task<JobTrigger> UpdateJobTriggerAsync(string name, JobTrigger jobTrigger, FieldMask updateMask, CallSettings callSettings = null)
Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the triggeredJob, for example
|
jobTrigger |
JobTrigger New JobTrigger value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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 name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
JobTrigger jobTrigger = new JobTrigger();
FieldMask updateMask = new FieldMask();
// Make the request
JobTrigger response = await dlpServiceClient.UpdateJobTriggerAsync(name, jobTrigger, updateMask);
UpdateJobTriggerAsync(string, JobTrigger, FieldMask, CancellationToken)
public virtual Task<JobTrigger> UpdateJobTriggerAsync(string name, JobTrigger jobTrigger, FieldMask updateMask, CancellationToken cancellationToken)
Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of the project and the triggeredJob, for example
|
jobTrigger |
JobTrigger New JobTrigger value. |
updateMask |
FieldMask Mask to control which fields get updated. |
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)
string name = "projects/[PROJECT]/jobTriggers/[JOB_TRIGGER]";
JobTrigger jobTrigger = new JobTrigger();
FieldMask updateMask = new FieldMask();
// Make the request
JobTrigger response = await dlpServiceClient.UpdateJobTriggerAsync(name, jobTrigger, updateMask);
UpdateStoredInfoType(StoredInfoTypeName, StoredInfoTypeConfig, FieldMask, CallSettings)
public virtual StoredInfoType UpdateStoredInfoType(StoredInfoTypeName name, StoredInfoTypeConfig config, FieldMask updateMask, CallSettings callSettings = null)
Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
StoredInfoTypeName Required. Resource name of organization and storedInfoType to be updated,
for example |
config |
StoredInfoTypeConfig Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration. |
updateMask |
FieldMask Mask to control which fields get updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
StoredInfoType |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StoredInfoType response = dlpServiceClient.UpdateStoredInfoType(name, config, updateMask);
UpdateStoredInfoType(UpdateStoredInfoTypeRequest, CallSettings)
public virtual StoredInfoType UpdateStoredInfoType(UpdateStoredInfoTypeRequest request, CallSettings callSettings = null)
Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
request |
UpdateStoredInfoTypeRequest 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 |
StoredInfoType |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
UpdateStoredInfoTypeRequest request = new UpdateStoredInfoTypeRequest
{
StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
Config = new StoredInfoTypeConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
StoredInfoType response = dlpServiceClient.UpdateStoredInfoType(request);
UpdateStoredInfoType(string, StoredInfoTypeConfig, FieldMask, CallSettings)
public virtual StoredInfoType UpdateStoredInfoType(string name, StoredInfoTypeConfig config, FieldMask updateMask, CallSettings callSettings = null)
Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of organization and storedInfoType to be updated,
for example |
config |
StoredInfoTypeConfig Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration. |
updateMask |
FieldMask Mask to control which fields get updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
StoredInfoType |
The RPC response. |
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StoredInfoType response = dlpServiceClient.UpdateStoredInfoType(name, config, updateMask);
UpdateStoredInfoTypeAsync(StoredInfoTypeName, StoredInfoTypeConfig, FieldMask, CallSettings)
public virtual Task<StoredInfoType> UpdateStoredInfoTypeAsync(StoredInfoTypeName name, StoredInfoTypeConfig config, FieldMask updateMask, CallSettings callSettings = null)
Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
StoredInfoTypeName Required. Resource name of organization and storedInfoType to be updated,
for example |
config |
StoredInfoTypeConfig Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration. |
updateMask |
FieldMask Mask to control which fields get updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StoredInfoType response = await dlpServiceClient.UpdateStoredInfoTypeAsync(name, config, updateMask);
UpdateStoredInfoTypeAsync(StoredInfoTypeName, StoredInfoTypeConfig, FieldMask, CancellationToken)
public virtual Task<StoredInfoType> UpdateStoredInfoTypeAsync(StoredInfoTypeName name, StoredInfoTypeConfig config, FieldMask updateMask, CancellationToken cancellationToken)
Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
StoredInfoTypeName Required. Resource name of organization and storedInfoType to be updated,
for example |
config |
StoredInfoTypeConfig Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration. |
updateMask |
FieldMask Mask to control which fields get updated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
StoredInfoTypeName name = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]");
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StoredInfoType response = await dlpServiceClient.UpdateStoredInfoTypeAsync(name, config, updateMask);
UpdateStoredInfoTypeAsync(UpdateStoredInfoTypeRequest, CallSettings)
public virtual Task<StoredInfoType> UpdateStoredInfoTypeAsync(UpdateStoredInfoTypeRequest request, CallSettings callSettings = null)
Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
request |
UpdateStoredInfoTypeRequest 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 |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateStoredInfoTypeRequest request = new UpdateStoredInfoTypeRequest
{
StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
Config = new StoredInfoTypeConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
StoredInfoType response = await dlpServiceClient.UpdateStoredInfoTypeAsync(request);
UpdateStoredInfoTypeAsync(UpdateStoredInfoTypeRequest, CancellationToken)
public virtual Task<StoredInfoType> UpdateStoredInfoTypeAsync(UpdateStoredInfoTypeRequest request, CancellationToken cancellationToken)
Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
request |
UpdateStoredInfoTypeRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateStoredInfoTypeRequest request = new UpdateStoredInfoTypeRequest
{
StoredInfoTypeName = StoredInfoTypeName.FromOrganizationStoredInfoType("[ORGANIZATION]", "[STORED_INFO_TYPE]"),
Config = new StoredInfoTypeConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
StoredInfoType response = await dlpServiceClient.UpdateStoredInfoTypeAsync(request);
UpdateStoredInfoTypeAsync(string, StoredInfoTypeConfig, FieldMask, CallSettings)
public virtual Task<StoredInfoType> UpdateStoredInfoTypeAsync(string name, StoredInfoTypeConfig config, FieldMask updateMask, CallSettings callSettings = null)
Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of organization and storedInfoType to be updated,
for example |
config |
StoredInfoTypeConfig Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration. |
updateMask |
FieldMask Mask to control which fields get updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StoredInfoType response = await dlpServiceClient.UpdateStoredInfoTypeAsync(name, config, updateMask);
UpdateStoredInfoTypeAsync(string, StoredInfoTypeConfig, FieldMask, CancellationToken)
public virtual Task<StoredInfoType> UpdateStoredInfoTypeAsync(string name, StoredInfoTypeConfig config, FieldMask updateMask, CancellationToken cancellationToken)
Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Parameters | |
---|---|
Name | Description |
name |
string Required. Resource name of organization and storedInfoType to be updated,
for example |
config |
StoredInfoTypeConfig Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration. |
updateMask |
FieldMask Mask to control which fields get updated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStoredInfoType |
A Task containing the RPC response. |
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/storedInfoTypes/[STORED_INFO_TYPE]";
StoredInfoTypeConfig config = new StoredInfoTypeConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StoredInfoType response = await dlpServiceClient.UpdateStoredInfoTypeAsync(name, config, updateMask);