@daocloud-proto/mcamel-mysql 0.1.5-110 → 0.1.5-113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mysql.pb.ts +18 -0
- package/package.json +1 -1
package/mysql.pb.ts
CHANGED
|
@@ -87,6 +87,21 @@ export enum GetMysqlConfRespItemsParamType {
|
|
|
87
87
|
conf = "conf",
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
export type UpdateMysqlBackupConfigReq = {
|
|
91
|
+
workspaceId?: number
|
|
92
|
+
cluster?: string
|
|
93
|
+
namespace?: string
|
|
94
|
+
name?: string
|
|
95
|
+
backupSchedule?: string
|
|
96
|
+
backupBucket?: string
|
|
97
|
+
backupHistoryLimit?: number
|
|
98
|
+
backupBucketSubPath?: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type UpdateMysqlBackupConfigResp = {
|
|
102
|
+
message?: string
|
|
103
|
+
}
|
|
104
|
+
|
|
90
105
|
export type CreateMysqlRecoverReq = {
|
|
91
106
|
workspaceId?: number
|
|
92
107
|
cluster?: string
|
|
@@ -582,4 +597,7 @@ export class Mysql {
|
|
|
582
597
|
static CreateMysqlRecover(req: CreateMysqlRecoverReq, initReq?: fm.InitReq): Promise<CreateMysqlRecoverResp> {
|
|
583
598
|
return fm.fetchReq<CreateMysqlRecoverReq, CreateMysqlRecoverResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/recover`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
584
599
|
}
|
|
600
|
+
static UpdateMysqlBackupConfig(req: UpdateMysqlBackupConfigReq, initReq?: fm.InitReq): Promise<UpdateMysqlBackupConfigResp> {
|
|
601
|
+
return fm.fetchReq<UpdateMysqlBackupConfigReq, UpdateMysqlBackupConfigResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup/config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
602
|
+
}
|
|
585
603
|
}
|