@daocloud-proto/mcamel-mysql 0.5.0-921 → 0.5.0-923

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 +26 -1
  2. package/package.json +1 -1
package/mysql.pb.ts CHANGED
@@ -583,7 +583,6 @@ export type CreateMysqlReq = {
583
583
  describe?: string
584
584
  version?: string
585
585
  replicas?: number
586
- instanceType?: InstanceType
587
586
  storageClassName?: string
588
587
  storageCapacity?: string
589
588
  rootPassword?: string
@@ -627,6 +626,16 @@ export type CreateMysqlReq = {
627
626
  phpAdminLbTyp?: CommonCommon.LBTyp
628
627
  phpAdminLbPoolName?: string
629
628
  phpAdminLbAddress?: string
629
+ instanceType?: InstanceType
630
+ mgrRouterConfig?: MgrRouterConfig
631
+ }
632
+
633
+ export type MgrRouterConfig = {
634
+ replicas?: number
635
+ cpuRequest?: string
636
+ cpuLimit?: string
637
+ memoryRequest?: string
638
+ memoryLimit?: string
630
639
  }
631
640
 
632
641
  export type UpdateMysqlConfReq = {
@@ -832,6 +841,19 @@ export type MysqlClusterItem = {
832
841
  status?: MysqlClusterItemStatus
833
842
  }
834
843
 
844
+ export type SwitchMasterRequest = {
845
+ cluster?: string
846
+ namespace?: string
847
+ name?: string
848
+ workspaceId?: number
849
+ newMasterPodName?: string
850
+ instanceType?: InstanceType
851
+ }
852
+
853
+ export type SwitchMasterResp = {
854
+ data?: string
855
+ }
856
+
835
857
  export class MysqlV3 {
836
858
  static GetMysqlList(req: GetMysqlListReq, initReq?: fm.InitReq): Promise<GetMysqlListResp> {
837
859
  return fm.fetchReq<GetMysqlListReq, GetMysqlListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysqls?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
@@ -920,4 +942,7 @@ export class MysqlV3 {
920
942
  static GetSlowlogPodList(req: GetSlowlogPodListReq, initReq?: fm.InitReq): Promise<GetSlowlogPodListResp> {
921
943
  return fm.fetchReq<GetSlowlogPodListReq, GetSlowlogPodListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/slowlog/pods?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name", "instanceType"])}`, {...initReq, method: "GET"})
922
944
  }
945
+ static SwitchMaster(req: SwitchMasterRequest, initReq?: fm.InitReq): Promise<SwitchMasterResp> {
946
+ return fm.fetchReq<SwitchMasterRequest, SwitchMasterResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/switch/master`, {...initReq, method: "POST", body: JSON.stringify(req)})
947
+ }
923
948
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-mysql",
3
- "version":"0.5.0-921",
3
+ "version":"0.5.0-923",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {