Skip to content

Commit a3805d5

Browse files
docs: Fix formatting of request arg in docstring (#527)
* 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 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent c702d14 commit a3805d5

File tree

27 files changed

+151
-259
lines changed

27 files changed

+151
-259
lines changed

packages/google-cloud-vision/google/cloud/vision_v1/services/image_annotator/async_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,8 @@ async def sample_async_batch_annotate_files():
642642
Args:
643643
request (Optional[Union[google.cloud.vision_v1.types.AsyncBatchAnnotateFilesRequest, dict]]):
644644
The request object. Multiple async file annotation
645-
requests are batched into a single service call.
645+
requests are batched into a single
646+
service call.
646647
requests (:class:`MutableSequence[google.cloud.vision_v1.types.AsyncAnnotateFileRequest]`):
647648
Required. Individual async file
648649
annotation requests for this batch.

packages/google-cloud-vision/google/cloud/vision_v1/services/image_annotator/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,8 @@ def sample_async_batch_annotate_files():
874874
Args:
875875
request (Union[google.cloud.vision_v1.types.AsyncBatchAnnotateFilesRequest, dict]):
876876
The request object. Multiple async file annotation
877-
requests are batched into a single service call.
877+
requests are batched into a single
878+
service call.
878879
requests (MutableSequence[google.cloud.vision_v1.types.AsyncAnnotateFileRequest]):
879880
Required. Individual async file
880881
annotation requests for this batch.

packages/google-cloud-vision/google/cloud/vision_v1/services/image_annotator/transports/rest.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ def __call__(
382382
The request object. Multiple async file annotation
383383
requests are batched into a single
384384
service call.
385-
386385
retry (google.api_core.retry.Retry): Designation of what errors, if any,
387386
should be retried.
388387
timeout (float): The timeout for this request.
@@ -493,7 +492,6 @@ def __call__(
493492
request (~.image_annotator.AsyncBatchAnnotateImagesRequest):
494493
The request object. Request for async image annotation
495494
for a list of images.
496-
497495
retry (google.api_core.retry.Retry): Designation of what errors, if any,
498496
should be retried.
499497
timeout (float): The timeout for this request.
@@ -603,7 +601,6 @@ def __call__(
603601
request (~.image_annotator.BatchAnnotateFilesRequest):
604602
The request object. A list of requests to annotate files
605603
using the BatchAnnotateFiles API.
606-
607604
retry (google.api_core.retry.Retry): Designation of what errors, if any,
608605
should be retried.
609606
timeout (float): The timeout for this request.
@@ -712,7 +709,6 @@ def __call__(
712709
request (~.image_annotator.BatchAnnotateImagesRequest):
713710
The request object. Multiple image annotation requests
714711
are batched into a single service call.
715-
716712
retry (google.api_core.retry.Retry): Designation of what errors, if any,
717713
should be retried.
718714
timeout (float): The timeout for this request.

packages/google-cloud-vision/google/cloud/vision_v1/services/product_search/async_client.py

Lines changed: 22 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,7 @@ async def sample_create_product_set():
292292
293293
Args:
294294
request (Optional[Union[google.cloud.vision_v1.types.CreateProductSetRequest, dict]]):
295-
The request object. Request message for the
296-
`CreateProductSet` method.
295+
The request object. Request message for the ``CreateProductSet`` method.
297296
parent (:class:`str`):
298297
Required. The project in which the ProductSet should be
299298
created.
@@ -433,8 +432,7 @@ async def sample_list_product_sets():
433432
434433
Args:
435434
request (Optional[Union[google.cloud.vision_v1.types.ListProductSetsRequest, dict]]):
436-
The request object. Request message for the
437-
`ListProductSets` method.
435+
The request object. Request message for the ``ListProductSets`` method.
438436
parent (:class:`str`):
439437
Required. The project from which ProductSets should be
440438
listed.
@@ -564,8 +562,7 @@ async def sample_get_product_set():
564562
565563
Args:
566564
request (Optional[Union[google.cloud.vision_v1.types.GetProductSetRequest, dict]]):
567-
The request object. Request message for the
568-
`GetProductSet` method.
565+
The request object. Request message for the ``GetProductSet`` method.
569566
name (:class:`str`):
570567
Required. Resource name of the ProductSet to get.
571568
@@ -691,8 +688,7 @@ async def sample_update_product_set():
691688
692689
Args:
693690
request (Optional[Union[google.cloud.vision_v1.types.UpdateProductSetRequest, dict]]):
694-
The request object. Request message for the
695-
`UpdateProductSet` method.
691+
The request object. Request message for the ``UpdateProductSet`` method.
696692
product_set (:class:`google.cloud.vision_v1.types.ProductSet`):
697693
Required. The ProductSet resource
698694
which replaces the one on the server.
@@ -821,8 +817,7 @@ async def sample_delete_product_set():
821817
822818
Args:
823819
request (Optional[Union[google.cloud.vision_v1.types.DeleteProductSetRequest, dict]]):
824-
The request object. Request message for the
825-
`DeleteProductSet` method.
820+
The request object. Request message for the ``DeleteProductSet`` method.
826821
name (:class:`str`):
827822
Required. Resource name of the ProductSet to delete.
828823
@@ -939,8 +934,7 @@ async def sample_create_product():
939934
940935
Args:
941936
request (Optional[Union[google.cloud.vision_v1.types.CreateProductRequest, dict]]):
942-
The request object. Request message for the
943-
`CreateProduct` method.
937+
The request object. Request message for the ``CreateProduct`` method.
944938
parent (:class:`str`):
945939
Required. The project in which the Product should be
946940
created.
@@ -1075,8 +1069,7 @@ async def sample_list_products():
10751069
10761070
Args:
10771071
request (Optional[Union[google.cloud.vision_v1.types.ListProductsRequest, dict]]):
1078-
The request object. Request message for the
1079-
`ListProducts` method.
1072+
The request object. Request message for the ``ListProducts`` method.
10801073
parent (:class:`str`):
10811074
Required. The project OR ProductSet from which Products
10821075
should be listed.
@@ -1204,8 +1197,7 @@ async def sample_get_product():
12041197
12051198
Args:
12061199
request (Optional[Union[google.cloud.vision_v1.types.GetProductRequest, dict]]):
1207-
The request object. Request message for the `GetProduct`
1208-
method.
1200+
The request object. Request message for the ``GetProduct`` method.
12091201
name (:class:`str`):
12101202
Required. Resource name of the Product to get.
12111203
@@ -1333,8 +1325,7 @@ async def sample_update_product():
13331325
13341326
Args:
13351327
request (Optional[Union[google.cloud.vision_v1.types.UpdateProductRequest, dict]]):
1336-
The request object. Request message for the
1337-
`UpdateProduct` method.
1328+
The request object. Request message for the ``UpdateProduct`` method.
13381329
product (:class:`google.cloud.vision_v1.types.Product`):
13391330
Required. The Product resource which
13401331
replaces the one on the server.
@@ -1462,8 +1453,7 @@ async def sample_delete_product():
14621453
14631454
Args:
14641455
request (Optional[Union[google.cloud.vision_v1.types.DeleteProductRequest, dict]]):
1465-
The request object. Request message for the
1466-
`DeleteProduct` method.
1456+
The request object. Request message for the ``DeleteProduct`` method.
14671457
name (:class:`str`):
14681458
Required. Resource name of product to delete.
14691459
@@ -1596,8 +1586,7 @@ async def sample_create_reference_image():
15961586
15971587
Args:
15981588
request (Optional[Union[google.cloud.vision_v1.types.CreateReferenceImageRequest, dict]]):
1599-
The request object. Request message for the
1600-
`CreateReferenceImage` method.
1589+
The request object. Request message for the ``CreateReferenceImage`` method.
16011590
parent (:class:`str`):
16021591
Required. Resource name of the product in which to
16031592
create the reference image.
@@ -1735,8 +1724,7 @@ async def sample_delete_reference_image():
17351724
17361725
Args:
17371726
request (Optional[Union[google.cloud.vision_v1.types.DeleteReferenceImageRequest, dict]]):
1738-
The request object. Request message for the
1739-
`DeleteReferenceImage` method.
1727+
The request object. Request message for the ``DeleteReferenceImage`` method.
17401728
name (:class:`str`):
17411729
Required. The resource name of the reference image to
17421730
delete.
@@ -1850,8 +1838,7 @@ async def sample_list_reference_images():
18501838
18511839
Args:
18521840
request (Optional[Union[google.cloud.vision_v1.types.ListReferenceImagesRequest, dict]]):
1853-
The request object. Request message for the
1854-
`ListReferenceImages` method.
1841+
The request object. Request message for the ``ListReferenceImages`` method.
18551842
parent (:class:`str`):
18561843
Required. Resource name of the product containing the
18571844
reference images.
@@ -1982,8 +1969,7 @@ async def sample_get_reference_image():
19821969
19831970
Args:
19841971
request (Optional[Union[google.cloud.vision_v1.types.GetReferenceImageRequest, dict]]):
1985-
The request object. Request message for the
1986-
`GetReferenceImage` method.
1972+
The request object. Request message for the ``GetReferenceImage`` method.
19871973
name (:class:`str`):
19881974
Required. The resource name of the ReferenceImage to
19891975
get.
@@ -2106,8 +2092,8 @@ async def sample_add_product_to_product_set():
21062092
21072093
Args:
21082094
request (Optional[Union[google.cloud.vision_v1.types.AddProductToProductSetRequest, dict]]):
2109-
The request object. Request message for the
2110-
`AddProductToProductSet` method.
2095+
The request object. Request message for the ``AddProductToProductSet``
2096+
method.
21112097
name (:class:`str`):
21122098
Required. The resource name for the ProductSet to
21132099
modify.
@@ -2225,8 +2211,8 @@ async def sample_remove_product_from_product_set():
22252211
22262212
Args:
22272213
request (Optional[Union[google.cloud.vision_v1.types.RemoveProductFromProductSetRequest, dict]]):
2228-
The request object. Request message for the
2229-
`RemoveProductFromProductSet` method.
2214+
The request object. Request message for the ``RemoveProductFromProductSet``
2215+
method.
22302216
name (:class:`str`):
22312217
Required. The resource name for the ProductSet to
22322218
modify.
@@ -2353,8 +2339,8 @@ async def sample_list_products_in_product_set():
23532339
23542340
Args:
23552341
request (Optional[Union[google.cloud.vision_v1.types.ListProductsInProductSetRequest, dict]]):
2356-
The request object. Request message for the
2357-
`ListProductsInProductSet` method.
2342+
The request object. Request message for the ``ListProductsInProductSet``
2343+
method.
23582344
name (:class:`str`):
23592345
Required. The ProductSet resource for which to retrieve
23602346
Products.
@@ -2500,8 +2486,7 @@ async def sample_import_product_sets():
25002486
25012487
Args:
25022488
request (Optional[Union[google.cloud.vision_v1.types.ImportProductSetsRequest, dict]]):
2503-
The request object. Request message for the
2504-
`ImportProductSets` method.
2489+
The request object. Request message for the ``ImportProductSets`` method.
25052490
parent (:class:`str`):
25062491
Required. The project in which the ProductSets should be
25072492
imported.
@@ -2669,8 +2654,7 @@ async def sample_purge_products():
26692654
26702655
Args:
26712656
request (Optional[Union[google.cloud.vision_v1.types.PurgeProductsRequest, dict]]):
2672-
The request object. Request message for the
2673-
`PurgeProducts` method.
2657+
The request object. Request message for the ``PurgeProducts`` method.
26742658
parent (:class:`str`):
26752659
Required. The project and location in which the Products
26762660
should be deleted.

0 commit comments

Comments
 (0)