gapi-generator 0.14.0
Pre-release
Pre-release
Breaking Changes
- The template interpolation token is now % instead of $
- Method flattening semantics have changed
Features
- Add support and testing for Python 3.8
- GAPIC clients define helper functions that describe resource paths for types used in request message fields
- Paginated response objects have a 'pages' and 'raw_pages' property that provides an iterator over the paginated response messages
- Generated clients gain an optional, keyword only 'client_options' parameter. Currently, only client endpoint is configurable
Generator now creates a script per service to facilitate user code from the monolithic style flattening to microgenerator style flattening - Sample configs can use resource path syntax in request construction
- Add a command line parameter describing the path of an optional service config
- Duplicate sample configs generate an error
- Sample config response handling can use dictionary references or list-indexed expressions
- Sample config request construction can use primitive values
Bugfixes
- Use absolute paths when invoking generator docker image
- Sample generation works when generator is invoked as a protobuf plugin
Documentation
- All generated files contain copyright and license information
- Showcase dependency is updated
Tests
- Add generated unit tests for reading service config files
- Add generated unit tests for passing 'client_options' and respecting configured endpoint
- Update generated tests for method flattening
- Add generated tests for 'pages' and 'raw_pages' properties
- Add generated tests for resource path methods
- Add system test for pages property
- Add unit tests for duplicate sample configs
- Add unit test for sample configs that use resource paths
- Add unit test for primitive values in sample config request construction
- Add samplegen unit tests for resource based functionality