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

Commit 467e84a

Browse files
docs: Fix formatting of request arg in docstring (#232)
* 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: https://github.com/googleapis/googleapis-gen/commit/b2ab4b0a0ae2907e812c209198a74e0898afcb04 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 7712caa commit 467e84a

File tree

6 files changed

+46
-74
lines changed

6 files changed

+46
-74
lines changed

google/cloud/gkehub_v1/services/gke_hub/async_client.py

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@ async def sample_list_memberships():
266266
267267
Args:
268268
request (Optional[Union[google.cloud.gkehub_v1.types.ListMembershipsRequest, dict]]):
269-
The request object. Request message for
270-
`GkeHub.ListMemberships` method.
269+
The request object. Request message for ``GkeHub.ListMemberships`` method.
271270
parent (:class:`str`):
272271
Required. The parent (project and location) where the
273272
Memberships will be listed. Specified in the format
@@ -380,8 +379,7 @@ async def sample_list_features():
380379
381380
Args:
382381
request (Optional[Union[google.cloud.gkehub_v1.types.ListFeaturesRequest, dict]]):
383-
The request object. Request message for
384-
`GkeHub.ListFeatures` method.
382+
The request object. Request message for ``GkeHub.ListFeatures`` method.
385383
parent (:class:`str`):
386384
Required. The parent (project and location) where the
387385
Features will be listed. Specified in the format
@@ -494,8 +492,7 @@ async def sample_get_membership():
494492
495493
Args:
496494
request (Optional[Union[google.cloud.gkehub_v1.types.GetMembershipRequest, dict]]):
497-
The request object. Request message for
498-
`GkeHub.GetMembership` method.
495+
The request object. Request message for ``GkeHub.GetMembership`` method.
499496
name (:class:`str`):
500497
Required. The Membership resource name in the format
501498
``projects/*/locations/*/memberships/*``.
@@ -595,8 +592,7 @@ async def sample_get_feature():
595592
596593
Args:
597594
request (Optional[Union[google.cloud.gkehub_v1.types.GetFeatureRequest, dict]]):
598-
The request object. Request message for
599-
`GkeHub.GetFeature` method.
595+
The request object. Request message for ``GkeHub.GetFeature`` method.
600596
name (:class:`str`):
601597
Required. The Feature resource name in the format
602598
``projects/*/locations/*/features/*``
@@ -708,8 +704,8 @@ async def sample_create_membership():
708704
709705
Args:
710706
request (Optional[Union[google.cloud.gkehub_v1.types.CreateMembershipRequest, dict]]):
711-
The request object. Request message for the
712-
`GkeHub.CreateMembership` method.
707+
The request object. Request message for the ``GkeHub.CreateMembership``
708+
method.
713709
parent (:class:`str`):
714710
Required. The parent (project and location) where the
715711
Memberships will be created. Specified in the format
@@ -853,8 +849,7 @@ async def sample_create_feature():
853849
854850
Args:
855851
request (Optional[Union[google.cloud.gkehub_v1.types.CreateFeatureRequest, dict]]):
856-
The request object. Request message for the
857-
`GkeHub.CreateFeature` method.
852+
The request object. Request message for the ``GkeHub.CreateFeature`` method.
858853
parent (:class:`str`):
859854
Required. The parent (project and location) where the
860855
Feature will be created. Specified in the format
@@ -990,8 +985,7 @@ async def sample_delete_membership():
990985
991986
Args:
992987
request (Optional[Union[google.cloud.gkehub_v1.types.DeleteMembershipRequest, dict]]):
993-
The request object. Request message for
994-
`GkeHub.DeleteMembership` method.
988+
The request object. Request message for ``GkeHub.DeleteMembership`` method.
995989
name (:class:`str`):
996990
Required. The Membership resource name in the format
997991
``projects/*/locations/*/memberships/*``.
@@ -1113,8 +1107,7 @@ async def sample_delete_feature():
11131107
11141108
Args:
11151109
request (Optional[Union[google.cloud.gkehub_v1.types.DeleteFeatureRequest, dict]]):
1116-
The request object. Request message for
1117-
`GkeHub.DeleteFeature` method.
1110+
The request object. Request message for ``GkeHub.DeleteFeature`` method.
11181111
name (:class:`str`):
11191112
Required. The Feature resource name in the format
11201113
``projects/*/locations/*/features/*``.
@@ -1239,8 +1232,7 @@ async def sample_update_membership():
12391232
12401233
Args:
12411234
request (Optional[Union[google.cloud.gkehub_v1.types.UpdateMembershipRequest, dict]]):
1242-
The request object. Request message for
1243-
`GkeHub.UpdateMembership` method.
1235+
The request object. Request message for ``GkeHub.UpdateMembership`` method.
12441236
name (:class:`str`):
12451237
Required. The Membership resource name in the format
12461238
``projects/*/locations/*/memberships/*``.
@@ -1380,8 +1372,7 @@ async def sample_update_feature():
13801372
13811373
Args:
13821374
request (Optional[Union[google.cloud.gkehub_v1.types.UpdateFeatureRequest, dict]]):
1383-
The request object. Request message for
1384-
`GkeHub.UpdateFeature` method.
1375+
The request object. Request message for ``GkeHub.UpdateFeature`` method.
13851376
name (:class:`str`):
13861377
Required. The Feature resource name in the format
13871378
``projects/*/locations/*/features/*``.
@@ -1518,9 +1509,8 @@ async def sample_generate_connect_manifest():
15181509
15191510
Args:
15201511
request (Optional[Union[google.cloud.gkehub_v1.types.GenerateConnectManifestRequest, dict]]):
1521-
The request object. Request message for
1522-
`GkeHub.GenerateConnectManifest` method.
1523-
.
1512+
The request object. Request message for ``GkeHub.GenerateConnectManifest``
1513+
method. .
15241514
retry (google.api_core.retry.Retry): Designation of what errors, if any,
15251515
should be retried.
15261516
timeout (float): The timeout for this request.

google/cloud/gkehub_v1/services/gke_hub/client.py

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,7 @@ def sample_list_memberships():
525525
526526
Args:
527527
request (Union[google.cloud.gkehub_v1.types.ListMembershipsRequest, dict]):
528-
The request object. Request message for
529-
`GkeHub.ListMemberships` method.
528+
The request object. Request message for ``GkeHub.ListMemberships`` method.
530529
parent (str):
531530
Required. The parent (project and location) where the
532531
Memberships will be listed. Specified in the format
@@ -639,8 +638,7 @@ def sample_list_features():
639638
640639
Args:
641640
request (Union[google.cloud.gkehub_v1.types.ListFeaturesRequest, dict]):
642-
The request object. Request message for
643-
`GkeHub.ListFeatures` method.
641+
The request object. Request message for ``GkeHub.ListFeatures`` method.
644642
parent (str):
645643
Required. The parent (project and location) where the
646644
Features will be listed. Specified in the format
@@ -753,8 +751,7 @@ def sample_get_membership():
753751
754752
Args:
755753
request (Union[google.cloud.gkehub_v1.types.GetMembershipRequest, dict]):
756-
The request object. Request message for
757-
`GkeHub.GetMembership` method.
754+
The request object. Request message for ``GkeHub.GetMembership`` method.
758755
name (str):
759756
Required. The Membership resource name in the format
760757
``projects/*/locations/*/memberships/*``.
@@ -854,8 +851,7 @@ def sample_get_feature():
854851
855852
Args:
856853
request (Union[google.cloud.gkehub_v1.types.GetFeatureRequest, dict]):
857-
The request object. Request message for
858-
`GkeHub.GetFeature` method.
854+
The request object. Request message for ``GkeHub.GetFeature`` method.
859855
name (str):
860856
Required. The Feature resource name in the format
861857
``projects/*/locations/*/features/*``
@@ -967,8 +963,8 @@ def sample_create_membership():
967963
968964
Args:
969965
request (Union[google.cloud.gkehub_v1.types.CreateMembershipRequest, dict]):
970-
The request object. Request message for the
971-
`GkeHub.CreateMembership` method.
966+
The request object. Request message for the ``GkeHub.CreateMembership``
967+
method.
972968
parent (str):
973969
Required. The parent (project and location) where the
974970
Memberships will be created. Specified in the format
@@ -1112,8 +1108,7 @@ def sample_create_feature():
11121108
11131109
Args:
11141110
request (Union[google.cloud.gkehub_v1.types.CreateFeatureRequest, dict]):
1115-
The request object. Request message for the
1116-
`GkeHub.CreateFeature` method.
1111+
The request object. Request message for the ``GkeHub.CreateFeature`` method.
11171112
parent (str):
11181113
Required. The parent (project and location) where the
11191114
Feature will be created. Specified in the format
@@ -1249,8 +1244,7 @@ def sample_delete_membership():
12491244
12501245
Args:
12511246
request (Union[google.cloud.gkehub_v1.types.DeleteMembershipRequest, dict]):
1252-
The request object. Request message for
1253-
`GkeHub.DeleteMembership` method.
1247+
The request object. Request message for ``GkeHub.DeleteMembership`` method.
12541248
name (str):
12551249
Required. The Membership resource name in the format
12561250
``projects/*/locations/*/memberships/*``.
@@ -1372,8 +1366,7 @@ def sample_delete_feature():
13721366
13731367
Args:
13741368
request (Union[google.cloud.gkehub_v1.types.DeleteFeatureRequest, dict]):
1375-
The request object. Request message for
1376-
`GkeHub.DeleteFeature` method.
1369+
The request object. Request message for ``GkeHub.DeleteFeature`` method.
13771370
name (str):
13781371
Required. The Feature resource name in the format
13791372
``projects/*/locations/*/features/*``.
@@ -1498,8 +1491,7 @@ def sample_update_membership():
14981491
14991492
Args:
15001493
request (Union[google.cloud.gkehub_v1.types.UpdateMembershipRequest, dict]):
1501-
The request object. Request message for
1502-
`GkeHub.UpdateMembership` method.
1494+
The request object. Request message for ``GkeHub.UpdateMembership`` method.
15031495
name (str):
15041496
Required. The Membership resource name in the format
15051497
``projects/*/locations/*/memberships/*``.
@@ -1639,8 +1631,7 @@ def sample_update_feature():
16391631
16401632
Args:
16411633
request (Union[google.cloud.gkehub_v1.types.UpdateFeatureRequest, dict]):
1642-
The request object. Request message for
1643-
`GkeHub.UpdateFeature` method.
1634+
The request object. Request message for ``GkeHub.UpdateFeature`` method.
16441635
name (str):
16451636
Required. The Feature resource name in the format
16461637
``projects/*/locations/*/features/*``.
@@ -1777,9 +1768,8 @@ def sample_generate_connect_manifest():
17771768
17781769
Args:
17791770
request (Union[google.cloud.gkehub_v1.types.GenerateConnectManifestRequest, dict]):
1780-
The request object. Request message for
1781-
`GkeHub.GenerateConnectManifest` method.
1782-
.
1771+
The request object. Request message for ``GkeHub.GenerateConnectManifest``
1772+
method. .
17831773
retry (google.api_core.retry.Retry): Designation of what errors, if any,
17841774
should be retried.
17851775
timeout (float): The timeout for this request.

google/cloud/gkehub_v1/services/gke_hub/transports/rest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,6 @@ def __call__(
683683
request (~.service.CreateMembershipRequest):
684684
The request object. Request message for the ``GkeHub.CreateMembership``
685685
method.
686-
687686
retry (google.api_core.retry.Retry): Designation of what errors, if any,
688687
should be retried.
689688
timeout (float): The timeout for this request.
@@ -948,7 +947,6 @@ def __call__(
948947
request (~.service.GenerateConnectManifestRequest):
949948
The request object. Request message for ``GkeHub.GenerateConnectManifest``
950949
method. .
951-
952950
retry (google.api_core.retry.Retry): Designation of what errors, if any,
953951
should be retried.
954952
timeout (float): The timeout for this request.

google/cloud/gkehub_v1beta1/services/gke_hub_membership_service/async_client.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ async def sample_list_memberships():
282282
Args:
283283
request (Optional[Union[google.cloud.gkehub_v1beta1.types.ListMembershipsRequest, dict]]):
284284
The request object. Request message for
285-
`GkeHubMembershipService.ListMemberships` method.
285+
``GkeHubMembershipService.ListMemberships`` method.
286286
parent (:class:`str`):
287287
Required. The parent (project and location) where the
288288
Memberships will be listed. Specified in the format
@@ -397,7 +397,7 @@ async def sample_get_membership():
397397
Args:
398398
request (Optional[Union[google.cloud.gkehub_v1beta1.types.GetMembershipRequest, dict]]):
399399
The request object. Request message for
400-
`GkeHubMembershipService.GetMembership` method.
400+
``GkeHubMembershipService.GetMembership`` method.
401401
name (:class:`str`):
402402
Required. The Membership resource name in the format
403403
``projects/*/locations/*/memberships/*``.
@@ -510,7 +510,7 @@ async def sample_create_membership():
510510
Args:
511511
request (Optional[Union[google.cloud.gkehub_v1beta1.types.CreateMembershipRequest, dict]]):
512512
The request object. Request message for the
513-
`GkeHubMembershipService.CreateMembership` method.
513+
``GkeHubMembershipService.CreateMembership`` method.
514514
parent (:class:`str`):
515515
Required. The parent (project and location) where the
516516
Memberships will be created. Specified in the format
@@ -659,7 +659,7 @@ async def sample_delete_membership():
659659
Args:
660660
request (Optional[Union[google.cloud.gkehub_v1beta1.types.DeleteMembershipRequest, dict]]):
661661
The request object. Request message for
662-
`GkeHubMembershipService.DeleteMembership` method.
662+
``GkeHubMembershipService.DeleteMembership`` method.
663663
name (:class:`str`):
664664
Required. The Membership resource name in the format
665665
``projects/*/locations/*/memberships/*``.
@@ -785,7 +785,7 @@ async def sample_update_membership():
785785
Args:
786786
request (Optional[Union[google.cloud.gkehub_v1beta1.types.UpdateMembershipRequest, dict]]):
787787
The request object. Request message for
788-
`GkeHubMembershipService.UpdateMembership` method.
788+
``GkeHubMembershipService.UpdateMembership`` method.
789789
name (:class:`str`):
790790
Required. The membership resource name in the format:
791791
``projects/[project_id]/locations/global/memberships/[membership_id]``
@@ -928,7 +928,7 @@ async def sample_generate_connect_manifest():
928928
Args:
929929
request (Optional[Union[google.cloud.gkehub_v1beta1.types.GenerateConnectManifestRequest, dict]]):
930930
The request object. Request message for
931-
`GkeHubMembershipService.GenerateConnectManifest`
931+
``GkeHubMembershipService.GenerateConnectManifest``
932932
method. .
933933
retry (google.api_core.retry.Retry): Designation of what errors, if any,
934934
should be retried.
@@ -1013,7 +1013,8 @@ async def sample_validate_exclusivity():
10131013
Args:
10141014
request (Optional[Union[google.cloud.gkehub_v1beta1.types.ValidateExclusivityRequest, dict]]):
10151015
The request object. The request to validate the existing
1016-
state of the membership CR in the cluster.
1016+
state of the membership CR in the
1017+
cluster.
10171018
retry (google.api_core.retry.Retry): Designation of what errors, if any,
10181019
should be retried.
10191020
timeout (float): The timeout for this request.
@@ -1107,8 +1108,8 @@ async def sample_generate_exclusivity_manifest():
11071108
11081109
Args:
11091110
request (Optional[Union[google.cloud.gkehub_v1beta1.types.GenerateExclusivityManifestRequest, dict]]):
1110-
The request object. The request to generate the
1111-
manifests for exclusivity artifacts.
1111+
The request object. The request to generate the manifests
1112+
for exclusivity artifacts.
11121113
retry (google.api_core.retry.Retry): Designation of what errors, if any,
11131114
should be retried.
11141115
timeout (float): The timeout for this request.

0 commit comments

Comments
 (0)