Skip to content

Commit 4c1f7d9

Browse files
docs: Fix formatting of request arg in docstring (#497)
* docs: Fix formatting of request arg in docstring chore: Update gapic-generator-python to v1.9.1 PiperOrigin-RevId: 518604533 Source-Link: googleapis/googleapis@8a085ae Source-Link: googleapis/googleapis-gen@b2ab4b0 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjJhYjRiMGEwYWUyOTA3ZTgxMmMyMDkxOThhNzRlMDg5OGFmY2IwNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix docs build. Fix proposed upstream in cl/518890884 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 35c35b2 commit 4c1f7d9

File tree

5 files changed

+74
-82
lines changed

5 files changed

+74
-82
lines changed

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

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ async def sample_redact_image():
383383
Args:
384384
request (Optional[Union[google.cloud.dlp_v2.types.RedactImageRequest, dict]]):
385385
The request object. Request to search for potentially
386-
sensitive info in an image and redact it by covering it
387-
with a colored rectangle.
386+
sensitive info in an image and redact it
387+
by covering it with a colored rectangle.
388388
retry (google.api_core.retry.Retry): Designation of what errors, if any,
389389
should be retried.
390390
timeout (float): The timeout for this request.
@@ -479,8 +479,7 @@ async def sample_deidentify_content():
479479
480480
Args:
481481
request (Optional[Union[google.cloud.dlp_v2.types.DeidentifyContentRequest, dict]]):
482-
The request object. Request to de-identify a
483-
ContentItem.
482+
The request object. Request to de-identify a ContentItem.
484483
retry (google.api_core.retry.Retry): Designation of what errors, if any,
485484
should be retried.
486485
timeout (float): The timeout for this request.
@@ -2070,8 +2069,7 @@ async def sample_create_job_trigger():
20702069
20712070
Args:
20722071
request (Optional[Union[google.cloud.dlp_v2.types.CreateJobTriggerRequest, dict]]):
2073-
The request object. Request message for
2074-
CreateJobTrigger.
2072+
The request object. Request message for CreateJobTrigger.
20752073
parent (:class:`str`):
20762074
Required. Parent resource name.
20772075
@@ -2203,8 +2201,7 @@ async def sample_update_job_trigger():
22032201
22042202
Args:
22052203
request (Optional[Union[google.cloud.dlp_v2.types.UpdateJobTriggerRequest, dict]]):
2206-
The request object. Request message for
2207-
UpdateJobTrigger.
2204+
The request object. Request message for UpdateJobTrigger.
22082205
name (:class:`str`):
22092206
Required. Resource name of the project and the
22102207
triggeredJob, for example
@@ -2690,8 +2687,7 @@ async def sample_delete_job_trigger():
26902687
26912688
Args:
26922689
request (Optional[Union[google.cloud.dlp_v2.types.DeleteJobTriggerRequest, dict]]):
2693-
The request object. Request message for
2694-
DeleteJobTrigger.
2690+
The request object. Request message for DeleteJobTrigger.
26952691
name (:class:`str`):
26962692
Required. Resource name of the project and the
26972693
triggeredJob, for example
@@ -2887,9 +2883,10 @@ async def sample_create_dlp_job():
28872883
Args:
28882884
request (Optional[Union[google.cloud.dlp_v2.types.CreateDlpJobRequest, dict]]):
28892885
The request object. Request message for
2890-
CreateDlpJobRequest. Used to initiate long running jobs
2891-
such as calculating risk metrics or inspecting Google
2892-
Cloud Storage.
2886+
CreateDlpJobRequest. Used to initiate
2887+
long running jobs such as calculating
2888+
risk metrics or inspecting Google Cloud
2889+
Storage.
28932890
parent (:class:`str`):
28942891
Required. Parent resource name.
28952892
@@ -3176,8 +3173,7 @@ async def sample_get_dlp_job():
31763173
31773174
Args:
31783175
request (Optional[Union[google.cloud.dlp_v2.types.GetDlpJobRequest, dict]]):
3179-
The request object. The request message for
3180-
[DlpJobs.GetDlpJob][].
3176+
The request object. The request message for [DlpJobs.GetDlpJob][].
31813177
name (:class:`str`):
31823178
Required. The name of the DlpJob
31833179
resource.

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

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,8 @@ def sample_redact_image():
702702
Args:
703703
request (Union[google.cloud.dlp_v2.types.RedactImageRequest, dict]):
704704
The request object. Request to search for potentially
705-
sensitive info in an image and redact it by covering it
706-
with a colored rectangle.
705+
sensitive info in an image and redact it
706+
by covering it with a colored rectangle.
707707
retry (google.api_core.retry.Retry): Designation of what errors, if any,
708708
should be retried.
709709
timeout (float): The timeout for this request.
@@ -789,8 +789,7 @@ def sample_deidentify_content():
789789
790790
Args:
791791
request (Union[google.cloud.dlp_v2.types.DeidentifyContentRequest, dict]):
792-
The request object. Request to de-identify a
793-
ContentItem.
792+
The request object. Request to de-identify a ContentItem.
794793
retry (google.api_core.retry.Retry): Designation of what errors, if any,
795794
should be retried.
796795
timeout (float): The timeout for this request.
@@ -2300,8 +2299,7 @@ def sample_create_job_trigger():
23002299
23012300
Args:
23022301
request (Union[google.cloud.dlp_v2.types.CreateJobTriggerRequest, dict]):
2303-
The request object. Request message for
2304-
CreateJobTrigger.
2302+
The request object. Request message for CreateJobTrigger.
23052303
parent (str):
23062304
Required. Parent resource name.
23072305
@@ -2433,8 +2431,7 @@ def sample_update_job_trigger():
24332431
24342432
Args:
24352433
request (Union[google.cloud.dlp_v2.types.UpdateJobTriggerRequest, dict]):
2436-
The request object. Request message for
2437-
UpdateJobTrigger.
2434+
The request object. Request message for UpdateJobTrigger.
24382435
name (str):
24392436
Required. Resource name of the project and the
24402437
triggeredJob, for example
@@ -2902,8 +2899,7 @@ def sample_delete_job_trigger():
29022899
29032900
Args:
29042901
request (Union[google.cloud.dlp_v2.types.DeleteJobTriggerRequest, dict]):
2905-
The request object. Request message for
2906-
DeleteJobTrigger.
2902+
The request object. Request message for DeleteJobTrigger.
29072903
name (str):
29082904
Required. Resource name of the project and the
29092905
triggeredJob, for example
@@ -3090,9 +3086,10 @@ def sample_create_dlp_job():
30903086
Args:
30913087
request (Union[google.cloud.dlp_v2.types.CreateDlpJobRequest, dict]):
30923088
The request object. Request message for
3093-
CreateDlpJobRequest. Used to initiate long running jobs
3094-
such as calculating risk metrics or inspecting Google
3095-
Cloud Storage.
3089+
CreateDlpJobRequest. Used to initiate
3090+
long running jobs such as calculating
3091+
risk metrics or inspecting Google Cloud
3092+
Storage.
30963093
parent (str):
30973094
Required. Parent resource name.
30983095
@@ -3369,8 +3366,7 @@ def sample_get_dlp_job():
33693366
33703367
Args:
33713368
request (Union[google.cloud.dlp_v2.types.GetDlpJobRequest, dict]):
3372-
The request object. The request message for
3373-
[DlpJobs.GetDlpJob][].
3369+
The request object. The request message for [DlpJobs.GetDlpJob][].
33743370
name (str):
33753371
Required. The name of the DlpJob
33763372
resource.

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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,6 @@ def __call__(
11091109
request (~.dlp.ActivateJobTriggerRequest):
11101110
The request object. Request message for
11111111
ActivateJobTrigger.
1112-
11131112
retry (google.api_core.retry.Retry): Designation of what errors, if any,
11141113
should be retried.
11151114
timeout (float): The timeout for this request.
@@ -1215,7 +1214,6 @@ def __call__(
12151214
request (~.dlp.CancelDlpJobRequest):
12161215
The request object. The request message for canceling a
12171216
DLP job.
1218-
12191217
retry (google.api_core.retry.Retry): Designation of what errors, if any,
12201218
should be retried.
12211219
timeout (float): The timeout for this request.
@@ -1306,7 +1304,6 @@ def __call__(
13061304
request (~.dlp.CreateDeidentifyTemplateRequest):
13071305
The request object. Request message for
13081306
CreateDeidentifyTemplate.
1309-
13101307
retry (google.api_core.retry.Retry): Designation of what errors, if any,
13111308
should be retried.
13121309
timeout (float): The timeout for this request.
@@ -1428,7 +1425,6 @@ def __call__(
14281425
long running jobs such as calculating
14291426
risk metrics or inspecting Google Cloud
14301427
Storage.
1431-
14321428
retry (google.api_core.retry.Retry): Designation of what errors, if any,
14331429
should be retried.
14341430
timeout (float): The timeout for this request.
@@ -1532,7 +1528,6 @@ def __call__(
15321528
request (~.dlp.CreateInspectTemplateRequest):
15331529
The request object. Request message for
15341530
CreateInspectTemplate.
1535-
15361531
retry (google.api_core.retry.Retry): Designation of what errors, if any,
15371532
should be retried.
15381533
timeout (float): The timeout for this request.
@@ -1764,7 +1759,6 @@ def __call__(
17641759
request (~.dlp.CreateStoredInfoTypeRequest):
17651760
The request object. Request message for
17661761
CreateStoredInfoType.
1767-
17681762
retry (google.api_core.retry.Retry): Designation of what errors, if any,
17691763
should be retried.
17701764
timeout (float): The timeout for this request.
@@ -1975,7 +1969,6 @@ def __call__(
19751969
request (~.dlp.DeleteDeidentifyTemplateRequest):
19761970
The request object. Request message for
19771971
DeleteDeidentifyTemplate.
1978-
19791972
retry (google.api_core.retry.Retry): Designation of what errors, if any,
19801973
should be retried.
19811974
timeout (float): The timeout for this request.
@@ -2065,7 +2058,6 @@ def __call__(
20652058
request (~.dlp.DeleteDlpJobRequest):
20662059
The request object. The request message for deleting a
20672060
DLP job.
2068-
20692061
retry (google.api_core.retry.Retry): Designation of what errors, if any,
20702062
should be retried.
20712063
timeout (float): The timeout for this request.
@@ -2145,7 +2137,6 @@ def __call__(
21452137
request (~.dlp.DeleteInspectTemplateRequest):
21462138
The request object. Request message for
21472139
DeleteInspectTemplate.
2148-
21492140
retry (google.api_core.retry.Retry): Designation of what errors, if any,
21502141
should be retried.
21512142
timeout (float): The timeout for this request.
@@ -2319,7 +2310,6 @@ def __call__(
23192310
request (~.dlp.DeleteStoredInfoTypeRequest):
23202311
The request object. Request message for
23212312
DeleteStoredInfoType.
2322-
23232313
retry (google.api_core.retry.Retry): Designation of what errors, if any,
23242314
should be retried.
23252315
timeout (float): The timeout for this request.
@@ -2409,7 +2399,6 @@ def __call__(
24092399
request (~.dlp.FinishDlpJobRequest):
24102400
The request object. The request message for finishing a
24112401
DLP hybrid job.
2412-
24132402
retry (google.api_core.retry.Retry): Designation of what errors, if any,
24142403
should be retried.
24152404
timeout (float): The timeout for this request.
@@ -2494,7 +2483,6 @@ def __call__(
24942483
request (~.dlp.GetDeidentifyTemplateRequest):
24952484
The request object. Request message for
24962485
GetDeidentifyTemplate.
2497-
24982486
retry (google.api_core.retry.Retry): Designation of what errors, if any,
24992487
should be retried.
25002488
timeout (float): The timeout for this request.
@@ -2693,7 +2681,6 @@ def __call__(
26932681
request (~.dlp.GetInspectTemplateRequest):
26942682
The request object. Request message for
26952683
GetInspectTemplate.
2696-
26972684
retry (google.api_core.retry.Retry): Designation of what errors, if any,
26982685
should be retried.
26992686
timeout (float): The timeout for this request.
@@ -2900,7 +2887,6 @@ def __call__(
29002887
request (~.dlp.GetStoredInfoTypeRequest):
29012888
The request object. Request message for
29022889
GetStoredInfoType.
2903-
29042890
retry (google.api_core.retry.Retry): Designation of what errors, if any,
29052891
should be retried.
29062892
timeout (float): The timeout for this request.
@@ -3005,7 +2991,6 @@ def __call__(
30052991
request (~.dlp.HybridInspectDlpJobRequest):
30062992
The request object. Request to search for potentially
30072993
sensitive info in a custom location.
3008-
30092994
retry (google.api_core.retry.Retry): Designation of what errors, if any,
30102995
should be retried.
30112996
timeout (float): The timeout for this request.
@@ -3107,7 +3092,6 @@ def __call__(
31073092
request (~.dlp.HybridInspectJobTriggerRequest):
31083093
The request object. Request to search for potentially
31093094
sensitive info in a custom location.
3110-
31113095
retry (google.api_core.retry.Retry): Designation of what errors, if any,
31123096
should be retried.
31133097
timeout (float): The timeout for this request.
@@ -3198,7 +3182,6 @@ def __call__(
31983182
request (~.dlp.InspectContentRequest):
31993183
The request object. Request to search for potentially
32003184
sensitive info in a ContentItem.
3201-
32023185
retry (google.api_core.retry.Retry): Designation of what errors, if any,
32033186
should be retried.
32043187
timeout (float): The timeout for this request.
@@ -3299,7 +3282,6 @@ def __call__(
32993282
request (~.dlp.ListDeidentifyTemplatesRequest):
33003283
The request object. Request message for
33013284
ListDeidentifyTemplates.
3302-
33033285
retry (google.api_core.retry.Retry): Designation of what errors, if any,
33043286
should be retried.
33053287
timeout (float): The timeout for this request.
@@ -3403,7 +3385,6 @@ def __call__(
34033385
request (~.dlp.ListDlpJobsRequest):
34043386
The request object. The request message for listing DLP
34053387
jobs.
3406-
34073388
retry (google.api_core.retry.Retry): Designation of what errors, if any,
34083389
should be retried.
34093390
timeout (float): The timeout for this request.
@@ -3582,7 +3563,6 @@ def __call__(
35823563
request (~.dlp.ListInspectTemplatesRequest):
35833564
The request object. Request message for
35843565
ListInspectTemplates.
3585-
35863566
retry (google.api_core.retry.Retry): Designation of what errors, if any,
35873567
should be retried.
35883568
timeout (float): The timeout for this request.
@@ -3782,7 +3762,6 @@ def __call__(
37823762
request (~.dlp.ListStoredInfoTypesRequest):
37833763
The request object. Request message for
37843764
ListStoredInfoTypes.
3785-
37863765
retry (google.api_core.retry.Retry): Designation of what errors, if any,
37873766
should be retried.
37883767
timeout (float): The timeout for this request.
@@ -3877,7 +3856,6 @@ def __call__(
38773856
The request object. Request to search for potentially
38783857
sensitive info in an image and redact it
38793858
by covering it with a colored rectangle.
3880-
38813859
retry (google.api_core.retry.Retry): Designation of what errors, if any,
38823860
should be retried.
38833861
timeout (float): The timeout for this request.
@@ -4081,7 +4059,6 @@ def __call__(
40814059
request (~.dlp.UpdateDeidentifyTemplateRequest):
40824060
The request object. Request message for
40834061
UpdateDeidentifyTemplate.
4084-
40854062
retry (google.api_core.retry.Retry): Designation of what errors, if any,
40864063
should be retried.
40874064
timeout (float): The timeout for this request.
@@ -4200,7 +4177,6 @@ def __call__(
42004177
request (~.dlp.UpdateInspectTemplateRequest):
42014178
The request object. Request message for
42024179
UpdateInspectTemplate.
4203-
42044180
retry (google.api_core.retry.Retry): Designation of what errors, if any,
42054181
should be retried.
42064182
timeout (float): The timeout for this request.
@@ -4432,7 +4408,6 @@ def __call__(
44324408
request (~.dlp.UpdateStoredInfoTypeRequest):
44334409
The request object. Request message for
44344410
UpdateStoredInfoType.
4435-
44364411
retry (google.api_core.retry.Retry): Designation of what errors, if any,
44374412
should be retried.
44384413
timeout (float): The timeout for this request.

0 commit comments

Comments
 (0)