@daocloud-proto/mcamel-rabbitmq 0.4.0-29 → 0.4.0-34
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 +5 -2
- package/common.pb.ts +24 -0
- package/package.json +1 -1
- package/rabbitmq.pb.ts +48 -8
package/cluster.pb.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as fm from "../../v1alpha1/ts_out/api"
|
|
8
|
+
import * as CommonCommon from "./common.pb"
|
|
8
9
|
|
|
9
10
|
export enum GetClusterListRespGetClusterListDataClusterPhase {
|
|
10
11
|
CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED",
|
|
@@ -25,7 +26,8 @@ export type GetClusterListRespGetClusterListData = {
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
export type GetClusterListResp = {
|
|
28
|
-
|
|
29
|
+
items?: GetClusterListRespGetClusterListData[]
|
|
30
|
+
pagination?: CommonCommon.Pagination
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
export type GetClusterNamespaceListReq = {
|
|
@@ -33,7 +35,8 @@ export type GetClusterNamespaceListReq = {
|
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
export type GetClusterNamespaceListResp = {
|
|
36
|
-
|
|
38
|
+
items?: string[]
|
|
39
|
+
pagination?: CommonCommon.Pagination
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
export class Cluster {
|
package/common.pb.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export enum PageInfoReqSortDir {
|
|
8
|
+
ASC = "ASC",
|
|
9
|
+
DESC = "DESC",
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type Pagination = {
|
|
13
|
+
total?: number
|
|
14
|
+
page?: number
|
|
15
|
+
pageSize?: number
|
|
16
|
+
pages?: number
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type PageInfoReq = {
|
|
20
|
+
page?: number
|
|
21
|
+
pageSize?: number
|
|
22
|
+
sortDir?: PageInfoReqSortDir
|
|
23
|
+
sortBy?: string
|
|
24
|
+
}
|
package/package.json
CHANGED
package/rabbitmq.pb.ts
CHANGED
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as fm from "../../v1alpha1/ts_out/api"
|
|
8
|
+
import * as CommonCommon from "./common.pb"
|
|
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);
|
|
8
18
|
|
|
9
19
|
export enum Status {
|
|
10
20
|
Failed = "Failed",
|
|
@@ -12,6 +22,11 @@ export enum Status {
|
|
|
12
22
|
Creating = "Creating",
|
|
13
23
|
}
|
|
14
24
|
|
|
25
|
+
export enum GetRabbitMqListReqSortDir {
|
|
26
|
+
ASC = "ASC",
|
|
27
|
+
DESC = "DESC",
|
|
28
|
+
}
|
|
29
|
+
|
|
15
30
|
export enum CreateRabbitMqReqServiceType {
|
|
16
31
|
ClusterIP = "ClusterIP",
|
|
17
32
|
NodePort = "NodePort",
|
|
@@ -25,7 +40,9 @@ export enum GetRabbitMqParamRespSelectSelectType {
|
|
|
25
40
|
|
|
26
41
|
export type GetRabbitMqListReq = {
|
|
27
42
|
page?: number
|
|
28
|
-
|
|
43
|
+
pageSize?: number
|
|
44
|
+
sortDir?: GetRabbitMqListReqSortDir
|
|
45
|
+
sortBy?: string
|
|
29
46
|
searchKey?: string
|
|
30
47
|
}
|
|
31
48
|
|
|
@@ -48,7 +65,6 @@ export type CreateRabbitMqReq = {
|
|
|
48
65
|
describe?: string
|
|
49
66
|
version?: string
|
|
50
67
|
replicas?: number
|
|
51
|
-
resource?: string
|
|
52
68
|
storageClassName?: string
|
|
53
69
|
storageCapacity?: string
|
|
54
70
|
defaultUser?: string
|
|
@@ -56,6 +72,10 @@ export type CreateRabbitMqReq = {
|
|
|
56
72
|
serviceType?: CreateRabbitMqReqServiceType
|
|
57
73
|
serviceAnnotations?: {[key: string]: string}
|
|
58
74
|
ports?: CreateRabbitMqReqPorts[]
|
|
75
|
+
cpuRequest?: string
|
|
76
|
+
cpuLimit?: string
|
|
77
|
+
memoryRequest?: string
|
|
78
|
+
memoryLimit?: string
|
|
59
79
|
}
|
|
60
80
|
|
|
61
81
|
export type UpdateRabbitMqReq = {
|
|
@@ -64,24 +84,41 @@ export type UpdateRabbitMqReq = {
|
|
|
64
84
|
name?: string
|
|
65
85
|
defaultUser?: string
|
|
66
86
|
defaultPass?: string
|
|
67
|
-
resource?: string
|
|
68
87
|
replicas?: number
|
|
69
88
|
storageCapacity?: string
|
|
70
89
|
serviceType?: CreateRabbitMqReqServiceType
|
|
71
90
|
serviceAnnotations?: {[key: string]: string}
|
|
72
91
|
describe?: string
|
|
73
92
|
ports?: CreateRabbitMqReqPorts[]
|
|
93
|
+
cpuRequest?: string
|
|
94
|
+
cpuLimit?: string
|
|
95
|
+
memoryRequest?: string
|
|
96
|
+
memoryLimit?: string
|
|
74
97
|
}
|
|
75
98
|
|
|
76
99
|
export type UpdateRabbitMqResp = {
|
|
77
100
|
message?: string
|
|
78
101
|
}
|
|
79
102
|
|
|
80
|
-
export type
|
|
81
|
-
data?: {[key: string]: string}
|
|
103
|
+
export type GetRabbitMqParamRespSelectDataStringValue = {
|
|
82
104
|
value?: string
|
|
83
105
|
}
|
|
84
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
|
+
|
|
85
122
|
export type GetRabbitMqParamRespSelect = {
|
|
86
123
|
selectType?: GetRabbitMqParamRespSelectSelectType
|
|
87
124
|
data?: GetRabbitMqParamRespSelectData[]
|
|
@@ -109,7 +146,8 @@ export type GetRabbitMqOperatorVersionListRespGetRabbitMqOperatorVersionListData
|
|
|
109
146
|
}
|
|
110
147
|
|
|
111
148
|
export type GetRabbitMqOperatorVersionListResp = {
|
|
112
|
-
|
|
149
|
+
items?: GetRabbitMqOperatorVersionListRespGetRabbitMqOperatorVersionListData[]
|
|
150
|
+
pagination?: CommonCommon.Pagination
|
|
113
151
|
}
|
|
114
152
|
|
|
115
153
|
export type DeleteRabbitMqReq = {
|
|
@@ -148,7 +186,8 @@ export type GetRabbitMqNodeListRespData = {
|
|
|
148
186
|
}
|
|
149
187
|
|
|
150
188
|
export type GetRabbitMqNodeListResp = {
|
|
151
|
-
|
|
189
|
+
items?: GetRabbitMqNodeListRespData[]
|
|
190
|
+
pagination?: CommonCommon.Pagination
|
|
152
191
|
}
|
|
153
192
|
|
|
154
193
|
export type GetRabbitMqGrafanaAddrReq = {
|
|
@@ -169,7 +208,8 @@ export type GetRabbitMqResp = {
|
|
|
169
208
|
}
|
|
170
209
|
|
|
171
210
|
export type GetRabbitMqListResp = {
|
|
172
|
-
|
|
211
|
+
items?: RabbitmqClusterList
|
|
212
|
+
pagination?: CommonCommon.Pagination
|
|
173
213
|
}
|
|
174
214
|
|
|
175
215
|
export type RabbitmqClusterItemExtend = {
|