gapic-generator-python
gapic-generator-python copied to clipboard
fix: Fix remaining REST transport issues
This change depends on https://github.com/googleapis/python-api-core/pull/428 and needs api-core-2.9.0 to be released
This includes:
- Use message-based transcoding logic instead of dictionary-based. This fixes multiple bugs caused by dict-json-object representation mismatches fro protobuf objects. This also removes a lot of
json->dict->object->proto-plus
object conversion overhead, which was slow and very error-prone. Now all transcodding and rest-transport-specific logic is executed in terms of native protobuf (_pb
) stubs objects. No dicts, no proto-plus, no unnecessary conversions. - Fix for non-proto-plus objects in rest.py transport and in tests. This essential for APIs which have IAM methods defined on their surface.
- Fix support for Any field in tests
- Fix creation of mock_values (do
mock_value1
instead ofmock_value_1
, sincemock_value_1
causes issues forFieldMask
mocks
The showcase tests need to wait till api-core-2.9.0 gets released to pypi