gapic-generator-python
gapic-generator-python copied to clipboard
Generate Python API client libraries from Protocol Buffers.
An autogenerated snippet for google-cloud-access-approval needs to await the request call for the sample code to work as expected. Current behaviour: ```python3 # Make the request page_result = client.list_approval_requests(request=request) ```...
Dependency `google-cloud-common` is needed in the generated client for `google-cloud-filestore`. See the dependency in `setup.py` which was added manually. https://github.com/googleapis/python-filestore/blob/bf24f012b9296d2e744887d5bcf67185aa0ccbac/setup.py#L43 The dependency should be added to the templates [here](https://github.com/googleapis/gapic-generator-python/blob/ecf4bb0bae89c87afa5bb3c6dd307793a4e7e80b/gapic/templates/_pypi_packages.j2#L12C1-L12C1) so...
Unused imports should be removed from generated test code. This may be fixed automatically if we add static analysis (`mypy`) checks on the `tests` directory. Currently we're only running `mypy`...
There are a lot of customizations made to the generated for `gkehub`. See the customizations here https://github.com/googleapis/python-gke-hub/blob/6e9144cb5a9badd2f8a95cfaf2577f86b197ccf6/owlbot.py#L44 One issue is that there are sub-APIs `configmanagement` and `multiclusteringress` which are included...
See the issue mentioned in https://github.com/googleapis/google-cloud-python/issues/10998#issuecomment-1509873131 where change is needed to the generator to specify additional dependencies that are required when multiple APIs are shipped together. In this case, `grpc-google-iam-v1`...
There are currently a lot of customizations for the `grafeas` client which were introduced in https://github.com/googleapis/google-cloud-python/pull/8186/ via the `synth.py` file. This issue tracks adding support for the customizations in `gapic-generator-python`...
In PR https://github.com/googleapis/google-cloud-python/pull/11808, the `api_id` field in `packages/google-shopping-merchant-inventories/.repo-metadata.json` is set to `inventories.googleapis.com`. This is incorrect. The correct `api_id` should be `merchantapi.googleapis.com`. See https://github.com/googleapis/googleapis/blob/2c12a275b10a2f04926a1505a5fd1b8acf4a6833/google/shopping/merchant/inventories/v1beta/merchantapi_v1beta.yaml#L3C7-L3C33
I had to manually fix the docs build to unblock a [release PR](https://github.com/googleapis/google-cloud-python/pull/11913) that had a comment looking like this: ``` Currently support query strings are: ------------------------------------ ``SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED`` ``` The...
See https://github.com/googleapis/googleapis/blob/492e772e24f4122600c0e106945075a8ff3f6255/google/cloud/edgenetwork/v1/resources.proto#L553-L555 where there a list without a list item separator. The proto has ``` // Time this session has been up. // Format: // 14 years, 51 weeks, 6...
Python [3.13.0-alpha.1](https://github.com/actions/python-versions/releases/tag/3.13.0-alpha.1-6531259803) is available. We can use the [allow-prereleases](https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#allow-pre-releases) option of `actions/setup-python` to add a presubmit check against a pre-release version of the runtime. https://github.com/googleapis/gapic-generator-python/blob/746466b49d46059375e66f713befb39d718d5c4f/.github/workflows/tests.yaml#L140