Releases: googleapis/gapic-generator-python
Releases · googleapis/gapic-generator-python
gapic-generator 0.24.0
Features
- Add routing headers for non client streaming method calls
- Very early incomplete support for proto3 optional
Docs
- Add documentation describing how to invoke the microgenerator via Bazel
Bugfixes
- Disambiguate mtls semantics
- Resource helper method order stabilized in output
Testing
- Add systest for resource path parsing
- Add systest for non slash-delimited resource paths
Misc
- Remove lazy import in non ads-templates
gapic-generator 0.23.0
gapic-generator 0.22.0
gapic-generator 0.21.1
gapic-generator 0.21.0
Features
- Add a parallel set of templates for https://github.com/googleads/google-ads-python/
- Add mutual TLS support
- Implement resource path parsing methods in generated clients
Bugfixes
- Adds type annotation for a nested function
- Option parsing ignores whitespace after tokenization
Documentation
- Removed
proof of concept
and updated ownership in README.md
gapic-generator 0.20.0
Features
- Add support for building GAPICs with Bazel
- Add a naming workaround for certain APIs that require alternative directory structures
Bugfixes
- Generated unit tests that check method flattening properly handle deeply nested fields
- Map fields are properly handled in generated unit tests
- Client classes now have helper functions for resources nested deeply in the request message
- Messages with enum fields whose type is defined subsequently are handled correctly
Documentation
- The
Getting Started
documentation correctly describes client default instantiation
gapic-generator 0.19.0
Bugfixes
- Flattened fields can no longer generate naming conflicts with imported modules
- A common case where LRO annotations reference unimported types is permitted
- Modules whose names are python keywords are automatically disambiguated
- Cross package request types with no flattened fields no longer generate crashing GAPIC
- Paginated result types are imported properly for paginated methods
- Syntax errors fixed in doc templates
gapic-generator 0.18.0
Bugfixes
- Generated
setup.py
contains requirement on Google IAM when applicable - Client methods that send IAM messages as requests handled specially
- Generated unit tests that check floating point message fields use
math.isclose
- Fix minor naming issue with generated unit tests for resource name methods
gapic-generator 0.17.0
gapic-generator 0.16.0
Features
- Add a WIP optional lazy-import feature. Submodule
__init__.py
files use module level__getattr__
andimportlib
to selectively load sub-submodules, deferring import costs until submodules or types are used. - Streaming method support is improved and fleshed out.
- The semantics of the conversion script have changed: a single script is generated per API instead of one script per service. The script modifies a copy of its input directory and does not change the input source files.
- Nested message types in proto files produce import statements in generated unit tests.
- Generated gRPC transports gain a
create_channel
factory method that passes arbitrary keyword arguments through togrpc_helpers.create_channel
Tests
- Test that nested message types generate import statements.
- Add grpc streaming interceptor tests.
- Add tests for the alternative module import semantics.
Misc
- The
enums
submodule has been removed from the generated surface.