@daocloud-proto/mcamel-redis 0.2.2-22 → 0.2.2-25

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 +2 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-redis",
3
- "version":"0.2.2-22",
3
+ "version":"0.2.2-25",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/redis.pb.ts CHANGED
@@ -157,23 +157,6 @@ export type UpdateRedisConfReq = {
157
157
  instanceType?: InstanceType
158
158
  }
159
159
 
160
- export type UpdateRedisParamsReq = {
161
- cluster?: string
162
- namespace?: string
163
- name?: string
164
- replicas?: number
165
- storageCapacity?: string
166
- serviceType?: CreateRedisReqServiceType
167
- serviceAnnotations?: {[key: string]: string}
168
- describe?: string
169
- ports?: CreateRedisReqPorts[]
170
- cpuRequest?: string
171
- cpuLimit?: string
172
- memoryRequest?: string
173
- memoryLimit?: string
174
- instanceType?: InstanceType
175
- }
176
-
177
160
  export type UpdateRedisParamsResp = {
178
161
  message?: string
179
162
  }
@@ -379,8 +362,8 @@ export class Redis {
379
362
  static UpdateRedisConf(req: UpdateRedisConfReq, initReq?: fm.InitReq): Promise<UpdateRedisConfResp> {
380
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)})
381
364
  }
382
- static UpdateRedisParams(req: UpdateRedisParamsReq, initReq?: fm.InitReq): Promise<UpdateRedisParamsResp> {
383
- return fm.fetchReq<UpdateRedisParamsReq, UpdateRedisParamsResp>(`/apis/mcamel.io/redis/v1alpha1/redis/${req["instanceType"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/params`, {...initReq, method: "PUT", body: JSON.stringify(req)})
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)})
384
367
  }
385
368
  static DeleteRedis(req: DeleteRedisReq, initReq?: fm.InitReq): Promise<DeleteRedisResp> {
386
369
  return fm.fetchReq<DeleteRedisReq, DeleteRedisResp>(`/apis/mcamel.io/redis/v1alpha1/redis/${req["instanceType"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})