gapic-generator-python
gapic-generator-python copied to clipboard
Generate Python API client libraries from Protocol Buffers.
`rest_method_bad_request_test` macro generates unit tests to test a rest method call which raises a `BadRequest` error. We should refactor this macro and make it generic so that it generates unit...
Currently, `run_transport_tests_for_config` is guarded and only generates tests for `rest` transport. Migrate `gRPC` tests into `run_transport_tests_for_config` and make any of the macros which are called within it more generic. The...
The macro `shared_macros.create_interceptor_class` which generates an interceptor class for async / sync rest transport currently guards generation of asynchronous interceptor class methods for the following type of api methods: -...
See build log [here](https://github.com/googleapis/gapic-generator-python/actions/runs/10951846366/job/30409611496) where the mixin tests fail for Ads templates in PR https://github.com/googleapis/gapic-generator-python/pull/2175 See stack trace below ``` tests/system/test_mixins.py:75: _ _ _ _ _ _ _ _ _...
Add `kind` property to transport in ads templates which was added in https://github.com/googleapis/gapic-generator-python/pull/2123
In `prep_wrapped_messages_async_method` macro, update the mixin method names to use `transport_safe_name` similar to what we do for non-mixin methods within the same macro. The exact code location can be looked...
We have the following assert statement in our unit tests for paginated methods: ``` assert response.raw_page is response ``` This statement is added particularly to add code coverage for bad...
We want to generate `_Mixin` classes and `@property` methods into separate macros so that `_Method` and `_Mixin` classes can be defined all together and the @property methods for each can...
The default type of credentials within `rest_asyncio.py.j2` needs to be updated to `google.auth.aio.credentials.Credentials` once we leverage `google.auth.aio` within the template. Consequently, the default type of the base rest class needs...
The following parameters need to be supported in asynchronous REST transport class for feature parity with synchronous REST: ``` "google.api_core.client_options.ClientOptions.credentials_file", "google.api_core.client_options.ClientOptions.scopes", "google.api_core.client_options.ClientOptions.quota_project_id", "google.api_core.client_options.ClientOptions.client_cert_source", "google.api_core.client_options.ClientOptions.api_audience", ```