@daocloud-proto/mcamel-rabbitmq 0.4.1-1 → 0.4.1-13

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/rabbitmq.pb.ts +36 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-rabbitmq",
3
- "version":"0.4.1-1",
3
+ "version":"0.4.1-13",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/rabbitmq.pb.ts CHANGED
@@ -27,6 +27,11 @@ export enum GetRabbitMqListReqSortDir {
27
27
  DESC = "DESC",
28
28
  }
29
29
 
30
+ export enum GetRabbitMqConfReqSortDir {
31
+ ASC = "ASC",
32
+ DESC = "DESC",
33
+ }
34
+
30
35
  export enum CreateRabbitMqReqServiceType {
31
36
  ClusterIP = "ClusterIP",
32
37
  NodePort = "NodePort",
@@ -38,6 +43,11 @@ export enum GetRabbitMqParamRespSelectSelectType {
38
43
  Multiple = "Multiple",
39
44
  }
40
45
 
46
+ export enum GetRabbitMqConfRespItemsParamType {
47
+ defaultUser = "defaultUser",
48
+ defaultPass = "defaultPass",
49
+ }
50
+
41
51
  export type GetRabbitMqListReq = {
42
52
  page?: number
43
53
  pageSize?: number
@@ -46,6 +56,17 @@ export type GetRabbitMqListReq = {
46
56
  searchKey?: string
47
57
  }
48
58
 
59
+ export type GetRabbitMqConfReq = {
60
+ page?: number
61
+ pageSize?: number
62
+ sortDir?: GetRabbitMqConfReqSortDir
63
+ sortBy?: string
64
+ searchKey?: string
65
+ cluster?: string
66
+ namespace?: string
67
+ name?: string
68
+ }
69
+
49
70
  export type GetRabbitMqParamReq = {
50
71
  cluster?: string
51
72
  }
@@ -123,7 +144,6 @@ export type GetRabbitMqParamRespSelectDataResourceValue = {
123
144
 
124
145
 
125
146
  type BaseGetRabbitMqParamRespSelectData = {
126
- data?: {[key: string]: string}
127
147
  }
128
148
 
129
149
  export type GetRabbitMqParamRespSelectData = BaseGetRabbitMqParamRespSelectData
@@ -217,6 +237,18 @@ export type GetRabbitMqResp = {
217
237
  data?: RabbitmqClusterItem
218
238
  }
219
239
 
240
+ export type GetRabbitMqConfRespItems = {
241
+ paramType?: GetRabbitMqConfRespItemsParamType
242
+ paramName?: string
243
+ value?: string
244
+ }
245
+
246
+ export type GetRabbitMqConfResp = {
247
+ items?: GetRabbitMqConfRespItems[]
248
+ pagination?: CommonCommon.Pagination
249
+ conf?: UpdateRabbitMqConfReq
250
+ }
251
+
220
252
  export type GetRabbitMqListResp = {
221
253
  items?: RabbitmqClusterItem[]
222
254
  pagination?: CommonCommon.Pagination
@@ -267,6 +299,9 @@ export class RabbitMq {
267
299
  static CreateRabbitMq(req: CreateRabbitMqReq, initReq?: fm.InitReq): Promise<CreateRabbitMqResp> {
268
300
  return fm.fetchReq<CreateRabbitMqReq, CreateRabbitMqResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq`, {...initReq, method: "POST", body: JSON.stringify(req)})
269
301
  }
302
+ static GetRabbitMqConfs(req: GetRabbitMqConfReq, initReq?: fm.InitReq): Promise<GetRabbitMqConfResp> {
303
+ return fm.fetchReq<GetRabbitMqConfReq, GetRabbitMqConfResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}/confs?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
304
+ }
270
305
  static UpdateRabbitMqConf(req: UpdateRabbitMqConfReq, initReq?: fm.InitReq): Promise<UpdateRabbitMqConfResp> {
271
306
  return fm.fetchReq<UpdateRabbitMqConfReq, UpdateRabbitMqConfResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}/conf`, {...initReq, method: "PUT", body: JSON.stringify(req)})
272
307
  }