Updates for retry documentation for cloud storage #658
Labels
api: storage
Issues related to the googleapis/python-storage API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
🚨
This issue needs some love.
samples
Issues that are directly related to samples.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I was looking at this doc on how to use Retry and ConditionalRetryPolicy. Two things I came across:
For ConditionalRetryPolicy this is the example code:
Looking at the source code there is an additional parameter
required_kwargs
forConditionalRetryPolicy
that is missing from the example. It should be:The documentation below this example mentions the
required_kwargs
parameter but not in a way I was able to make sense of as an end user:Since it seems like the
required_kwargs
should always be['query_params']
from the client PoV it might make sense to set this as a default, or update the documentation to explicitly mention this value.For
Retry
- if its intended that end users can useDEFAULT_RETRY
as in this comment it would be hepful to see that alongside the current Retry example:OR
Thanks!
The text was updated successfully, but these errors were encountered: