@daocloud-proto/mcamel-mysql 0.3.2-2 → 0.3.2-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 +18 -0
  2. package/package.json +1 -1
package/mysql.pb.ts CHANGED
@@ -114,6 +114,21 @@ export enum GetMysqlConfRespItemsParamType {
114
114
  conf = "conf",
115
115
  }
116
116
 
117
+ export type GetMysqlUsersReq = {
118
+ cluster?: string
119
+ namespace?: string
120
+ name?: string
121
+ }
122
+
123
+ export type GetMysqlUsersRespUserItem = {
124
+ username?: string
125
+ password?: string
126
+ }
127
+
128
+ export type GetMysqlUsersResp = {
129
+ users?: GetMysqlUsersRespUserItem[]
130
+ }
131
+
117
132
  export type UpdateMysqlBackupConfigReq = {
118
133
  workspaceId?: number
119
134
  cluster?: string
@@ -598,4 +613,7 @@ export class Mysql {
598
613
  static UpdateMysqlBackupConfig(req: UpdateMysqlBackupConfigReq, initReq?: fm.InitReq): Promise<UpdateMysqlBackupConfigResp> {
599
614
  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)})
600
615
  }
616
+ static GetMysqlUsers(req: GetMysqlUsersReq, initReq?: fm.InitReq): Promise<GetMysqlUsersResp> {
617
+ return fm.fetchReq<GetMysqlUsersReq, GetMysqlUsersResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/users?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
618
+ }
601
619
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-mysql",
3
- "version":"0.3.2-2",
3
+ "version":"0.3.2-6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {