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

Commit 7f7fae9

Browse files
docs: Fix formatting of request arg in docstring (#53)
* 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 179854a commit 7f7fae9

File tree

2 files changed

+16
-30
lines changed

2 files changed

+16
-30
lines changed

‎google/cloud/api_keys_v2/services/api_keys/async_client.py

+8-15
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,7 @@ async def sample_create_key():
261261
262262
Args:
263263
request (Optional[Union[google.cloud.api_keys_v2.types.CreateKeyRequest, dict]]):
264-
The request object. Request message for `CreateKey`
265-
method.
264+
The request object. Request message for ``CreateKey`` method.
266265
parent (:class:`str`):
267266
Required. The project in which the
268267
API key is created.
@@ -406,8 +405,7 @@ async def sample_list_keys():
406405
407406
Args:
408407
request (Optional[Union[google.cloud.api_keys_v2.types.ListKeysRequest, dict]]):
409-
The request object. Request message for `ListKeys`
410-
method.
408+
The request object. Request message for ``ListKeys`` method.
411409
parent (:class:`str`):
412410
Required. Lists all API keys
413411
associated with this project.
@@ -523,7 +521,7 @@ async def sample_get_key():
523521
524522
Args:
525523
request (Optional[Union[google.cloud.api_keys_v2.types.GetKeyRequest, dict]]):
526-
The request object. Request message for `GetKey` method.
524+
The request object. Request message for ``GetKey`` method.
527525
name (:class:`str`):
528526
Required. The resource name of the
529527
API key to get.
@@ -627,8 +625,7 @@ async def sample_get_key_string():
627625
628626
Args:
629627
request (Optional[Union[google.cloud.api_keys_v2.types.GetKeyStringRequest, dict]]):
630-
The request object. Request message for `GetKeyString`
631-
method.
628+
The request object. Request message for ``GetKeyString`` method.
632629
name (:class:`str`):
633630
Required. The resource name of the
634631
API key to be retrieved.
@@ -735,8 +732,7 @@ async def sample_update_key():
735732
736733
Args:
737734
request (Optional[Union[google.cloud.api_keys_v2.types.UpdateKeyRequest, dict]]):
738-
The request object. Request message for `UpdateKey`
739-
method.
735+
The request object. Request message for ``UpdateKey`` method.
740736
key (:class:`google.cloud.api_keys_v2.types.Key`):
741737
Required. Set the ``name`` field to the resource name of
742738
the API key to be updated. You can update only the
@@ -873,8 +869,7 @@ async def sample_delete_key():
873869
874870
Args:
875871
request (Optional[Union[google.cloud.api_keys_v2.types.DeleteKeyRequest, dict]]):
876-
The request object. Request message for `DeleteKey`
877-
method.
872+
The request object. Request message for ``DeleteKey`` method.
878873
name (:class:`str`):
879874
Required. The resource name of the
880875
API key to be deleted.
@@ -992,8 +987,7 @@ async def sample_undelete_key():
992987
993988
Args:
994989
request (Optional[Union[google.cloud.api_keys_v2.types.UndeleteKeyRequest, dict]]):
995-
The request object. Request message for `UndeleteKey`
996-
method.
990+
The request object. Request message for ``UndeleteKey`` method.
997991
retry (google.api_core.retry.Retry): Designation of what errors, if any,
998992
should be retried.
999993
timeout (float): The timeout for this request.
@@ -1087,8 +1081,7 @@ async def sample_lookup_key():
10871081
10881082
Args:
10891083
request (Optional[Union[google.cloud.api_keys_v2.types.LookupKeyRequest, dict]]):
1090-
The request object. Request message for `LookupKey`
1091-
method.
1084+
The request object. Request message for ``LookupKey`` method.
10921085
retry (google.api_core.retry.Retry): Designation of what errors, if any,
10931086
should be retried.
10941087
timeout (float): The timeout for this request.

‎google/cloud/api_keys_v2/services/api_keys/client.py

+8-15
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,7 @@ def sample_create_key():
496496
497497
Args:
498498
request (Union[google.cloud.api_keys_v2.types.CreateKeyRequest, dict]):
499-
The request object. Request message for `CreateKey`
500-
method.
499+
The request object. Request message for ``CreateKey`` method.
501500
parent (str):
502501
Required. The project in which the
503502
API key is created.
@@ -641,8 +640,7 @@ def sample_list_keys():
641640
642641
Args:
643642
request (Union[google.cloud.api_keys_v2.types.ListKeysRequest, dict]):
644-
The request object. Request message for `ListKeys`
645-
method.
643+
The request object. Request message for ``ListKeys`` method.
646644
parent (str):
647645
Required. Lists all API keys
648646
associated with this project.
@@ -758,7 +756,7 @@ def sample_get_key():
758756
759757
Args:
760758
request (Union[google.cloud.api_keys_v2.types.GetKeyRequest, dict]):
761-
The request object. Request message for `GetKey` method.
759+
The request object. Request message for ``GetKey`` method.
762760
name (str):
763761
Required. The resource name of the
764762
API key to get.
@@ -862,8 +860,7 @@ def sample_get_key_string():
862860
863861
Args:
864862
request (Union[google.cloud.api_keys_v2.types.GetKeyStringRequest, dict]):
865-
The request object. Request message for `GetKeyString`
866-
method.
863+
The request object. Request message for ``GetKeyString`` method.
867864
name (str):
868865
Required. The resource name of the
869866
API key to be retrieved.
@@ -970,8 +967,7 @@ def sample_update_key():
970967
971968
Args:
972969
request (Union[google.cloud.api_keys_v2.types.UpdateKeyRequest, dict]):
973-
The request object. Request message for `UpdateKey`
974-
method.
970+
The request object. Request message for ``UpdateKey`` method.
975971
key (google.cloud.api_keys_v2.types.Key):
976972
Required. Set the ``name`` field to the resource name of
977973
the API key to be updated. You can update only the
@@ -1108,8 +1104,7 @@ def sample_delete_key():
11081104
11091105
Args:
11101106
request (Union[google.cloud.api_keys_v2.types.DeleteKeyRequest, dict]):
1111-
The request object. Request message for `DeleteKey`
1112-
method.
1107+
The request object. Request message for ``DeleteKey`` method.
11131108
name (str):
11141109
Required. The resource name of the
11151110
API key to be deleted.
@@ -1227,8 +1222,7 @@ def sample_undelete_key():
12271222
12281223
Args:
12291224
request (Union[google.cloud.api_keys_v2.types.UndeleteKeyRequest, dict]):
1230-
The request object. Request message for `UndeleteKey`
1231-
method.
1225+
The request object. Request message for ``UndeleteKey`` method.
12321226
retry (google.api_core.retry.Retry): Designation of what errors, if any,
12331227
should be retried.
12341228
timeout (float): The timeout for this request.
@@ -1323,8 +1317,7 @@ def sample_lookup_key():
13231317
13241318
Args:
13251319
request (Union[google.cloud.api_keys_v2.types.LookupKeyRequest, dict]):
1326-
The request object. Request message for `LookupKey`
1327-
method.
1320+
The request object. Request message for ``LookupKey`` method.
13281321
retry (google.api_core.retry.Retry): Designation of what errors, if any,
13291322
should be retried.
13301323
timeout (float): The timeout for this request.

0 commit comments

Comments
 (0)