@daocloud-proto/mcamel-rabbitmq 0.4.0-119 → 0.4.0-124
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/rabbitmq.pb.ts +17 -4
package/package.json
CHANGED
package/rabbitmq.pb.ts
CHANGED
|
@@ -78,12 +78,18 @@ export type CreateRabbitMqReq = {
|
|
|
78
78
|
memoryLimit?: string
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
export type
|
|
81
|
+
export type UpdateRabbitMqUserReq = {
|
|
82
82
|
cluster?: string
|
|
83
83
|
namespace?: string
|
|
84
84
|
name?: string
|
|
85
85
|
defaultUser?: string
|
|
86
86
|
defaultPass?: string
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type UpdateRabbitMqParamsReq = {
|
|
90
|
+
cluster?: string
|
|
91
|
+
namespace?: string
|
|
92
|
+
name?: string
|
|
87
93
|
replicas?: number
|
|
88
94
|
storageCapacity?: string
|
|
89
95
|
serviceType?: CreateRabbitMqReqServiceType
|
|
@@ -96,7 +102,11 @@ export type UpdateRabbitMqReq = {
|
|
|
96
102
|
memoryLimit?: string
|
|
97
103
|
}
|
|
98
104
|
|
|
99
|
-
export type
|
|
105
|
+
export type UpdateRabbitMqParamsResp = {
|
|
106
|
+
message?: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type UpdateRabbitMqUserResp = {
|
|
100
110
|
message?: string
|
|
101
111
|
}
|
|
102
112
|
|
|
@@ -257,8 +267,11 @@ export class RabbitMq {
|
|
|
257
267
|
static CreateRabbitMq(req: CreateRabbitMqReq, initReq?: fm.InitReq): Promise<CreateRabbitMqResp> {
|
|
258
268
|
return fm.fetchReq<CreateRabbitMqReq, CreateRabbitMqResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
259
269
|
}
|
|
260
|
-
static
|
|
261
|
-
return fm.fetchReq<
|
|
270
|
+
static UpdateRabbitMqUser(req: UpdateRabbitMqUserReq, initReq?: fm.InitReq): Promise<UpdateRabbitMqUserResp> {
|
|
271
|
+
return fm.fetchReq<UpdateRabbitMqUserReq, UpdateRabbitMqUserResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}/user`, {...initReq, method: "PATCH", body: JSON.stringify(req)})
|
|
272
|
+
}
|
|
273
|
+
static UpdateRabbitMqParams(req: UpdateRabbitMqParamsReq, initReq?: fm.InitReq): Promise<UpdateRabbitMqParamsResp> {
|
|
274
|
+
return fm.fetchReq<UpdateRabbitMqParamsReq, UpdateRabbitMqParamsResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}/params`, {...initReq, method: "PATCH", body: JSON.stringify(req)})
|
|
262
275
|
}
|
|
263
276
|
static DeleteRabbitMq(req: DeleteRabbitMqReq, initReq?: fm.InitReq): Promise<DeleteRabbitMqResp> {
|
|
264
277
|
return fm.fetchReq<DeleteRabbitMqReq, DeleteRabbitMqResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
|