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

Commit

Permalink
docs: Fix formatting of request arg in docstring (#53)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Mar 23, 2023
1 parent 179854a commit 7f7fae9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 30 deletions.
23 changes: 8 additions & 15 deletions google/cloud/api_keys_v2/services/api_keys/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ async def sample_create_key():
Args:
request (Optional[Union[google.cloud.api_keys_v2.types.CreateKeyRequest, dict]]):
The request object. Request message for `CreateKey`
method.
The request object. Request message for ``CreateKey`` method.
parent (:class:`str`):
Required. The project in which the
API key is created.
Expand Down Expand Up @@ -406,8 +405,7 @@ async def sample_list_keys():
Args:
request (Optional[Union[google.cloud.api_keys_v2.types.ListKeysRequest, dict]]):
The request object. Request message for `ListKeys`
method.
The request object. Request message for ``ListKeys`` method.
parent (:class:`str`):
Required. Lists all API keys
associated with this project.
Expand Down Expand Up @@ -523,7 +521,7 @@ async def sample_get_key():
Args:
request (Optional[Union[google.cloud.api_keys_v2.types.GetKeyRequest, dict]]):
The request object. Request message for `GetKey` method.
The request object. Request message for ``GetKey`` method.
name (:class:`str`):
Required. The resource name of the
API key to get.
Expand Down Expand Up @@ -627,8 +625,7 @@ async def sample_get_key_string():
Args:
request (Optional[Union[google.cloud.api_keys_v2.types.GetKeyStringRequest, dict]]):
The request object. Request message for `GetKeyString`
method.
The request object. Request message for ``GetKeyString`` method.
name (:class:`str`):
Required. The resource name of the
API key to be retrieved.
Expand Down Expand Up @@ -735,8 +732,7 @@ async def sample_update_key():
Args:
request (Optional[Union[google.cloud.api_keys_v2.types.UpdateKeyRequest, dict]]):
The request object. Request message for `UpdateKey`
method.
The request object. Request message for ``UpdateKey`` method.
key (:class:`google.cloud.api_keys_v2.types.Key`):
Required. Set the ``name`` field to the resource name of
the API key to be updated. You can update only the
Expand Down Expand Up @@ -873,8 +869,7 @@ async def sample_delete_key():
Args:
request (Optional[Union[google.cloud.api_keys_v2.types.DeleteKeyRequest, dict]]):
The request object. Request message for `DeleteKey`
method.
The request object. Request message for ``DeleteKey`` method.
name (:class:`str`):
Required. The resource name of the
API key to be deleted.
Expand Down Expand Up @@ -992,8 +987,7 @@ async def sample_undelete_key():
Args:
request (Optional[Union[google.cloud.api_keys_v2.types.UndeleteKeyRequest, dict]]):
The request object. Request message for `UndeleteKey`
method.
The request object. Request message for ``UndeleteKey`` method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1087,8 +1081,7 @@ async def sample_lookup_key():
Args:
request (Optional[Union[google.cloud.api_keys_v2.types.LookupKeyRequest, dict]]):
The request object. Request message for `LookupKey`
method.
The request object. Request message for ``LookupKey`` method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down
23 changes: 8 additions & 15 deletions google/cloud/api_keys_v2/services/api_keys/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,7 @@ def sample_create_key():
Args:
request (Union[google.cloud.api_keys_v2.types.CreateKeyRequest, dict]):
The request object. Request message for `CreateKey`
method.
The request object. Request message for ``CreateKey`` method.
parent (str):
Required. The project in which the
API key is created.
Expand Down Expand Up @@ -641,8 +640,7 @@ def sample_list_keys():
Args:
request (Union[google.cloud.api_keys_v2.types.ListKeysRequest, dict]):
The request object. Request message for `ListKeys`
method.
The request object. Request message for ``ListKeys`` method.
parent (str):
Required. Lists all API keys
associated with this project.
Expand Down Expand Up @@ -758,7 +756,7 @@ def sample_get_key():
Args:
request (Union[google.cloud.api_keys_v2.types.GetKeyRequest, dict]):
The request object. Request message for `GetKey` method.
The request object. Request message for ``GetKey`` method.
name (str):
Required. The resource name of the
API key to get.
Expand Down Expand Up @@ -862,8 +860,7 @@ def sample_get_key_string():
Args:
request (Union[google.cloud.api_keys_v2.types.GetKeyStringRequest, dict]):
The request object. Request message for `GetKeyString`
method.
The request object. Request message for ``GetKeyString`` method.
name (str):
Required. The resource name of the
API key to be retrieved.
Expand Down Expand Up @@ -970,8 +967,7 @@ def sample_update_key():
Args:
request (Union[google.cloud.api_keys_v2.types.UpdateKeyRequest, dict]):
The request object. Request message for `UpdateKey`
method.
The request object. Request message for ``UpdateKey`` method.
key (google.cloud.api_keys_v2.types.Key):
Required. Set the ``name`` field to the resource name of
the API key to be updated. You can update only the
Expand Down Expand Up @@ -1108,8 +1104,7 @@ def sample_delete_key():
Args:
request (Union[google.cloud.api_keys_v2.types.DeleteKeyRequest, dict]):
The request object. Request message for `DeleteKey`
method.
The request object. Request message for ``DeleteKey`` method.
name (str):
Required. The resource name of the
API key to be deleted.
Expand Down Expand Up @@ -1227,8 +1222,7 @@ def sample_undelete_key():
Args:
request (Union[google.cloud.api_keys_v2.types.UndeleteKeyRequest, dict]):
The request object. Request message for `UndeleteKey`
method.
The request object. Request message for ``UndeleteKey`` method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1323,8 +1317,7 @@ def sample_lookup_key():
Args:
request (Union[google.cloud.api_keys_v2.types.LookupKeyRequest, dict]):
The request object. Request message for `LookupKey`
method.
The request object. Request message for ``LookupKey`` method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down

0 comments on commit 7f7fae9

Please sign in to comment.