@daocloud-proto/mcamel-redis 0.4.0-107 → 0.4.0-109

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/package.json +1 -1
  2. package/redis.pb.ts +24 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-redis",
3
- "version":"0.4.0-107",
3
+ "version":"0.4.0-109",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/redis.pb.ts CHANGED
@@ -36,6 +36,11 @@ export enum RedisPodType {
36
36
  FollowerRedis = "FollowerRedis",
37
37
  }
38
38
 
39
+ export enum CreateRedisBackupReqProvider {
40
+ Minio = "Minio",
41
+ Other = "Other",
42
+ }
43
+
39
44
  export enum GetRedisListReqSortDir {
40
45
  ASC = "ASC",
41
46
  DESC = "DESC",
@@ -76,6 +81,22 @@ export enum GetRedisConfRespItemsParamType {
76
81
  conf = "conf",
77
82
  }
78
83
 
84
+ export type CreateRedisBackupReq = {
85
+ cluster?: string
86
+ namespace?: string
87
+ name?: string
88
+ instanceType?: InstanceType
89
+ accessKeyId?: string
90
+ accessKeySecret?: string
91
+ endpoint?: string
92
+ provider?: CreateRedisBackupReqProvider
93
+ storePath?: string
94
+ }
95
+
96
+ export type CreateRedisBackupResp = {
97
+ message?: string
98
+ }
99
+
79
100
  export type GetRedisUsersReq = {
80
101
  cluster?: string
81
102
  namespace?: string
@@ -382,4 +403,7 @@ export class Redis {
382
403
  static GetRedisUsers(req: GetRedisUsersReq, initReq?: fm.InitReq): Promise<GetRedisUsersResp> {
383
404
  return fm.fetchReq<GetRedisUsersReq, GetRedisUsersResp>(`/apis/mcamel.io/redis/v1alpha1/redis/${req["instanceType"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/users?${fm.renderURLSearchParams(req, ["instanceType", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
384
405
  }
406
+ static CreateRedisBackup(req: CreateRedisBackupReq, initReq?: fm.InitReq): Promise<CreateRedisBackupResp> {
407
+ return fm.fetchReq<CreateRedisBackupReq, CreateRedisBackupResp>(`/apis/mcamel.io/redis/v1alpha1/redis/backup`, {...initReq, method: "POST", body: JSON.stringify(req)})
408
+ }
385
409
  }