@daocloud-proto/mcamel-redis 0.2.2-3 → 0.2.2-31
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 +21 -19
package/package.json
CHANGED
package/redis.pb.ts
CHANGED
|
@@ -76,6 +76,22 @@ export enum GetRedisConfRespItemsParamType {
|
|
|
76
76
|
conf = "conf",
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
export type GetRedisUsersReq = {
|
|
80
|
+
cluster?: string
|
|
81
|
+
namespace?: string
|
|
82
|
+
name?: string
|
|
83
|
+
instanceType?: InstanceType
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type GetRedisUsersRespUserItem = {
|
|
87
|
+
username?: string
|
|
88
|
+
password?: string
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type GetRedisUsersResp = {
|
|
92
|
+
users?: GetRedisUsersRespUserItem[]
|
|
93
|
+
}
|
|
94
|
+
|
|
79
95
|
export type GetRedisListReq = {
|
|
80
96
|
page?: number
|
|
81
97
|
pageSize?: number
|
|
@@ -141,23 +157,6 @@ export type UpdateRedisConfReq = {
|
|
|
141
157
|
instanceType?: InstanceType
|
|
142
158
|
}
|
|
143
159
|
|
|
144
|
-
export type UpdateRedisParamsReq = {
|
|
145
|
-
cluster?: string
|
|
146
|
-
namespace?: string
|
|
147
|
-
name?: string
|
|
148
|
-
replicas?: number
|
|
149
|
-
storageCapacity?: string
|
|
150
|
-
serviceType?: CreateRedisReqServiceType
|
|
151
|
-
serviceAnnotations?: {[key: string]: string}
|
|
152
|
-
describe?: string
|
|
153
|
-
ports?: CreateRedisReqPorts[]
|
|
154
|
-
cpuRequest?: string
|
|
155
|
-
cpuLimit?: string
|
|
156
|
-
memoryRequest?: string
|
|
157
|
-
memoryLimit?: string
|
|
158
|
-
instanceType?: InstanceType
|
|
159
|
-
}
|
|
160
|
-
|
|
161
160
|
export type UpdateRedisParamsResp = {
|
|
162
161
|
message?: string
|
|
163
162
|
}
|
|
@@ -363,8 +362,8 @@ export class Redis {
|
|
|
363
362
|
static UpdateRedisConf(req: UpdateRedisConfReq, initReq?: fm.InitReq): Promise<UpdateRedisConfResp> {
|
|
364
363
|
return fm.fetchReq<UpdateRedisConfReq, UpdateRedisConfResp>(`/apis/mcamel.io/redis/v1alpha1/redis/${req["instanceType"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/conf`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
365
364
|
}
|
|
366
|
-
static UpdateRedisParams(req:
|
|
367
|
-
return fm.fetchReq<
|
|
365
|
+
static UpdateRedisParams(req: CreateRedisReq, initReq?: fm.InitReq): Promise<UpdateRedisParamsResp> {
|
|
366
|
+
return fm.fetchReq<CreateRedisReq, UpdateRedisParamsResp>(`/apis/mcamel.io/redis/v1alpha1/redis/${req["instanceType"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/params`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
368
367
|
}
|
|
369
368
|
static DeleteRedis(req: DeleteRedisReq, initReq?: fm.InitReq): Promise<DeleteRedisResp> {
|
|
370
369
|
return fm.fetchReq<DeleteRedisReq, DeleteRedisResp>(`/apis/mcamel.io/redis/v1alpha1/redis/${req["instanceType"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
@@ -372,4 +371,7 @@ export class Redis {
|
|
|
372
371
|
static DeleteRediss(req: DeleteRedissReq, initReq?: fm.InitReq): Promise<DeleteRedissResp> {
|
|
373
372
|
return fm.fetchReq<DeleteRedissReq, DeleteRedissResp>(`/apis/mcamel.io/redis/v1alpha1/rediss`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
374
373
|
}
|
|
374
|
+
static GetRedisUsers(req: GetRedisUsersReq, initReq?: fm.InitReq): Promise<GetRedisUsersResp> {
|
|
375
|
+
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"})
|
|
376
|
+
}
|
|
375
377
|
}
|