@daocloud-proto/mcamel-mysql 0.1.5-85 → 0.1.5-87
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,19 @@ export enum GetMysqlConfRespItemsParamType {
|
|
|
87
87
|
conf = "conf",
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
export type RecoverReq = {
|
|
91
|
+
workspaceId?: number
|
|
92
|
+
cluster?: string
|
|
93
|
+
namespace?: string
|
|
94
|
+
name?: string
|
|
95
|
+
backupPath?: string
|
|
96
|
+
targetMysqlClusterName?: string
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export type RecoverResp = {
|
|
100
|
+
message?: string
|
|
101
|
+
}
|
|
102
|
+
|
|
90
103
|
export type GetMysqlBackupListReq = {
|
|
91
104
|
page?: number
|
|
92
105
|
pageSize?: number
|
|
@@ -275,6 +288,8 @@ export type CreateMysqlReq = {
|
|
|
275
288
|
phpAdminMemoryLimit?: string
|
|
276
289
|
backupHistoryLimit?: number
|
|
277
290
|
backupBucketSubPath?: string
|
|
291
|
+
initBackupPath?: string
|
|
292
|
+
initBackupSecretName?: string
|
|
278
293
|
}
|
|
279
294
|
|
|
280
295
|
export type UpdateMysqlConfReq = {
|
|
@@ -564,4 +579,7 @@ export class Mysql {
|
|
|
564
579
|
static SetMysqlBackupSecret(req: SetMysqlBackupSecretReq, initReq?: fm.InitReq): Promise<SetMysqlBackupSecretResp> {
|
|
565
580
|
return fm.fetchReq<SetMysqlBackupSecretReq, SetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["workspaceId"]}/secret`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
566
581
|
}
|
|
582
|
+
static Recover(req: RecoverReq, initReq?: fm.InitReq): Promise<RecoverResp> {
|
|
583
|
+
return fm.fetchReq<RecoverReq, RecoverResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/recover`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
584
|
+
}
|
|
567
585
|
}
|