@daocloud-proto/mcamel-rabbitmq 0.4.0-10
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 +46 -0
- package/package.json +12 -0
- package/rabbitmq.pb.ts +315 -0
- package/version.pb.ts +27 -0
package/cluster.pb.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../../v1alpha1/ts_out/api"
|
|
8
|
+
|
|
9
|
+
export enum GetClusterListRespGetClusterListDataClusterPhase {
|
|
10
|
+
CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED",
|
|
11
|
+
UNKNOWN = "UNKNOWN",
|
|
12
|
+
CREATING = "CREATING",
|
|
13
|
+
RUNNING = "RUNNING",
|
|
14
|
+
UPDATING = "UPDATING",
|
|
15
|
+
DELETING = "DELETING",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type GetClusterListReq = {
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type GetClusterListRespGetClusterListData = {
|
|
22
|
+
name?: string
|
|
23
|
+
phase?: GetClusterListRespGetClusterListDataClusterPhase
|
|
24
|
+
kubeSystemID?: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type GetClusterListResp = {
|
|
28
|
+
data?: GetClusterListRespGetClusterListData[]
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type GetClusterNamespaceListReq = {
|
|
32
|
+
cluster?: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type GetClusterNamespaceListResp = {
|
|
36
|
+
data?: string[]
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class Cluster {
|
|
40
|
+
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
41
|
+
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
42
|
+
}
|
|
43
|
+
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
44
|
+
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/v1alpha1/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
45
|
+
}
|
|
46
|
+
}
|
package/package.json
ADDED
package/rabbitmq.pb.ts
ADDED
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../../v1alpha1/ts_out/api"
|
|
8
|
+
|
|
9
|
+
export enum GetRabbitMqParamRespSelectSelectType {
|
|
10
|
+
Single = "Single",
|
|
11
|
+
Multiple = "Multiple",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type GetRabbitMqListReq = {
|
|
15
|
+
page?: number
|
|
16
|
+
size?: number
|
|
17
|
+
searchKey?: string
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type GetRabbitMqParamReq = {
|
|
21
|
+
cluster?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type CreateRabbitMqReqPorts = {
|
|
25
|
+
name?: string
|
|
26
|
+
protocol?: string
|
|
27
|
+
port?: number
|
|
28
|
+
targetPort?: number
|
|
29
|
+
nodePort?: number
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type CreateRabbitMqReq = {
|
|
33
|
+
cluster?: string
|
|
34
|
+
namespace?: string
|
|
35
|
+
name?: string
|
|
36
|
+
describe?: string
|
|
37
|
+
version?: string
|
|
38
|
+
replicas?: number
|
|
39
|
+
resource?: string
|
|
40
|
+
storageClassName?: string
|
|
41
|
+
storageCapacity?: string
|
|
42
|
+
defaultUser?: string
|
|
43
|
+
defaultPass?: string
|
|
44
|
+
serviceType?: string
|
|
45
|
+
serviceAnnotations?: {[key: string]: string}
|
|
46
|
+
ports?: CreateRabbitMqReqPorts[]
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type UpdateRabbitMqReq = {
|
|
50
|
+
cluster?: string
|
|
51
|
+
namespace?: string
|
|
52
|
+
name?: string
|
|
53
|
+
defaultUser?: string
|
|
54
|
+
defaultPass?: string
|
|
55
|
+
resource?: string
|
|
56
|
+
replicas?: number
|
|
57
|
+
storageCapacity?: string
|
|
58
|
+
serviceType?: string
|
|
59
|
+
serviceAnnotations?: {[key: string]: string}
|
|
60
|
+
describe?: string
|
|
61
|
+
ports?: CreateRabbitMqReqPorts[]
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type UpdateRabbitMqResp = {
|
|
65
|
+
message?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type GetRabbitMqParamRespSelectData = {
|
|
69
|
+
data?: {[key: string]: string}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type GetRabbitMqParamRespSelect = {
|
|
73
|
+
selectType?: GetRabbitMqParamRespSelectSelectType
|
|
74
|
+
data?: GetRabbitMqParamRespSelectData[]
|
|
75
|
+
value?: string[]
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type GetRabbitMqParamResp = {
|
|
79
|
+
version?: string
|
|
80
|
+
replicas?: GetRabbitMqParamRespSelect
|
|
81
|
+
resource?: GetRabbitMqParamRespSelect
|
|
82
|
+
storage?: GetRabbitMqParamRespSelect
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type CreateRabbitMqResp = {
|
|
86
|
+
message?: string
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type GetRabbitMqOperatorVersionListReq = {
|
|
90
|
+
cluster?: string
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type GetRabbitMqOperatorVersionListRespGetRabbitMqOperatorVersionListData = {
|
|
94
|
+
cluster?: string
|
|
95
|
+
namespace?: string
|
|
96
|
+
version?: string
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export type GetRabbitMqOperatorVersionListResp = {
|
|
100
|
+
data?: GetRabbitMqOperatorVersionListRespGetRabbitMqOperatorVersionListData[]
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type DeleteRabbitMqReq = {
|
|
104
|
+
cluster?: string
|
|
105
|
+
namespace?: string
|
|
106
|
+
name?: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type DeleteRabbitMqsReq = {
|
|
110
|
+
data?: DeleteRabbitMqReq[]
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type DeleteRabbitMqResp = {
|
|
114
|
+
message?: string
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type DeleteRabbitMqsResp = {
|
|
118
|
+
message?: string
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type GetRabbitMqNodeListReq = {
|
|
122
|
+
cluster?: string
|
|
123
|
+
namespace?: string
|
|
124
|
+
name?: string
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type GetRabbitMqNodeListRespData = {
|
|
128
|
+
podName?: string
|
|
129
|
+
status?: string
|
|
130
|
+
nodeName?: string
|
|
131
|
+
ip?: string
|
|
132
|
+
restart?: number
|
|
133
|
+
cpuUsage?: string
|
|
134
|
+
memoryUsage?: string
|
|
135
|
+
createTime?: string
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type GetRabbitMqNodeListResp = {
|
|
139
|
+
data?: GetRabbitMqNodeListRespData[]
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type GetRabbitMqReq = {
|
|
143
|
+
cluster?: string
|
|
144
|
+
namespace?: string
|
|
145
|
+
name?: string
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export type GetRabbitMqResp = {
|
|
149
|
+
data?: RabbitmqClusterItem
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export type GetRabbitMqListResp = {
|
|
153
|
+
data?: RabbitmqClusterList
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export type RabbitmqClusterItemExtend = {
|
|
157
|
+
atLeastOneEndpointAvailable?: boolean
|
|
158
|
+
podsAreReadyNum?: number
|
|
159
|
+
webManagerAddr?: string
|
|
160
|
+
clusterIPs?: string[]
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export type RabbitmqClusterListMetadata = {
|
|
164
|
+
remainingItemCount?: number
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export type RabbitmqClusterList = {
|
|
168
|
+
metadata?: RabbitmqClusterListMetadata
|
|
169
|
+
items?: RabbitmqClusterItem[]
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export type RabbitmqClusterItemMetadata = {
|
|
173
|
+
annotations?: {[key: string]: string}
|
|
174
|
+
creationTimestamp?: string
|
|
175
|
+
finalizers?: string[]
|
|
176
|
+
generation?: number
|
|
177
|
+
name?: string
|
|
178
|
+
namespace?: string
|
|
179
|
+
resourceVersion?: string
|
|
180
|
+
uid?: string
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export type RabbitmqClusterItemSpecOverride = {
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export type RabbitmqClusterItemSpecPersistence = {
|
|
187
|
+
storage?: string
|
|
188
|
+
storageClassName?: string
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export type RabbitmqClusterItemSpecRabbitmq = {
|
|
192
|
+
additionalConfig?: string
|
|
193
|
+
additionalPlugins?: string[]
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export type RabbitmqClusterItemSpecResourcesLimits = {
|
|
197
|
+
cpu?: string
|
|
198
|
+
memory?: string
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export type RabbitmqClusterItemSpecResourcesRequests = {
|
|
202
|
+
cpu?: string
|
|
203
|
+
memory?: string
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type RabbitmqClusterItemSpecResources = {
|
|
207
|
+
limits?: RabbitmqClusterItemSpecResourcesLimits
|
|
208
|
+
requests?: RabbitmqClusterItemSpecResourcesRequests
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export type RabbitmqClusterItemSpecSecretBackend = {
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export type RabbitmqClusterItemSpecServiceAnnotations = {
|
|
215
|
+
asd?: string
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export type RabbitmqClusterItemSpecService = {
|
|
219
|
+
annotations?: RabbitmqClusterItemSpecServiceAnnotations
|
|
220
|
+
type?: string
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export type RabbitmqClusterItemSpecTls = {
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export type RabbitmqClusterItemSpec = {
|
|
227
|
+
image?: string
|
|
228
|
+
override?: RabbitmqClusterItemSpecOverride
|
|
229
|
+
persistence?: RabbitmqClusterItemSpecPersistence
|
|
230
|
+
rabbitmq?: RabbitmqClusterItemSpecRabbitmq
|
|
231
|
+
replicas?: number
|
|
232
|
+
resources?: RabbitmqClusterItemSpecResources
|
|
233
|
+
secretBackend?: RabbitmqClusterItemSpecSecretBackend
|
|
234
|
+
service?: RabbitmqClusterItemSpecService
|
|
235
|
+
terminationGracePeriodSeconds?: number
|
|
236
|
+
tls?: RabbitmqClusterItemSpecTls
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export type RabbitmqClusterItemStatusBinding = {
|
|
240
|
+
name?: string
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export type RabbitmqClusterItemStatusConditions = {
|
|
244
|
+
lastTransitionTime?: string
|
|
245
|
+
reason?: string
|
|
246
|
+
status?: string
|
|
247
|
+
type?: string
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export type RabbitmqClusterItemStatusDefaultUserSecretReferenceKeys = {
|
|
251
|
+
password?: string
|
|
252
|
+
username?: string
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export type RabbitmqClusterItemStatusDefaultUserSecretReference = {
|
|
256
|
+
keys?: RabbitmqClusterItemStatusDefaultUserSecretReferenceKeys
|
|
257
|
+
name?: string
|
|
258
|
+
namespace?: string
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export type RabbitmqClusterItemStatusDefaultUserServiceReference = {
|
|
262
|
+
name?: string
|
|
263
|
+
namespace?: string
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export type RabbitmqClusterItemStatusDefaultUser = {
|
|
267
|
+
secretReference?: RabbitmqClusterItemStatusDefaultUserSecretReference
|
|
268
|
+
serviceReference?: RabbitmqClusterItemStatusDefaultUserServiceReference
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export type RabbitmqClusterItemStatus = {
|
|
272
|
+
binding?: RabbitmqClusterItemStatusBinding
|
|
273
|
+
conditions?: RabbitmqClusterItemStatusConditions[]
|
|
274
|
+
defaultUser?: RabbitmqClusterItemStatusDefaultUser
|
|
275
|
+
observedGeneration?: number
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export type RabbitmqClusterItem = {
|
|
279
|
+
apiVersion?: string
|
|
280
|
+
kind?: string
|
|
281
|
+
metadata?: RabbitmqClusterItemMetadata
|
|
282
|
+
spec?: RabbitmqClusterItemSpec
|
|
283
|
+
status?: RabbitmqClusterItemStatus
|
|
284
|
+
extend?: RabbitmqClusterItemExtend
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export class RabbitMq {
|
|
288
|
+
static GetRabbitMqList(req: GetRabbitMqListReq, initReq?: fm.InitReq): Promise<GetRabbitMqListResp> {
|
|
289
|
+
return fm.fetchReq<GetRabbitMqListReq, GetRabbitMqListResp>(`/apis/mcamel.io/v1alpha1/rabbitmqs?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
290
|
+
}
|
|
291
|
+
static GetRabbitMqOperatorVersionList(req: GetRabbitMqOperatorVersionListReq, initReq?: fm.InitReq): Promise<GetRabbitMqOperatorVersionListResp> {
|
|
292
|
+
return fm.fetchReq<GetRabbitMqOperatorVersionListReq, GetRabbitMqOperatorVersionListResp>(`/apis/mcamel.io/v1alpha1/rabbitmq-operator/${req["cluster"]}/versions?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
293
|
+
}
|
|
294
|
+
static GetRabbitMq(req: GetRabbitMqReq, initReq?: fm.InitReq): Promise<GetRabbitMqResp> {
|
|
295
|
+
return fm.fetchReq<GetRabbitMqReq, GetRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
296
|
+
}
|
|
297
|
+
static GetRabbitMqParam(req: GetRabbitMqParamReq, initReq?: fm.InitReq): Promise<GetRabbitMqParamResp> {
|
|
298
|
+
return fm.fetchReq<GetRabbitMqParamReq, GetRabbitMqParamResp>(`/apis/mcamel.io/v1alpha1/rabbitmq-params/${req["cluster"]}?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
299
|
+
}
|
|
300
|
+
static GetRabbitMqNodeList(req: GetRabbitMqNodeListReq, initReq?: fm.InitReq): Promise<GetRabbitMqNodeListResp> {
|
|
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"})
|
|
302
|
+
}
|
|
303
|
+
static CreateRabbitMq(req: CreateRabbitMqReq, initReq?: fm.InitReq): Promise<CreateRabbitMqResp> {
|
|
304
|
+
return fm.fetchReq<CreateRabbitMqReq, CreateRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
305
|
+
}
|
|
306
|
+
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: "PUT", body: JSON.stringify(req)})
|
|
308
|
+
}
|
|
309
|
+
static DeleteRabbitMq(req: DeleteRabbitMqReq, initReq?: fm.InitReq): Promise<DeleteRabbitMqResp> {
|
|
310
|
+
return fm.fetchReq<DeleteRabbitMqReq, DeleteRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
311
|
+
}
|
|
312
|
+
static DeleteRabbitMqs(req: DeleteRabbitMqsReq, initReq?: fm.InitReq): Promise<DeleteRabbitMqsResp> {
|
|
313
|
+
return fm.fetchReq<DeleteRabbitMqsReq, DeleteRabbitMqsResp>(`/apis/mcamel.io/v1alpha1/rabbitmqs`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
314
|
+
}
|
|
315
|
+
}
|
package/version.pb.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../../v1alpha1/ts_out/api"
|
|
8
|
+
export type CommonReply = {
|
|
9
|
+
code?: number
|
|
10
|
+
msg?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type GetVersionReply = {
|
|
14
|
+
commonReply?: CommonReply
|
|
15
|
+
gitCommit?: string
|
|
16
|
+
gitVersion?: string
|
|
17
|
+
buildTime?: string
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type Empty = {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class Version {
|
|
24
|
+
static Get(req: Empty, initReq?: fm.InitReq): Promise<GetVersionReply> {
|
|
25
|
+
return fm.fetchReq<Empty, GetVersionReply>(`/apis/mcamel.io/v1alpha1/rabbitmq/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
26
|
+
}
|
|
27
|
+
}
|