edge-connect-client/cmd
Richard Robert Reitz df697c0ff6 fix(sdk): correct delete payload structure for v2 API and add delete command
The v2 API requires a different JSON payload structure than what was being sent.
Both DeleteApp and DeleteAppInstance needed to wrap their parameters properly.

SDK Changes:
- Update DeleteAppInput to use {region, app: {key}} structure
- Update DeleteAppInstanceInput to use {region, appinst: {key}} structure
- Fix DeleteApp method to populate new payload structure
- Fix DeleteAppInstance method to populate new payload structure

CLI Changes:
- Add delete command with -f flag for config file specification
- Support --dry-run to preview deletions
- Support --auto-approve to skip confirmation
- Implement v1 and v2 API support following same pattern as apply
- Add deletion planner to discover resources matching config
- Add resource manager to execute deletions (instances first, then app)

Test Changes:
- Update example_test.go to use EdgeConnectConfig_v1.yaml
- All tests passing including comprehensive delete test coverage

Verified working with manual API testing against live endpoint.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-20 15:15:23 +02:00
..
app.go feat(config): add API version selector for v1 and v2 2025-10-20 13:41:50 +02:00
app_test.go feat(validation): Added validation of baseURL config 2025-09-29 10:48:52 +02:00
apply.go feat(apply): add v1 API support to apply command 2025-10-20 13:57:57 +02:00
delete.go fix(sdk): correct delete payload structure for v2 API and add delete command 2025-10-20 15:15:23 +02:00
instance.go feat(config): add API version selector for v1 and v2 2025-10-20 13:41:50 +02:00
root.go feat(config): add API version selector for v1 and v2 2025-10-20 13:41:50 +02:00