@daocloud-proto/mcamel-rabbitmq 0.4.1-9 → 0.5.0-6
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/cluster.pb.ts +45 -15
- package/package.json +1 -1
- package/rabbitmq.pb.ts +37 -19
package/cluster.pb.ts
CHANGED
|
@@ -7,30 +7,45 @@
|
|
|
7
7
|
import * as CommonCommon from "./common.pb"
|
|
8
8
|
import * as fm from "./fetch.pb"
|
|
9
9
|
|
|
10
|
-
export enum
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
CREATING = "CREATING",
|
|
14
|
-
RUNNING = "RUNNING",
|
|
15
|
-
UPDATING = "UPDATING",
|
|
16
|
-
DELETING = "DELETING",
|
|
10
|
+
export enum GetWorkspaceListReqSortDir {
|
|
11
|
+
ASC = "ASC",
|
|
12
|
+
DESC = "DESC",
|
|
17
13
|
}
|
|
18
14
|
|
|
19
|
-
export
|
|
15
|
+
export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
16
|
+
NotInstall = "NotInstall",
|
|
17
|
+
Install = "Install",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type GetWorkspaceListReq = {
|
|
21
|
+
page?: number
|
|
22
|
+
pageSize?: number
|
|
23
|
+
sortDir?: GetWorkspaceListReqSortDir
|
|
24
|
+
sortBy?: string
|
|
25
|
+
searchKey?: string
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type GetWorkspaceListRespItem = {
|
|
29
|
+
workspaceId?: number
|
|
30
|
+
alias?: string
|
|
20
31
|
}
|
|
21
32
|
|
|
22
|
-
export type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
export type GetWorkspaceListResp = {
|
|
34
|
+
items?: GetWorkspaceListRespItem[]
|
|
35
|
+
pagination?: CommonCommon.Pagination
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type GetClusterListReq = {
|
|
39
|
+
workspaceId?: number
|
|
26
40
|
}
|
|
27
41
|
|
|
28
42
|
export type GetClusterListResp = {
|
|
29
|
-
items?:
|
|
43
|
+
items?: string[]
|
|
30
44
|
pagination?: CommonCommon.Pagination
|
|
31
45
|
}
|
|
32
46
|
|
|
33
47
|
export type GetClusterNamespaceListReq = {
|
|
48
|
+
workspaceId?: number
|
|
34
49
|
cluster?: string
|
|
35
50
|
}
|
|
36
51
|
|
|
@@ -39,11 +54,26 @@ export type GetClusterNamespaceListResp = {
|
|
|
39
54
|
pagination?: CommonCommon.Pagination
|
|
40
55
|
}
|
|
41
56
|
|
|
57
|
+
export type GetInsightAgentStatusReq = {
|
|
58
|
+
cluster?: string
|
|
59
|
+
mcamelType?: string
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type GetInsightAgentStatusResp = {
|
|
63
|
+
status?: GetInsightAgentStatusRespInsightAgentStatus
|
|
64
|
+
}
|
|
65
|
+
|
|
42
66
|
export class Cluster {
|
|
43
67
|
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
44
|
-
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
68
|
+
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
45
69
|
}
|
|
46
70
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
47
|
-
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
71
|
+
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
72
|
+
}
|
|
73
|
+
static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
|
|
74
|
+
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
75
|
+
}
|
|
76
|
+
static GetInsightAgentStatus(req: GetInsightAgentStatusReq, initReq?: fm.InitReq): Promise<GetInsightAgentStatusResp> {
|
|
77
|
+
return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["cluster"]}/insight/status?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
48
78
|
}
|
|
49
79
|
}
|
package/package.json
CHANGED
package/rabbitmq.pb.ts
CHANGED
|
@@ -43,6 +43,15 @@ export enum GetRabbitMqParamRespSelectSelectType {
|
|
|
43
43
|
Multiple = "Multiple",
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
export enum GetRabbitMqNodeListRespPodStatus {
|
|
47
|
+
PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
|
|
48
|
+
Unknown = "Unknown",
|
|
49
|
+
Pending = "Pending",
|
|
50
|
+
Running = "Running",
|
|
51
|
+
Succeeded = "Succeeded",
|
|
52
|
+
Failed = "Failed",
|
|
53
|
+
}
|
|
54
|
+
|
|
46
55
|
export enum GetRabbitMqConfRespItemsParamType {
|
|
47
56
|
defaultUser = "defaultUser",
|
|
48
57
|
defaultPass = "defaultPass",
|
|
@@ -54,6 +63,7 @@ export type GetRabbitMqListReq = {
|
|
|
54
63
|
sortDir?: GetRabbitMqListReqSortDir
|
|
55
64
|
sortBy?: string
|
|
56
65
|
searchKey?: string
|
|
66
|
+
workspaceId?: number
|
|
57
67
|
}
|
|
58
68
|
|
|
59
69
|
export type GetRabbitMqConfReq = {
|
|
@@ -121,6 +131,7 @@ export type UpdateRabbitMqParamsReq = {
|
|
|
121
131
|
cpuLimit?: string
|
|
122
132
|
memoryRequest?: string
|
|
123
133
|
memoryLimit?: string
|
|
134
|
+
version?: string
|
|
124
135
|
}
|
|
125
136
|
|
|
126
137
|
export type UpdateRabbitMqParamsResp = {
|
|
@@ -136,10 +147,14 @@ export type GetRabbitMqParamRespSelectDataStringValue = {
|
|
|
136
147
|
}
|
|
137
148
|
|
|
138
149
|
export type GetRabbitMqParamRespSelectDataResourceValue = {
|
|
139
|
-
cpuRequest?:
|
|
140
|
-
cpuLimit?:
|
|
141
|
-
memoryRequest?:
|
|
142
|
-
memoryLimit?:
|
|
150
|
+
cpuRequest?: string
|
|
151
|
+
cpuLimit?: string
|
|
152
|
+
memoryRequest?: string
|
|
153
|
+
memoryLimit?: string
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export type GetRabbitMqParamRespSelectDataIntValue = {
|
|
157
|
+
value?: number
|
|
143
158
|
}
|
|
144
159
|
|
|
145
160
|
|
|
@@ -147,7 +162,7 @@ type BaseGetRabbitMqParamRespSelectData = {
|
|
|
147
162
|
}
|
|
148
163
|
|
|
149
164
|
export type GetRabbitMqParamRespSelectData = BaseGetRabbitMqParamRespSelectData
|
|
150
|
-
& OneOf<{ sValue: GetRabbitMqParamRespSelectDataStringValue; rValue: GetRabbitMqParamRespSelectDataResourceValue }>
|
|
165
|
+
& OneOf<{ sValue: GetRabbitMqParamRespSelectDataStringValue; rValue: GetRabbitMqParamRespSelectDataResourceValue; iValue: GetRabbitMqParamRespSelectDataIntValue }>
|
|
151
166
|
|
|
152
167
|
export type GetRabbitMqParamRespSelect = {
|
|
153
168
|
selectType?: GetRabbitMqParamRespSelectSelectType
|
|
@@ -166,7 +181,6 @@ export type CreateRabbitMqResp = {
|
|
|
166
181
|
}
|
|
167
182
|
|
|
168
183
|
export type GetRabbitMqOperatorVersionListReq = {
|
|
169
|
-
cluster?: string
|
|
170
184
|
}
|
|
171
185
|
|
|
172
186
|
export type GetRabbitMqOperatorVersionListRespGetRabbitMqOperatorVersionListData = {
|
|
@@ -206,13 +220,14 @@ export type GetRabbitMqNodeListReq = {
|
|
|
206
220
|
|
|
207
221
|
export type GetRabbitMqNodeListRespData = {
|
|
208
222
|
podName?: string
|
|
209
|
-
status?:
|
|
210
|
-
nodeName?: string
|
|
223
|
+
status?: GetRabbitMqNodeListRespPodStatus
|
|
211
224
|
ip?: string
|
|
212
225
|
restart?: number
|
|
213
|
-
cpuUsage?:
|
|
214
|
-
|
|
215
|
-
|
|
226
|
+
cpuUsage?: number
|
|
227
|
+
cpuLimit?: number
|
|
228
|
+
memoryUsage?: number
|
|
229
|
+
memoryLimit?: number
|
|
230
|
+
createTimestamp?: string
|
|
216
231
|
}
|
|
217
232
|
|
|
218
233
|
export type GetRabbitMqNodeListResp = {
|
|
@@ -221,6 +236,9 @@ export type GetRabbitMqNodeListResp = {
|
|
|
221
236
|
}
|
|
222
237
|
|
|
223
238
|
export type GetRabbitMqGrafanaAddrReq = {
|
|
239
|
+
cluster?: string
|
|
240
|
+
namespace?: string
|
|
241
|
+
name?: string
|
|
224
242
|
}
|
|
225
243
|
|
|
226
244
|
export type GetRabbitMqGrafanaAddrResp = {
|
|
@@ -254,16 +272,17 @@ export type GetRabbitMqListResp = {
|
|
|
254
272
|
pagination?: CommonCommon.Pagination
|
|
255
273
|
}
|
|
256
274
|
|
|
257
|
-
export type
|
|
275
|
+
export type RabbitmqClusterItemStatus = {
|
|
258
276
|
status?: Status
|
|
259
277
|
podsAreReadyNum?: number
|
|
260
278
|
webManagerAddr?: string
|
|
261
279
|
clusterIPs?: string[]
|
|
280
|
+
serviceAddr?: string
|
|
262
281
|
}
|
|
263
282
|
|
|
264
283
|
export type RabbitmqClusterItemMetadata = {
|
|
265
284
|
annotations?: {[key: string]: string}
|
|
266
|
-
creationTimestamp?:
|
|
285
|
+
creationTimestamp?: string
|
|
267
286
|
name?: string
|
|
268
287
|
namespace?: string
|
|
269
288
|
}
|
|
@@ -273,16 +292,15 @@ export type RabbitmqClusterItem = {
|
|
|
273
292
|
kind?: string
|
|
274
293
|
metadata?: RabbitmqClusterItemMetadata
|
|
275
294
|
spec?: CreateRabbitMqReq
|
|
276
|
-
status?:
|
|
277
|
-
extend?: RabbitmqClusterItemExtend
|
|
295
|
+
status?: RabbitmqClusterItemStatus
|
|
278
296
|
}
|
|
279
297
|
|
|
280
298
|
export class RabbitMq {
|
|
281
299
|
static GetRabbitMqList(req: GetRabbitMqListReq, initReq?: fm.InitReq): Promise<GetRabbitMqListResp> {
|
|
282
|
-
return fm.fetchReq<GetRabbitMqListReq, GetRabbitMqListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmqs?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
300
|
+
return fm.fetchReq<GetRabbitMqListReq, GetRabbitMqListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/rabbitmqs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
283
301
|
}
|
|
284
302
|
static GetRabbitMqOperatorVersionList(req: GetRabbitMqOperatorVersionListReq, initReq?: fm.InitReq): Promise<GetRabbitMqOperatorVersionListResp> {
|
|
285
|
-
return fm.fetchReq<GetRabbitMqOperatorVersionListReq, GetRabbitMqOperatorVersionListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq-operator
|
|
303
|
+
return fm.fetchReq<GetRabbitMqOperatorVersionListReq, GetRabbitMqOperatorVersionListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq-operator/versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
286
304
|
}
|
|
287
305
|
static GetRabbitMq(req: GetRabbitMqReq, initReq?: fm.InitReq): Promise<GetRabbitMqResp> {
|
|
288
306
|
return fm.fetchReq<GetRabbitMqReq, GetRabbitMqResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
@@ -291,10 +309,10 @@ export class RabbitMq {
|
|
|
291
309
|
return fm.fetchReq<GetRabbitMqParamReq, GetRabbitMqParamResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq-params/${req["cluster"]}?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
292
310
|
}
|
|
293
311
|
static GetRabbitMqNodeList(req: GetRabbitMqNodeListReq, initReq?: fm.InitReq): Promise<GetRabbitMqNodeListResp> {
|
|
294
|
-
return fm.fetchReq<GetRabbitMqNodeListReq, GetRabbitMqNodeListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq
|
|
312
|
+
return fm.fetchReq<GetRabbitMqNodeListReq, GetRabbitMqNodeListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}/nodes?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
295
313
|
}
|
|
296
314
|
static GetRabbitMqGrafanaAddr(req: GetRabbitMqGrafanaAddrReq, initReq?: fm.InitReq): Promise<GetRabbitMqGrafanaAddrResp> {
|
|
297
|
-
return fm.fetchReq<GetRabbitMqGrafanaAddrReq, GetRabbitMqGrafanaAddrResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq/grafana?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
315
|
+
return fm.fetchReq<GetRabbitMqGrafanaAddrReq, GetRabbitMqGrafanaAddrResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}/grafana?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
298
316
|
}
|
|
299
317
|
static CreateRabbitMq(req: CreateRabbitMqReq, initReq?: fm.InitReq): Promise<CreateRabbitMqResp> {
|
|
300
318
|
return fm.fetchReq<CreateRabbitMqReq, CreateRabbitMqResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq`, {...initReq, method: "POST", body: JSON.stringify(req)})
|