-
Notifications
You must be signed in to change notification settings - Fork 154
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
feat: make retry parameter public and added in other methods #331
Changes from 1 commit
d0af8e3
4424b59
674b0f2
3d36abb
e204297
71bdd7e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,7 +190,9 @@ def reload( | |
blob's current metageneration does not match the given value. | ||
|
||
:type retry: google.api_core.retry.Retry | ||
:param retry: (Optional) How to retry the RPC. | ||
:param retry: (Optional) How to retry the RPC. To modify the default retry behavior, | ||
create a new retry object modeled after this one by calling it a ``with_XXX`` method. | ||
See: https://googleapis.dev/python/google-api-core/latest/retry.html for details. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (Optional) How to retry the RPC. A A See the |
||
""" | ||
client = self._require_client(client) | ||
query_params = self._query_params | ||
|
@@ -293,7 +295,9 @@ def patch( | |
blob's current metageneration does not match the given value. | ||
|
||
:type retry: google.api_core.retry.Retry | ||
:param retry: (Optional) How to retry the RPC. | ||
:param retry: (Optional) How to retry the RPC. To modify the default retry behavior, | ||
create a new retry object modeled after this one by calling it a ``with_XXX`` method. | ||
See: https://googleapis.dev/python/google-api-core/latest/retry.html for details. | ||
""" | ||
client = self._require_client(client) | ||
query_params = self._query_params | ||
|
@@ -371,7 +375,9 @@ def update( | |
blob's current metageneration does not match the given value. | ||
|
||
:type retry: google.api_core.retry.Retry | ||
:param retry: (Optional) How to retry the RPC. | ||
:param retry: (Optional) How to retry the RPC. To modify the default retry behavior, | ||
create a new retry object modeled after this one by calling it a ``with_XXX`` method. | ||
See: https://googleapis.dev/python/google-api-core/latest/retry.html for details. | ||
""" | ||
client = self._require_client(client) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically either google.api_core.retry.Retry or google.cloud.storage.retry.ConditionalRetryPolicy are supported here, and in some cases ConditionalRetryPolicy is the default so despite the complexity we should document it here.