-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement support for
DeletionProtection
(#50)
## Problem Our other SDKs support the deletion protection feature with the latest major releases tied to the `2024-07` API version. We need to implement deletion protection in the Go SDK. ## Solution - Add new `DeletionProtection` enum type to `models.go`. - Update `CreatePodIndexRequest`, `CreateServerlessIndexRequest`, and `Index` to include `DeletionProtection`. - Update `ConfigureIndex` to support a `ConfigureIndexParams` struct argument. This aligns more closely with our other SDKs, and makes it easier to pass configurations of arguments without needing to explicitly pass `nil`. ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [] New feature (non-breaking change which adds functionality) - [X] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update - [ ] Infrastructure change (CI configs, etc) - [ ] Non-code change (docs, etc) - [ ] None of the above: (explain here) ## Test Plan Test serverless and pod creation functions to make sure `DeletionProtection` defaults to `disabled`, and vice versa when provided. Test `ConfigureIndex` to make sure configuring an index without passing `DeletionProtection` doesn't override things.
- Loading branch information
1 parent
3da0e9d
commit 08d2c76
Showing
3 changed files
with
274 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.