@daocloud-proto/mcamel-rabbitmq 0.12.1-4 → 0.12.1-40

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
@@ -25,6 +25,10 @@ export enum PermissionsType {
25
25
  CreateBackupConf = "CreateBackupConf",
26
26
  UpdateBackupConf = "UpdateBackupConf",
27
27
  DeleteBackupConf = "DeleteBackupConf",
28
+ GetTemplate = "GetTemplate",
29
+ CreateTemplate = "CreateTemplate",
30
+ UpdateTemplate = "UpdateTemplate",
31
+ DeleteTemplate = "DeleteTemplate",
28
32
  }
29
33
 
30
34
  export enum EventType {
@@ -48,11 +52,29 @@ export enum GetWorkspaceListReqSortDir {
48
52
  DESC = "DESC",
49
53
  }
50
54
 
55
+ export enum ClusterItemNetworkMode {
56
+ Unknown = "Unknown",
57
+ Flannel = "Flannel",
58
+ Calico = "Calico",
59
+ }
60
+
51
61
  export enum GetInsightAgentStatusRespInsightAgentStatus {
52
62
  NotInstall = "NotInstall",
53
63
  Install = "Install",
54
64
  }
55
65
 
66
+ export type RestartInstanceReq = {
67
+ workspaceId?: number
68
+ cluster?: string
69
+ namespace?: string
70
+ name?: string
71
+ extra?: string
72
+ }
73
+
74
+ export type RestartInstanceResp = {
75
+ message?: string
76
+ }
77
+
56
78
  export type GetPermissionsListReq = {
57
79
  workspaceId?: number
58
80
  }
@@ -74,6 +96,10 @@ export type GetPermissionsListRespPermissions = {
74
96
  createBackupConf?: boolean
75
97
  updateBackupConf?: boolean
76
98
  deleteBackupConf?: boolean
99
+ getTemplate?: boolean
100
+ createTemplate?: boolean
101
+ updateTemplate?: boolean
102
+ deleteTemplate?: boolean
77
103
  }
78
104
 
79
105
  export type GetPermissionsListResp = {
@@ -249,6 +275,7 @@ export type GetWorkspaceListReq = {
249
275
  export type GetWorkspaceListRespItem = {
250
276
  workspaceId?: number
251
277
  alias?: string
278
+ visible?: boolean
252
279
  }
253
280
 
254
281
  export type GetWorkspaceListResp = {
@@ -258,13 +285,28 @@ export type GetWorkspaceListResp = {
258
285
 
259
286
  export type GetClusterListReq = {
260
287
  workspaceId?: number
288
+ searchKey?: string
261
289
  }
262
290
 
263
291
  export type GetClusterListResp = {
264
292
  items?: string[]
293
+ clusters?: ClusterItem[]
265
294
  pagination?: CommonCommon.Pagination
266
295
  }
267
296
 
297
+ export type ClusterItemMetadata = {
298
+ name?: string
299
+ }
300
+
301
+ export type ClusterItemStatus = {
302
+ networkMode?: ClusterItemNetworkMode[]
303
+ }
304
+
305
+ export type ClusterItem = {
306
+ metadata?: ClusterItemMetadata
307
+ status?: ClusterItemStatus
308
+ }
309
+
268
310
  export type GetClusterNamespaceListReq = {
269
311
  workspaceId?: number
270
312
  cluster?: string
@@ -320,4 +362,7 @@ export class Cluster {
320
362
  static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
321
363
  return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
322
364
  }
365
+ static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
366
+ return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
367
+ }
323
368
  }
package/common.pb.ts CHANGED
@@ -152,6 +152,7 @@ export type PodCommon = {
152
152
  ownerReference?: OwnerReference[]
153
153
  initContainersName?: string[]
154
154
  initContainersStatuses?: ContainerStatus[]
155
+ containersStatuses?: ContainerStatus[]
155
156
  }
156
157
 
157
158
  export type OwnerReference = {
@@ -167,6 +168,8 @@ export type CommonItemStatus = {
167
168
  webLogAddress?: string
168
169
  avgPvAllocatedInGb?: number
169
170
  avgPvUsedInGb?: number
171
+ cpuUtilization?: number
172
+ memoryUtilization?: number
170
173
  }
171
174
 
172
175
  export type AccessWhitelistInternal = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-rabbitmq",
3
- "version":"0.12.1-4",
3
+ "version":"0.12.1-40",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {