@daocloud-proto/mcamel-mysql 0.5.0-10 → 0.5.0-1002
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/cloudshell.pb.ts +78 -0
- package/cluster.pb.ts +367 -7
- package/common.pb.ts +101 -0
- package/insight.pb.ts +8 -12
- package/metric.pb.ts +13 -1
- package/mysql.pb.ts +342 -42
- package/package.json +1 -1
- package/storage_config.pb.ts +9 -8
- package/template.pb.ts +195 -0
- package/version.pb.ts +8 -1
package/cloudshell.pb.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
|
|
8
|
+
import * as CommonCommon from "./common.pb"
|
|
9
|
+
import * as fm from "./fetch.pb"
|
|
10
|
+
|
|
11
|
+
export enum CreateCloudShellRequestType {
|
|
12
|
+
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
13
|
+
bash = "bash",
|
|
14
|
+
exec = "exec",
|
|
15
|
+
logs = "logs",
|
|
16
|
+
upload = "upload",
|
|
17
|
+
download = "download",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type ObjectMeta = {
|
|
21
|
+
name?: string
|
|
22
|
+
namespace?: string
|
|
23
|
+
uid?: string
|
|
24
|
+
resourceVersion?: string
|
|
25
|
+
creationTimestamp?: string
|
|
26
|
+
deletionTimestamp?: string
|
|
27
|
+
labels?: {[key: string]: string}
|
|
28
|
+
annotations?: {[key: string]: string}
|
|
29
|
+
ownerReferences?: CommonCommon.OwnerReference[]
|
|
30
|
+
cluster?: string
|
|
31
|
+
workspaceAlias?: string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type CloudShell = {
|
|
35
|
+
metadata?: ObjectMeta
|
|
36
|
+
spec?: CloudShellSpec
|
|
37
|
+
status?: CloudShellStatus
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type CloudShellSpec = {
|
|
41
|
+
configMapName?: string
|
|
42
|
+
once?: boolean
|
|
43
|
+
commandAction?: string
|
|
44
|
+
ttl?: number
|
|
45
|
+
cleanup?: boolean
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type CloudShellStatus = {
|
|
49
|
+
phase?: string
|
|
50
|
+
accessUrl?: string
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type CreateCloudShellRequest = {
|
|
54
|
+
type?: CreateCloudShellRequestType
|
|
55
|
+
cluster?: string
|
|
56
|
+
namespace?: string
|
|
57
|
+
podName?: string
|
|
58
|
+
filePath?: string
|
|
59
|
+
container?: string
|
|
60
|
+
logCount?: number
|
|
61
|
+
data?: CloudShell
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type GetorDeleteCloudShellRequest = {
|
|
65
|
+
name?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export class CloudShellService {
|
|
69
|
+
static CreateCloudShell(req: CreateCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
|
|
70
|
+
return fm.fetchReq<CreateCloudShellRequest, CloudShell>(`/apis/mcamel.io/mysql/v1alpha3/cloudshells`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
71
|
+
}
|
|
72
|
+
static GetCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
|
|
73
|
+
return fm.fetchReq<GetorDeleteCloudShellRequest, CloudShell>(`/apis/mcamel.io/mysql/v1alpha3/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
74
|
+
}
|
|
75
|
+
static DeleteCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
76
|
+
return fm.fetchReq<GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/mcamel.io/mysql/v1alpha3/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
77
|
+
}
|
|
78
|
+
}
|
package/cluster.pb.ts
CHANGED
|
@@ -7,12 +7,49 @@
|
|
|
7
7
|
import * as CommonCommon from "./common.pb"
|
|
8
8
|
import * as fm from "./fetch.pb"
|
|
9
9
|
|
|
10
|
+
export enum PermissionsType {
|
|
11
|
+
None = "None",
|
|
12
|
+
GetInstance = "GetInstance",
|
|
13
|
+
CreateInstance = "CreateInstance",
|
|
14
|
+
UpdateInstance = "UpdateInstance",
|
|
15
|
+
DeleteInstance = "DeleteInstance",
|
|
16
|
+
GetMetric = "GetMetric",
|
|
17
|
+
GetInstanceLog = "GetInstanceLog",
|
|
18
|
+
GetConfig = "GetConfig",
|
|
19
|
+
UpdateConfig = "UpdateConfig",
|
|
20
|
+
GetBackup = "GetBackup",
|
|
21
|
+
CreateBackup = "CreateBackup",
|
|
22
|
+
UpdateBackup = "UpdateBackup",
|
|
23
|
+
DeleteBackup = "DeleteBackup",
|
|
24
|
+
GetBackupConf = "GetBackupConf",
|
|
25
|
+
CreateBackupConf = "CreateBackupConf",
|
|
26
|
+
UpdateBackupConf = "UpdateBackupConf",
|
|
27
|
+
DeleteBackupConf = "DeleteBackupConf",
|
|
28
|
+
GetTemplate = "GetTemplate",
|
|
29
|
+
CreateTemplate = "CreateTemplate",
|
|
30
|
+
UpdateTemplate = "UpdateTemplate",
|
|
31
|
+
DeleteTemplate = "DeleteTemplate",
|
|
32
|
+
GetUserPassword = "GetUserPassword",
|
|
33
|
+
ExportTemplate = "ExportTemplate",
|
|
34
|
+
ImportTemplate = "ImportTemplate",
|
|
35
|
+
}
|
|
36
|
+
|
|
10
37
|
export enum EventType {
|
|
11
38
|
EVENT_TYPE_UNSPECIFIED = "EVENT_TYPE_UNSPECIFIED",
|
|
12
39
|
Normal = "Normal",
|
|
13
40
|
Warning = "Warning",
|
|
14
41
|
}
|
|
15
42
|
|
|
43
|
+
export enum InstallFileReqGVR {
|
|
44
|
+
None = "None",
|
|
45
|
+
CustomResourceDefinition = "CustomResourceDefinition",
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export enum GetAllEventListReqSortDir {
|
|
49
|
+
ASC = "ASC",
|
|
50
|
+
DESC = "DESC",
|
|
51
|
+
}
|
|
52
|
+
|
|
16
53
|
export enum GetEventListReqKind {
|
|
17
54
|
KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
|
|
18
55
|
Pod = "Pod",
|
|
@@ -23,11 +60,186 @@ export enum GetWorkspaceListReqSortDir {
|
|
|
23
60
|
DESC = "DESC",
|
|
24
61
|
}
|
|
25
62
|
|
|
63
|
+
export enum ClusterItemNetworkMode {
|
|
64
|
+
Unknown = "Unknown",
|
|
65
|
+
Flannel = "Flannel",
|
|
66
|
+
Calico = "Calico",
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export enum ClusterSettingPluginPluginName {
|
|
70
|
+
PLUGIN_NAME_UNSPECIFIED = "PLUGIN_NAME_UNSPECIFIED",
|
|
71
|
+
HPA = "HPA",
|
|
72
|
+
Insight = "Insight",
|
|
73
|
+
GPU = "GPU",
|
|
74
|
+
METALLB = "METALLB",
|
|
75
|
+
Spiderpool = "Spiderpool",
|
|
76
|
+
CustomMetrics = "CustomMetrics",
|
|
77
|
+
CronHPA = "CronHPA",
|
|
78
|
+
VPA = "VPA",
|
|
79
|
+
Hwameistor = "Hwameistor",
|
|
80
|
+
Flannel = "Flannel",
|
|
81
|
+
KubeOvn = "KubeOvn",
|
|
82
|
+
OLM = "OLM",
|
|
83
|
+
EgressGateway = "EgressGateway",
|
|
84
|
+
Snapshot = "Snapshot",
|
|
85
|
+
DRA = "DRA",
|
|
86
|
+
}
|
|
87
|
+
|
|
26
88
|
export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
27
89
|
NotInstall = "NotInstall",
|
|
28
90
|
Install = "Install",
|
|
29
91
|
}
|
|
30
92
|
|
|
93
|
+
export type GetClusterReq = {
|
|
94
|
+
workspaceId?: number
|
|
95
|
+
name?: string
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type GetClusterResp = {
|
|
99
|
+
cluster?: ClusterItem
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type InstallFileReq = {
|
|
103
|
+
cluster?: string
|
|
104
|
+
path?: string
|
|
105
|
+
gvr?: InstallFileReqGVR
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type InstallFileResp = {
|
|
109
|
+
message?: string
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type GetInstallVersionReq = {
|
|
113
|
+
cluster?: string
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type GetInstallVersionRespSupportVersion = {
|
|
117
|
+
minVersion?: string
|
|
118
|
+
maxVersion?: string
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type GetInstallVersionRespStatus = {
|
|
122
|
+
inRange?: boolean
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export type GetInstallVersionResp = {
|
|
126
|
+
clusterVersion?: string
|
|
127
|
+
supportVersion?: GetInstallVersionRespSupportVersion
|
|
128
|
+
status?: GetInstallVersionRespStatus
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type RestartInstanceReq = {
|
|
132
|
+
workspaceId?: number
|
|
133
|
+
cluster?: string
|
|
134
|
+
namespace?: string
|
|
135
|
+
name?: string
|
|
136
|
+
extra?: string
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type RestartInstanceResp = {
|
|
140
|
+
message?: string
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type GetPermissionsListReq = {
|
|
144
|
+
workspaceId?: number
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export type GetPermissionsListRespPermissions = {
|
|
148
|
+
getInstance?: boolean
|
|
149
|
+
createInstance?: boolean
|
|
150
|
+
updateInstance?: boolean
|
|
151
|
+
deleteInstance?: boolean
|
|
152
|
+
getMetric?: boolean
|
|
153
|
+
getInstanceLog?: boolean
|
|
154
|
+
getConfig?: boolean
|
|
155
|
+
updateConfig?: boolean
|
|
156
|
+
getBackup?: boolean
|
|
157
|
+
createBackup?: boolean
|
|
158
|
+
updateBackup?: boolean
|
|
159
|
+
deleteBackup?: boolean
|
|
160
|
+
getBackupConf?: boolean
|
|
161
|
+
createBackupConf?: boolean
|
|
162
|
+
updateBackupConf?: boolean
|
|
163
|
+
deleteBackupConf?: boolean
|
|
164
|
+
getTemplate?: boolean
|
|
165
|
+
createTemplate?: boolean
|
|
166
|
+
updateTemplate?: boolean
|
|
167
|
+
deleteTemplate?: boolean
|
|
168
|
+
getUserPassword?: boolean
|
|
169
|
+
exportTemplate?: boolean
|
|
170
|
+
importTemplate?: boolean
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export type GetPermissionsListResp = {
|
|
174
|
+
permissionsBool?: GetPermissionsListRespPermissions
|
|
175
|
+
permissions?: PermissionsType[]
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export type GetAllEventKindsListResp = {
|
|
179
|
+
data?: string[]
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type GetAllEventKindsListReq = {
|
|
183
|
+
cluster?: string
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export type GetAllEventListReq = {
|
|
187
|
+
page?: number
|
|
188
|
+
pageSize?: number
|
|
189
|
+
sortDir?: GetAllEventListReqSortDir
|
|
190
|
+
sortBy?: string
|
|
191
|
+
searchKey?: string
|
|
192
|
+
cluster?: string
|
|
193
|
+
namespace?: string
|
|
194
|
+
name?: string
|
|
195
|
+
eventType?: EventType
|
|
196
|
+
kindName?: string
|
|
197
|
+
workspaceId?: number
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export type GetAllEventListRespItemsSource = {
|
|
201
|
+
component?: string
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export type GetAllEventListRespItemsMetadata = {
|
|
205
|
+
uid?: string
|
|
206
|
+
name?: string
|
|
207
|
+
namespace?: string
|
|
208
|
+
annotations?: {[key: string]: string}
|
|
209
|
+
resourceVersion?: string
|
|
210
|
+
creationTimestamp?: string
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export type GetAllEventListRespItemsInvolvedObject = {
|
|
214
|
+
uid?: string
|
|
215
|
+
kind?: string
|
|
216
|
+
name?: string
|
|
217
|
+
namespace?: string
|
|
218
|
+
apiVersion?: string
|
|
219
|
+
resourceVersion?: string
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export type GetAllEventListRespItems = {
|
|
223
|
+
kind?: string
|
|
224
|
+
type?: string
|
|
225
|
+
count?: number
|
|
226
|
+
reason?: string
|
|
227
|
+
source?: GetAllEventListRespItemsSource
|
|
228
|
+
message?: string
|
|
229
|
+
metadata?: GetAllEventListRespItemsMetadata
|
|
230
|
+
apiVersion?: string
|
|
231
|
+
lastTimestamp?: string
|
|
232
|
+
firstTimestamp?: string
|
|
233
|
+
involvedObject?: GetAllEventListRespItemsInvolvedObject
|
|
234
|
+
reportingInstance?: string
|
|
235
|
+
reportingComponent?: string
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export type GetAllEventListResp = {
|
|
239
|
+
items?: GetAllEventListRespItems[]
|
|
240
|
+
pagination?: CommonCommon.Pagination
|
|
241
|
+
}
|
|
242
|
+
|
|
31
243
|
export type GetClusterNodeLabelListReq = {
|
|
32
244
|
cluster?: string
|
|
33
245
|
}
|
|
@@ -37,8 +249,32 @@ export type GetClusterNodeLabelListRespLabel = {
|
|
|
37
249
|
value?: string[]
|
|
38
250
|
}
|
|
39
251
|
|
|
252
|
+
export type GetClusterNodeLabelListRespNode2Label = {
|
|
253
|
+
nodeName?: string
|
|
254
|
+
label?: GetClusterNodeLabelListRespLabel[]
|
|
255
|
+
}
|
|
256
|
+
|
|
40
257
|
export type GetClusterNodeLabelListResp = {
|
|
41
258
|
items?: GetClusterNodeLabelListRespLabel[]
|
|
259
|
+
items1?: GetClusterNodeLabelListRespNode2Label[]
|
|
260
|
+
pagination?: CommonCommon.Pagination
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export type GetClusterPodLabelListReq = {
|
|
264
|
+
page?: number
|
|
265
|
+
pageSize?: number
|
|
266
|
+
searchKey?: string
|
|
267
|
+
filterNamespace?: string
|
|
268
|
+
cluster?: string
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export type GetClusterPodLabelListRespLabel = {
|
|
272
|
+
key?: string
|
|
273
|
+
value?: string[]
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export type GetClusterPodLabelListResp = {
|
|
277
|
+
items?: GetClusterPodLabelListRespLabel[]
|
|
42
278
|
pagination?: CommonCommon.Pagination
|
|
43
279
|
}
|
|
44
280
|
|
|
@@ -56,6 +292,24 @@ export type EventSource = {
|
|
|
56
292
|
host?: string
|
|
57
293
|
}
|
|
58
294
|
|
|
295
|
+
export type GetMetallbIPAddressPoolsListReq = {
|
|
296
|
+
cluster?: string
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export type GetMetallbIPAddressPoolsListRespItem = {
|
|
300
|
+
name?: string
|
|
301
|
+
addresses?: string[]
|
|
302
|
+
autoAssign?: boolean
|
|
303
|
+
avoidBuggyIPs?: boolean
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export type GetMetallbIPAddressPoolsListResp = {
|
|
307
|
+
items?: GetMetallbIPAddressPoolsListRespItem[]
|
|
308
|
+
isSupportLb?: boolean
|
|
309
|
+
externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy[]
|
|
310
|
+
lbTyp?: CommonCommon.LBTyp[]
|
|
311
|
+
}
|
|
312
|
+
|
|
59
313
|
export type GetEventListReq = {
|
|
60
314
|
cluster?: string
|
|
61
315
|
namespace?: string
|
|
@@ -96,6 +350,7 @@ export type GetWorkspaceListReq = {
|
|
|
96
350
|
export type GetWorkspaceListRespItem = {
|
|
97
351
|
workspaceId?: number
|
|
98
352
|
alias?: string
|
|
353
|
+
visible?: boolean
|
|
99
354
|
}
|
|
100
355
|
|
|
101
356
|
export type GetWorkspaceListResp = {
|
|
@@ -103,15 +358,55 @@ export type GetWorkspaceListResp = {
|
|
|
103
358
|
pagination?: CommonCommon.Pagination
|
|
104
359
|
}
|
|
105
360
|
|
|
361
|
+
export type GetClusterHostnetworkPortsReq = {
|
|
362
|
+
workspaceId?: number
|
|
363
|
+
cluster?: string
|
|
364
|
+
}
|
|
365
|
+
|
|
106
366
|
export type GetClusterListReq = {
|
|
107
367
|
workspaceId?: number
|
|
368
|
+
searchKey?: string
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export type GetClusterHostnetworkPortsResp = {
|
|
372
|
+
items?: number[]
|
|
108
373
|
}
|
|
109
374
|
|
|
110
375
|
export type GetClusterListResp = {
|
|
111
376
|
items?: string[]
|
|
377
|
+
clusters?: ClusterItem[]
|
|
112
378
|
pagination?: CommonCommon.Pagination
|
|
113
379
|
}
|
|
114
380
|
|
|
381
|
+
export type ClusterItemMetadata = {
|
|
382
|
+
name?: string
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export type ClusterItemStatus = {
|
|
386
|
+
networkMode?: ClusterItemNetworkMode[]
|
|
387
|
+
setting?: ClusterSetting
|
|
388
|
+
clusterStatus?: CommonCommon.ClusterStatus
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export type ClusterItem = {
|
|
392
|
+
metadata?: ClusterItemMetadata
|
|
393
|
+
status?: ClusterItemStatus
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export type ClusterSettingPlugin = {
|
|
397
|
+
name?: ClusterSettingPluginPluginName
|
|
398
|
+
enabled?: boolean
|
|
399
|
+
intelligentDetection?: boolean
|
|
400
|
+
externalAddress?: string
|
|
401
|
+
setting?: string
|
|
402
|
+
healthy?: boolean
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export type ClusterSetting = {
|
|
406
|
+
plugins?: ClusterSettingPlugin[]
|
|
407
|
+
network?: ClusterSettingPlugin[]
|
|
408
|
+
}
|
|
409
|
+
|
|
115
410
|
export type GetClusterNamespaceListReq = {
|
|
116
411
|
workspaceId?: number
|
|
117
412
|
cluster?: string
|
|
@@ -119,6 +414,7 @@ export type GetClusterNamespaceListReq = {
|
|
|
119
414
|
|
|
120
415
|
export type GetClusterNamespaceListResp = {
|
|
121
416
|
items?: string[]
|
|
417
|
+
disableItems?: string[]
|
|
122
418
|
pagination?: CommonCommon.Pagination
|
|
123
419
|
}
|
|
124
420
|
|
|
@@ -128,28 +424,92 @@ export type GetInsightAgentStatusReq = {
|
|
|
128
424
|
|
|
129
425
|
export type GetInsightAgentStatusResp = {
|
|
130
426
|
status?: GetInsightAgentStatusRespInsightAgentStatus
|
|
427
|
+
clusterStatus?: CommonCommon.ClusterStatus
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export type GetResourceQuotaReq = {
|
|
431
|
+
cluster?: string
|
|
432
|
+
namespace?: string
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export type GetResourceQuotaRespMetadata = {
|
|
436
|
+
uid?: string
|
|
437
|
+
name?: string
|
|
438
|
+
namespace?: string
|
|
439
|
+
annotations?: {[key: string]: string}
|
|
440
|
+
resourceVersion?: string
|
|
441
|
+
creationTimestamp?: string
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export type GetResourceQuotaRespSpec = {
|
|
445
|
+
hard?: {[key: string]: string}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export type GetResourceQuotaRespStatus = {
|
|
449
|
+
hard?: {[key: string]: string}
|
|
450
|
+
used?: {[key: string]: string}
|
|
451
|
+
available?: {[key: string]: string}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export type GetResourceQuotaResp = {
|
|
455
|
+
metadata?: GetResourceQuotaRespMetadata
|
|
456
|
+
spec?: GetResourceQuotaRespSpec
|
|
457
|
+
status?: GetResourceQuotaRespStatus
|
|
131
458
|
}
|
|
132
459
|
|
|
133
460
|
export class Cluster {
|
|
134
461
|
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
135
|
-
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/mysql/
|
|
462
|
+
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
463
|
+
}
|
|
464
|
+
static GetCluster(req: GetClusterReq, initReq?: fm.InitReq): Promise<GetClusterResp> {
|
|
465
|
+
return fm.fetchReq<GetClusterReq, GetClusterResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/clusters/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
466
|
+
}
|
|
467
|
+
static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
|
|
468
|
+
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
136
469
|
}
|
|
137
470
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
138
|
-
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mysql/
|
|
471
|
+
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
139
472
|
}
|
|
140
473
|
static GetClusterNodePortList(req: GetClusterNodePortListReq, initReq?: fm.InitReq): Promise<GetClusterNodePortListResp> {
|
|
141
|
-
return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/mysql/
|
|
474
|
+
return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/nodeports?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
142
475
|
}
|
|
143
476
|
static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
|
|
144
|
-
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/mysql/
|
|
477
|
+
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
478
|
+
}
|
|
479
|
+
static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
|
|
480
|
+
return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
145
481
|
}
|
|
146
482
|
static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
|
|
147
|
-
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mysql/
|
|
483
|
+
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mysql/v1alpha3/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
148
484
|
}
|
|
149
485
|
static GetInsightAgentStatus(req: GetInsightAgentStatusReq, initReq?: fm.InitReq): Promise<GetInsightAgentStatusResp> {
|
|
150
|
-
return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/mysql/
|
|
486
|
+
return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/insight/status?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
151
487
|
}
|
|
152
488
|
static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
|
|
153
|
-
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/mysql/
|
|
489
|
+
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
490
|
+
}
|
|
491
|
+
static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
|
|
492
|
+
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
493
|
+
}
|
|
494
|
+
static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
|
|
495
|
+
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
496
|
+
}
|
|
497
|
+
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
498
|
+
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
499
|
+
}
|
|
500
|
+
static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
|
|
501
|
+
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
502
|
+
}
|
|
503
|
+
static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
|
|
504
|
+
return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
505
|
+
}
|
|
506
|
+
static InstallFile(req: InstallFileReq, initReq?: fm.InitReq): Promise<InstallFileResp> {
|
|
507
|
+
return fm.fetchReq<InstallFileReq, InstallFileResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/install-file`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
508
|
+
}
|
|
509
|
+
static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
|
|
510
|
+
return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
511
|
+
}
|
|
512
|
+
static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
|
|
513
|
+
return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
154
514
|
}
|
|
155
515
|
}
|
package/common.pb.ts
CHANGED
|
@@ -4,6 +4,40 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
export enum FilterPodStatus {
|
|
8
|
+
FILTER_POD_STATUS_UNSPECIFIED = "FILTER_POD_STATUS_UNSPECIFIED",
|
|
9
|
+
FILTER_POD_STATUS_RUNNING = "FILTER_POD_STATUS_RUNNING",
|
|
10
|
+
FILTER_POD_STATUS_ERROR = "FILTER_POD_STATUS_ERROR",
|
|
11
|
+
FILTER_POD_STATUS_COMPLETED = "FILTER_POD_STATUS_COMPLETED",
|
|
12
|
+
FILTER_POD_STATUS_WAITING = "FILTER_POD_STATUS_WAITING",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum ExternalTrafficPolicy {
|
|
16
|
+
Cluster = "Cluster",
|
|
17
|
+
Local = "Local",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export enum LBTyp {
|
|
21
|
+
MetalLB = "MetalLB",
|
|
22
|
+
Others = "Others",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export enum ServiceType {
|
|
26
|
+
ClusterIP = "ClusterIP",
|
|
27
|
+
NodePort = "NodePort",
|
|
28
|
+
LoadBalancer = "LoadBalancer",
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export enum ClusterStatus {
|
|
32
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
33
|
+
Unknown = "Unknown",
|
|
34
|
+
Creating = "Creating",
|
|
35
|
+
Running = "Running",
|
|
36
|
+
Updating = "Updating",
|
|
37
|
+
Deleting = "Deleting",
|
|
38
|
+
Failed = "Failed",
|
|
39
|
+
}
|
|
40
|
+
|
|
7
41
|
export enum PageInfoReqSortDir {
|
|
8
42
|
ASC = "ASC",
|
|
9
43
|
DESC = "DESC",
|
|
@@ -129,10 +163,77 @@ export type PodCommon = {
|
|
|
129
163
|
cpuLimit?: number
|
|
130
164
|
memoryUsage?: number
|
|
131
165
|
memoryLimit?: number
|
|
166
|
+
pvUsedInGb?: number
|
|
167
|
+
pvAllocatedInGb?: number
|
|
132
168
|
conditions?: PodCommonCondition[]
|
|
169
|
+
containersName?: string[]
|
|
170
|
+
ownerReference?: OwnerReference[]
|
|
171
|
+
initContainersName?: string[]
|
|
172
|
+
initContainersStatuses?: ContainerStatus[]
|
|
173
|
+
containersStatuses?: ContainerStatus[]
|
|
174
|
+
podStatus?: string
|
|
175
|
+
annotations?: {[key: string]: string}
|
|
176
|
+
filterPodStatus?: FilterPodStatus
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export type OwnerReference = {
|
|
180
|
+
uid?: string
|
|
181
|
+
controller?: boolean
|
|
182
|
+
name?: string
|
|
183
|
+
kind?: string
|
|
133
184
|
}
|
|
134
185
|
|
|
135
186
|
export type CommonItemStatus = {
|
|
136
187
|
serviceAddresses?: string[]
|
|
137
188
|
webManagerAddress?: string
|
|
189
|
+
webLogAddress?: string
|
|
190
|
+
avgPvAllocatedInGb?: number
|
|
191
|
+
avgPvUsedInGb?: number
|
|
192
|
+
cpuUtilization?: number
|
|
193
|
+
memoryUtilization?: number
|
|
194
|
+
clusterStatus?: ClusterStatus
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export type AccessWhitelistInternal = {
|
|
198
|
+
namespace?: string
|
|
199
|
+
podSelector?: {[key: string]: string}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export type AccessWhitelistExternal = {
|
|
203
|
+
cidr?: string
|
|
204
|
+
ip?: string
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export type AccessWhitelist = {
|
|
208
|
+
internals?: AccessWhitelistInternal[]
|
|
209
|
+
externals?: AccessWhitelistExternal[]
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export type ContainerStatus = {
|
|
213
|
+
name?: string
|
|
214
|
+
state?: ContainerState
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export type ContainerState = {
|
|
218
|
+
waiting?: ContainerStateWaiting
|
|
219
|
+
running?: ContainerStateRunning
|
|
220
|
+
terminated?: ContainerStateTerminated
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export type ContainerStateWaiting = {
|
|
224
|
+
reason?: string
|
|
225
|
+
message?: string
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export type ContainerStateRunning = {
|
|
229
|
+
startedAt?: string
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export type ContainerStateTerminated = {
|
|
233
|
+
exitCode?: number
|
|
234
|
+
signal?: number
|
|
235
|
+
reason?: string
|
|
236
|
+
message?: string
|
|
237
|
+
startedAt?: string
|
|
238
|
+
finishedAt?: string
|
|
138
239
|
}
|
package/insight.pb.ts
CHANGED
|
@@ -20,27 +20,23 @@ export enum TargetType {
|
|
|
20
20
|
DEPLOYMENT = "DEPLOYMENT",
|
|
21
21
|
STATEFULSET = "STATEFULSET",
|
|
22
22
|
DAEMONSET = "DAEMONSET",
|
|
23
|
-
CRONJOB = "CRONJOB",
|
|
24
23
|
POD = "POD",
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
export enum AlertStatus {
|
|
28
|
-
ALERT_STATUS_UNSPECIFIED = "ALERT_STATUS_UNSPECIFIED",
|
|
29
|
-
ALERT_STATUS_FIRING = "ALERT_STATUS_FIRING",
|
|
30
|
-
ALERT_STATUS_RESOLVED = "ALERT_STATUS_RESOLVED",
|
|
31
|
-
}
|
|
32
|
-
|
|
33
26
|
export type AlertSummary = {
|
|
34
|
-
|
|
27
|
+
id?: string
|
|
28
|
+
groupName?: string
|
|
29
|
+
groupId?: string
|
|
35
30
|
ruleName?: string
|
|
36
|
-
|
|
31
|
+
ruleId?: string
|
|
37
32
|
clusterName?: string
|
|
38
33
|
namespace?: string
|
|
39
34
|
targetType?: TargetType
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
target?: string
|
|
36
|
+
severity?: Severity
|
|
37
|
+
value?: string
|
|
38
|
+
notifyResponse?: string
|
|
42
39
|
description?: string
|
|
43
40
|
startAt?: string
|
|
44
41
|
updateAt?: string
|
|
45
|
-
notifyResponse?: string
|
|
46
42
|
}
|