@daocloud-proto/mcamel-mysql 0.3.2 → 0.4.0-4
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.
- package/mysql.pb.ts +18 -0
- 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
|
}
|