gapic-generator-python
gapic-generator-python copied to clipboard
Generate Python API client libraries from Protocol Buffers.
Goal is to address https://github.com/googleapis/gapic-generator-python/issues/1407
If I try to set `enable_flow_logs` using the code provided in https://github.com/googleapis/python-compute/issues/207, I get http error 400 `If enable flow logging and enable in LogConfig are both set, they must...
## Issue - The autogenerated protobuf classes are of the following form: ```python class ProtobufClass(proto.Message): """... Attributes: # Primitive types attribute_1 (str):... attribute_2 (int):... attribute_3 (float):... ... # Compound types...
The following code is failing the mypy test in https://github.com/googleapis/python-datastore/pull/306 ``` metadata = tuple(metadata) + ( gapic_v1.routing_header.to_grpc_metadata((("project_id", ""),)), ) ``` The error is ``` nox > mypy google/ tests/ tests/unit/gapic/datastore_admin_v1/test_datastore_admin.py:1817:...
As of 2/22/2022 the showcase mtls and showcase mtls alternative template tests have become unusable and flaky. They hang when run in CI and after ~5 hours are eventually killed....
## Issue - This is a follow-up to [#986](https://github.com/googleapis/gapic-generator-python/issues/986) (closed). Retesting the recent `google-cloud-documentai==1.5.0` version, the issue is still present. - This code is valid: ``` import google.cloud.documentai_v1 as documentai...
This improves the performance dramatically for large type hierarchies. Addresses #950
This generator fails when there is a type reference to a very large protobuf type tree. (For example, the types described at https://github.com/google/fhir/tree/master/proto/google/fhir/proto ). Initial debugging appears to show that...
Implements MixIns support in REST. The implementation is different than what was used for GRPC version. Special wrappers for MixIns are created to make the code less repetitive. In a...
Fixes #1252 Dividing the classes for each proto into 3 separate files: * %proto/requests.py.j2 * %proto/responses.py.j2 * %proto/__init__.py.j2 The division is pretty simple. All "...Request" classes go to `requests.py` file,...