@daocloud-proto/mcamel-rabbitmq 0.4.1-65 → 0.5.0-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,30 +7,45 @@
7
7
  import * as CommonCommon from "./common.pb"
8
8
  import * as fm from "./fetch.pb"
9
9
 
10
- export enum GetClusterListRespGetClusterListDataClusterPhase {
11
- CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED",
12
- UNKNOWN = "UNKNOWN",
13
- CREATING = "CREATING",
14
- RUNNING = "RUNNING",
15
- UPDATING = "UPDATING",
16
- DELETING = "DELETING",
10
+ export enum GetWorkspaceListReqSortDir {
11
+ ASC = "ASC",
12
+ DESC = "DESC",
17
13
  }
18
14
 
19
- export type GetClusterListReq = {
15
+ export enum GetInsightAgentStatusRespInsightAgentStatus {
16
+ NotInstall = "NotInstall",
17
+ Install = "Install",
18
+ }
19
+
20
+ export type GetWorkspaceListReq = {
21
+ page?: number
22
+ pageSize?: number
23
+ sortDir?: GetWorkspaceListReqSortDir
24
+ sortBy?: string
25
+ searchKey?: string
26
+ }
27
+
28
+ export type GetWorkspaceListRespItem = {
29
+ workspaceId?: number
30
+ alias?: string
20
31
  }
21
32
 
22
- export type GetClusterListRespGetClusterListData = {
23
- name?: string
24
- phase?: GetClusterListRespGetClusterListDataClusterPhase
25
- kubeSystemID?: string
33
+ export type GetWorkspaceListResp = {
34
+ items?: GetWorkspaceListRespItem[]
35
+ pagination?: CommonCommon.Pagination
36
+ }
37
+
38
+ export type GetClusterListReq = {
39
+ workspaceId?: number
26
40
  }
27
41
 
28
42
  export type GetClusterListResp = {
29
- items?: GetClusterListRespGetClusterListData[]
43
+ items?: string[]
30
44
  pagination?: CommonCommon.Pagination
31
45
  }
32
46
 
33
47
  export type GetClusterNamespaceListReq = {
48
+ workspaceId?: number
34
49
  cluster?: string
35
50
  }
36
51
 
@@ -39,11 +54,26 @@ export type GetClusterNamespaceListResp = {
39
54
  pagination?: CommonCommon.Pagination
40
55
  }
41
56
 
57
+ export type GetInsightAgentStatusReq = {
58
+ cluster?: string
59
+ mcamelType?: string
60
+ }
61
+
62
+ export type GetInsightAgentStatusResp = {
63
+ status?: GetInsightAgentStatusRespInsightAgentStatus
64
+ }
65
+
42
66
  export class Cluster {
43
67
  static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
44
- return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
68
+ return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
45
69
  }
46
70
  static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
47
- return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
71
+ return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
72
+ }
73
+ static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
74
+ return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
75
+ }
76
+ static GetInsightAgentStatus(req: GetInsightAgentStatusReq, initReq?: fm.InitReq): Promise<GetInsightAgentStatusResp> {
77
+ return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["cluster"]}/insight/status?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
48
78
  }
49
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-rabbitmq",
3
- "version":"0.4.1-65",
3
+ "version":"0.5.0-3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/rabbitmq.pb.ts CHANGED
@@ -63,6 +63,7 @@ export type GetRabbitMqListReq = {
63
63
  sortDir?: GetRabbitMqListReqSortDir
64
64
  sortBy?: string
65
65
  searchKey?: string
66
+ workspaceId?: number
66
67
  }
67
68
 
68
69
  export type GetRabbitMqConfReq = {
@@ -226,7 +227,7 @@ export type GetRabbitMqNodeListRespData = {
226
227
  cpuLimit?: number
227
228
  memoryUsage?: number
228
229
  memoryLimit?: number
229
- createTime?: string
230
+ createTimestamp?: string
230
231
  }
231
232
 
232
233
  export type GetRabbitMqNodeListResp = {
@@ -271,16 +272,17 @@ export type GetRabbitMqListResp = {
271
272
  pagination?: CommonCommon.Pagination
272
273
  }
273
274
 
274
- export type RabbitmqClusterItemExtend = {
275
+ export type RabbitmqClusterItemStatus = {
275
276
  status?: Status
276
277
  podsAreReadyNum?: number
277
278
  webManagerAddr?: string
278
279
  clusterIPs?: string[]
280
+ serviceAddr?: string
279
281
  }
280
282
 
281
283
  export type RabbitmqClusterItemMetadata = {
282
284
  annotations?: {[key: string]: string}
283
- creationTimestamp?: number
285
+ creationTimestamp?: string
284
286
  name?: string
285
287
  namespace?: string
286
288
  }
@@ -290,13 +292,12 @@ export type RabbitmqClusterItem = {
290
292
  kind?: string
291
293
  metadata?: RabbitmqClusterItemMetadata
292
294
  spec?: CreateRabbitMqReq
293
- status?: Status
294
- extend?: RabbitmqClusterItemExtend
295
+ status?: RabbitmqClusterItemStatus
295
296
  }
296
297
 
297
298
  export class RabbitMq {
298
299
  static GetRabbitMqList(req: GetRabbitMqListReq, initReq?: fm.InitReq): Promise<GetRabbitMqListResp> {
299
- return fm.fetchReq<GetRabbitMqListReq, GetRabbitMqListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmqs?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
300
+ return fm.fetchReq<GetRabbitMqListReq, GetRabbitMqListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/rabbitmqs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
300
301
  }
301
302
  static GetRabbitMqOperatorVersionList(req: GetRabbitMqOperatorVersionListReq, initReq?: fm.InitReq): Promise<GetRabbitMqOperatorVersionListResp> {
302
303
  return fm.fetchReq<GetRabbitMqOperatorVersionListReq, GetRabbitMqOperatorVersionListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq-operator/versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -308,10 +309,10 @@ export class RabbitMq {
308
309
  return fm.fetchReq<GetRabbitMqParamReq, GetRabbitMqParamResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq-params/${req["cluster"]}?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
309
310
  }
310
311
  static GetRabbitMqNodeList(req: GetRabbitMqNodeListReq, initReq?: fm.InitReq): Promise<GetRabbitMqNodeListResp> {
311
- return fm.fetchReq<GetRabbitMqNodeListReq, GetRabbitMqNodeListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq/nodes/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
312
+ return fm.fetchReq<GetRabbitMqNodeListReq, GetRabbitMqNodeListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}/nodes?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
312
313
  }
313
314
  static GetRabbitMqGrafanaAddr(req: GetRabbitMqGrafanaAddrReq, initReq?: fm.InitReq): Promise<GetRabbitMqGrafanaAddrResp> {
314
- return fm.fetchReq<GetRabbitMqGrafanaAddrReq, GetRabbitMqGrafanaAddrResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq/grafana/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
315
+ return fm.fetchReq<GetRabbitMqGrafanaAddrReq, GetRabbitMqGrafanaAddrResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}/grafana?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
315
316
  }
316
317
  static CreateRabbitMq(req: CreateRabbitMqReq, initReq?: fm.InitReq): Promise<CreateRabbitMqResp> {
317
318
  return fm.fetchReq<CreateRabbitMqReq, CreateRabbitMqResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq`, {...initReq, method: "POST", body: JSON.stringify(req)})