Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix timeout default values #1480

Merged
merged 13 commits into from
Dec 5, 2022
Merged

fix: Fix timeout default values #1480

merged 13 commits into from
Dec 5, 2022

Conversation

vam-google
Copy link
Contributor

@vam-google vam-google commented Oct 27, 2022

Also fix LRO for REST transport. This PR makes generated gapics appreciate timeout values from grpc_service_config.json instead of overriding them with None (which means no timeout)

It is basically a direct fix for #1477.

This PR depends on googleapis/python-api-core#462, and expects setup.py.j2 templates to be updated after googleapis/python-api-core#462 gets pushed and released with new version.

BEGIN_COMMIT_OVERRIDE
fix: Fix timeout default values
fix(deps): require google-api-core >=1.34.0, >=2.11.0
END_COMMIT_OVERRIDE

Fixes #1477.

Also fix LRO for REST transport. This PR makes generated gapics appeciate timeout values from grpc_service_config.json instead of overriding them with None (which means no timeout)

It is basically a direct fix for googleapis#1477.

This PR depends on googleapis/python-api-core#462, and expects `setup.py.j2` templates to be updated after googleapis/python-api-core#462 gets pushed and released with new version.
@vam-google vam-google requested review from a team as code owners October 27, 2022 02:49
@product-auto-label product-auto-label bot added the size: l Pull request size is large. label Oct 27, 2022
@vam-google
Copy link
Contributor Author

@igorbernstein2 PTAL

Copy link

@igorbernstein2 igorbernstein2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the default looks correct, but maybe you want to use type-extensions to narrow the type annotation to a Literal instead of object?

@parthea parthea added the owlbot:run Add this label to trigger the Owlbot post processor. label Dec 5, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Dec 5, 2022
@parthea parthea added the owlbot:run Add this label to trigger the Owlbot post processor. label Dec 5, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Dec 5, 2022
@parthea parthea merged commit 6de9e28 into googleapis:main Dec 5, 2022
@parthea parthea added the release-please:force-run To run release-please label Dec 5, 2022
@release-please release-please bot removed the release-please:force-run To run release-please label Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing default deadlines in generated stubs
3 participants