@daocloud-proto/mcamel-kafka 0.5.1-2 → 0.6.0-rc1-12

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/kafka.pb.ts +51 -0
  2. package/package.json +1 -1
package/kafka.pb.ts CHANGED
@@ -27,6 +27,16 @@ export enum GetKafkaListReqSortDir {
27
27
  DESC = "DESC",
28
28
  }
29
29
 
30
+ export enum GetKafkaConfReqSortDir {
31
+ ASC = "ASC",
32
+ DESC = "DESC",
33
+ }
34
+
35
+ export enum GetKafkaConfRespItemsParamType {
36
+ kafka_conf = "kafka_conf",
37
+ zookeeper_conf = "zookeeper_conf",
38
+ }
39
+
30
40
  export enum CreateKafkaReqServiceType {
31
41
  ClusterIP = "ClusterIP",
32
42
  NodePort = "NodePort",
@@ -96,6 +106,41 @@ export type GetKafkaParamReq = {
96
106
  cluster?: string
97
107
  }
98
108
 
109
+ export type GetKafkaConfReq = {
110
+ page?: number
111
+ pageSize?: number
112
+ sortDir?: GetKafkaConfReqSortDir
113
+ sortBy?: string
114
+ searchKey?: string
115
+ cluster?: string
116
+ namespace?: string
117
+ name?: string
118
+ }
119
+
120
+ export type GetKafkaConfRespItems = {
121
+ paramType?: GetKafkaConfRespItemsParamType
122
+ paramName?: string
123
+ value?: string
124
+ }
125
+
126
+ export type GetKafkaConfResp = {
127
+ items?: GetKafkaConfRespItems[]
128
+ pagination?: CommonCommon.Pagination
129
+ conf?: UpdateKafkaConfReq
130
+ }
131
+
132
+ export type UpdateKafkaConfResp = {
133
+ message?: string
134
+ }
135
+
136
+ export type UpdateKafkaConfReq = {
137
+ cluster?: string
138
+ namespace?: string
139
+ name?: string
140
+ kafkaConf?: string
141
+ zookeeperConf?: string
142
+ }
143
+
99
144
  export type CreateKafkaReqPorts = {
100
145
  name?: string
101
146
  protocol?: string
@@ -315,6 +360,12 @@ export class Kafka {
315
360
  static GetKafkaParam(req: GetKafkaParamReq, initReq?: fm.InitReq): Promise<GetKafkaParamResp> {
316
361
  return fm.fetchReq<GetKafkaParamReq, GetKafkaParamResp>(`/apis/mcamel.io/kafka/v1alpha1/kafka-params/${req["cluster"]}?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
317
362
  }
363
+ static GetKafkaConf(req: GetKafkaConfReq, initReq?: fm.InitReq): Promise<GetKafkaConfResp> {
364
+ return fm.fetchReq<GetKafkaConfReq, GetKafkaConfResp>(`/apis/mcamel.io/minio/v1alpha1/kafka/${req["cluster"]}/${req["namespace"]}/${req["name"]}/confs?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
365
+ }
366
+ static UpdateKafkaConf(req: UpdateKafkaConfReq, initReq?: fm.InitReq): Promise<UpdateKafkaConfResp> {
367
+ return fm.fetchReq<UpdateKafkaConfReq, UpdateKafkaConfResp>(`/apis/mcamel.io/minio/v1alpha1/kafka/${req["cluster"]}/${req["namespace"]}/${req["name"]}/conf`, {...initReq, method: "PUT", body: JSON.stringify(req)})
368
+ }
318
369
  static GetKafkaNodeList(req: GetKafkaNodeListReq, initReq?: fm.InitReq): Promise<GetKafkaNodeListResp> {
319
370
  return fm.fetchReq<GetKafkaNodeListReq, GetKafkaNodeListResp>(`/apis/mcamel.io/kafka/v1alpha1/kafka/${req["cluster"]}/${req["namespace"]}/${req["name"]}/nodes?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
320
371
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-kafka",
3
- "version":"0.5.1-2",
3
+ "version":"0.6.0-rc1-12",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {