@daocloud-proto/mcamel-rabbitmq 0.4.0-10 → 0.4.0-11
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/package.json +1 -1
- package/rabbitmq.pb.ts +11 -5
package/package.json
CHANGED
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 CreateRabbitMqReqServiceType {
|
|
10
|
+
ClusterIP = "ClusterIP",
|
|
11
|
+
NodePort = "NodePort",
|
|
12
|
+
LoadBalancer = "LoadBalancer",
|
|
13
|
+
}
|
|
14
|
+
|
|
9
15
|
export enum GetRabbitMqParamRespSelectSelectType {
|
|
10
16
|
Single = "Single",
|
|
11
17
|
Multiple = "Multiple",
|
|
@@ -41,7 +47,7 @@ export type CreateRabbitMqReq = {
|
|
|
41
47
|
storageCapacity?: string
|
|
42
48
|
defaultUser?: string
|
|
43
49
|
defaultPass?: string
|
|
44
|
-
serviceType?:
|
|
50
|
+
serviceType?: CreateRabbitMqReqServiceType
|
|
45
51
|
serviceAnnotations?: {[key: string]: string}
|
|
46
52
|
ports?: CreateRabbitMqReqPorts[]
|
|
47
53
|
}
|
|
@@ -55,7 +61,7 @@ export type UpdateRabbitMqReq = {
|
|
|
55
61
|
resource?: string
|
|
56
62
|
replicas?: number
|
|
57
63
|
storageCapacity?: string
|
|
58
|
-
serviceType?:
|
|
64
|
+
serviceType?: CreateRabbitMqReqServiceType
|
|
59
65
|
serviceAnnotations?: {[key: string]: string}
|
|
60
66
|
describe?: string
|
|
61
67
|
ports?: CreateRabbitMqReqPorts[]
|
|
@@ -67,16 +73,16 @@ export type UpdateRabbitMqResp = {
|
|
|
67
73
|
|
|
68
74
|
export type GetRabbitMqParamRespSelectData = {
|
|
69
75
|
data?: {[key: string]: string}
|
|
76
|
+
value?: string
|
|
70
77
|
}
|
|
71
78
|
|
|
72
79
|
export type GetRabbitMqParamRespSelect = {
|
|
73
80
|
selectType?: GetRabbitMqParamRespSelectSelectType
|
|
74
81
|
data?: GetRabbitMqParamRespSelectData[]
|
|
75
|
-
value?: string[]
|
|
76
82
|
}
|
|
77
83
|
|
|
78
84
|
export type GetRabbitMqParamResp = {
|
|
79
|
-
version?:
|
|
85
|
+
version?: GetRabbitMqParamRespSelect
|
|
80
86
|
replicas?: GetRabbitMqParamRespSelect
|
|
81
87
|
resource?: GetRabbitMqParamRespSelect
|
|
82
88
|
storage?: GetRabbitMqParamRespSelect
|
|
@@ -304,7 +310,7 @@ export class RabbitMq {
|
|
|
304
310
|
return fm.fetchReq<CreateRabbitMqReq, CreateRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
305
311
|
}
|
|
306
312
|
static UpdateRabbitMq(req: UpdateRabbitMqReq, initReq?: fm.InitReq): Promise<UpdateRabbitMqResp> {
|
|
307
|
-
return fm.fetchReq<UpdateRabbitMqReq, UpdateRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "
|
|
313
|
+
return fm.fetchReq<UpdateRabbitMqReq, UpdateRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "PATCH", body: JSON.stringify(req)})
|
|
308
314
|
}
|
|
309
315
|
static DeleteRabbitMq(req: DeleteRabbitMqReq, initReq?: fm.InitReq): Promise<DeleteRabbitMqResp> {
|
|
310
316
|
return fm.fetchReq<DeleteRabbitMqReq, DeleteRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
|