@daocloud-proto/mcamel-rabbitmq 0.4.0-35 → 0.4.0-37
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 +33 -4
package/package.json
CHANGED
package/rabbitmq.pb.ts
CHANGED
|
@@ -7,6 +7,15 @@
|
|
|
7
7
|
import * as fm from "../../v1alpha1/ts_out/api"
|
|
8
8
|
import * as CommonCommon from "./common.pb"
|
|
9
9
|
|
|
10
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
|
+
type OneOf<T> =
|
|
12
|
+
| { [k in keyof T]?: undefined }
|
|
13
|
+
| (
|
|
14
|
+
keyof T extends infer K ?
|
|
15
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
16
|
+
: never)
|
|
17
|
+
: never);
|
|
18
|
+
|
|
10
19
|
export enum Status {
|
|
11
20
|
Failed = "Failed",
|
|
12
21
|
Running = "Running",
|
|
@@ -56,7 +65,6 @@ export type CreateRabbitMqReq = {
|
|
|
56
65
|
describe?: string
|
|
57
66
|
version?: string
|
|
58
67
|
replicas?: number
|
|
59
|
-
resource?: string
|
|
60
68
|
storageClassName?: string
|
|
61
69
|
storageCapacity?: string
|
|
62
70
|
defaultUser?: string
|
|
@@ -64,6 +72,10 @@ export type CreateRabbitMqReq = {
|
|
|
64
72
|
serviceType?: CreateRabbitMqReqServiceType
|
|
65
73
|
serviceAnnotations?: {[key: string]: string}
|
|
66
74
|
ports?: CreateRabbitMqReqPorts[]
|
|
75
|
+
cpuRequest?: string
|
|
76
|
+
cpuLimit?: string
|
|
77
|
+
memoryRequest?: string
|
|
78
|
+
memoryLimit?: string
|
|
67
79
|
}
|
|
68
80
|
|
|
69
81
|
export type UpdateRabbitMqReq = {
|
|
@@ -72,24 +84,41 @@ export type UpdateRabbitMqReq = {
|
|
|
72
84
|
name?: string
|
|
73
85
|
defaultUser?: string
|
|
74
86
|
defaultPass?: string
|
|
75
|
-
resource?: string
|
|
76
87
|
replicas?: number
|
|
77
88
|
storageCapacity?: string
|
|
78
89
|
serviceType?: CreateRabbitMqReqServiceType
|
|
79
90
|
serviceAnnotations?: {[key: string]: string}
|
|
80
91
|
describe?: string
|
|
81
92
|
ports?: CreateRabbitMqReqPorts[]
|
|
93
|
+
cpuRequest?: string
|
|
94
|
+
cpuLimit?: string
|
|
95
|
+
memoryRequest?: string
|
|
96
|
+
memoryLimit?: string
|
|
82
97
|
}
|
|
83
98
|
|
|
84
99
|
export type UpdateRabbitMqResp = {
|
|
85
100
|
message?: string
|
|
86
101
|
}
|
|
87
102
|
|
|
88
|
-
export type
|
|
89
|
-
data?: {[key: string]: string}
|
|
103
|
+
export type GetRabbitMqParamRespSelectDataStringValue = {
|
|
90
104
|
value?: string
|
|
91
105
|
}
|
|
92
106
|
|
|
107
|
+
export type GetRabbitMqParamRespSelectDataResourceValue = {
|
|
108
|
+
cpuRequest?: number
|
|
109
|
+
cpuLimit?: number
|
|
110
|
+
memoryRequest?: number
|
|
111
|
+
memoryLimit?: number
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
type BaseGetRabbitMqParamRespSelectData = {
|
|
116
|
+
data?: {[key: string]: string}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type GetRabbitMqParamRespSelectData = BaseGetRabbitMqParamRespSelectData
|
|
120
|
+
& OneOf<{ sValue: GetRabbitMqParamRespSelectDataStringValue; rValue: GetRabbitMqParamRespSelectDataResourceValue }>
|
|
121
|
+
|
|
93
122
|
export type GetRabbitMqParamRespSelect = {
|
|
94
123
|
selectType?: GetRabbitMqParamRespSelectSelectType
|
|
95
124
|
data?: GetRabbitMqParamRespSelectData[]
|