@daocloud-proto/mcamel-rabbitmq 0.4.0-18 → 0.4.0-9

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 +5 -30
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-rabbitmq",
3
- "version":"0.4.0-18",
3
+ "version":"0.4.0-9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/rabbitmq.pb.ts CHANGED
@@ -6,22 +6,11 @@
6
6
 
7
7
  import * as fm from "../../v1alpha1/ts_out/api"
8
8
 
9
- export enum CreateRabbitMqReqServiceType {
10
- ClusterIP = "ClusterIP",
11
- NodePort = "NodePort",
12
- LoadBalancer = "LoadBalancer",
13
- }
14
-
15
9
  export enum GetRabbitMqParamRespSelectSelectType {
16
10
  Single = "Single",
17
11
  Multiple = "Multiple",
18
12
  }
19
13
 
20
- export enum GetRabbitMqGrafanaAddrReqGrafanaName {
21
- Cluster = "Cluster",
22
- Node = "Node",
23
- }
24
-
25
14
  export type GetRabbitMqListReq = {
26
15
  page?: number
27
16
  size?: number
@@ -52,7 +41,7 @@ export type CreateRabbitMqReq = {
52
41
  storageCapacity?: string
53
42
  defaultUser?: string
54
43
  defaultPass?: string
55
- serviceType?: CreateRabbitMqReqServiceType
44
+ serviceType?: string
56
45
  serviceAnnotations?: {[key: string]: string}
57
46
  ports?: CreateRabbitMqReqPorts[]
58
47
  }
@@ -66,7 +55,7 @@ export type UpdateRabbitMqReq = {
66
55
  resource?: string
67
56
  replicas?: number
68
57
  storageCapacity?: string
69
- serviceType?: CreateRabbitMqReqServiceType
58
+ serviceType?: string
70
59
  serviceAnnotations?: {[key: string]: string}
71
60
  describe?: string
72
61
  ports?: CreateRabbitMqReqPorts[]
@@ -78,16 +67,16 @@ export type UpdateRabbitMqResp = {
78
67
 
79
68
  export type GetRabbitMqParamRespSelectData = {
80
69
  data?: {[key: string]: string}
81
- value?: string
82
70
  }
83
71
 
84
72
  export type GetRabbitMqParamRespSelect = {
85
73
  selectType?: GetRabbitMqParamRespSelectSelectType
86
74
  data?: GetRabbitMqParamRespSelectData[]
75
+ value?: string[]
87
76
  }
88
77
 
89
78
  export type GetRabbitMqParamResp = {
90
- version?: GetRabbitMqParamRespSelect
79
+ version?: string
91
80
  replicas?: GetRabbitMqParamRespSelect
92
81
  resource?: GetRabbitMqParamRespSelect
93
82
  storage?: GetRabbitMqParamRespSelect
@@ -150,17 +139,6 @@ export type GetRabbitMqNodeListResp = {
150
139
  data?: GetRabbitMqNodeListRespData[]
151
140
  }
152
141
 
153
- export type GetRabbitMqGrafanaAddrReq = {
154
- cluster?: string
155
- namespace?: string
156
- name?: string
157
- grafanaName?: GetRabbitMqGrafanaAddrReqGrafanaName
158
- }
159
-
160
- export type GetRabbitMqGrafanaAddrResp = {
161
- data?: string
162
- }
163
-
164
142
  export type GetRabbitMqReq = {
165
143
  cluster?: string
166
144
  namespace?: string
@@ -322,14 +300,11 @@ export class RabbitMq {
322
300
  static GetRabbitMqNodeList(req: GetRabbitMqNodeListReq, initReq?: fm.InitReq): Promise<GetRabbitMqNodeListResp> {
323
301
  return fm.fetchReq<GetRabbitMqNodeListReq, GetRabbitMqNodeListResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/nodes/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
324
302
  }
325
- static GetRabbitMqGrafanaAddr(req: GetRabbitMqGrafanaAddrReq, initReq?: fm.InitReq): Promise<GetRabbitMqGrafanaAddrResp> {
326
- return fm.fetchReq<GetRabbitMqGrafanaAddrReq, GetRabbitMqGrafanaAddrResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/grafana/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
327
- }
328
303
  static CreateRabbitMq(req: CreateRabbitMqReq, initReq?: fm.InitReq): Promise<CreateRabbitMqResp> {
329
304
  return fm.fetchReq<CreateRabbitMqReq, CreateRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq`, {...initReq, method: "POST", body: JSON.stringify(req)})
330
305
  }
331
306
  static UpdateRabbitMq(req: UpdateRabbitMqReq, initReq?: fm.InitReq): Promise<UpdateRabbitMqResp> {
332
- return fm.fetchReq<UpdateRabbitMqReq, UpdateRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "PATCH", body: JSON.stringify(req)})
307
+ return fm.fetchReq<UpdateRabbitMqReq, UpdateRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
333
308
  }
334
309
  static DeleteRabbitMq(req: DeleteRabbitMqReq, initReq?: fm.InitReq): Promise<DeleteRabbitMqResp> {
335
310
  return fm.fetchReq<DeleteRabbitMqReq, DeleteRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})