Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit 7d4f8cb

Browse files
feat: added deidentify replacement dictionaries (#722)
* feat: added deidentify replacement dictionaries feat: added field for BigQuery inspect template inclusion lists feat: added field to support infotype versioning PiperOrigin-RevId: 413780624 Source-Link: googleapis/googleapis@ed9918e Source-Link: https://github.com/googleapis/googleapis-gen/commit/9286ba60e1c1f6bcd559e9834756b2fa3e51f26d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTI4NmJhNjBlMWMxZjZiY2Q1NTllOTgzNDc1NmIyZmEzZTUxZjI2ZCJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 6b9b590 commit 7d4f8cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+4131
-1641
lines changed

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java

Lines changed: 26 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2733,9 +2733,7 @@ public final UnaryCallable<UpdateJobTriggerRequest, JobTrigger> updateJobTrigger
27332733
// AUTO-GENERATED DOCUMENTATION AND METHOD.
27342734
/**
27352735
* Inspect hybrid content and store findings to a trigger. The inspection will be processed
2736-
* asynchronously. To review the findings monitor the jobs within the trigger. Early access
2737-
* feature is in a pre-release state and might change or have limited support. For more
2738-
* information, see https://cloud.google.com/products#product-launch-stages.
2736+
* asynchronously. To review the findings monitor the jobs within the trigger.
27392737
*
27402738
* <p>Sample code:
27412739
*
@@ -2761,9 +2759,7 @@ public final HybridInspectResponse hybridInspectJobTrigger(JobTriggerName name)
27612759
// AUTO-GENERATED DOCUMENTATION AND METHOD.
27622760
/**
27632761
* Inspect hybrid content and store findings to a trigger. The inspection will be processed
2764-
* asynchronously. To review the findings monitor the jobs within the trigger. Early access
2765-
* feature is in a pre-release state and might change or have limited support. For more
2766-
* information, see https://cloud.google.com/products#product-launch-stages.
2762+
* asynchronously. To review the findings monitor the jobs within the trigger.
27672763
*
27682764
* <p>Sample code:
27692765
*
@@ -2787,9 +2783,7 @@ public final HybridInspectResponse hybridInspectJobTrigger(String name) {
27872783
// AUTO-GENERATED DOCUMENTATION AND METHOD.
27882784
/**
27892785
* Inspect hybrid content and store findings to a trigger. The inspection will be processed
2790-
* asynchronously. To review the findings monitor the jobs within the trigger. Early access
2791-
* feature is in a pre-release state and might change or have limited support. For more
2792-
* information, see https://cloud.google.com/products#product-launch-stages.
2786+
* asynchronously. To review the findings monitor the jobs within the trigger.
27932787
*
27942788
* <p>Sample code:
27952789
*
@@ -2816,9 +2810,7 @@ public final HybridInspectResponse hybridInspectJobTrigger(
28162810
// AUTO-GENERATED DOCUMENTATION AND METHOD.
28172811
/**
28182812
* Inspect hybrid content and store findings to a trigger. The inspection will be processed
2819-
* asynchronously. To review the findings monitor the jobs within the trigger. Early access
2820-
* feature is in a pre-release state and might change or have limited support. For more
2821-
* information, see https://cloud.google.com/products#product-launch-stages.
2813+
* asynchronously. To review the findings monitor the jobs within the trigger.
28222814
*
28232815
* <p>Sample code:
28242816
*
@@ -3051,6 +3043,7 @@ public final ListJobTriggersPagedResponse listJobTriggers(String parent) {
30513043
* .setPageSize(883849137)
30523044
* .setOrderBy("orderBy-1207110587")
30533045
* .setFilter("filter-1274492040")
3046+
* .setType(DlpJobType.forNumber(0))
30543047
* .setLocationId("locationId1541836720")
30553048
* .build();
30563049
* for (JobTrigger element : dlpServiceClient.listJobTriggers(request).iterateAll()) {
@@ -3081,6 +3074,7 @@ public final ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest
30813074
* .setPageSize(883849137)
30823075
* .setOrderBy("orderBy-1207110587")
30833076
* .setFilter("filter-1274492040")
3077+
* .setType(DlpJobType.forNumber(0))
30843078
* .setLocationId("locationId1541836720")
30853079
* .build();
30863080
* ApiFuture<JobTrigger> future =
@@ -3112,6 +3106,7 @@ public final ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest
31123106
* .setPageSize(883849137)
31133107
* .setOrderBy("orderBy-1207110587")
31143108
* .setFilter("filter-1274492040")
3109+
* .setType(DlpJobType.forNumber(0))
31153110
* .setLocationId("locationId1541836720")
31163111
* .build();
31173112
* while (true) {
@@ -3309,7 +3304,7 @@ public final UnaryCallable<ActivateJobTriggerRequest, DlpJob> activateJobTrigger
33093304
* <p>The following example `parent` string specifies a parent project with the identifier
33103305
* `example-project`, and specifies the `europe-west3` location for processing data:
33113306
* <p>parent=projects/example-project/locations/europe-west3
3312-
* @param inspectJob Set to control what and how to inspect.
3307+
* @param inspectJob An inspection job scans a storage repository for InfoTypes.
33133308
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
33143309
*/
33153310
public final DlpJob createDlpJob(LocationName parent, InspectJobConfig inspectJob) {
@@ -3351,7 +3346,8 @@ public final DlpJob createDlpJob(LocationName parent, InspectJobConfig inspectJo
33513346
* <p>The following example `parent` string specifies a parent project with the identifier
33523347
* `example-project`, and specifies the `europe-west3` location for processing data:
33533348
* <p>parent=projects/example-project/locations/europe-west3
3354-
* @param riskJob Set to choose what metric to calculate.
3349+
* @param riskJob A risk analysis job calculates re-identification risk metrics for a BigQuery
3350+
* table.
33553351
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
33563352
*/
33573353
public final DlpJob createDlpJob(LocationName parent, RiskAnalysisJobConfig riskJob) {
@@ -3393,7 +3389,7 @@ public final DlpJob createDlpJob(LocationName parent, RiskAnalysisJobConfig risk
33933389
* <p>The following example `parent` string specifies a parent project with the identifier
33943390
* `example-project`, and specifies the `europe-west3` location for processing data:
33953391
* <p>parent=projects/example-project/locations/europe-west3
3396-
* @param inspectJob Set to control what and how to inspect.
3392+
* @param inspectJob An inspection job scans a storage repository for InfoTypes.
33973393
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
33983394
*/
33993395
public final DlpJob createDlpJob(ProjectName parent, InspectJobConfig inspectJob) {
@@ -3435,7 +3431,8 @@ public final DlpJob createDlpJob(ProjectName parent, InspectJobConfig inspectJob
34353431
* <p>The following example `parent` string specifies a parent project with the identifier
34363432
* `example-project`, and specifies the `europe-west3` location for processing data:
34373433
* <p>parent=projects/example-project/locations/europe-west3
3438-
* @param riskJob Set to choose what metric to calculate.
3434+
* @param riskJob A risk analysis job calculates re-identification risk metrics for a BigQuery
3435+
* table.
34393436
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
34403437
*/
34413438
public final DlpJob createDlpJob(ProjectName parent, RiskAnalysisJobConfig riskJob) {
@@ -3477,7 +3474,7 @@ public final DlpJob createDlpJob(ProjectName parent, RiskAnalysisJobConfig riskJ
34773474
* <p>The following example `parent` string specifies a parent project with the identifier
34783475
* `example-project`, and specifies the `europe-west3` location for processing data:
34793476
* <p>parent=projects/example-project/locations/europe-west3
3480-
* @param inspectJob Set to control what and how to inspect.
3477+
* @param inspectJob An inspection job scans a storage repository for InfoTypes.
34813478
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
34823479
*/
34833480
public final DlpJob createDlpJob(String parent, InspectJobConfig inspectJob) {
@@ -3516,7 +3513,8 @@ public final DlpJob createDlpJob(String parent, InspectJobConfig inspectJob) {
35163513
* <p>The following example `parent` string specifies a parent project with the identifier
35173514
* `example-project`, and specifies the `europe-west3` location for processing data:
35183515
* <p>parent=projects/example-project/locations/europe-west3
3519-
* @param riskJob Set to choose what metric to calculate.
3516+
* @param riskJob A risk analysis job calculates re-identification risk metrics for a BigQuery
3517+
* table.
35203518
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
35213519
*/
35223520
public final DlpJob createDlpJob(String parent, RiskAnalysisJobConfig riskJob) {
@@ -4976,10 +4974,8 @@ public final UnaryCallable<DeleteStoredInfoTypeRequest, Empty> deleteStoredInfoT
49764974

49774975
// AUTO-GENERATED DOCUMENTATION AND METHOD.
49784976
/**
4979-
* Inspect hybrid content and store findings to a job. To review the findings inspect the job.
4980-
* Inspection will occur asynchronously. Early access feature is in a pre-release state and might
4981-
* change or have limited support. For more information, see
4982-
* https://cloud.google.com/products#product-launch-stages.
4977+
* Inspect hybrid content and store findings to a job. To review the findings, inspect the job.
4978+
* Inspection will occur asynchronously.
49834979
*
49844980
* <p>Sample code:
49854981
*
@@ -5004,10 +5000,8 @@ public final HybridInspectResponse hybridInspectDlpJob(DlpJobName name) {
50045000

50055001
// AUTO-GENERATED DOCUMENTATION AND METHOD.
50065002
/**
5007-
* Inspect hybrid content and store findings to a job. To review the findings inspect the job.
5008-
* Inspection will occur asynchronously. Early access feature is in a pre-release state and might
5009-
* change or have limited support. For more information, see
5010-
* https://cloud.google.com/products#product-launch-stages.
5003+
* Inspect hybrid content and store findings to a job. To review the findings, inspect the job.
5004+
* Inspection will occur asynchronously.
50115005
*
50125006
* <p>Sample code:
50135007
*
@@ -5030,10 +5024,8 @@ public final HybridInspectResponse hybridInspectDlpJob(String name) {
50305024

50315025
// AUTO-GENERATED DOCUMENTATION AND METHOD.
50325026
/**
5033-
* Inspect hybrid content and store findings to a job. To review the findings inspect the job.
5034-
* Inspection will occur asynchronously. Early access feature is in a pre-release state and might
5035-
* change or have limited support. For more information, see
5036-
* https://cloud.google.com/products#product-launch-stages.
5027+
* Inspect hybrid content and store findings to a job. To review the findings, inspect the job.
5028+
* Inspection will occur asynchronously.
50375029
*
50385030
* <p>Sample code:
50395031
*
@@ -5057,10 +5049,8 @@ public final HybridInspectResponse hybridInspectDlpJob(HybridInspectDlpJobReques
50575049

50585050
// AUTO-GENERATED DOCUMENTATION AND METHOD.
50595051
/**
5060-
* Inspect hybrid content and store findings to a job. To review the findings inspect the job.
5061-
* Inspection will occur asynchronously. Early access feature is in a pre-release state and might
5062-
* change or have limited support. For more information, see
5063-
* https://cloud.google.com/products#product-launch-stages.
5052+
* Inspect hybrid content and store findings to a job. To review the findings, inspect the job.
5053+
* Inspection will occur asynchronously.
50645054
*
50655055
* <p>Sample code:
50665056
*
@@ -5086,9 +5076,7 @@ public final HybridInspectResponse hybridInspectDlpJob(HybridInspectDlpJobReques
50865076
// AUTO-GENERATED DOCUMENTATION AND METHOD.
50875077
/**
50885078
* Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled
5089-
* actions that have not yet run. Early access feature is in a pre-release state and might change
5090-
* or have limited support. For more information, see
5091-
* https://cloud.google.com/products#product-launch-stages.
5079+
* actions that have not yet run.
50925080
*
50935081
* <p>Sample code:
50945082
*
@@ -5112,9 +5100,7 @@ public final void finishDlpJob(FinishDlpJobRequest request) {
51125100
// AUTO-GENERATED DOCUMENTATION AND METHOD.
51135101
/**
51145102
* Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled
5115-
* actions that have not yet run. Early access feature is in a pre-release state and might change
5116-
* or have limited support. For more information, see
5117-
* https://cloud.google.com/products#product-launch-stages.
5103+
* actions that have not yet run.
51185104
*
51195105
* <p>Sample code:
51205106
*

grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,9 +1938,6 @@ public void updateJobTrigger(
19381938
* Inspect hybrid content and store findings to a trigger. The inspection
19391939
* will be processed asynchronously. To review the findings monitor the
19401940
* jobs within the trigger.
1941-
* Early access feature is in a pre-release state and might change or have
1942-
* limited support. For more information, see
1943-
* https://cloud.google.com/products#product-launch-stages.
19441941
* </pre>
19451942
*/
19461943
public void hybridInspectJobTrigger(
@@ -2186,11 +2183,8 @@ public void deleteStoredInfoType(
21862183
*
21872184
* <pre>
21882185
* Inspect hybrid content and store findings to a job.
2189-
* To review the findings inspect the job. Inspection will occur
2186+
* To review the findings, inspect the job. Inspection will occur
21902187
* asynchronously.
2191-
* Early access feature is in a pre-release state and might change or have
2192-
* limited support. For more information, see
2193-
* https://cloud.google.com/products#product-launch-stages.
21942188
* </pre>
21952189
*/
21962190
public void hybridInspectDlpJob(
@@ -2207,9 +2201,6 @@ public void hybridInspectDlpJob(
22072201
* <pre>
22082202
* Finish a running hybrid DlpJob. Triggers the finalization steps and running
22092203
* of any enabled actions that have not yet run.
2210-
* Early access feature is in a pre-release state and might change or have
2211-
* limited support. For more information, see
2212-
* https://cloud.google.com/products#product-launch-stages.
22132204
* </pre>
22142205
*/
22152206
public void finishDlpJob(
@@ -2805,9 +2796,6 @@ public void updateJobTrigger(
28052796
* Inspect hybrid content and store findings to a trigger. The inspection
28062797
* will be processed asynchronously. To review the findings monitor the
28072798
* jobs within the trigger.
2808-
* Early access feature is in a pre-release state and might change or have
2809-
* limited support. For more information, see
2810-
* https://cloud.google.com/products#product-launch-stages.
28112799
* </pre>
28122800
*/
28132801
public void hybridInspectJobTrigger(
@@ -3082,11 +3070,8 @@ public void deleteStoredInfoType(
30823070
*
30833071
* <pre>
30843072
* Inspect hybrid content and store findings to a job.
3085-
* To review the findings inspect the job. Inspection will occur
3073+
* To review the findings, inspect the job. Inspection will occur
30863074
* asynchronously.
3087-
* Early access feature is in a pre-release state and might change or have
3088-
* limited support. For more information, see
3089-
* https://cloud.google.com/products#product-launch-stages.
30903075
* </pre>
30913076
*/
30923077
public void hybridInspectDlpJob(
@@ -3105,9 +3090,6 @@ public void hybridInspectDlpJob(
31053090
* <pre>
31063091
* Finish a running hybrid DlpJob. Triggers the finalization steps and running
31073092
* of any enabled actions that have not yet run.
3108-
* Early access feature is in a pre-release state and might change or have
3109-
* limited support. For more information, see
3110-
* https://cloud.google.com/products#product-launch-stages.
31113093
* </pre>
31123094
*/
31133095
public void finishDlpJob(
@@ -3417,9 +3399,6 @@ public com.google.privacy.dlp.v2.JobTrigger updateJobTrigger(
34173399
* Inspect hybrid content and store findings to a trigger. The inspection
34183400
* will be processed asynchronously. To review the findings monitor the
34193401
* jobs within the trigger.
3420-
* Early access feature is in a pre-release state and might change or have
3421-
* limited support. For more information, see
3422-
* https://cloud.google.com/products#product-launch-stages.
34233402
* </pre>
34243403
*/
34253404
public com.google.privacy.dlp.v2.HybridInspectResponse hybridInspectJobTrigger(
@@ -3647,11 +3626,8 @@ public com.google.protobuf.Empty deleteStoredInfoType(
36473626
*
36483627
* <pre>
36493628
* Inspect hybrid content and store findings to a job.
3650-
* To review the findings inspect the job. Inspection will occur
3629+
* To review the findings, inspect the job. Inspection will occur
36513630
* asynchronously.
3652-
* Early access feature is in a pre-release state and might change or have
3653-
* limited support. For more information, see
3654-
* https://cloud.google.com/products#product-launch-stages.
36553631
* </pre>
36563632
*/
36573633
public com.google.privacy.dlp.v2.HybridInspectResponse hybridInspectDlpJob(
@@ -3666,9 +3642,6 @@ public com.google.privacy.dlp.v2.HybridInspectResponse hybridInspectDlpJob(
36663642
* <pre>
36673643
* Finish a running hybrid DlpJob. Triggers the finalization steps and running
36683644
* of any enabled actions that have not yet run.
3669-
* Early access feature is in a pre-release state and might change or have
3670-
* limited support. For more information, see
3671-
* https://cloud.google.com/products#product-launch-stages.
36723645
* </pre>
36733646
*/
36743647
public com.google.protobuf.Empty finishDlpJob(
@@ -3990,9 +3963,6 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
39903963
* Inspect hybrid content and store findings to a trigger. The inspection
39913964
* will be processed asynchronously. To review the findings monitor the
39923965
* jobs within the trigger.
3993-
* Early access feature is in a pre-release state and might change or have
3994-
* limited support. For more information, see
3995-
* https://cloud.google.com/products#product-launch-stages.
39963966
* </pre>
39973967
*/
39983968
public com.google.common.util.concurrent.ListenableFuture<
@@ -4227,11 +4197,8 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
42274197
*
42284198
* <pre>
42294199
* Inspect hybrid content and store findings to a job.
4230-
* To review the findings inspect the job. Inspection will occur
4200+
* To review the findings, inspect the job. Inspection will occur
42314201
* asynchronously.
4232-
* Early access feature is in a pre-release state and might change or have
4233-
* limited support. For more information, see
4234-
* https://cloud.google.com/products#product-launch-stages.
42354202
* </pre>
42364203
*/
42374204
public com.google.common.util.concurrent.ListenableFuture<
@@ -4247,9 +4214,6 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
42474214
* <pre>
42484215
* Finish a running hybrid DlpJob. Triggers the finalization steps and running
42494216
* of any enabled actions that have not yet run.
4250-
* Early access feature is in a pre-release state and might change or have
4251-
* limited support. For more information, see
4252-
* https://cloud.google.com/products#product-launch-stages.
42534217
* </pre>
42544218
*/
42554219
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>

proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2138,11 +2138,11 @@ public interface PublishFindingsToCloudDataCatalogOrBuilder
21382138
*
21392139
*
21402140
* <pre>
2141-
* Publish findings of a DlpJob to Cloud Data Catalog. Labels summarizing the
2141+
* Publish findings of a DlpJob to Data Catalog. Labels summarizing the
21422142
* results of the DlpJob will be applied to the entry for the resource scanned
2143-
* in Cloud Data Catalog. Any labels previously written by another DlpJob will
2143+
* in Data Catalog. Any labels previously written by another DlpJob will
21442144
* be deleted. InfoType naming patterns are strictly enforced when using this
2145-
* feature. Note that the findings will be persisted in Cloud Data Catalog
2145+
* feature. Note that the findings will be persisted in Data Catalog
21462146
* storage and are governed by Data Catalog service-specific policy, see
21472147
* https://cloud.google.com/terms/service-terms
21482148
* Only a single instance of this action can be specified and only allowed if
@@ -2386,11 +2386,11 @@ protected Builder newBuilderForType(
23862386
*
23872387
*
23882388
* <pre>
2389-
* Publish findings of a DlpJob to Cloud Data Catalog. Labels summarizing the
2389+
* Publish findings of a DlpJob to Data Catalog. Labels summarizing the
23902390
* results of the DlpJob will be applied to the entry for the resource scanned
2391-
* in Cloud Data Catalog. Any labels previously written by another DlpJob will
2391+
* in Data Catalog. Any labels previously written by another DlpJob will
23922392
* be deleted. InfoType naming patterns are strictly enforced when using this
2393-
* feature. Note that the findings will be persisted in Cloud Data Catalog
2393+
* feature. Note that the findings will be persisted in Data Catalog
23942394
* storage and are governed by Data Catalog service-specific policy, see
23952395
* https://cloud.google.com/terms/service-terms
23962396
* Only a single instance of this action can be specified and only allowed if

0 commit comments

Comments
 (0)