@daocloud-proto/mcamel-mysql 0.1.1-7 → 0.1.2-11
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 +11 -0
- package/package.json +1 -1
package/mysql.pb.ts
CHANGED
|
@@ -105,6 +105,10 @@ export type GetMysqlBackupSecretReq = {
|
|
|
105
105
|
workspaceId?: number
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
export type GetMysqlBackupProviderListReq = {
|
|
109
|
+
workspaceId?: number
|
|
110
|
+
}
|
|
111
|
+
|
|
108
112
|
export type GetMysqlBackupListRespGetMysqlBackupItemStatus = {
|
|
109
113
|
status?: GetMysqlBackupListRespGetMysqlBackupItemStatusStatus
|
|
110
114
|
message?: string
|
|
@@ -315,6 +319,10 @@ export type GetMysqlParamResp = {
|
|
|
315
319
|
cnf?: GetMysqlParamRespSelect
|
|
316
320
|
}
|
|
317
321
|
|
|
322
|
+
export type GetMysqlBackupProviderListResp = {
|
|
323
|
+
provider?: GetMysqlParamRespSelect
|
|
324
|
+
}
|
|
325
|
+
|
|
318
326
|
export type CreateMysqlResp = {
|
|
319
327
|
message?: string
|
|
320
328
|
}
|
|
@@ -516,6 +524,9 @@ export class Mysql {
|
|
|
516
524
|
static GetMysqlBackupSecret(req: GetMysqlBackupSecretReq, initReq?: fm.InitReq): Promise<GetMysqlBackupSecretResp> {
|
|
517
525
|
return fm.fetchReq<GetMysqlBackupSecretReq, GetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["workspaceId"]}/secret?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
518
526
|
}
|
|
527
|
+
static GetMysqlBackupProviderList(req: GetMysqlBackupProviderListReq, initReq?: fm.InitReq): Promise<GetMysqlBackupProviderListResp> {
|
|
528
|
+
return fm.fetchReq<GetMysqlBackupProviderListReq, GetMysqlBackupProviderListResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["workspaceId"]}/providers?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
529
|
+
}
|
|
519
530
|
static SetMysqlBackupSecret(req: SetMysqlBackupSecretReq, initReq?: fm.InitReq): Promise<SetMysqlBackupSecretResp> {
|
|
520
531
|
return fm.fetchReq<SetMysqlBackupSecretReq, SetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["workspaceId"]}/secret`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
521
532
|
}
|