@daocloud-proto/mcamel-kafka 0.12.0-rc1-1 → 0.14.0-rc1-1
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 -2
- package/common.pb.ts +11 -1
- package/kafka.pb.ts +1 -9
- package/package.json +1 -1
- package/template.pb.ts +17 -0
- package/version.pb.ts +7 -0
package/cluster.pb.ts
CHANGED
|
@@ -29,6 +29,7 @@ export enum PermissionsType {
|
|
|
29
29
|
CreateTemplate = "CreateTemplate",
|
|
30
30
|
UpdateTemplate = "UpdateTemplate",
|
|
31
31
|
DeleteTemplate = "DeleteTemplate",
|
|
32
|
+
GetUserPassword = "GetUserPassword",
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
export enum EventType {
|
|
@@ -134,6 +135,7 @@ export type GetPermissionsListRespPermissions = {
|
|
|
134
135
|
createTemplate?: boolean
|
|
135
136
|
updateTemplate?: boolean
|
|
136
137
|
deleteTemplate?: boolean
|
|
138
|
+
getUserPassword?: boolean
|
|
137
139
|
}
|
|
138
140
|
|
|
139
141
|
export type GetPermissionsListResp = {
|
|
@@ -214,8 +216,14 @@ export type GetClusterNodeLabelListRespLabel = {
|
|
|
214
216
|
value?: string[]
|
|
215
217
|
}
|
|
216
218
|
|
|
219
|
+
export type GetClusterNodeLabelListRespNode2Label = {
|
|
220
|
+
nodeName?: string
|
|
221
|
+
label?: GetClusterNodeLabelListRespLabel[]
|
|
222
|
+
}
|
|
223
|
+
|
|
217
224
|
export type GetClusterNodeLabelListResp = {
|
|
218
225
|
items?: GetClusterNodeLabelListRespLabel[]
|
|
226
|
+
items1?: GetClusterNodeLabelListRespNode2Label[]
|
|
219
227
|
pagination?: CommonCommon.Pagination
|
|
220
228
|
}
|
|
221
229
|
|
|
@@ -328,7 +336,7 @@ export type GetClusterListReq = {
|
|
|
328
336
|
}
|
|
329
337
|
|
|
330
338
|
export type GetClusterHostnetworkPortsResp = {
|
|
331
|
-
items?:
|
|
339
|
+
items?: number[]
|
|
332
340
|
}
|
|
333
341
|
|
|
334
342
|
export type GetClusterListResp = {
|
|
@@ -357,6 +365,7 @@ export type GetClusterNamespaceListReq = {
|
|
|
357
365
|
|
|
358
366
|
export type GetClusterNamespaceListResp = {
|
|
359
367
|
items?: string[]
|
|
368
|
+
disableItems?: string[]
|
|
360
369
|
pagination?: CommonCommon.Pagination
|
|
361
370
|
}
|
|
362
371
|
|
|
@@ -366,6 +375,37 @@ export type GetInsightAgentStatusReq = {
|
|
|
366
375
|
|
|
367
376
|
export type GetInsightAgentStatusResp = {
|
|
368
377
|
status?: GetInsightAgentStatusRespInsightAgentStatus
|
|
378
|
+
clusterStatus?: CommonCommon.ClusterStatus
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export type GetResourceQuotaReq = {
|
|
382
|
+
cluster?: string
|
|
383
|
+
namespace?: string
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export type GetResourceQuotaRespMetadata = {
|
|
387
|
+
uid?: string
|
|
388
|
+
name?: string
|
|
389
|
+
namespace?: string
|
|
390
|
+
annotations?: {[key: string]: string}
|
|
391
|
+
resourceVersion?: string
|
|
392
|
+
creationTimestamp?: string
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export type GetResourceQuotaRespSpec = {
|
|
396
|
+
hard?: {[key: string]: string}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export type GetResourceQuotaRespStatus = {
|
|
400
|
+
hard?: {[key: string]: string}
|
|
401
|
+
used?: {[key: string]: string}
|
|
402
|
+
available?: {[key: string]: string}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export type GetResourceQuotaResp = {
|
|
406
|
+
metadata?: GetResourceQuotaRespMetadata
|
|
407
|
+
spec?: GetResourceQuotaRespSpec
|
|
408
|
+
status?: GetResourceQuotaRespStatus
|
|
369
409
|
}
|
|
370
410
|
|
|
371
411
|
export class Cluster {
|
|
@@ -373,7 +413,7 @@ export class Cluster {
|
|
|
373
413
|
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
374
414
|
}
|
|
375
415
|
static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
|
|
376
|
-
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/
|
|
416
|
+
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
377
417
|
}
|
|
378
418
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
379
419
|
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
@@ -417,4 +457,7 @@ export class Cluster {
|
|
|
417
457
|
static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
|
|
418
458
|
return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
419
459
|
}
|
|
460
|
+
static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
|
|
461
|
+
return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
462
|
+
}
|
|
420
463
|
}
|
package/common.pb.ts
CHANGED
|
@@ -20,6 +20,16 @@ export enum ServiceType {
|
|
|
20
20
|
LoadBalancer = "LoadBalancer",
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
export enum ClusterStatus {
|
|
24
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
25
|
+
Unknown = "Unknown",
|
|
26
|
+
Creating = "Creating",
|
|
27
|
+
Running = "Running",
|
|
28
|
+
Updating = "Updating",
|
|
29
|
+
Deleting = "Deleting",
|
|
30
|
+
Failed = "Failed",
|
|
31
|
+
}
|
|
32
|
+
|
|
23
33
|
export enum PageInfoReqSortDir {
|
|
24
34
|
ASC = "ASC",
|
|
25
35
|
DESC = "DESC",
|
|
@@ -170,7 +180,7 @@ export type CommonItemStatus = {
|
|
|
170
180
|
avgPvUsedInGb?: number
|
|
171
181
|
cpuUtilization?: number
|
|
172
182
|
memoryUtilization?: number
|
|
173
|
-
|
|
183
|
+
clusterStatus?: ClusterStatus
|
|
174
184
|
}
|
|
175
185
|
|
|
176
186
|
export type AccessWhitelistInternal = {
|
package/kafka.pb.ts
CHANGED
|
@@ -204,13 +204,6 @@ export type GetKafkaParamRespSelectDataStringValue = {
|
|
|
204
204
|
value?: string
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
export type GetKafkaParamRespSelectDataResourceValue = {
|
|
208
|
-
cpuRequest?: string
|
|
209
|
-
cpuLimit?: string
|
|
210
|
-
memoryRequest?: string
|
|
211
|
-
memoryLimit?: string
|
|
212
|
-
}
|
|
213
|
-
|
|
214
207
|
export type GetKafkaParamRespSelectDataIntValue = {
|
|
215
208
|
value?: number
|
|
216
209
|
}
|
|
@@ -225,7 +218,7 @@ type BaseGetKafkaParamRespSelectData = {
|
|
|
225
218
|
}
|
|
226
219
|
|
|
227
220
|
export type GetKafkaParamRespSelectData = BaseGetKafkaParamRespSelectData
|
|
228
|
-
& OneOf<{ sValue: GetKafkaParamRespSelectDataStringValue;
|
|
221
|
+
& OneOf<{ sValue: GetKafkaParamRespSelectDataStringValue; iValue: GetKafkaParamRespSelectDataIntValue; scValue: GetKafkaParamRespSelectDataStorageClassValue }>
|
|
229
222
|
|
|
230
223
|
export type GetKafkaParamRespSelect = {
|
|
231
224
|
selectType?: GetKafkaParamRespSelectSelectType
|
|
@@ -235,7 +228,6 @@ export type GetKafkaParamRespSelect = {
|
|
|
235
228
|
export type GetKafkaParamResp = {
|
|
236
229
|
version?: GetKafkaParamRespSelect
|
|
237
230
|
replicas?: GetKafkaParamRespSelect
|
|
238
|
-
resource?: GetKafkaParamRespSelect
|
|
239
231
|
storage?: GetKafkaParamRespSelect
|
|
240
232
|
kafkaConf?: GetKafkaParamRespSelect
|
|
241
233
|
zookeeperConf?: GetKafkaParamRespSelect
|
package/package.json
CHANGED
package/template.pb.ts
CHANGED
|
@@ -16,6 +16,7 @@ export enum TemplateInstanceType {
|
|
|
16
16
|
MysqlMgrConfig = "MysqlMgrConfig",
|
|
17
17
|
MongodbConfig = "MongodbConfig",
|
|
18
18
|
PostgresqlConfig = "PostgresqlConfig",
|
|
19
|
+
RabbitmqConfig = "RabbitmqConfig",
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
export enum GetTemplateConfigReqSortDir {
|
|
@@ -34,6 +35,18 @@ export enum TemplateConfigItemValueType {
|
|
|
34
35
|
MultiString = "MultiString",
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
export type UpdateTemplateConfigToItemReq = {
|
|
39
|
+
workspaceId?: number
|
|
40
|
+
conf?: string
|
|
41
|
+
version?: string
|
|
42
|
+
templateInstanceType?: TemplateInstanceType
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type UpdateTemplateConfigToItemResp = {
|
|
46
|
+
items?: TemplateConfigItem[]
|
|
47
|
+
pagination?: CommonCommon.Pagination
|
|
48
|
+
}
|
|
49
|
+
|
|
37
50
|
export type GetTemplateConfigVersionsReq = {
|
|
38
51
|
workspaceId?: number
|
|
39
52
|
}
|
|
@@ -91,6 +104,7 @@ export type CreateTemplateConfigReq = {
|
|
|
91
104
|
targetTemplateType?: string
|
|
92
105
|
targetConf?: string
|
|
93
106
|
fromTemplateName?: string
|
|
107
|
+
targetTemplateInstanceType?: TemplateInstanceType
|
|
94
108
|
}
|
|
95
109
|
|
|
96
110
|
export type UpdateTemplateConfigReq = {
|
|
@@ -166,6 +180,9 @@ export class Template {
|
|
|
166
180
|
static GetTemplateConfigString(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
|
|
167
181
|
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
168
182
|
}
|
|
183
|
+
static UpdateTemplateConfigToItem(req: UpdateTemplateConfigToItemReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigToItemResp> {
|
|
184
|
+
return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/template_config/to_template`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
185
|
+
}
|
|
169
186
|
static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
|
|
170
187
|
return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
171
188
|
}
|
package/version.pb.ts
CHANGED
|
@@ -17,6 +17,10 @@ export type GetVersionReply = {
|
|
|
17
17
|
buildTime?: string
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
export type HealthzReply = {
|
|
21
|
+
message?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
20
24
|
export type Empty = {
|
|
21
25
|
}
|
|
22
26
|
|
|
@@ -24,4 +28,7 @@ export class Version {
|
|
|
24
28
|
static Get(req: Empty, initReq?: fm.InitReq): Promise<GetVersionReply> {
|
|
25
29
|
return fm.fetchReq<Empty, GetVersionReply>(`/apis/mcamel.io/kafka/v1alpha1/kafka/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
26
30
|
}
|
|
31
|
+
static Healthz(req: Empty, initReq?: fm.InitReq): Promise<HealthzReply> {
|
|
32
|
+
return fm.fetchReq<Empty, HealthzReply>(`/healthz?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
33
|
+
}
|
|
27
34
|
}
|