@daocloud-proto/mcamel-rabbitmq 0.4.0-10 → 0.4.0-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.
- package/package.json +1 -1
- package/rabbitmq.pb.ts +24 -5
package/package.json
CHANGED
package/rabbitmq.pb.ts
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
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
|
+
|
|
9
15
|
export enum GetRabbitMqParamRespSelectSelectType {
|
|
10
16
|
Single = "Single",
|
|
11
17
|
Multiple = "Multiple",
|
|
@@ -41,7 +47,7 @@ export type CreateRabbitMqReq = {
|
|
|
41
47
|
storageCapacity?: string
|
|
42
48
|
defaultUser?: string
|
|
43
49
|
defaultPass?: string
|
|
44
|
-
serviceType?:
|
|
50
|
+
serviceType?: CreateRabbitMqReqServiceType
|
|
45
51
|
serviceAnnotations?: {[key: string]: string}
|
|
46
52
|
ports?: CreateRabbitMqReqPorts[]
|
|
47
53
|
}
|
|
@@ -55,7 +61,7 @@ export type UpdateRabbitMqReq = {
|
|
|
55
61
|
resource?: string
|
|
56
62
|
replicas?: number
|
|
57
63
|
storageCapacity?: string
|
|
58
|
-
serviceType?:
|
|
64
|
+
serviceType?: CreateRabbitMqReqServiceType
|
|
59
65
|
serviceAnnotations?: {[key: string]: string}
|
|
60
66
|
describe?: string
|
|
61
67
|
ports?: CreateRabbitMqReqPorts[]
|
|
@@ -67,16 +73,16 @@ export type UpdateRabbitMqResp = {
|
|
|
67
73
|
|
|
68
74
|
export type GetRabbitMqParamRespSelectData = {
|
|
69
75
|
data?: {[key: string]: string}
|
|
76
|
+
value?: string
|
|
70
77
|
}
|
|
71
78
|
|
|
72
79
|
export type GetRabbitMqParamRespSelect = {
|
|
73
80
|
selectType?: GetRabbitMqParamRespSelectSelectType
|
|
74
81
|
data?: GetRabbitMqParamRespSelectData[]
|
|
75
|
-
value?: string[]
|
|
76
82
|
}
|
|
77
83
|
|
|
78
84
|
export type GetRabbitMqParamResp = {
|
|
79
|
-
version?:
|
|
85
|
+
version?: GetRabbitMqParamRespSelect
|
|
80
86
|
replicas?: GetRabbitMqParamRespSelect
|
|
81
87
|
resource?: GetRabbitMqParamRespSelect
|
|
82
88
|
storage?: GetRabbitMqParamRespSelect
|
|
@@ -139,6 +145,16 @@ export type GetRabbitMqNodeListResp = {
|
|
|
139
145
|
data?: GetRabbitMqNodeListRespData[]
|
|
140
146
|
}
|
|
141
147
|
|
|
148
|
+
export type GetRabbitMqGrafanaAddrReq = {
|
|
149
|
+
cluster?: string
|
|
150
|
+
namespace?: string
|
|
151
|
+
name?: string
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type GetRabbitMqGrafanaAddrResp = {
|
|
155
|
+
data?: string
|
|
156
|
+
}
|
|
157
|
+
|
|
142
158
|
export type GetRabbitMqReq = {
|
|
143
159
|
cluster?: string
|
|
144
160
|
namespace?: string
|
|
@@ -300,11 +316,14 @@ export class RabbitMq {
|
|
|
300
316
|
static GetRabbitMqNodeList(req: GetRabbitMqNodeListReq, initReq?: fm.InitReq): Promise<GetRabbitMqNodeListResp> {
|
|
301
317
|
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"})
|
|
302
318
|
}
|
|
319
|
+
static GetRabbitMqGrafanaAddr(req: GetRabbitMqGrafanaAddrReq, initReq?: fm.InitReq): Promise<GetRabbitMqGrafanaAddrResp> {
|
|
320
|
+
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"})
|
|
321
|
+
}
|
|
303
322
|
static CreateRabbitMq(req: CreateRabbitMqReq, initReq?: fm.InitReq): Promise<CreateRabbitMqResp> {
|
|
304
323
|
return fm.fetchReq<CreateRabbitMqReq, CreateRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
305
324
|
}
|
|
306
325
|
static UpdateRabbitMq(req: UpdateRabbitMqReq, initReq?: fm.InitReq): Promise<UpdateRabbitMqResp> {
|
|
307
|
-
return fm.fetchReq<UpdateRabbitMqReq, UpdateRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "
|
|
326
|
+
return fm.fetchReq<UpdateRabbitMqReq, UpdateRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "PATCH", body: JSON.stringify(req)})
|
|
308
327
|
}
|
|
309
328
|
static DeleteRabbitMq(req: DeleteRabbitMqReq, initReq?: fm.InitReq): Promise<DeleteRabbitMqResp> {
|
|
310
329
|
return fm.fetchReq<DeleteRabbitMqReq, DeleteRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
|