@daocloud-proto/mcamel-mysql 0.5.0-929 → 0.5.0-931

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 +22 -0
  2. package/package.json +1 -1
package/mysql.pb.ts CHANGED
@@ -170,6 +170,25 @@ export enum MysqlClusterItemStatusRestoreInitialStatus {
170
170
  Succeeded = "Succeeded",
171
171
  }
172
172
 
173
+ export type GetPodsAndRolesReq = {
174
+ cluster?: string
175
+ namespace?: string
176
+ name?: string
177
+ workspaceId?: number
178
+ instanceType?: InstanceType
179
+ }
180
+
181
+ export type PodsAndRoles = {
182
+ podName?: string
183
+ podStatus?: PodStatus
184
+ }
185
+
186
+ export type GetPodsAndRolesResp = {
187
+ isHealthy?: boolean
188
+ source?: PodsAndRoles[]
189
+ replica?: PodsAndRoles[]
190
+ }
191
+
173
192
  export type GetSlowlogPodListReq = {
174
193
  cluster?: string
175
194
  namespace?: string
@@ -945,4 +964,7 @@ export class MysqlV3 {
945
964
  static SwitchMaster(req: SwitchMasterRequest, initReq?: fm.InitReq): Promise<SwitchMasterResp> {
946
965
  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
966
  }
967
+ static GetPodsAndRoles(req: GetPodsAndRolesReq, initReq?: fm.InitReq): Promise<GetPodsAndRolesResp> {
968
+ return fm.fetchReq<GetPodsAndRolesReq, GetPodsAndRolesResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/pods_and_roles?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name", "instanceType"])}`, {...initReq, method: "GET"})
969
+ }
948
970
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-mysql",
3
- "version":"0.5.0-929",
3
+ "version":"0.5.0-931",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {