@daocloud-proto/mcamel-rabbitmq 0.4.0-18 → 0.4.0-24

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/package.json +1 -1
  2. package/rabbitmq.pb.ts +9 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-rabbitmq",
3
- "version":"0.4.0-18",
3
+ "version":"0.4.0-24",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/rabbitmq.pb.ts CHANGED
@@ -6,6 +6,12 @@
6
6
 
7
7
  import * as fm from "../../v1alpha1/ts_out/api"
8
8
 
9
+ export enum Status {
10
+ Failed = "Failed",
11
+ Running = "Running",
12
+ Creating = "Creating",
13
+ }
14
+
9
15
  export enum CreateRabbitMqReqServiceType {
10
16
  ClusterIP = "ClusterIP",
11
17
  NodePort = "NodePort",
@@ -17,11 +23,6 @@ export enum GetRabbitMqParamRespSelectSelectType {
17
23
  Multiple = "Multiple",
18
24
  }
19
25
 
20
- export enum GetRabbitMqGrafanaAddrReqGrafanaName {
21
- Cluster = "Cluster",
22
- Node = "Node",
23
- }
24
-
25
26
  export type GetRabbitMqListReq = {
26
27
  page?: number
27
28
  size?: number
@@ -137,7 +138,7 @@ export type GetRabbitMqNodeListReq = {
137
138
 
138
139
  export type GetRabbitMqNodeListRespData = {
139
140
  podName?: string
140
- status?: string
141
+ status?: Status
141
142
  nodeName?: string
142
143
  ip?: string
143
144
  restart?: number
@@ -151,10 +152,6 @@ export type GetRabbitMqNodeListResp = {
151
152
  }
152
153
 
153
154
  export type GetRabbitMqGrafanaAddrReq = {
154
- cluster?: string
155
- namespace?: string
156
- name?: string
157
- grafanaName?: GetRabbitMqGrafanaAddrReqGrafanaName
158
155
  }
159
156
 
160
157
  export type GetRabbitMqGrafanaAddrResp = {
@@ -176,7 +173,7 @@ export type GetRabbitMqListResp = {
176
173
  }
177
174
 
178
175
  export type RabbitmqClusterItemExtend = {
179
- atLeastOneEndpointAvailable?: boolean
176
+ status?: Status
180
177
  podsAreReadyNum?: number
181
178
  webManagerAddr?: string
182
179
  clusterIPs?: string[]
@@ -323,7 +320,7 @@ export class RabbitMq {
323
320
  return fm.fetchReq<GetRabbitMqNodeListReq, GetRabbitMqNodeListResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/nodes/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
324
321
  }
325
322
  static GetRabbitMqGrafanaAddr(req: GetRabbitMqGrafanaAddrReq, initReq?: fm.InitReq): Promise<GetRabbitMqGrafanaAddrResp> {
326
- return fm.fetchReq<GetRabbitMqGrafanaAddrReq, GetRabbitMqGrafanaAddrResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/grafana/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
323
+ return fm.fetchReq<GetRabbitMqGrafanaAddrReq, GetRabbitMqGrafanaAddrResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/grafana?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
327
324
  }
328
325
  static CreateRabbitMq(req: CreateRabbitMqReq, initReq?: fm.InitReq): Promise<CreateRabbitMqResp> {
329
326
  return fm.fetchReq<CreateRabbitMqReq, CreateRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq`, {...initReq, method: "POST", body: JSON.stringify(req)})