gapic-generator-python
gapic-generator-python copied to clipboard
Generate Python API client libraries from Protocol Buffers.
As we add test coverage for asynchronous and synchronous rest transport methods to `rest_transport_specific_tests` in `test_macros.j2`, the relevant macros should be cleaned up from the `rest_required_tests` macro to avoid generating...
For a proto plus method, we do the following type conversion for a non-streaming response: ``` pb_resp = {{method.output.ident}}.pb(resp) ``` We need to investigate if this is needed for a...
Update the credentials type hint in the async client constructor to include asynchronous credentials i.e. async credentials should also support `google.auth.aio.credentials.Credentials` which are required by the async rest transport. For...
Ensure that the installed version of `google-api-core` has the necessary features required to use async rest transport. If the correct version is not installed, then an exception must be raised....
Avoid setting the routing metadata field (`x-goog-request-params`) if it already exists in the passed in metadata, to prevent duplicate routing headers Fixes https://github.com/googleapis/gapic-generator-python/issues/2078
Implement async rest client streaming api methods in the async rest transport layer to add support for async rest client streaming. Also add unit test coverage and add an e2e...
The credentials parameter in base rest transport has a type hint set to `Any` to support async and sync credential types in the parent rest transport classes. However, we should...
Currently, we don't test if the retry logic is correctly applied to async gRPC or rest methods via `google.api_core.retry_async.AsyncRetry`. We should add tests to verify that the retry logic works...
The return type of callable property methods in `rest_asyncio.py` is ignored to silence mypy errors by adding a `# type: ignore` comment. Follow up, investigate, and remove the comment by...
Adds cred info to error details for 401/403/404 errors. See go/python-auth-error-message-improvement. Manually tested with KMS client: https://github.com/arithmetic1728/google-cloud-python/pull/1