@daocloud-proto/mcamel-redis 0.4.0-146 → 0.4.0-148
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/package.json +1 -1
- package/redis.pb.ts +17 -0
package/package.json
CHANGED
package/redis.pb.ts
CHANGED
|
@@ -101,6 +101,20 @@ export enum GetRedisConfRespItemsParamType {
|
|
|
101
101
|
conf = "conf",
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
export type CreateRedisRecoverReq = {
|
|
105
|
+
workspaceId?: number
|
|
106
|
+
cluster?: string
|
|
107
|
+
namespace?: string
|
|
108
|
+
name?: string
|
|
109
|
+
backupName?: string
|
|
110
|
+
targetRedisName?: string
|
|
111
|
+
instanceType?: InstanceType
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type CreateRedisRecoverResp = {
|
|
115
|
+
message?: string
|
|
116
|
+
}
|
|
117
|
+
|
|
104
118
|
export type DeleteRedisBackupReq = {
|
|
105
119
|
cluster?: string
|
|
106
120
|
namespace?: string
|
|
@@ -558,4 +572,7 @@ export class Redis {
|
|
|
558
572
|
static GetMinioList(req: GetMinioListReq, initReq?: fm.InitReq): Promise<GetMinioListResp> {
|
|
559
573
|
return fm.fetchReq<GetMinioListReq, GetMinioListResp>(`/apis/mcamel.io/redis/v1alpha1/${req["workspaceId"]}/minios?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
560
574
|
}
|
|
575
|
+
static CreateRedisRecover(req: CreateRedisRecoverReq, initReq?: fm.InitReq): Promise<CreateRedisRecoverResp> {
|
|
576
|
+
return fm.fetchReq<CreateRedisRecoverReq, CreateRedisRecoverResp>(`/apis/mcamel.io/redis/v1alpha1/redis/${req["cluster"]}/${req["namespace"]}/${req["name"]}/recover`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
577
|
+
}
|
|
561
578
|
}
|