From 3f01be9757ecc138d13e703f865e8e8140251a9e Mon Sep 17 00:00:00 2001 From: shiyuhang <1136742008@qq.com> Date: Fri, 15 Dec 2023 15:23:07 +0800 Subject: [PATCH] upgrade swagger --- internal/cli/serverless/backup/list.go | 2 +- .../serverless_br/models/v1beta1_list_backups_response.go | 2 +- pkg/tidbcloud/v1beta1/serverless_br/serverless-br.swagger.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cli/serverless/backup/list.go b/internal/cli/serverless/backup/list.go index 6723f573..a3bc28e1 100644 --- a/internal/cli/serverless/backup/list.go +++ b/internal/cli/serverless/backup/list.go @@ -112,7 +112,7 @@ func ListCmd(h *internal.Helper) *cobra.Command { if format == output.JsonFormat || !h.IOStreams.CanPrompt { res := &brModel.V1beta1ListBackupsResponse{ Backups: items, - TotalSize: int32(total), + TotalSize: total, } err := output.PrintJson(h.IOStreams.Out, res) if err != nil { diff --git a/pkg/tidbcloud/v1beta1/serverless_br/models/v1beta1_list_backups_response.go b/pkg/tidbcloud/v1beta1/serverless_br/models/v1beta1_list_backups_response.go index 13499f4a..354b5981 100644 --- a/pkg/tidbcloud/v1beta1/serverless_br/models/v1beta1_list_backups_response.go +++ b/pkg/tidbcloud/v1beta1/serverless_br/models/v1beta1_list_backups_response.go @@ -26,7 +26,7 @@ type V1beta1ListBackupsResponse struct { NextPageToken string `json:"nextPageToken,omitempty"` // Total number of backups. - TotalSize int32 `json:"totalSize,omitempty"` + TotalSize int64 `json:"totalSize,omitempty"` } // Validate validates this v1beta1 list backups response diff --git a/pkg/tidbcloud/v1beta1/serverless_br/serverless-br.swagger.json b/pkg/tidbcloud/v1beta1/serverless_br/serverless-br.swagger.json index 7c0f134e..dc26a2a2 100644 --- a/pkg/tidbcloud/v1beta1/serverless_br/serverless-br.swagger.json +++ b/pkg/tidbcloud/v1beta1/serverless_br/serverless-br.swagger.json @@ -258,7 +258,7 @@ }, "totalSize": { "type": "integer", - "format": "int32", + "format": "int64", "description": "Total number of backups." } }