Skip to content

Commit 7a7e679

Browse files
feat: [google-cloud-dlp] add sample findings for data profiles (#13693)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: add sample findings for data profiles feat: list tags on resources for data profiles docs: updated documentation for various fields and messages END_COMMIT_OVERRIDE PiperOrigin-RevId: 738266551 Source-Link: googleapis/googleapis@f95ceda Source-Link: googleapis/googleapis-gen@199b645 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRscC8uT3dsQm90LnlhbWwiLCJoIjoiMTk5YjY0NWJlZThmYzhkZDBhNjkxMWJlZGQxMzNjNGQ3Y2RiMWRjZSJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent ea9b0d9 commit 7a7e679

File tree

9 files changed

+273
-0
lines changed

9 files changed

+273
-0
lines changed

packages/google-cloud-dlp/google/cloud/dlp/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@
7979
DataProfileAction,
8080
DataProfileBigQueryRowSchema,
8181
DataProfileConfigSnapshot,
82+
DataProfileFinding,
83+
DataProfileFindingLocation,
84+
DataProfileFindingRecordLocation,
8285
DataProfileJobConfig,
8386
DataProfileLocation,
8487
DataProfilePubSubCondition,
@@ -263,6 +266,7 @@
263266
Table,
264267
TableDataProfile,
265268
TableLocation,
269+
Tag,
266270
TimePartConfig,
267271
TransformationConfig,
268272
TransformationContainerType,
@@ -378,6 +382,9 @@
378382
"DataProfileAction",
379383
"DataProfileBigQueryRowSchema",
380384
"DataProfileConfigSnapshot",
385+
"DataProfileFinding",
386+
"DataProfileFindingLocation",
387+
"DataProfileFindingRecordLocation",
381388
"DataProfileJobConfig",
382389
"DataProfileLocation",
383390
"DataProfilePubSubCondition",
@@ -551,6 +558,7 @@
551558
"Table",
552559
"TableDataProfile",
553560
"TableLocation",
561+
"Tag",
554562
"TimePartConfig",
555563
"TransformationConfig",
556564
"TransformationDescription",

packages/google-cloud-dlp/google/cloud/dlp_v2/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
DataProfileAction,
7979
DataProfileBigQueryRowSchema,
8080
DataProfileConfigSnapshot,
81+
DataProfileFinding,
82+
DataProfileFindingLocation,
83+
DataProfileFindingRecordLocation,
8184
DataProfileJobConfig,
8285
DataProfileLocation,
8386
DataProfilePubSubCondition,
@@ -262,6 +265,7 @@
262265
Table,
263266
TableDataProfile,
264267
TableLocation,
268+
Tag,
265269
TimePartConfig,
266270
TransformationConfig,
267271
TransformationContainerType,
@@ -387,6 +391,9 @@
387391
"DataProfileAction",
388392
"DataProfileBigQueryRowSchema",
389393
"DataProfileConfigSnapshot",
394+
"DataProfileFinding",
395+
"DataProfileFindingLocation",
396+
"DataProfileFindingRecordLocation",
390397
"DataProfileJobConfig",
391398
"DataProfileLocation",
392399
"DataProfilePubSubCondition",
@@ -593,6 +600,7 @@
593600
"TableLocation",
594601
"TableOptions",
595602
"TableReference",
603+
"Tag",
596604
"TimePartConfig",
597605
"TransformationConfig",
598606
"TransformationContainerType",

packages/google-cloud-dlp/google/cloud/dlp_v2/services/dlp_service/async_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,10 @@ async def redact_image(
446446
detectors to run. By default this may be all types, but
447447
may change over time as detectors are updated.
448448
449+
Only the first frame of each multiframe image is
450+
redacted. Metadata and other frames are omitted in the
451+
response.
452+
449453
.. code-block:: python
450454
451455
# This snippet has been automatically generated and should be regarded as a

packages/google-cloud-dlp/google/cloud/dlp_v2/services/dlp_service/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,10 @@ def redact_image(
10731073
detectors to run. By default this may be all types, but
10741074
may change over time as detectors are updated.
10751075
1076+
Only the first frame of each multiframe image is
1077+
redacted. Metadata and other frames are omitted in the
1078+
response.
1079+
10761080
.. code-block:: python
10771081
10781082
# This snippet has been automatically generated and should be regarded as a

packages/google-cloud-dlp/google/cloud/dlp_v2/services/dlp_service/transports/grpc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ def redact_image(
382382
detectors to run. By default this may be all types, but
383383
may change over time as detectors are updated.
384384
385+
Only the first frame of each multiframe image is
386+
redacted. Metadata and other frames are omitted in the
387+
response.
388+
385389
Returns:
386390
Callable[[~.RedactImageRequest],
387391
~.RedactImageResponse]:

packages/google-cloud-dlp/google/cloud/dlp_v2/services/dlp_service/transports/grpc_asyncio.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,10 @@ def redact_image(
389389
detectors to run. By default this may be all types, but
390390
may change over time as detectors are updated.
391391
392+
Only the first frame of each multiframe image is
393+
redacted. Metadata and other frames are omitted in the
394+
response.
395+
392396
Returns:
393397
Callable[[~.RedactImageRequest],
394398
Awaitable[~.RedactImageResponse]]:

packages/google-cloud-dlp/google/cloud/dlp_v2/services/dlp_service/transports/rest_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,6 +2356,14 @@ def _get_http_options():
23562356
"method": "get",
23572357
"uri": "/v2/{parent=locations/*}/infoTypes",
23582358
},
2359+
{
2360+
"method": "get",
2361+
"uri": "/v2/{parent=projects/*/locations/*}/infoTypes",
2362+
},
2363+
{
2364+
"method": "get",
2365+
"uri": "/v2/{parent=organizations/*/locations/*}/infoTypes",
2366+
},
23592367
]
23602368
return http_options
23612369

packages/google-cloud-dlp/google/cloud/dlp_v2/types/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@
7272
DataProfileAction,
7373
DataProfileBigQueryRowSchema,
7474
DataProfileConfigSnapshot,
75+
DataProfileFinding,
76+
DataProfileFindingLocation,
77+
DataProfileFindingRecordLocation,
7578
DataProfileJobConfig,
7679
DataProfileLocation,
7780
DataProfilePubSubCondition,
@@ -256,6 +259,7 @@
256259
Table,
257260
TableDataProfile,
258261
TableLocation,
262+
Tag,
259263
TimePartConfig,
260264
TransformationConfig,
261265
TransformationContainerType,
@@ -369,6 +373,9 @@
369373
"DataProfileAction",
370374
"DataProfileBigQueryRowSchema",
371375
"DataProfileConfigSnapshot",
376+
"DataProfileFinding",
377+
"DataProfileFindingLocation",
378+
"DataProfileFindingRecordLocation",
372379
"DataProfileJobConfig",
373380
"DataProfileLocation",
374381
"DataProfilePubSubCondition",
@@ -542,6 +549,7 @@
542549
"Table",
543550
"TableDataProfile",
544551
"TableLocation",
552+
"Tag",
545553
"TimePartConfig",
546554
"TransformationConfig",
547555
"TransformationDescription",

0 commit comments

Comments
 (0)