feat(cloud): add task list, database flush, and available-versions commands #477
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Implements three Cloud API endpoints requested for v1.0:
New Commands
cloud task list- List all tasks for this account (feat(cloud): add GET /tasks endpoint to list all tasks #465)cloud database flush <id>- Flush standard (non-AA) databases (feat(cloud): add flush endpoint for non-Active-Active databases #467)--forceto skip)flush-crdbfor Active-Active databasescloud database available-versions <id>- Get available Redis upgrade versions (feat(cloud): add available-target-versions endpoint for databases #466)Library Changes
redis-cloud: Addedget_all_tasksandget_all_tasks_rawmethods to TasksHandlerredis-cloud: Addedget_available_target_versionsto DatabaseHandler (Pro)redis-cloud: Addedget_available_target_versionsto FixedDatabaseHandler (Essentials)redis-cloud: Addedflush_databasemethod for standard databasesTesting
cargo clippypasses with no warningscargo fmtappliedCloses #465, #466, #467