-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-15369][YBA CLI]Backup list-increments doesn't support pretty/js…
…on outputs Summary: The common backup info had formatter described only for table layout. Changed the structure to support JSON and YAML Test Plan: ``` ./yba backup list-increments --backup-uuid 7251123c-4c27-44ec-8401-ba08b439a9d4 -o pretty [ { "backupUUID": "7251123c-4c27-44ec-8401-ba08b439a9d4", "baseBackupUUID": "7251123c-4c27-44ec-8401-ba08b439a9d4", "completionTime": "2024-08-26T11:35:45Z", "createTime": "2024-08-26T11:35:17Z", "kmsConfigUUID": "", "responseList": [ { "allTables": true, "backupPointInTimeRestoreWindow": { "timestampRetentionWindowEndMillis": 0, "timestampRetentionWindowStartMillis": 0 }, "backupSizeInBytes": 3053549, "defaultLocation": "s3://dkumar-test/univ-8c398f38-5e18-4242-83f2-185c2127d5d6/ybc_backup-7251123c4c2744ec8401ba08b439a9d4/full/2024-08-26T11:35:17/multi-table-postgres_4ad4ee9937a2464b8d6c644bc0f1d1dd", "keyspace": "postgres", "perRegionLocations": null, "tableUUIDList": [], "tablesList": [] } ], "sse": true, "state": "Completed", "storageConfigUUID": "ed40cbf8-576b-4517-88c5-a7bb4e876363", "tableByTableBackup": false, "taskUUID": "dee5c208-fa32-492c-9996-67c2484a54c7", "totalBackupSizeInBytes": 3053549, "updateTime": "2024-08-26T11:35:59Z" } ] ``` Reviewers: skurapati Reviewed By: skurapati Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D38192
- Loading branch information
Showing
6 changed files
with
354 additions
and
256 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
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
223 changes: 0 additions & 223 deletions
223
managed/yba-cli/internal/formatter/backup/common_backup_info.go
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.