@Generated(value="by gapic-generator-java") public class DlpServiceClient extends Object implements com.google.api.gax.core.BackgroundResource
To learn more about concepts and find how-to guides see https://cloud.google.com/dlp/docs/.
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
Note: close() needs to be called on the DlpServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
The surface of this class includes several types of Java methods for each of the API's methods:
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of DlpServiceSettings to create(). For example:
To customize credentials:
DlpServiceSettings dlpServiceSettings =
DlpServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
DlpServiceClient dlpServiceClient = DlpServiceClient.create(dlpServiceSettings);
To customize the endpoint:
DlpServiceSettings dlpServiceSettings =
DlpServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
DlpServiceClient dlpServiceClient = DlpServiceClient.create(dlpServiceSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
| Modifier and Type | Class and Description |
|---|---|
static class |
DlpServiceClient.ListDeidentifyTemplatesFixedSizeCollection |
static class |
DlpServiceClient.ListDeidentifyTemplatesPage |
static class |
DlpServiceClient.ListDeidentifyTemplatesPagedResponse |
static class |
DlpServiceClient.ListDlpJobsFixedSizeCollection |
static class |
DlpServiceClient.ListDlpJobsPage |
static class |
DlpServiceClient.ListDlpJobsPagedResponse |
static class |
DlpServiceClient.ListInspectTemplatesFixedSizeCollection |
static class |
DlpServiceClient.ListInspectTemplatesPage |
static class |
DlpServiceClient.ListInspectTemplatesPagedResponse |
static class |
DlpServiceClient.ListJobTriggersFixedSizeCollection |
static class |
DlpServiceClient.ListJobTriggersPage |
static class |
DlpServiceClient.ListJobTriggersPagedResponse |
static class |
DlpServiceClient.ListStoredInfoTypesFixedSizeCollection |
static class |
DlpServiceClient.ListStoredInfoTypesPage |
static class |
DlpServiceClient.ListStoredInfoTypesPagedResponse |
| Modifier | Constructor and Description |
|---|---|
protected |
DlpServiceClient(DlpServiceSettings settings)
Constructs an instance of DlpServiceClient, using the given settings.
|
protected |
DlpServiceClient(DlpServiceStub stub) |
| Modifier and Type | Method and Description |
|---|---|
DlpJob |
activateJobTrigger(ActivateJobTriggerRequest request)
Activate a job trigger.
|
com.google.api.gax.rpc.UnaryCallable<ActivateJobTriggerRequest,DlpJob> |
activateJobTriggerCallable()
Activate a job trigger.
|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
cancelDlpJob(CancelDlpJobRequest request)
Starts asynchronous cancellation on a long-running DlpJob.
|
com.google.api.gax.rpc.UnaryCallable<CancelDlpJobRequest,com.google.protobuf.Empty> |
cancelDlpJobCallable()
Starts asynchronous cancellation on a long-running DlpJob.
|
void |
close() |
static DlpServiceClient |
create()
Constructs an instance of DlpServiceClient with default settings.
|
static DlpServiceClient |
create(DlpServiceSettings settings)
Constructs an instance of DlpServiceClient, using the given settings.
|
static DlpServiceClient |
create(DlpServiceStub stub)
Constructs an instance of DlpServiceClient, using the given stub for making calls.
|
DeidentifyTemplate |
createDeidentifyTemplate(CreateDeidentifyTemplateRequest request)
Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying
content, images, and storage.
|
DeidentifyTemplate |
createDeidentifyTemplate(LocationName parent,
DeidentifyTemplate deidentifyTemplate)
Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying
content, images, and storage.
|
DeidentifyTemplate |
createDeidentifyTemplate(OrganizationLocationName parent,
DeidentifyTemplate deidentifyTemplate)
Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying
content, images, and storage.
|
DeidentifyTemplate |
createDeidentifyTemplate(OrganizationName parent,
DeidentifyTemplate deidentifyTemplate)
Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying
content, images, and storage.
|
DeidentifyTemplate |
createDeidentifyTemplate(ProjectName parent,
DeidentifyTemplate deidentifyTemplate)
Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying
content, images, and storage.
|
DeidentifyTemplate |
createDeidentifyTemplate(String parent,
DeidentifyTemplate deidentifyTemplate)
Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying
content, images, and storage.
|
com.google.api.gax.rpc.UnaryCallable<CreateDeidentifyTemplateRequest,DeidentifyTemplate> |
createDeidentifyTemplateCallable()
Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying
content, images, and storage.
|
DlpJob |
createDlpJob(CreateDlpJobRequest request)
Creates a new job to inspect storage or calculate risk metrics.
|
DlpJob |
createDlpJob(LocationName parent,
InspectJobConfig inspectJob)
Creates a new job to inspect storage or calculate risk metrics.
|
DlpJob |
createDlpJob(LocationName parent,
RiskAnalysisJobConfig riskJob)
Creates a new job to inspect storage or calculate risk metrics.
|
DlpJob |
createDlpJob(ProjectName parent,
InspectJobConfig inspectJob)
Creates a new job to inspect storage or calculate risk metrics.
|
DlpJob |
createDlpJob(ProjectName parent,
RiskAnalysisJobConfig riskJob)
Creates a new job to inspect storage or calculate risk metrics.
|
DlpJob |
createDlpJob(String parent,
InspectJobConfig inspectJob)
Creates a new job to inspect storage or calculate risk metrics.
|
DlpJob |
createDlpJob(String parent,
RiskAnalysisJobConfig riskJob)
Creates a new job to inspect storage or calculate risk metrics.
|
com.google.api.gax.rpc.UnaryCallable<CreateDlpJobRequest,DlpJob> |
createDlpJobCallable()
Creates a new job to inspect storage or calculate risk metrics.
|
InspectTemplate |
createInspectTemplate(CreateInspectTemplateRequest request)
Creates an InspectTemplate for re-using frequently used configuration for inspecting content,
images, and storage.
|
InspectTemplate |
createInspectTemplate(LocationName parent,
InspectTemplate inspectTemplate)
Creates an InspectTemplate for re-using frequently used configuration for inspecting content,
images, and storage.
|
InspectTemplate |
createInspectTemplate(OrganizationLocationName parent,
InspectTemplate inspectTemplate)
Creates an InspectTemplate for re-using frequently used configuration for inspecting content,
images, and storage.
|
InspectTemplate |
createInspectTemplate(OrganizationName parent,
InspectTemplate inspectTemplate)
Creates an InspectTemplate for re-using frequently used configuration for inspecting content,
images, and storage.
|
InspectTemplate |
createInspectTemplate(ProjectName parent,
InspectTemplate inspectTemplate)
Creates an InspectTemplate for re-using frequently used configuration for inspecting content,
images, and storage.
|
InspectTemplate |
createInspectTemplate(String parent,
InspectTemplate inspectTemplate)
Creates an InspectTemplate for re-using frequently used configuration for inspecting content,
images, and storage.
|
com.google.api.gax.rpc.UnaryCallable<CreateInspectTemplateRequest,InspectTemplate> |
createInspectTemplateCallable()
Creates an InspectTemplate for re-using frequently used configuration for inspecting content,
images, and storage.
|
JobTrigger |
createJobTrigger(CreateJobTriggerRequest request)
Creates a job trigger to run DLP actions such as scanning storage for sensitive information on
a set schedule.
|
JobTrigger |
createJobTrigger(LocationName parent,
JobTrigger jobTrigger)
Creates a job trigger to run DLP actions such as scanning storage for sensitive information on
a set schedule.
|
JobTrigger |
createJobTrigger(ProjectName parent,
JobTrigger jobTrigger)
Creates a job trigger to run DLP actions such as scanning storage for sensitive information on
a set schedule.
|
JobTrigger |
createJobTrigger(String parent,
JobTrigger jobTrigger)
Creates a job trigger to run DLP actions such as scanning storage for sensitive information on
a set schedule.
|
com.google.api.gax.rpc.UnaryCallable<CreateJobTriggerRequest,JobTrigger> |
createJobTriggerCallable()
Creates a job trigger to run DLP actions such as scanning storage for sensitive information on
a set schedule.
|
StoredInfoType |
createStoredInfoType(CreateStoredInfoTypeRequest request)
Creates a pre-built stored infoType to be used for inspection.
|
StoredInfoType |
createStoredInfoType(LocationName parent,
StoredInfoTypeConfig config)
Creates a pre-built stored infoType to be used for inspection.
|
StoredInfoType |
createStoredInfoType(OrganizationLocationName parent,
StoredInfoTypeConfig config)
Creates a pre-built stored infoType to be used for inspection.
|
StoredInfoType |
createStoredInfoType(OrganizationName parent,
StoredInfoTypeConfig config)
Creates a pre-built stored infoType to be used for inspection.
|
StoredInfoType |
createStoredInfoType(ProjectName parent,
StoredInfoTypeConfig config)
Creates a pre-built stored infoType to be used for inspection.
|
StoredInfoType |
createStoredInfoType(String parent,
StoredInfoTypeConfig config)
Creates a pre-built stored infoType to be used for inspection.
|
com.google.api.gax.rpc.UnaryCallable<CreateStoredInfoTypeRequest,StoredInfoType> |
createStoredInfoTypeCallable()
Creates a pre-built stored infoType to be used for inspection.
|
DeidentifyContentResponse |
deidentifyContent(DeidentifyContentRequest request)
De-identifies potentially sensitive info from a ContentItem.
|
com.google.api.gax.rpc.UnaryCallable<DeidentifyContentRequest,DeidentifyContentResponse> |
deidentifyContentCallable()
De-identifies potentially sensitive info from a ContentItem.
|
void |
deleteDeidentifyTemplate(DeidentifyTemplateName name)
Deletes a DeidentifyTemplate.
|
void |
deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request)
Deletes a DeidentifyTemplate.
|
void |
deleteDeidentifyTemplate(String name)
Deletes a DeidentifyTemplate.
|
com.google.api.gax.rpc.UnaryCallable<DeleteDeidentifyTemplateRequest,com.google.protobuf.Empty> |
deleteDeidentifyTemplateCallable()
Deletes a DeidentifyTemplate.
|
void |
deleteDlpJob(DeleteDlpJobRequest request)
Deletes a long-running DlpJob.
|
void |
deleteDlpJob(DlpJobName name)
Deletes a long-running DlpJob.
|
void |
deleteDlpJob(String name)
Deletes a long-running DlpJob.
|
com.google.api.gax.rpc.UnaryCallable<DeleteDlpJobRequest,com.google.protobuf.Empty> |
deleteDlpJobCallable()
Deletes a long-running DlpJob.
|
void |
deleteInspectTemplate(DeleteInspectTemplateRequest request)
Deletes an InspectTemplate.
|
void |
deleteInspectTemplate(InspectTemplateName name)
Deletes an InspectTemplate.
|
void |
deleteInspectTemplate(String name)
Deletes an InspectTemplate.
|
com.google.api.gax.rpc.UnaryCallable<DeleteInspectTemplateRequest,com.google.protobuf.Empty> |
deleteInspectTemplateCallable()
Deletes an InspectTemplate.
|
void |
deleteJobTrigger(DeleteJobTriggerRequest request)
Deletes a job trigger.
|
void |
deleteJobTrigger(JobTriggerName name)
Deletes a job trigger.
|
void |
deleteJobTrigger(String name)
Deletes a job trigger.
|
com.google.api.gax.rpc.UnaryCallable<DeleteJobTriggerRequest,com.google.protobuf.Empty> |
deleteJobTriggerCallable()
Deletes a job trigger.
|
void |
deleteStoredInfoType(DeleteStoredInfoTypeRequest request)
Deletes a stored infoType.
|
void |
deleteStoredInfoType(StoredInfoTypeName name)
Deletes a stored infoType.
|
void |
deleteStoredInfoType(String name)
Deletes a stored infoType.
|
com.google.api.gax.rpc.UnaryCallable<DeleteStoredInfoTypeRequest,com.google.protobuf.Empty> |
deleteStoredInfoTypeCallable()
Deletes a stored infoType.
|
void |
finishDlpJob(FinishDlpJobRequest request)
Finish a running hybrid DlpJob.
|
com.google.api.gax.rpc.UnaryCallable<FinishDlpJobRequest,com.google.protobuf.Empty> |
finishDlpJobCallable()
Finish a running hybrid DlpJob.
|
DeidentifyTemplate |
getDeidentifyTemplate(DeidentifyTemplateName name)
Gets a DeidentifyTemplate.
|
DeidentifyTemplate |
getDeidentifyTemplate(GetDeidentifyTemplateRequest request)
Gets a DeidentifyTemplate.
|
DeidentifyTemplate |
getDeidentifyTemplate(String name)
Gets a DeidentifyTemplate.
|
com.google.api.gax.rpc.UnaryCallable<GetDeidentifyTemplateRequest,DeidentifyTemplate> |
getDeidentifyTemplateCallable()
Gets a DeidentifyTemplate.
|
DlpJob |
getDlpJob(DlpJobName name)
Gets the latest state of a long-running DlpJob.
|
DlpJob |
getDlpJob(GetDlpJobRequest request)
Gets the latest state of a long-running DlpJob.
|
DlpJob |
getDlpJob(String name)
Gets the latest state of a long-running DlpJob.
|
com.google.api.gax.rpc.UnaryCallable<GetDlpJobRequest,DlpJob> |
getDlpJobCallable()
Gets the latest state of a long-running DlpJob.
|
InspectTemplate |
getInspectTemplate(GetInspectTemplateRequest request)
Gets an InspectTemplate.
|
InspectTemplate |
getInspectTemplate(InspectTemplateName name)
Gets an InspectTemplate.
|
InspectTemplate |
getInspectTemplate(String name)
Gets an InspectTemplate.
|
com.google.api.gax.rpc.UnaryCallable<GetInspectTemplateRequest,InspectTemplate> |
getInspectTemplateCallable()
Gets an InspectTemplate.
|
JobTrigger |
getJobTrigger(GetJobTriggerRequest request)
Gets a job trigger.
|
JobTrigger |
getJobTrigger(JobTriggerName name)
Gets a job trigger.
|
JobTrigger |
getJobTrigger(String name)
Gets a job trigger.
|
com.google.api.gax.rpc.UnaryCallable<GetJobTriggerRequest,JobTrigger> |
getJobTriggerCallable()
Gets a job trigger.
|
DlpServiceSettings |
getSettings() |
StoredInfoType |
getStoredInfoType(GetStoredInfoTypeRequest request)
Gets a stored infoType.
|
StoredInfoType |
getStoredInfoType(StoredInfoTypeName name)
Gets a stored infoType.
|
StoredInfoType |
getStoredInfoType(String name)
Gets a stored infoType.
|
com.google.api.gax.rpc.UnaryCallable<GetStoredInfoTypeRequest,StoredInfoType> |
getStoredInfoTypeCallable()
Gets a stored infoType.
|
DlpServiceStub |
getStub() |
HybridInspectResponse |
hybridInspectDlpJob(DlpJobName name)
Inspect hybrid content and store findings to a job.
|
HybridInspectResponse |
hybridInspectDlpJob(HybridInspectDlpJobRequest request)
Inspect hybrid content and store findings to a job.
|
HybridInspectResponse |
hybridInspectDlpJob(String name)
Inspect hybrid content and store findings to a job.
|
com.google.api.gax.rpc.UnaryCallable<HybridInspectDlpJobRequest,HybridInspectResponse> |
hybridInspectDlpJobCallable()
Inspect hybrid content and store findings to a job.
|
HybridInspectResponse |
hybridInspectJobTrigger(HybridInspectJobTriggerRequest request)
Inspect hybrid content and store findings to a trigger.
|
HybridInspectResponse |
hybridInspectJobTrigger(JobTriggerName name)
Inspect hybrid content and store findings to a trigger.
|
HybridInspectResponse |
hybridInspectJobTrigger(String name)
Inspect hybrid content and store findings to a trigger.
|
com.google.api.gax.rpc.UnaryCallable<HybridInspectJobTriggerRequest,HybridInspectResponse> |
hybridInspectJobTriggerCallable()
Inspect hybrid content and store findings to a trigger.
|
InspectContentResponse |
inspectContent(InspectContentRequest request)
Finds potentially sensitive info in content.
|
com.google.api.gax.rpc.UnaryCallable<InspectContentRequest,InspectContentResponse> |
inspectContentCallable()
Finds potentially sensitive info in content.
|
boolean |
isShutdown() |
boolean |
isTerminated() |
DlpServiceClient.ListDeidentifyTemplatesPagedResponse |
listDeidentifyTemplates(ListDeidentifyTemplatesRequest request)
Lists DeidentifyTemplates.
|
DlpServiceClient.ListDeidentifyTemplatesPagedResponse |
listDeidentifyTemplates(LocationName parent)
Lists DeidentifyTemplates.
|
DlpServiceClient.ListDeidentifyTemplatesPagedResponse |
listDeidentifyTemplates(OrganizationLocationName parent)
Lists DeidentifyTemplates.
|
DlpServiceClient.ListDeidentifyTemplatesPagedResponse |
listDeidentifyTemplates(OrganizationName parent)
Lists DeidentifyTemplates.
|
DlpServiceClient.ListDeidentifyTemplatesPagedResponse |
listDeidentifyTemplates(ProjectName parent)
Lists DeidentifyTemplates.
|
DlpServiceClient.ListDeidentifyTemplatesPagedResponse |
listDeidentifyTemplates(String parent)
Lists DeidentifyTemplates.
|
com.google.api.gax.rpc.UnaryCallable<ListDeidentifyTemplatesRequest,ListDeidentifyTemplatesResponse> |
listDeidentifyTemplatesCallable()
Lists DeidentifyTemplates.
|
com.google.api.gax.rpc.UnaryCallable<ListDeidentifyTemplatesRequest,DlpServiceClient.ListDeidentifyTemplatesPagedResponse> |
listDeidentifyTemplatesPagedCallable()
Lists DeidentifyTemplates.
|
DlpServiceClient.ListDlpJobsPagedResponse |
listDlpJobs(ListDlpJobsRequest request)
Lists DlpJobs that match the specified filter in the request.
|
DlpServiceClient.ListDlpJobsPagedResponse |
listDlpJobs(LocationName parent)
Lists DlpJobs that match the specified filter in the request.
|
DlpServiceClient.ListDlpJobsPagedResponse |
listDlpJobs(ProjectName parent)
Lists DlpJobs that match the specified filter in the request.
|
DlpServiceClient.ListDlpJobsPagedResponse |
listDlpJobs(String parent)
Lists DlpJobs that match the specified filter in the request.
|
com.google.api.gax.rpc.UnaryCallable<ListDlpJobsRequest,ListDlpJobsResponse> |
listDlpJobsCallable()
Lists DlpJobs that match the specified filter in the request.
|
com.google.api.gax.rpc.UnaryCallable<ListDlpJobsRequest,DlpServiceClient.ListDlpJobsPagedResponse> |
listDlpJobsPagedCallable()
Lists DlpJobs that match the specified filter in the request.
|
ListInfoTypesResponse |
listInfoTypes(ListInfoTypesRequest request)
Returns a list of the sensitive information types that the DLP API supports.
|
ListInfoTypesResponse |
listInfoTypes(String parent)
Returns a list of the sensitive information types that the DLP API supports.
|
com.google.api.gax.rpc.UnaryCallable<ListInfoTypesRequest,ListInfoTypesResponse> |
listInfoTypesCallable()
Returns a list of the sensitive information types that the DLP API supports.
|
DlpServiceClient.ListInspectTemplatesPagedResponse |
listInspectTemplates(ListInspectTemplatesRequest request)
Lists InspectTemplates.
|
DlpServiceClient.ListInspectTemplatesPagedResponse |
listInspectTemplates(LocationName parent)
Lists InspectTemplates.
|
DlpServiceClient.ListInspectTemplatesPagedResponse |
listInspectTemplates(OrganizationLocationName parent)
Lists InspectTemplates.
|
DlpServiceClient.ListInspectTemplatesPagedResponse |
listInspectTemplates(OrganizationName parent)
Lists InspectTemplates.
|
DlpServiceClient.ListInspectTemplatesPagedResponse |
listInspectTemplates(ProjectName parent)
Lists InspectTemplates.
|
DlpServiceClient.ListInspectTemplatesPagedResponse |
listInspectTemplates(String parent)
Lists InspectTemplates.
|
com.google.api.gax.rpc.UnaryCallable<ListInspectTemplatesRequest,ListInspectTemplatesResponse> |
listInspectTemplatesCallable()
Lists InspectTemplates.
|
com.google.api.gax.rpc.UnaryCallable<ListInspectTemplatesRequest,DlpServiceClient.ListInspectTemplatesPagedResponse> |
listInspectTemplatesPagedCallable()
Lists InspectTemplates.
|
DlpServiceClient.ListJobTriggersPagedResponse |
listJobTriggers(ListJobTriggersRequest request)
Lists job triggers.
|
DlpServiceClient.ListJobTriggersPagedResponse |
listJobTriggers(LocationName parent)
Lists job triggers.
|
DlpServiceClient.ListJobTriggersPagedResponse |
listJobTriggers(ProjectName parent)
Lists job triggers.
|
DlpServiceClient.ListJobTriggersPagedResponse |
listJobTriggers(String parent)
Lists job triggers.
|
com.google.api.gax.rpc.UnaryCallable<ListJobTriggersRequest,ListJobTriggersResponse> |
listJobTriggersCallable()
Lists job triggers.
|
com.google.api.gax.rpc.UnaryCallable<ListJobTriggersRequest,DlpServiceClient.ListJobTriggersPagedResponse> |
listJobTriggersPagedCallable()
Lists job triggers.
|
DlpServiceClient.ListStoredInfoTypesPagedResponse |
listStoredInfoTypes(ListStoredInfoTypesRequest request)
Lists stored infoTypes.
|
DlpServiceClient.ListStoredInfoTypesPagedResponse |
listStoredInfoTypes(LocationName parent)
Lists stored infoTypes.
|
DlpServiceClient.ListStoredInfoTypesPagedResponse |
listStoredInfoTypes(OrganizationLocationName parent)
Lists stored infoTypes.
|
DlpServiceClient.ListStoredInfoTypesPagedResponse |
listStoredInfoTypes(OrganizationName parent)
Lists stored infoTypes.
|
DlpServiceClient.ListStoredInfoTypesPagedResponse |
listStoredInfoTypes(ProjectName parent)
Lists stored infoTypes.
|
DlpServiceClient.ListStoredInfoTypesPagedResponse |
listStoredInfoTypes(String parent)
Lists stored infoTypes.
|
com.google.api.gax.rpc.UnaryCallable<ListStoredInfoTypesRequest,ListStoredInfoTypesResponse> |
listStoredInfoTypesCallable()
Lists stored infoTypes.
|
com.google.api.gax.rpc.UnaryCallable<ListStoredInfoTypesRequest,DlpServiceClient.ListStoredInfoTypesPagedResponse> |
listStoredInfoTypesPagedCallable()
Lists stored infoTypes.
|
RedactImageResponse |
redactImage(RedactImageRequest request)
Redacts potentially sensitive info from an image.
|
com.google.api.gax.rpc.UnaryCallable<RedactImageRequest,RedactImageResponse> |
redactImageCallable()
Redacts potentially sensitive info from an image.
|
ReidentifyContentResponse |
reidentifyContent(ReidentifyContentRequest request)
Re-identifies content that has been de-identified.
|
com.google.api.gax.rpc.UnaryCallable<ReidentifyContentRequest,ReidentifyContentResponse> |
reidentifyContentCallable()
Re-identifies content that has been de-identified.
|
void |
shutdown() |
void |
shutdownNow() |
DeidentifyTemplate |
updateDeidentifyTemplate(DeidentifyTemplateName name,
DeidentifyTemplate deidentifyTemplate,
com.google.protobuf.FieldMask updateMask)
Updates the DeidentifyTemplate.
|
DeidentifyTemplate |
updateDeidentifyTemplate(String name,
DeidentifyTemplate deidentifyTemplate,
com.google.protobuf.FieldMask updateMask)
Updates the DeidentifyTemplate.
|
DeidentifyTemplate |
updateDeidentifyTemplate(UpdateDeidentifyTemplateRequest request)
Updates the DeidentifyTemplate.
|
com.google.api.gax.rpc.UnaryCallable<UpdateDeidentifyTemplateRequest,DeidentifyTemplate> |
updateDeidentifyTemplateCallable()
Updates the DeidentifyTemplate.
|
InspectTemplate |
updateInspectTemplate(InspectTemplateName name,
InspectTemplate inspectTemplate,
com.google.protobuf.FieldMask updateMask)
Updates the InspectTemplate.
|
InspectTemplate |
updateInspectTemplate(String name,
InspectTemplate inspectTemplate,
com.google.protobuf.FieldMask updateMask)
Updates the InspectTemplate.
|
InspectTemplate |
updateInspectTemplate(UpdateInspectTemplateRequest request)
Updates the InspectTemplate.
|
com.google.api.gax.rpc.UnaryCallable<UpdateInspectTemplateRequest,InspectTemplate> |
updateInspectTemplateCallable()
Updates the InspectTemplate.
|
JobTrigger |
updateJobTrigger(JobTriggerName name,
JobTrigger jobTrigger,
com.google.protobuf.FieldMask updateMask)
Updates a job trigger.
|
JobTrigger |
updateJobTrigger(String name,
JobTrigger jobTrigger,
com.google.protobuf.FieldMask updateMask)
Updates a job trigger.
|
JobTrigger |
updateJobTrigger(UpdateJobTriggerRequest request)
Updates a job trigger.
|
com.google.api.gax.rpc.UnaryCallable<UpdateJobTriggerRequest,JobTrigger> |
updateJobTriggerCallable()
Updates a job trigger.
|
StoredInfoType |
updateStoredInfoType(StoredInfoTypeName name,
StoredInfoTypeConfig config,
com.google.protobuf.FieldMask updateMask)
Updates the stored infoType by creating a new version.
|
StoredInfoType |
updateStoredInfoType(String name,
StoredInfoTypeConfig config,
com.google.protobuf.FieldMask updateMask)
Updates the stored infoType by creating a new version.
|
StoredInfoType |
updateStoredInfoType(UpdateStoredInfoTypeRequest request)
Updates the stored infoType by creating a new version.
|
com.google.api.gax.rpc.UnaryCallable<UpdateStoredInfoTypeRequest,StoredInfoType> |
updateStoredInfoTypeCallable()
Updates the stored infoType by creating a new version.
|
protected DlpServiceClient(DlpServiceSettings settings) throws IOException
IOException@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") protected DlpServiceClient(DlpServiceStub stub)
public static final DlpServiceClient create() throws IOException
IOExceptionpublic static final DlpServiceClient create(DlpServiceSettings settings) throws IOException
IOException@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public static final DlpServiceClient create(DlpServiceStub stub)
public final DlpServiceSettings getSettings()
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public DlpServiceStub getStub()
public final InspectContentResponse inspectContent(InspectContentRequest request)
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/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<InspectContentRequest,InspectContentResponse> inspectContentCallable()
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/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,
Sample code:
public final RedactImageResponse redactImage(RedactImageRequest request)
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.
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<RedactImageRequest,RedactImageResponse> redactImageCallable()
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.
Sample code:
public final DeidentifyContentResponse deidentifyContent(DeidentifyContentRequest request)
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.
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<DeidentifyContentRequest,DeidentifyContentResponse> deidentifyContentCallable()
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.
Sample code:
public final ReidentifyContentResponse reidentifyContent(ReidentifyContentRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ReidentifyContentRequest,ReidentifyContentResponse> reidentifyContentCallable()
Sample code:
public final ListInfoTypesResponse listInfoTypes(String parent)
parent - The parent resource name.
The format of this value is as follows:
locations/<var>LOCATION_ID</var>
com.google.api.gax.rpc.ApiException - if the remote call failspublic final ListInfoTypesResponse listInfoTypes(ListInfoTypesRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListInfoTypesRequest,ListInfoTypesResponse> listInfoTypesCallable()
Sample code:
public final InspectTemplate createInspectTemplate(LocationName parent, InspectTemplate inspectTemplate)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
inspectTemplate - Required. The InspectTemplate to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final InspectTemplate createInspectTemplate(OrganizationLocationName parent, InspectTemplate inspectTemplate)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
inspectTemplate - Required. The InspectTemplate to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final InspectTemplate createInspectTemplate(OrganizationName parent, InspectTemplate inspectTemplate)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
inspectTemplate - Required. The InspectTemplate to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final InspectTemplate createInspectTemplate(ProjectName parent, InspectTemplate inspectTemplate)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
inspectTemplate - Required. The InspectTemplate to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final InspectTemplate createInspectTemplate(String parent, InspectTemplate inspectTemplate)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
inspectTemplate - Required. The InspectTemplate to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<CreateInspectTemplateRequest,InspectTemplate> createInspectTemplateCallable()
Sample code:
public final InspectTemplate updateInspectTemplate(InspectTemplateName name, InspectTemplate inspectTemplate, com.google.protobuf.FieldMask updateMask)
name - Required. Resource name of organization and inspectTemplate to be updated, for
example `organizations/433245324/inspectTemplates/432452342` or
projects/project-id/inspectTemplates/432452342.inspectTemplate - New InspectTemplate value.updateMask - Mask to control which fields get updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final InspectTemplate updateInspectTemplate(String name, InspectTemplate inspectTemplate, com.google.protobuf.FieldMask updateMask)
name - Required. Resource name of organization and inspectTemplate to be updated, for
example `organizations/433245324/inspectTemplates/432452342` or
projects/project-id/inspectTemplates/432452342.inspectTemplate - New InspectTemplate value.updateMask - Mask to control which fields get updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<UpdateInspectTemplateRequest,InspectTemplate> updateInspectTemplateCallable()
Sample code:
public final InspectTemplate getInspectTemplate(InspectTemplateName name)
name - Required. Resource name of the organization and inspectTemplate to be read, for
example `organizations/433245324/inspectTemplates/432452342` or
projects/project-id/inspectTemplates/432452342.com.google.api.gax.rpc.ApiException - if the remote call failspublic final InspectTemplate getInspectTemplate(String name)
name - Required. Resource name of the organization and inspectTemplate to be read, for
example `organizations/433245324/inspectTemplates/432452342` or
projects/project-id/inspectTemplates/432452342.com.google.api.gax.rpc.ApiException - if the remote call failspublic final InspectTemplate getInspectTemplate(GetInspectTemplateRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetInspectTemplateRequest,InspectTemplate> getInspectTemplateCallable()
Sample code:
public final DlpServiceClient.ListInspectTemplatesPagedResponse listInspectTemplates(LocationName parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListInspectTemplatesPagedResponse listInspectTemplates(OrganizationLocationName parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListInspectTemplatesPagedResponse listInspectTemplates(OrganizationName parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListInspectTemplatesPagedResponse listInspectTemplates(ProjectName parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListInspectTemplatesPagedResponse listInspectTemplates(String parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListInspectTemplatesPagedResponse listInspectTemplates(ListInspectTemplatesRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListInspectTemplatesRequest,DlpServiceClient.ListInspectTemplatesPagedResponse> listInspectTemplatesPagedCallable()
Sample code:
public final com.google.api.gax.rpc.UnaryCallable<ListInspectTemplatesRequest,ListInspectTemplatesResponse> listInspectTemplatesCallable()
Sample code:
public final void deleteInspectTemplate(InspectTemplateName name)
name - Required. Resource name of the organization and inspectTemplate to be deleted, for
example `organizations/433245324/inspectTemplates/432452342` or
projects/project-id/inspectTemplates/432452342.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteInspectTemplate(String name)
name - Required. Resource name of the organization and inspectTemplate to be deleted, for
example `organizations/433245324/inspectTemplates/432452342` or
projects/project-id/inspectTemplates/432452342.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteInspectTemplate(DeleteInspectTemplateRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<DeleteInspectTemplateRequest,com.google.protobuf.Empty> deleteInspectTemplateCallable()
Sample code:
public final DeidentifyTemplate createDeidentifyTemplate(LocationName parent, DeidentifyTemplate deidentifyTemplate)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
deidentifyTemplate - Required. The DeidentifyTemplate to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DeidentifyTemplate createDeidentifyTemplate(OrganizationLocationName parent, DeidentifyTemplate deidentifyTemplate)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
deidentifyTemplate - Required. The DeidentifyTemplate to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DeidentifyTemplate createDeidentifyTemplate(OrganizationName parent, DeidentifyTemplate deidentifyTemplate)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
deidentifyTemplate - Required. The DeidentifyTemplate to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DeidentifyTemplate createDeidentifyTemplate(ProjectName parent, DeidentifyTemplate deidentifyTemplate)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
deidentifyTemplate - Required. The DeidentifyTemplate to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DeidentifyTemplate createDeidentifyTemplate(String parent, DeidentifyTemplate deidentifyTemplate)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
deidentifyTemplate - Required. The DeidentifyTemplate to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DeidentifyTemplate createDeidentifyTemplate(CreateDeidentifyTemplateRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<CreateDeidentifyTemplateRequest,DeidentifyTemplate> createDeidentifyTemplateCallable()
Sample code:
public final DeidentifyTemplate updateDeidentifyTemplate(DeidentifyTemplateName name, DeidentifyTemplate deidentifyTemplate, com.google.protobuf.FieldMask updateMask)
name - Required. Resource name of organization and deidentify template to be updated, for
example `organizations/433245324/deidentifyTemplates/432452342` or
projects/project-id/deidentifyTemplates/432452342.deidentifyTemplate - New DeidentifyTemplate value.updateMask - Mask to control which fields get updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DeidentifyTemplate updateDeidentifyTemplate(String name, DeidentifyTemplate deidentifyTemplate, com.google.protobuf.FieldMask updateMask)
name - Required. Resource name of organization and deidentify template to be updated, for
example `organizations/433245324/deidentifyTemplates/432452342` or
projects/project-id/deidentifyTemplates/432452342.deidentifyTemplate - New DeidentifyTemplate value.updateMask - Mask to control which fields get updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DeidentifyTemplate updateDeidentifyTemplate(UpdateDeidentifyTemplateRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<UpdateDeidentifyTemplateRequest,DeidentifyTemplate> updateDeidentifyTemplateCallable()
Sample code:
public final DeidentifyTemplate getDeidentifyTemplate(DeidentifyTemplateName name)
name - Required. Resource name of the organization and deidentify template to be read, for
example `organizations/433245324/deidentifyTemplates/432452342` or
projects/project-id/deidentifyTemplates/432452342.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DeidentifyTemplate getDeidentifyTemplate(String name)
name - Required. Resource name of the organization and deidentify template to be read, for
example `organizations/433245324/deidentifyTemplates/432452342` or
projects/project-id/deidentifyTemplates/432452342.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetDeidentifyTemplateRequest,DeidentifyTemplate> getDeidentifyTemplateCallable()
Sample code:
public final DlpServiceClient.ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(LocationName parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(OrganizationLocationName parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(OrganizationName parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(ProjectName parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(String parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(ListDeidentifyTemplatesRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListDeidentifyTemplatesRequest,DlpServiceClient.ListDeidentifyTemplatesPagedResponse> listDeidentifyTemplatesPagedCallable()
Sample code:
public final com.google.api.gax.rpc.UnaryCallable<ListDeidentifyTemplatesRequest,ListDeidentifyTemplatesResponse> listDeidentifyTemplatesCallable()
Sample code:
public final void deleteDeidentifyTemplate(DeidentifyTemplateName name)
name - Required. Resource name of the organization and deidentify template to be deleted,
for example `organizations/433245324/deidentifyTemplates/432452342` or
projects/project-id/deidentifyTemplates/432452342.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteDeidentifyTemplate(String name)
name - Required. Resource name of the organization and deidentify template to be deleted,
for example `organizations/433245324/deidentifyTemplates/432452342` or
projects/project-id/deidentifyTemplates/432452342.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<DeleteDeidentifyTemplateRequest,com.google.protobuf.Empty> deleteDeidentifyTemplateCallable()
Sample code:
public final JobTrigger createJobTrigger(LocationName parent, JobTrigger jobTrigger)
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
jobTrigger - Required. The JobTrigger to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final JobTrigger createJobTrigger(ProjectName parent, JobTrigger jobTrigger)
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
jobTrigger - Required. The JobTrigger to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final JobTrigger createJobTrigger(String parent, JobTrigger jobTrigger)
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
jobTrigger - Required. The JobTrigger to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final JobTrigger createJobTrigger(CreateJobTriggerRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<CreateJobTriggerRequest,JobTrigger> createJobTriggerCallable()
Sample code:
public final JobTrigger updateJobTrigger(JobTriggerName name, JobTrigger jobTrigger, com.google.protobuf.FieldMask updateMask)
name - Required. Resource name of the project and the triggeredJob, for example
`projects/dlp-test-project/jobTriggers/53234423`.jobTrigger - New JobTrigger value.updateMask - Mask to control which fields get updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final JobTrigger updateJobTrigger(String name, JobTrigger jobTrigger, com.google.protobuf.FieldMask updateMask)
name - Required. Resource name of the project and the triggeredJob, for example
`projects/dlp-test-project/jobTriggers/53234423`.jobTrigger - New JobTrigger value.updateMask - Mask to control which fields get updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final JobTrigger updateJobTrigger(UpdateJobTriggerRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<UpdateJobTriggerRequest,JobTrigger> updateJobTriggerCallable()
Sample code:
public final HybridInspectResponse hybridInspectJobTrigger(JobTriggerName name)
name - Required. Resource name of the trigger to execute a hybrid inspect on, for example
`projects/dlp-test-project/jobTriggers/53234423`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final HybridInspectResponse hybridInspectJobTrigger(String name)
name - Required. Resource name of the trigger to execute a hybrid inspect on, for example
`projects/dlp-test-project/jobTriggers/53234423`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final HybridInspectResponse hybridInspectJobTrigger(HybridInspectJobTriggerRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<HybridInspectJobTriggerRequest,HybridInspectResponse> hybridInspectJobTriggerCallable()
Sample code:
public final JobTrigger getJobTrigger(JobTriggerName name)
name - Required. Resource name of the project and the triggeredJob, for example
`projects/dlp-test-project/jobTriggers/53234423`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final JobTrigger getJobTrigger(String name)
name - Required. Resource name of the project and the triggeredJob, for example
`projects/dlp-test-project/jobTriggers/53234423`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final JobTrigger getJobTrigger(GetJobTriggerRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetJobTriggerRequest,JobTrigger> getJobTriggerCallable()
Sample code:
public final DlpServiceClient.ListJobTriggersPagedResponse listJobTriggers(LocationName parent)
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListJobTriggersPagedResponse listJobTriggers(ProjectName parent)
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListJobTriggersPagedResponse listJobTriggers(String parent)
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListJobTriggersRequest,DlpServiceClient.ListJobTriggersPagedResponse> listJobTriggersPagedCallable()
Sample code:
public final com.google.api.gax.rpc.UnaryCallable<ListJobTriggersRequest,ListJobTriggersResponse> listJobTriggersCallable()
Sample code:
public final void deleteJobTrigger(JobTriggerName name)
name - Required. Resource name of the project and the triggeredJob, for example
`projects/dlp-test-project/jobTriggers/53234423`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteJobTrigger(String name)
name - Required. Resource name of the project and the triggeredJob, for example
`projects/dlp-test-project/jobTriggers/53234423`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteJobTrigger(DeleteJobTriggerRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<DeleteJobTriggerRequest,com.google.protobuf.Empty> deleteJobTriggerCallable()
Sample code:
public final DlpJob activateJobTrigger(ActivateJobTriggerRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ActivateJobTriggerRequest,DlpJob> activateJobTriggerCallable()
Sample code:
public final DlpJob createDlpJob(LocationName parent, InspectJobConfig inspectJob)
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.
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
inspectJob - Set to control what and how to inspect.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpJob createDlpJob(LocationName parent, RiskAnalysisJobConfig riskJob)
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.
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
riskJob - Set to choose what metric to calculate.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpJob createDlpJob(ProjectName parent, InspectJobConfig inspectJob)
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.
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
inspectJob - Set to control what and how to inspect.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpJob createDlpJob(ProjectName parent, RiskAnalysisJobConfig riskJob)
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.
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
riskJob - Set to choose what metric to calculate.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpJob createDlpJob(String parent, InspectJobConfig inspectJob)
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.
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
inspectJob - Set to control what and how to inspect.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpJob createDlpJob(String parent, RiskAnalysisJobConfig riskJob)
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.
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
riskJob - Set to choose what metric to calculate.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpJob createDlpJob(CreateDlpJobRequest request)
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.
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<CreateDlpJobRequest,DlpJob> createDlpJobCallable()
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.
Sample code:
public final DlpServiceClient.ListDlpJobsPagedResponse listDlpJobs(LocationName parent)
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListDlpJobsPagedResponse listDlpJobs(ProjectName parent)
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListDlpJobsPagedResponse listDlpJobs(String parent)
parent - Required. Parent resource name.
The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListDlpJobsPagedResponse listDlpJobs(ListDlpJobsRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListDlpJobsRequest,DlpServiceClient.ListDlpJobsPagedResponse> listDlpJobsPagedCallable()
Sample code:
public final com.google.api.gax.rpc.UnaryCallable<ListDlpJobsRequest,ListDlpJobsResponse> listDlpJobsCallable()
Sample code:
public final DlpJob getDlpJob(DlpJobName name)
name - Required. The name of the DlpJob resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpJob getDlpJob(String name)
name - Required. The name of the DlpJob resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpJob getDlpJob(GetDlpJobRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetDlpJobRequest,DlpJob> getDlpJobCallable()
Sample code:
public final void deleteDlpJob(DlpJobName name)
name - Required. The name of the DlpJob resource to be deleted.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteDlpJob(String name)
name - Required. The name of the DlpJob resource to be deleted.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteDlpJob(DeleteDlpJobRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<DeleteDlpJobRequest,com.google.protobuf.Empty> deleteDlpJobCallable()
Sample code:
public final void cancelDlpJob(CancelDlpJobRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<CancelDlpJobRequest,com.google.protobuf.Empty> cancelDlpJobCallable()
Sample code:
public final StoredInfoType createStoredInfoType(LocationName parent, StoredInfoTypeConfig config)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
config - Required. Configuration of the storedInfoType to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final StoredInfoType createStoredInfoType(OrganizationLocationName parent, StoredInfoTypeConfig config)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
config - Required. Configuration of the storedInfoType to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final StoredInfoType createStoredInfoType(OrganizationName parent, StoredInfoTypeConfig config)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
config - Required. Configuration of the storedInfoType to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final StoredInfoType createStoredInfoType(ProjectName parent, StoredInfoTypeConfig config)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
config - Required. Configuration of the storedInfoType to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final StoredInfoType createStoredInfoType(String parent, StoredInfoTypeConfig config)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
config - Required. Configuration of the storedInfoType to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final StoredInfoType createStoredInfoType(CreateStoredInfoTypeRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<CreateStoredInfoTypeRequest,StoredInfoType> createStoredInfoTypeCallable()
Sample code:
public final StoredInfoType updateStoredInfoType(StoredInfoTypeName name, StoredInfoTypeConfig config, com.google.protobuf.FieldMask updateMask)
name - Required. Resource name of organization and storedInfoType to be updated, for
example `organizations/433245324/storedInfoTypes/432452342` or
projects/project-id/storedInfoTypes/432452342.config - Updated configuration for the storedInfoType. If not provided, a new version of
the storedInfoType will be created with the existing configuration.updateMask - Mask to control which fields get updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final StoredInfoType updateStoredInfoType(String name, StoredInfoTypeConfig config, com.google.protobuf.FieldMask updateMask)
name - Required. Resource name of organization and storedInfoType to be updated, for
example `organizations/433245324/storedInfoTypes/432452342` or
projects/project-id/storedInfoTypes/432452342.config - Updated configuration for the storedInfoType. If not provided, a new version of
the storedInfoType will be created with the existing configuration.updateMask - Mask to control which fields get updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final StoredInfoType updateStoredInfoType(UpdateStoredInfoTypeRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<UpdateStoredInfoTypeRequest,StoredInfoType> updateStoredInfoTypeCallable()
Sample code:
public final StoredInfoType getStoredInfoType(StoredInfoTypeName name)
name - Required. Resource name of the organization and storedInfoType to be read, for
example `organizations/433245324/storedInfoTypes/432452342` or
projects/project-id/storedInfoTypes/432452342.com.google.api.gax.rpc.ApiException - if the remote call failspublic final StoredInfoType getStoredInfoType(String name)
name - Required. Resource name of the organization and storedInfoType to be read, for
example `organizations/433245324/storedInfoTypes/432452342` or
projects/project-id/storedInfoTypes/432452342.com.google.api.gax.rpc.ApiException - if the remote call failspublic final StoredInfoType getStoredInfoType(GetStoredInfoTypeRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetStoredInfoTypeRequest,StoredInfoType> getStoredInfoTypeCallable()
Sample code:
public final DlpServiceClient.ListStoredInfoTypesPagedResponse listStoredInfoTypes(LocationName parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListStoredInfoTypesPagedResponse listStoredInfoTypes(OrganizationLocationName parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListStoredInfoTypesPagedResponse listStoredInfoTypes(OrganizationName parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListStoredInfoTypesPagedResponse listStoredInfoTypes(ProjectName parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListStoredInfoTypesPagedResponse listStoredInfoTypes(String parent)
parent - 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](https://cloud.google.com/dlp/docs/specifying-location):
+ Projects scope, location specified:<br/> `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + Projects scope, no location specified (defaults to global):<br/> `projects/`<var>PROJECT_ID</var> + Organizations scope, location specified:<br/> `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> + Organizations scope, no location specified (defaults to global):<br/> `organizations/`<var>ORG_ID</var>
The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
parent=projects/example-project/locations/europe-west3
com.google.api.gax.rpc.ApiException - if the remote call failspublic final DlpServiceClient.ListStoredInfoTypesPagedResponse listStoredInfoTypes(ListStoredInfoTypesRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListStoredInfoTypesRequest,DlpServiceClient.ListStoredInfoTypesPagedResponse> listStoredInfoTypesPagedCallable()
Sample code:
public final com.google.api.gax.rpc.UnaryCallable<ListStoredInfoTypesRequest,ListStoredInfoTypesResponse> listStoredInfoTypesCallable()
Sample code:
public final void deleteStoredInfoType(StoredInfoTypeName name)
name - Required. Resource name of the organization and storedInfoType to be deleted, for
example `organizations/433245324/storedInfoTypes/432452342` or
projects/project-id/storedInfoTypes/432452342.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteStoredInfoType(String name)
name - Required. Resource name of the organization and storedInfoType to be deleted, for
example `organizations/433245324/storedInfoTypes/432452342` or
projects/project-id/storedInfoTypes/432452342.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteStoredInfoType(DeleteStoredInfoTypeRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<DeleteStoredInfoTypeRequest,com.google.protobuf.Empty> deleteStoredInfoTypeCallable()
Sample code:
public final HybridInspectResponse hybridInspectDlpJob(DlpJobName name)
name - Required. Resource name of the job to execute a hybrid inspect on, for example
`projects/dlp-test-project/dlpJob/53234423`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final HybridInspectResponse hybridInspectDlpJob(String name)
name - Required. Resource name of the job to execute a hybrid inspect on, for example
`projects/dlp-test-project/dlpJob/53234423`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final HybridInspectResponse hybridInspectDlpJob(HybridInspectDlpJobRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<HybridInspectDlpJobRequest,HybridInspectResponse> hybridInspectDlpJobCallable()
Sample code:
public final void finishDlpJob(FinishDlpJobRequest request)
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<FinishDlpJobRequest,com.google.protobuf.Empty> finishDlpJobCallable()
Sample code:
public final void close()
close in interface AutoCloseablepublic void shutdown()
shutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isShutdown()
isShutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isTerminated()
isTerminated in interface com.google.api.gax.core.BackgroundResourcepublic void shutdownNow()
shutdownNow in interface com.google.api.gax.core.BackgroundResourcepublic boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface com.google.api.gax.core.BackgroundResourceInterruptedExceptionCopyright © 2021 Google LLC. All rights reserved.