@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.
Files changed (2) hide show
  1. package/mysql.pb.ts +18 -0
  2. 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-mysql",
3
- "version":"0.1.5-110",
3
+ "version":"0.1.5-113",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {