Skip to content

Releases: googleapis/gapic-generator-python

gapic-generator 0.24.0

10 Jun 20:51
a48ff4d
Compare
Choose a tag to compare
Pre-release

release level documentation

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

13 May 18:29
117d110
Compare
Choose a tag to compare
Pre-release

release level documentation

Features

  • Add an opt_args parameter to the py_gapic_library Bazel rule
  • The docker image uses the latest version of api-common-protos

Bugfixes

  • Template directories paths are turned into absolute paths

gapic-generator 0.22.0

05 May 18:20
e9f9d33
Compare
Choose a tag to compare
Pre-release

release level documentation

Bugfixes

  • Fix for bazel rule in a Python 3.6 environment
  • Adjust dependency requirements
  • Clean up and fix lazy import for alternative templates
  • All messages and enums are exported by top level (versionless) and versioned module views

Testing

  • Lazy import is properly tested

gapic-generator 0.21.1

20 Apr 17:13
1b30037
Compare
Choose a tag to compare
Pre-release

release level documentation

Bugfixes

  • Fixes a minor lint issue
  • Adds the MarkupSafe Bazel rule dependency

gapic-generator 0.21.0

16 Apr 23:45
b776902
Compare
Choose a tag to compare
Pre-release

release level documentation

Features

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

24 Mar 21:32
063e1a1
Compare
Choose a tag to compare
Pre-release

release level documentation

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

04 Mar 01:01
2884e72
Compare
Choose a tag to compare
Pre-release

release level documentation

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

26 Feb 23:54
9d0f812
Compare
Choose a tag to compare
Pre-release

release level documentation

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

22 Feb 01:36
e194948
Compare
Choose a tag to compare
Pre-release

release level documentation

Bugfixes

  • Empty method signature annotations are handled gracefully

gapic-generator 0.16.0

21 Feb 23:42
60a4e51
Compare
Choose a tag to compare
Pre-release

release level documentation

Features

  • Add a WIP optional lazy-import feature. Submodule __init__.py files use module level __getattr__ and importlib 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 to grpc_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.