Skip to content

Commit b96c13d

Browse files
feat: added deidentify replacement dictionaries (#296)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 413780624 Source-Link: googleapis/googleapis@ed9918e Source-Link: googleapis/googleapis-gen@9286ba6 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTI4NmJhNjBlMWMxZjZiY2Q1NTllOTgzNDc1NmIyZmEzZTUxZjI2ZCJ9 feat: added field for BigQuery inspect template inclusion lists feat: added field to support infotype versioning
1 parent 8313608 commit b96c13d

File tree

10 files changed

+154
-127
lines changed

10 files changed

+154
-127
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
from google.cloud.dlp_v2.types.dlp import RedactImageResponse
118118
from google.cloud.dlp_v2.types.dlp import ReidentifyContentRequest
119119
from google.cloud.dlp_v2.types.dlp import ReidentifyContentResponse
120+
from google.cloud.dlp_v2.types.dlp import ReplaceDictionaryConfig
120121
from google.cloud.dlp_v2.types.dlp import ReplaceValueConfig
121122
from google.cloud.dlp_v2.types.dlp import ReplaceWithInfoTypeConfig
122123
from google.cloud.dlp_v2.types.dlp import RiskAnalysisJobConfig
@@ -276,6 +277,7 @@
276277
"RedactImageResponse",
277278
"ReidentifyContentRequest",
278279
"ReidentifyContentResponse",
280+
"ReplaceDictionaryConfig",
279281
"ReplaceValueConfig",
280282
"ReplaceWithInfoTypeConfig",
281283
"RiskAnalysisJobConfig",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
from .types.dlp import RedactImageResponse
118118
from .types.dlp import ReidentifyContentRequest
119119
from .types.dlp import ReidentifyContentResponse
120+
from .types.dlp import ReplaceDictionaryConfig
120121
from .types.dlp import ReplaceValueConfig
121122
from .types.dlp import ReplaceWithInfoTypeConfig
122123
from .types.dlp import RiskAnalysisJobConfig
@@ -303,6 +304,7 @@
303304
"ReidentifyContentRequest",
304305
"ReidentifyContentResponse",
305306
"RelationalOperator",
307+
"ReplaceDictionaryConfig",
306308
"ReplaceValueConfig",
307309
"ReplaceWithInfoTypeConfig",
308310
"RiskAnalysisJobConfig",

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

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,10 +1716,6 @@ async def hybrid_inspect_job_trigger(
17161716
trigger. The inspection will be processed
17171717
asynchronously. To review the findings monitor the jobs
17181718
within the trigger.
1719-
Early access feature is in a pre-release state and might
1720-
change or have limited support. For more information,
1721-
see
1722-
https://cloud.google.com/products#product-launch-stages.
17231719
17241720
Args:
17251721
request (Union[google.cloud.dlp_v2.types.HybridInspectJobTriggerRequest, dict]):
@@ -2154,15 +2150,16 @@ async def create_dlp_job(
21542150
on the ``request`` instance; if ``request`` is provided, this
21552151
should not be set.
21562152
inspect_job (:class:`google.cloud.dlp_v2.types.InspectJobConfig`):
2157-
Set to control what and how to
2158-
inspect.
2153+
An inspection job scans a storage
2154+
repository for InfoTypes.
21592155
21602156
This corresponds to the ``inspect_job`` field
21612157
on the ``request`` instance; if ``request`` is provided, this
21622158
should not be set.
21632159
risk_job (:class:`google.cloud.dlp_v2.types.RiskAnalysisJobConfig`):
2164-
Set to choose what metric to
2165-
calculate.
2160+
A risk analysis job calculates re-
2161+
dentification risk metrics for a
2162+
BigQuery table.
21662163
21672164
This corresponds to the ``risk_job`` field
21682165
on the ``request`` instance; if ``request`` is provided, this
@@ -3036,12 +3033,8 @@ async def hybrid_inspect_dlp_job(
30363033
metadata: Sequence[Tuple[str, str]] = (),
30373034
) -> dlp.HybridInspectResponse:
30383035
r"""Inspect hybrid content and store findings to a job.
3039-
To review the findings inspect the job. Inspection will
3036+
To review the findings, inspect the job. Inspection will
30403037
occur asynchronously.
3041-
Early access feature is in a pre-release state and might
3042-
change or have limited support. For more information,
3043-
see
3044-
https://cloud.google.com/products#product-launch-stages.
30453038
30463039
Args:
30473040
request (Union[google.cloud.dlp_v2.types.HybridInspectDlpJobRequest, dict]):
@@ -3114,10 +3107,7 @@ async def finish_dlp_job(
31143107
) -> None:
31153108
r"""Finish a running hybrid DlpJob. Triggers the
31163109
finalization steps and running of any enabled actions
3117-
that have not yet run. Early access feature is in a pre-
3118-
release state and might change or have limited support.
3119-
For more information, see
3120-
https://cloud.google.com/products#product-launch-stages.
3110+
that have not yet run.
31213111
31223112
Args:
31233113
request (Union[google.cloud.dlp_v2.types.FinishDlpJobRequest, dict]):

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

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,10 +1883,6 @@ def hybrid_inspect_job_trigger(
18831883
trigger. The inspection will be processed
18841884
asynchronously. To review the findings monitor the jobs
18851885
within the trigger.
1886-
Early access feature is in a pre-release state and might
1887-
change or have limited support. For more information,
1888-
see
1889-
https://cloud.google.com/products#product-launch-stages.
18901886
18911887
Args:
18921888
request (Union[google.cloud.dlp_v2.types.HybridInspectJobTriggerRequest, dict]):
@@ -2294,15 +2290,16 @@ def create_dlp_job(
22942290
on the ``request`` instance; if ``request`` is provided, this
22952291
should not be set.
22962292
inspect_job (google.cloud.dlp_v2.types.InspectJobConfig):
2297-
Set to control what and how to
2298-
inspect.
2293+
An inspection job scans a storage
2294+
repository for InfoTypes.
22992295
23002296
This corresponds to the ``inspect_job`` field
23012297
on the ``request`` instance; if ``request`` is provided, this
23022298
should not be set.
23032299
risk_job (google.cloud.dlp_v2.types.RiskAnalysisJobConfig):
2304-
Set to choose what metric to
2305-
calculate.
2300+
A risk analysis job calculates re-
2301+
dentification risk metrics for a
2302+
BigQuery table.
23062303
23072304
This corresponds to the ``risk_job`` field
23082305
on the ``request`` instance; if ``request`` is provided, this
@@ -3117,12 +3114,8 @@ def hybrid_inspect_dlp_job(
31173114
metadata: Sequence[Tuple[str, str]] = (),
31183115
) -> dlp.HybridInspectResponse:
31193116
r"""Inspect hybrid content and store findings to a job.
3120-
To review the findings inspect the job. Inspection will
3117+
To review the findings, inspect the job. Inspection will
31213118
occur asynchronously.
3122-
Early access feature is in a pre-release state and might
3123-
change or have limited support. For more information,
3124-
see
3125-
https://cloud.google.com/products#product-launch-stages.
31263119
31273120
Args:
31283121
request (Union[google.cloud.dlp_v2.types.HybridInspectDlpJobRequest, dict]):
@@ -3195,10 +3188,7 @@ def finish_dlp_job(
31953188
) -> None:
31963189
r"""Finish a running hybrid DlpJob. Triggers the
31973190
finalization steps and running of any enabled actions
3198-
that have not yet run. Early access feature is in a pre-
3199-
release state and might change or have limited support.
3200-
For more information, see
3201-
https://cloud.google.com/products#product-launch-stages.
3191+
that have not yet run.
32023192
32033193
Args:
32043194
request (Union[google.cloud.dlp_v2.types.FinishDlpJobRequest, dict]):

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

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -749,10 +749,6 @@ def hybrid_inspect_job_trigger(
749749
trigger. The inspection will be processed
750750
asynchronously. To review the findings monitor the jobs
751751
within the trigger.
752-
Early access feature is in a pre-release state and might
753-
change or have limited support. For more information,
754-
see
755-
https://cloud.google.com/products#product-launch-stages.
756752
757753
Returns:
758754
Callable[[~.HybridInspectJobTriggerRequest],
@@ -1179,12 +1175,8 @@ def hybrid_inspect_dlp_job(
11791175
r"""Return a callable for the hybrid inspect dlp job method over gRPC.
11801176
11811177
Inspect hybrid content and store findings to a job.
1182-
To review the findings inspect the job. Inspection will
1178+
To review the findings, inspect the job. Inspection will
11831179
occur asynchronously.
1184-
Early access feature is in a pre-release state and might
1185-
change or have limited support. For more information,
1186-
see
1187-
https://cloud.google.com/products#product-launch-stages.
11881180
11891181
Returns:
11901182
Callable[[~.HybridInspectDlpJobRequest],
@@ -1210,10 +1202,7 @@ def finish_dlp_job(self) -> Callable[[dlp.FinishDlpJobRequest], empty_pb2.Empty]
12101202
12111203
Finish a running hybrid DlpJob. Triggers the
12121204
finalization steps and running of any enabled actions
1213-
that have not yet run. Early access feature is in a pre-
1214-
release state and might change or have limited support.
1215-
For more information, see
1216-
https://cloud.google.com/products#product-launch-stages.
1205+
that have not yet run.
12171206
12181207
Returns:
12191208
Callable[[~.FinishDlpJobRequest],

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

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -766,10 +766,6 @@ def hybrid_inspect_job_trigger(
766766
trigger. The inspection will be processed
767767
asynchronously. To review the findings monitor the jobs
768768
within the trigger.
769-
Early access feature is in a pre-release state and might
770-
change or have limited support. For more information,
771-
see
772-
https://cloud.google.com/products#product-launch-stages.
773769
774770
Returns:
775771
Callable[[~.HybridInspectJobTriggerRequest],
@@ -1208,12 +1204,8 @@ def hybrid_inspect_dlp_job(
12081204
r"""Return a callable for the hybrid inspect dlp job method over gRPC.
12091205
12101206
Inspect hybrid content and store findings to a job.
1211-
To review the findings inspect the job. Inspection will
1207+
To review the findings, inspect the job. Inspection will
12121208
occur asynchronously.
1213-
Early access feature is in a pre-release state and might
1214-
change or have limited support. For more information,
1215-
see
1216-
https://cloud.google.com/products#product-launch-stages.
12171209
12181210
Returns:
12191211
Callable[[~.HybridInspectDlpJobRequest],
@@ -1241,10 +1233,7 @@ def finish_dlp_job(
12411233
12421234
Finish a running hybrid DlpJob. Triggers the
12431235
finalization steps and running of any enabled actions
1244-
that have not yet run. Early access feature is in a pre-
1245-
release state and might change or have limited support.
1246-
For more information, see
1247-
https://cloud.google.com/products#product-launch-stages.
1236+
that have not yet run.
12481237
12491238
Returns:
12501239
Callable[[~.FinishDlpJobRequest],

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
RedactImageResponse,
115115
ReidentifyContentRequest,
116116
ReidentifyContentResponse,
117+
ReplaceDictionaryConfig,
117118
ReplaceValueConfig,
118119
ReplaceWithInfoTypeConfig,
119120
RiskAnalysisJobConfig,
@@ -274,6 +275,7 @@
274275
"RedactImageResponse",
275276
"ReidentifyContentRequest",
276277
"ReidentifyContentResponse",
278+
"ReplaceDictionaryConfig",
277279
"ReplaceValueConfig",
278280
"ReplaceWithInfoTypeConfig",
279281
"RiskAnalysisJobConfig",

0 commit comments

Comments
 (0)