@daocloud-proto/mcamel-mysql 0.1.5-98 → 0.1.6

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 +24 -36
  2. package/package.json +1 -1
package/mysql.pb.ts CHANGED
@@ -87,7 +87,23 @@ export enum GetMysqlConfRespItemsParamType {
87
87
  conf = "conf",
88
88
  }
89
89
 
90
- export type RecoverMysqlReq = {
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
+ isOpenAutoBackup?: boolean
100
+ }
101
+
102
+ export type UpdateMysqlBackupConfigResp = {
103
+ message?: string
104
+ }
105
+
106
+ export type CreateMysqlRecoverReq = {
91
107
  workspaceId?: number
92
108
  cluster?: string
93
109
  namespace?: string
@@ -96,7 +112,7 @@ export type RecoverMysqlReq = {
96
112
  targetMysqlClusterName?: string
97
113
  }
98
114
 
99
- export type RecoverMysqlResp = {
115
+ export type CreateMysqlRecoverResp = {
100
116
  message?: string
101
117
  }
102
118
 
@@ -290,6 +306,7 @@ export type CreateMysqlReq = {
290
306
  backupBucketSubPath?: string
291
307
  initBackupPath?: string
292
308
  initBackupSecretName?: string
309
+ isOpenAutoBackup?: boolean
293
310
  }
294
311
 
295
312
  export type UpdateMysqlConfReq = {
@@ -445,32 +462,6 @@ export type GetMysqlReq = {
445
462
  name?: string
446
463
  }
447
464
 
448
- export type DeleteMysqlAutoBackupReq = {
449
- workspaceId?: number
450
- cluster?: string
451
- namespace?: string
452
- name?: string
453
- }
454
-
455
- export type CreateMysqlAutoBackupReq = {
456
- workspaceId?: number
457
- cluster?: string
458
- namespace?: string
459
- name?: string
460
- backupSchedule?: string
461
- backupBucket?: string
462
- backupHistoryLimit?: number
463
- backupBucketSubPath?: string
464
- }
465
-
466
- export type CreateMysqlAutoBackupResp = {
467
- message?: string
468
- }
469
-
470
- export type DeleteMysqlAutoBackupResp = {
471
- message?: string
472
- }
473
-
474
465
  export type GetMysqlResp = {
475
466
  data?: MysqlClusterItem
476
467
  }
@@ -537,12 +528,6 @@ export class Mysql {
537
528
  static CreateMysql(req: CreateMysqlReq, initReq?: fm.InitReq): Promise<CreateMysqlResp> {
538
529
  return fm.fetchReq<CreateMysqlReq, CreateMysqlResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql`, {...initReq, method: "POST", body: JSON.stringify(req)})
539
530
  }
540
- static CreateMysqlAutoBackup(req: CreateMysqlAutoBackupReq, initReq?: fm.InitReq): Promise<CreateMysqlAutoBackupResp> {
541
- return fm.fetchReq<CreateMysqlAutoBackupReq, CreateMysqlAutoBackupResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/autobackup`, {...initReq, method: "POST", body: JSON.stringify(req)})
542
- }
543
- static DeleteMysqlAutoBackup(req: DeleteMysqlAutoBackupReq, initReq?: fm.InitReq): Promise<DeleteMysqlAutoBackupResp> {
544
- return fm.fetchReq<DeleteMysqlAutoBackupReq, DeleteMysqlAutoBackupResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/autobackup`, {...initReq, method: "DELETE"})
545
- }
546
531
  static GetMysqlConfs(req: GetMysqlConfReq, initReq?: fm.InitReq): Promise<GetMysqlConfResp> {
547
532
  return fm.fetchReq<GetMysqlConfReq, GetMysqlConfResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/confs?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
548
533
  }
@@ -579,7 +564,10 @@ export class Mysql {
579
564
  static SetMysqlBackupSecret(req: SetMysqlBackupSecretReq, initReq?: fm.InitReq): Promise<SetMysqlBackupSecretResp> {
580
565
  return fm.fetchReq<SetMysqlBackupSecretReq, SetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["workspaceId"]}/secret`, {...initReq, method: "PUT", body: JSON.stringify(req)})
581
566
  }
582
- static RecoverMysql(req: RecoverMysqlReq, initReq?: fm.InitReq): Promise<RecoverMysqlResp> {
583
- return fm.fetchReq<RecoverMysqlReq, RecoverMysqlResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/recover`, {...initReq, method: "POST", body: JSON.stringify(req)})
567
+ static CreateMysqlRecover(req: CreateMysqlRecoverReq, initReq?: fm.InitReq): Promise<CreateMysqlRecoverResp> {
568
+ 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)})
569
+ }
570
+ static UpdateMysqlBackupConfig(req: UpdateMysqlBackupConfigReq, initReq?: fm.InitReq): Promise<UpdateMysqlBackupConfigResp> {
571
+ 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)})
584
572
  }
585
573
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-mysql",
3
- "version":"0.1.5-98",
3
+ "version":"0.1.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {