@daocloud-proto/mcamel-kafka 0.0.2 → 0.0.3-15

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 +13 -0
  2. package/package.json +1 -1
package/kafka.pb.ts CHANGED
@@ -58,6 +58,16 @@ export enum GetKafkaNodeListRespNodeType {
58
58
  Manager = "Manager",
59
59
  }
60
60
 
61
+ export type AddKafkaToManagerReq = {
62
+ cluster?: string
63
+ namespace?: string
64
+ name?: string
65
+ }
66
+
67
+ export type AddKafkaToManagerResp = {
68
+ message?: string
69
+ }
70
+
61
71
  export type GetKafkaListReq = {
62
72
  page?: number
63
73
  pageSize?: number
@@ -299,4 +309,7 @@ export class Kafka {
299
309
  static DeleteKafkas(req: DeleteKafkasReq, initReq?: fm.InitReq): Promise<DeleteKafkasResp> {
300
310
  return fm.fetchReq<DeleteKafkasReq, DeleteKafkasResp>(`/apis/mcamel.io/kafka/v1alpha1/kafkas`, {...initReq, method: "POST", body: JSON.stringify(req)})
301
311
  }
312
+ static AddKafkaToManager(req: AddKafkaToManagerReq, initReq?: fm.InitReq): Promise<AddKafkaToManagerResp> {
313
+ return fm.fetchReq<AddKafkaToManagerReq, AddKafkaToManagerResp>(`/apis/mcamel.io/kafka/v1alpha1/kafka/${req["cluster"]}/${req["namespace"]}/${req["name"]}/manager`, {...initReq, method: "POST", body: JSON.stringify(req)})
314
+ }
302
315
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-kafka",
3
- "version":"0.0.2",
3
+ "version":"0.0.3-15",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {