@daocloud-proto/mcamel-kafka 0.2.0-21 → 0.2.0-211

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.
@@ -0,0 +1,78 @@
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 GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
8
+ import * as CommonCommon from "./common.pb"
9
+ import * as fm from "./fetch.pb"
10
+
11
+ export enum CreateCloudShellRequestType {
12
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
13
+ bash = "bash",
14
+ exec = "exec",
15
+ logs = "logs",
16
+ upload = "upload",
17
+ download = "download",
18
+ }
19
+
20
+ export type ObjectMeta = {
21
+ name?: string
22
+ namespace?: string
23
+ uid?: string
24
+ resourceVersion?: string
25
+ creationTimestamp?: string
26
+ deletionTimestamp?: string
27
+ labels?: {[key: string]: string}
28
+ annotations?: {[key: string]: string}
29
+ ownerReferences?: CommonCommon.OwnerReference[]
30
+ cluster?: string
31
+ workspaceAlias?: string
32
+ }
33
+
34
+ export type CloudShell = {
35
+ metadata?: ObjectMeta
36
+ spec?: CloudShellSpec
37
+ status?: CloudShellStatus
38
+ }
39
+
40
+ export type CloudShellSpec = {
41
+ configMapName?: string
42
+ once?: boolean
43
+ commandAction?: string
44
+ ttl?: number
45
+ cleanup?: boolean
46
+ }
47
+
48
+ export type CloudShellStatus = {
49
+ phase?: string
50
+ accessUrl?: string
51
+ }
52
+
53
+ export type CreateCloudShellRequest = {
54
+ type?: CreateCloudShellRequestType
55
+ cluster?: string
56
+ namespace?: string
57
+ podName?: string
58
+ filePath?: string
59
+ container?: string
60
+ logCount?: number
61
+ data?: CloudShell
62
+ }
63
+
64
+ export type GetorDeleteCloudShellRequest = {
65
+ name?: string
66
+ }
67
+
68
+ export class CloudShellService {
69
+ static CreateCloudShell(req: CreateCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
70
+ return fm.fetchReq<CreateCloudShellRequest, CloudShell>(`/apis/mcamel.io/kafka/v1alpha1/cloudshells`, {...initReq, method: "POST", body: JSON.stringify(req)})
71
+ }
72
+ static GetCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
73
+ return fm.fetchReq<GetorDeleteCloudShellRequest, CloudShell>(`/apis/mcamel.io/kafka/v1alpha1/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
74
+ }
75
+ static DeleteCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
76
+ return fm.fetchReq<GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/mcamel.io/kafka/v1alpha1/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
77
+ }
78
+ }
package/cluster.pb.ts CHANGED
@@ -13,6 +13,11 @@ export enum EventType {
13
13
  Warning = "Warning",
14
14
  }
15
15
 
16
+ export enum GetAllEventListReqSortDir {
17
+ ASC = "ASC",
18
+ DESC = "DESC",
19
+ }
20
+
16
21
  export enum GetEventListReqKind {
17
22
  KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
18
23
  Pod = "Pod",
@@ -28,6 +33,70 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
28
33
  Install = "Install",
29
34
  }
30
35
 
36
+ export type GetAllEventKindsListResp = {
37
+ data?: string[]
38
+ }
39
+
40
+ export type GetAllEventKindsListReq = {
41
+ cluster?: string
42
+ }
43
+
44
+ export type GetAllEventListReq = {
45
+ page?: number
46
+ pageSize?: number
47
+ sortDir?: GetAllEventListReqSortDir
48
+ sortBy?: string
49
+ searchKey?: string
50
+ cluster?: string
51
+ namespace?: string
52
+ name?: string
53
+ eventType?: EventType
54
+ kindName?: string
55
+ }
56
+
57
+ export type GetAllEventListRespItemsSource = {
58
+ component?: string
59
+ }
60
+
61
+ export type GetAllEventListRespItemsMetadata = {
62
+ uid?: string
63
+ name?: string
64
+ namespace?: string
65
+ annotations?: {[key: string]: string}
66
+ resourceVersion?: string
67
+ creationTimestamp?: string
68
+ }
69
+
70
+ export type GetAllEventListRespItemsInvolvedObject = {
71
+ uid?: string
72
+ kind?: string
73
+ name?: string
74
+ namespace?: string
75
+ apiVersion?: string
76
+ resourceVersion?: string
77
+ }
78
+
79
+ export type GetAllEventListRespItems = {
80
+ kind?: string
81
+ type?: string
82
+ count?: number
83
+ reason?: string
84
+ source?: GetAllEventListRespItemsSource
85
+ message?: string
86
+ metadata?: GetAllEventListRespItemsMetadata
87
+ apiVersion?: string
88
+ lastTimestamp?: string
89
+ firstTimestamp?: string
90
+ involvedObject?: GetAllEventListRespItemsInvolvedObject
91
+ reportingInstance?: string
92
+ reportingComponent?: string
93
+ }
94
+
95
+ export type GetAllEventListResp = {
96
+ items?: GetAllEventListRespItems[]
97
+ pagination?: CommonCommon.Pagination
98
+ }
99
+
31
100
  export type GetClusterNodeLabelListReq = {
32
101
  cluster?: string
33
102
  }
@@ -42,6 +111,23 @@ export type GetClusterNodeLabelListResp = {
42
111
  pagination?: CommonCommon.Pagination
43
112
  }
44
113
 
114
+ export type GetClusterPodLabelListReq = {
115
+ page?: number
116
+ pageSize?: number
117
+ searchKey?: string
118
+ cluster?: string
119
+ }
120
+
121
+ export type GetClusterPodLabelListRespLabel = {
122
+ key?: string
123
+ value?: string[]
124
+ }
125
+
126
+ export type GetClusterPodLabelListResp = {
127
+ items?: GetClusterPodLabelListRespLabel[]
128
+ pagination?: CommonCommon.Pagination
129
+ }
130
+
45
131
  export type GetClusterNodePortListReq = {
46
132
  cluster?: string
47
133
  }
@@ -56,6 +142,24 @@ export type EventSource = {
56
142
  host?: string
57
143
  }
58
144
 
145
+ export type GetMetallbIPAddressPoolsListReq = {
146
+ cluster?: string
147
+ }
148
+
149
+ export type GetMetallbIPAddressPoolsListRespItem = {
150
+ name?: string
151
+ addresses?: string[]
152
+ autoAssign?: boolean
153
+ avoidBuggyIPs?: boolean
154
+ }
155
+
156
+ export type GetMetallbIPAddressPoolsListResp = {
157
+ items?: GetMetallbIPAddressPoolsListRespItem[]
158
+ isSupportLb?: boolean
159
+ externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy[]
160
+ lbTyp?: CommonCommon.LBTyp[]
161
+ }
162
+
59
163
  export type GetEventListReq = {
60
164
  cluster?: string
61
165
  namespace?: string
@@ -143,6 +247,9 @@ export class Cluster {
143
247
  static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
144
248
  return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
145
249
  }
250
+ static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
251
+ return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
252
+ }
146
253
  static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
147
254
  return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/kafka/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
148
255
  }
@@ -152,4 +259,13 @@ export class Cluster {
152
259
  static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
153
260
  return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
154
261
  }
262
+ static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
263
+ return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
264
+ }
265
+ static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
266
+ return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
267
+ }
268
+ static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
269
+ return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
270
+ }
155
271
  }
package/common.pb.ts CHANGED
@@ -4,6 +4,22 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ export enum ExternalTrafficPolicy {
8
+ Cluster = "Cluster",
9
+ Local = "Local",
10
+ }
11
+
12
+ export enum LBTyp {
13
+ MetalLB = "MetalLB",
14
+ Others = "Others",
15
+ }
16
+
17
+ export enum ServiceType {
18
+ ClusterIP = "ClusterIP",
19
+ NodePort = "NodePort",
20
+ LoadBalancer = "LoadBalancer",
21
+ }
22
+
7
23
  export enum PageInfoReqSortDir {
8
24
  ASC = "ASC",
9
25
  DESC = "DESC",
@@ -129,10 +145,26 @@ export type PodCommon = {
129
145
  cpuLimit?: number
130
146
  memoryUsage?: number
131
147
  memoryLimit?: number
148
+ pvUsedInGb?: number
149
+ pvAllocatedInGb?: number
132
150
  conditions?: PodCommonCondition[]
151
+ containersName?: string[]
152
+ ownerReference?: OwnerReference[]
153
+ initContainersName?: string[]
154
+ }
155
+
156
+ export type OwnerReference = {
157
+ uid?: string
158
+ controller?: boolean
159
+ name?: string
160
+ kind?: string
133
161
  }
134
162
 
135
163
  export type CommonItemStatus = {
136
164
  serviceAddresses?: string[]
137
165
  webManagerAddress?: string
166
+ webLogAddress?: string
167
+ isHwameistorSc?: boolean
168
+ avgPvAllocatedInGb?: number
169
+ avgPvUsedInGb?: number
138
170
  }
package/insight.pb.ts CHANGED
@@ -20,27 +20,23 @@ export enum TargetType {
20
20
  DEPLOYMENT = "DEPLOYMENT",
21
21
  STATEFULSET = "STATEFULSET",
22
22
  DAEMONSET = "DAEMONSET",
23
- CRONJOB = "CRONJOB",
24
23
  POD = "POD",
25
24
  }
26
25
 
27
- export enum AlertStatus {
28
- ALERT_STATUS_UNSPECIFIED = "ALERT_STATUS_UNSPECIFIED",
29
- ALERT_STATUS_FIRING = "ALERT_STATUS_FIRING",
30
- ALERT_STATUS_RESOLVED = "ALERT_STATUS_RESOLVED",
31
- }
32
-
33
26
  export type AlertSummary = {
34
- alertId?: string
27
+ id?: string
28
+ groupName?: string
29
+ groupId?: string
35
30
  ruleName?: string
36
- severity?: Severity
31
+ ruleId?: string
37
32
  clusterName?: string
38
33
  namespace?: string
39
34
  targetType?: TargetType
40
- targetName?: string
41
- status?: AlertStatus
35
+ target?: string
36
+ severity?: Severity
37
+ value?: string
38
+ notifyResponse?: string
42
39
  description?: string
43
40
  startAt?: string
44
41
  updateAt?: string
45
- notifyResponse?: string
46
42
  }
package/kafka.pb.ts CHANGED
@@ -27,10 +27,14 @@ export enum GetKafkaListReqSortDir {
27
27
  DESC = "DESC",
28
28
  }
29
29
 
30
- export enum CreateKafkaReqServiceType {
31
- ClusterIP = "ClusterIP",
32
- NodePort = "NodePort",
33
- LoadBalancer = "LoadBalancer",
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",
34
38
  }
35
39
 
36
40
  export enum GetKafkaParamRespSelectSelectType {
@@ -96,6 +100,41 @@ export type GetKafkaParamReq = {
96
100
  cluster?: string
97
101
  }
98
102
 
103
+ export type GetKafkaConfReq = {
104
+ page?: number
105
+ pageSize?: number
106
+ sortDir?: GetKafkaConfReqSortDir
107
+ sortBy?: string
108
+ searchKey?: string
109
+ cluster?: string
110
+ namespace?: string
111
+ name?: string
112
+ }
113
+
114
+ export type GetKafkaConfRespItems = {
115
+ paramType?: GetKafkaConfRespItemsParamType
116
+ paramName?: string
117
+ value?: string
118
+ }
119
+
120
+ export type GetKafkaConfResp = {
121
+ items?: GetKafkaConfRespItems[]
122
+ pagination?: CommonCommon.Pagination
123
+ conf?: UpdateKafkaConfReq
124
+ }
125
+
126
+ export type UpdateKafkaConfResp = {
127
+ message?: string
128
+ }
129
+
130
+ export type UpdateKafkaConfReq = {
131
+ cluster?: string
132
+ namespace?: string
133
+ name?: string
134
+ kafkaConf?: string
135
+ zookeeperConf?: string
136
+ }
137
+
99
138
  export type CreateKafkaReqPorts = {
100
139
  name?: string
101
140
  protocol?: string
@@ -113,7 +152,7 @@ export type CreateKafkaReq = {
113
152
  kafkaReplicas?: number
114
153
  storageClassName?: string
115
154
  storageCapacity?: string
116
- serviceType?: CreateKafkaReqServiceType
155
+ serviceType?: CommonCommon.ServiceType
117
156
  serviceAnnotations?: {[key: string]: string}
118
157
  ports?: CreateKafkaReqPorts[]
119
158
  cpuRequest?: string
@@ -129,7 +168,7 @@ export type CreateKafkaReq = {
129
168
  managerUser?: string
130
169
  managerPass?: string
131
170
  managerReplicas?: number
132
- managerServiceType?: CreateKafkaReqServiceType
171
+ managerServiceType?: CommonCommon.ServiceType
133
172
  managerPorts?: CreateKafkaReqPorts[]
134
173
  managerServiceAnnotations?: {[key: string]: string}
135
174
  zookeeperReplicas?: number
@@ -139,6 +178,17 @@ export type CreateKafkaReq = {
139
178
  zookeeperMemoryRequest?: string
140
179
  zookeeperMemoryLimit?: string
141
180
  affinity?: CommonCommon.Affinity
181
+ serviceMonitorInterval?: string
182
+ externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
183
+ lbTyp?: CommonCommon.LBTyp
184
+ lbPoolName?: string
185
+ lbAddress?: string
186
+ managerExternalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
187
+ managerLbTyp?: CommonCommon.LBTyp
188
+ managerLbPoolName?: string
189
+ managerLbAddress?: string
190
+ ingressFromIps?: string[]
191
+ ingressFromCidrs?: string[]
142
192
  }
143
193
 
144
194
  export type UpdateKafkaParamsResp = {
@@ -256,6 +306,8 @@ export type GetKafkaGrafanaAddrReq = {
256
306
  cluster?: string
257
307
  namespace?: string
258
308
  name?: string
309
+ from?: string
310
+ to?: string
259
311
  }
260
312
 
261
313
  export type GetKafkaGrafanaAddrResp = {
@@ -315,6 +367,12 @@ export class Kafka {
315
367
  static GetKafkaParam(req: GetKafkaParamReq, initReq?: fm.InitReq): Promise<GetKafkaParamResp> {
316
368
  return fm.fetchReq<GetKafkaParamReq, GetKafkaParamResp>(`/apis/mcamel.io/kafka/v1alpha1/kafka-params/${req["cluster"]}?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
317
369
  }
370
+ static GetKafkaConf(req: GetKafkaConfReq, initReq?: fm.InitReq): Promise<GetKafkaConfResp> {
371
+ return fm.fetchReq<GetKafkaConfReq, GetKafkaConfResp>(`/apis/mcamel.io/kafka/v1alpha1/kafka/${req["cluster"]}/${req["namespace"]}/${req["name"]}/confs?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
372
+ }
373
+ static UpdateKafkaConf(req: UpdateKafkaConfReq, initReq?: fm.InitReq): Promise<UpdateKafkaConfResp> {
374
+ return fm.fetchReq<UpdateKafkaConfReq, UpdateKafkaConfResp>(`/apis/mcamel.io/kafka/v1alpha1/kafka/${req["cluster"]}/${req["namespace"]}/${req["name"]}/conf`, {...initReq, method: "PUT", body: JSON.stringify(req)})
375
+ }
318
376
  static GetKafkaNodeList(req: GetKafkaNodeListReq, initReq?: fm.InitReq): Promise<GetKafkaNodeListResp> {
319
377
  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
378
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-kafka",
3
- "version":"0.2.0-21",
3
+ "version":"0.2.0-211",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {