Upgrade recovery service backup sdk version from 2023-02-01 to 2024-10-01#29144
Conversation
2014-10-012024-10-01
2024-10-012023-02-01 to 2024-10-01
| } | ||
| } | ||
|
|
||
| func resourceBackupProtectionPolicyFileShareDelete(d *pluginsdk.ResourceData, meta interface{}) error { |
There was a problem hiding this comment.
Can you please move this back to where it was before, the CRUD methods should always be grouped together and not inter-spaced with expand or other functions.
There was a problem hiding this comment.
Sure. The original intention was to avoid false alarm of run-gradually-deprecated.sh. I'll put it back above read function to avoid it.
| } | ||
|
|
||
| if _, err := client.CreateOrUpdate(ctx, id, policy); err != nil { | ||
| if _, err := client.CreateOrUpdate(ctx, id, policy, protectionpolicies.CreateOrUpdateOperationOptions{}); err != nil { |
There was a problem hiding this comment.
We can call the default function to return the default options instead of sending an empty opts struct:
| if _, err := client.CreateOrUpdate(ctx, id, policy, protectionpolicies.CreateOrUpdateOperationOptions{}); err != nil { | |
| if _, err := client.CreateOrUpdate(ctx, id, policy, protectionpolicies.DefaultCreateOrUpdateOperationOptions()); err != nil { |
Can you please make this change for all the other methods that were updated
stephybun
left a comment
There was a problem hiding this comment.
Thanks @jiaweitao001 LGTM 👍
* new changelog for 4.26.0 * Update CHANGELOG.md #29212 * Update CHANGELOG.md #28786 * Update CHANGELOG.md for #29095 * Update CHANGELOG.md #29225 * Update CHANGELOG.md #29168 * Update CHANGELOG.md #28890 * Update CHANGELOG.md for #28689 * Update CHANGELOG.md #28354 * Update CHANGELOG.md #29240 * Update CHANGELOG.md for #29211 * Update CHANGELOG.md #29214 * Update CHANGELOG.md for #29209 * Update CHANGELOG.md for 28690 * Update CHANGELOG.md for #28577 * Update for #29217 #29144 #29145 * Update CHANGELOG.md for #29185 * prep for release --------- Co-authored-by: sreallymatt <[email protected]> Co-authored-by: catriona-m <[email protected]> Co-authored-by: Wyatt Fry <[email protected]> Co-authored-by: Matthew Frahry <[email protected]> Co-authored-by: Wodans Son <[email protected]> Co-authored-by: stephybun <[email protected]>
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Community Note
Description
New sdk version
2024-10-01has been released for recovery service backup, it supports more features.PR Checklist
For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_resource- support for thething1property [GH-00000]This is a (please select all that apply):
Related Issue(s)
Fixes #0000
Note
If this PR changes meaningfully during the course of review please update the title and description as required.