Skip to content

Commit

Permalink
feat: Enable automatic retries for create RenameFolder LRO in Storage…
Browse files Browse the repository at this point in the history
… Control API (#2410)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 606359578

Source-Link: https://togithub.com/googleapis/googleapis/commit/62dec60db791b8ff8b21dfed22c8b2c17660ac58

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/73865e1181fc833f29439e1ab11f37b5d9d124b7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzM4NjVlMTE4MWZjODMzZjI5NDM5ZTFhYjExZjM3YjVkOWQxMjRiNyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Feb 13, 2024
1 parent d318fc6 commit b0450b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.31.0')
implementation platform('com.google.cloud:libraries-bom:26.32.0')
implementation 'com.google.cloud:google-cloud-storage'
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ private static Builder initDefaults(Builder builder) {

builder
.renameFolderSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));

builder
.getStorageLayoutSettings()
Expand All @@ -469,8 +469,8 @@ private static Builder initDefaults(Builder builder) {
.setInitialCallSettings(
UnaryCallSettings
.<RenameFolderRequest, OperationSnapshot>newUnaryCallSettingsBuilder()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"))
.build())
.setResponseTransformer(
ProtoOperationTransformers.ResponseTransformer.create(Folder.class))
Expand Down

0 comments on commit b0450b8

Please sign in to comment.