@daocloud-proto/mcamel-kafka 0.7.0-rc1-1 → 0.7.2-3

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 CHANGED
@@ -7,6 +7,26 @@
7
7
  import * as CommonCommon from "./common.pb"
8
8
  import * as fm from "./fetch.pb"
9
9
 
10
+ export enum PermissionsType {
11
+ None = "None",
12
+ GetInstance = "GetInstance",
13
+ CreateInstance = "CreateInstance",
14
+ UpdateInstance = "UpdateInstance",
15
+ DeleteInstance = "DeleteInstance",
16
+ GetMetric = "GetMetric",
17
+ GetInstanceLog = "GetInstanceLog",
18
+ GetConfig = "GetConfig",
19
+ UpdateConfig = "UpdateConfig",
20
+ GetBackup = "GetBackup",
21
+ CreateBackup = "CreateBackup",
22
+ UpdateBackup = "UpdateBackup",
23
+ DeleteBackup = "DeleteBackup",
24
+ GetBackupConf = "GetBackupConf",
25
+ CreateBackupConf = "CreateBackupConf",
26
+ UpdateBackupConf = "UpdateBackupConf",
27
+ DeleteBackupConf = "DeleteBackupConf",
28
+ }
29
+
10
30
  export enum EventType {
11
31
  EVENT_TYPE_UNSPECIFIED = "EVENT_TYPE_UNSPECIFIED",
12
32
  Normal = "Normal",
@@ -33,6 +53,34 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
33
53
  Install = "Install",
34
54
  }
35
55
 
56
+ export type GetPermissionsListReq = {
57
+ workspaceId?: number
58
+ }
59
+
60
+ export type GetPermissionsListRespPermissions = {
61
+ getInstance?: boolean
62
+ createInstance?: boolean
63
+ updateInstance?: boolean
64
+ deleteInstance?: boolean
65
+ getMetric?: boolean
66
+ getInstanceLog?: boolean
67
+ getConfig?: boolean
68
+ updateConfig?: boolean
69
+ getBackup?: boolean
70
+ createBackup?: boolean
71
+ updateBackup?: boolean
72
+ deleteBackup?: boolean
73
+ getBackupConf?: boolean
74
+ createBackupConf?: boolean
75
+ updateBackupConf?: boolean
76
+ deleteBackupConf?: boolean
77
+ }
78
+
79
+ export type GetPermissionsListResp = {
80
+ permissionsBool?: GetPermissionsListRespPermissions
81
+ permissions?: PermissionsType[]
82
+ }
83
+
36
84
  export type GetAllEventKindsListResp = {
37
85
  data?: string[]
38
86
  }
@@ -115,6 +163,7 @@ export type GetClusterPodLabelListReq = {
115
163
  page?: number
116
164
  pageSize?: number
117
165
  searchKey?: string
166
+ filterNamespace?: string
118
167
  cluster?: string
119
168
  }
120
169
 
@@ -268,4 +317,7 @@ export class Cluster {
268
317
  static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
269
318
  return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
270
319
  }
320
+ static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
321
+ return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
322
+ }
271
323
  }
package/common.pb.ts CHANGED
@@ -151,6 +151,7 @@ export type PodCommon = {
151
151
  containersName?: string[]
152
152
  ownerReference?: OwnerReference[]
153
153
  initContainersName?: string[]
154
+ initContainersStatuses?: ContainerStatus[]
154
155
  }
155
156
 
156
157
  export type OwnerReference = {
@@ -164,7 +165,50 @@ export type CommonItemStatus = {
164
165
  serviceAddresses?: string[]
165
166
  webManagerAddress?: string
166
167
  webLogAddress?: string
167
- isHwameistorSc?: boolean
168
168
  avgPvAllocatedInGb?: number
169
169
  avgPvUsedInGb?: number
170
+ }
171
+
172
+ export type AccessWhitelistInternal = {
173
+ namespace?: string
174
+ podSelector?: {[key: string]: string}
175
+ }
176
+
177
+ export type AccessWhitelistExternal = {
178
+ cidr?: string
179
+ ip?: string
180
+ }
181
+
182
+ export type AccessWhitelist = {
183
+ internals?: AccessWhitelistInternal[]
184
+ externals?: AccessWhitelistExternal[]
185
+ }
186
+
187
+ export type ContainerStatus = {
188
+ name?: string
189
+ state?: ContainerState
190
+ }
191
+
192
+ export type ContainerState = {
193
+ waiting?: ContainerStateWaiting
194
+ running?: ContainerStateRunning
195
+ terminated?: ContainerStateTerminated
196
+ }
197
+
198
+ export type ContainerStateWaiting = {
199
+ reason?: string
200
+ message?: string
201
+ }
202
+
203
+ export type ContainerStateRunning = {
204
+ startedAt?: string
205
+ }
206
+
207
+ export type ContainerStateTerminated = {
208
+ exitCode?: number
209
+ signal?: number
210
+ reason?: string
211
+ message?: string
212
+ startedAt?: string
213
+ finishedAt?: string
170
214
  }
package/kafka.pb.ts CHANGED
@@ -187,8 +187,7 @@ export type CreateKafkaReq = {
187
187
  managerLbTyp?: CommonCommon.LBTyp
188
188
  managerLbPoolName?: string
189
189
  managerLbAddress?: string
190
- ingressFromIps?: string[]
191
- ingressFromCidrs?: string[]
190
+ accessWhitelist?: CommonCommon.AccessWhitelist
192
191
  }
193
192
 
194
193
  export type UpdateKafkaParamsResp = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-kafka",
3
- "version":"0.7.0-rc1-1",
3
+ "version":"0.7.2-3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {