@daocloud-proto/mcamel-mysql 0.10.2-1 → 0.11.0-rc2-15
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 +30 -0
- package/common.pb.ts +3 -0
- package/mysql.pb.ts +3 -1
- package/package.json +1 -1
- package/template.pb.ts +19 -1
package/cluster.pb.ts
CHANGED
|
@@ -25,6 +25,10 @@ export enum PermissionsType {
|
|
|
25
25
|
CreateBackupConf = "CreateBackupConf",
|
|
26
26
|
UpdateBackupConf = "UpdateBackupConf",
|
|
27
27
|
DeleteBackupConf = "DeleteBackupConf",
|
|
28
|
+
GetTemplate = "GetTemplate",
|
|
29
|
+
CreateTemplate = "CreateTemplate",
|
|
30
|
+
UpdateTemplate = "UpdateTemplate",
|
|
31
|
+
DeleteTemplate = "DeleteTemplate",
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
export enum EventType {
|
|
@@ -48,6 +52,12 @@ export enum GetWorkspaceListReqSortDir {
|
|
|
48
52
|
DESC = "DESC",
|
|
49
53
|
}
|
|
50
54
|
|
|
55
|
+
export enum ClusterItemNetworkMode {
|
|
56
|
+
Unknown = "Unknown",
|
|
57
|
+
Flannel = "Flannel",
|
|
58
|
+
Calico = "Calico",
|
|
59
|
+
}
|
|
60
|
+
|
|
51
61
|
export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
52
62
|
NotInstall = "NotInstall",
|
|
53
63
|
Install = "Install",
|
|
@@ -74,6 +84,10 @@ export type GetPermissionsListRespPermissions = {
|
|
|
74
84
|
createBackupConf?: boolean
|
|
75
85
|
updateBackupConf?: boolean
|
|
76
86
|
deleteBackupConf?: boolean
|
|
87
|
+
getTemplate?: boolean
|
|
88
|
+
createTemplate?: boolean
|
|
89
|
+
updateTemplate?: boolean
|
|
90
|
+
deleteTemplate?: boolean
|
|
77
91
|
}
|
|
78
92
|
|
|
79
93
|
export type GetPermissionsListResp = {
|
|
@@ -249,6 +263,7 @@ export type GetWorkspaceListReq = {
|
|
|
249
263
|
export type GetWorkspaceListRespItem = {
|
|
250
264
|
workspaceId?: number
|
|
251
265
|
alias?: string
|
|
266
|
+
visible?: boolean
|
|
252
267
|
}
|
|
253
268
|
|
|
254
269
|
export type GetWorkspaceListResp = {
|
|
@@ -258,13 +273,28 @@ export type GetWorkspaceListResp = {
|
|
|
258
273
|
|
|
259
274
|
export type GetClusterListReq = {
|
|
260
275
|
workspaceId?: number
|
|
276
|
+
searchKey?: string
|
|
261
277
|
}
|
|
262
278
|
|
|
263
279
|
export type GetClusterListResp = {
|
|
264
280
|
items?: string[]
|
|
281
|
+
clusters?: ClusterItem[]
|
|
265
282
|
pagination?: CommonCommon.Pagination
|
|
266
283
|
}
|
|
267
284
|
|
|
285
|
+
export type ClusterItemMetadata = {
|
|
286
|
+
name?: string
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export type ClusterItemStatus = {
|
|
290
|
+
networkMode?: ClusterItemNetworkMode[]
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export type ClusterItem = {
|
|
294
|
+
metadata?: ClusterItemMetadata
|
|
295
|
+
status?: ClusterItemStatus
|
|
296
|
+
}
|
|
297
|
+
|
|
268
298
|
export type GetClusterNamespaceListReq = {
|
|
269
299
|
workspaceId?: number
|
|
270
300
|
cluster?: string
|
package/common.pb.ts
CHANGED
|
@@ -152,6 +152,7 @@ export type PodCommon = {
|
|
|
152
152
|
ownerReference?: OwnerReference[]
|
|
153
153
|
initContainersName?: string[]
|
|
154
154
|
initContainersStatuses?: ContainerStatus[]
|
|
155
|
+
containersStatuses?: ContainerStatus[]
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
export type OwnerReference = {
|
|
@@ -167,6 +168,8 @@ export type CommonItemStatus = {
|
|
|
167
168
|
webLogAddress?: string
|
|
168
169
|
avgPvAllocatedInGb?: number
|
|
169
170
|
avgPvUsedInGb?: number
|
|
171
|
+
cpuUtilization?: number
|
|
172
|
+
memoryUtilization?: number
|
|
170
173
|
}
|
|
171
174
|
|
|
172
175
|
export type AccessWhitelistInternal = {
|
package/mysql.pb.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as CommonCommon from "./common.pb"
|
|
8
8
|
import * as fm from "./fetch.pb"
|
|
9
|
+
import * as TemplateTemplate from "./template.pb"
|
|
9
10
|
|
|
10
11
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
12
|
type OneOf<T> =
|
|
@@ -427,7 +428,8 @@ export type UpdateMysqlConfReq = {
|
|
|
427
428
|
cluster?: string
|
|
428
429
|
namespace?: string
|
|
429
430
|
name?: string
|
|
430
|
-
|
|
431
|
+
confItems?: TemplateTemplate.TemplateConfigItem[]
|
|
432
|
+
reloadFromConfTemplateName?: string
|
|
431
433
|
}
|
|
432
434
|
|
|
433
435
|
export type UpdateMysqlParamsResp = {
|
package/package.json
CHANGED
package/template.pb.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as CommonCommon from "./common.pb"
|
|
7
8
|
import * as fm from "./fetch.pb"
|
|
8
9
|
|
|
9
10
|
export enum GetTemplateConfigReqSortDir {
|
|
@@ -21,6 +22,14 @@ export enum TemplateConfigItemValueType {
|
|
|
21
22
|
SingleSelection = "SingleSelection",
|
|
22
23
|
}
|
|
23
24
|
|
|
25
|
+
export type GetTemplateConfigVersionsReq = {
|
|
26
|
+
workspaceId?: number
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type GetTemplateConfigVersionsResp = {
|
|
30
|
+
versions?: string[]
|
|
31
|
+
}
|
|
32
|
+
|
|
24
33
|
export type GetTemplateConfigStringResp = {
|
|
25
34
|
conf?: string
|
|
26
35
|
}
|
|
@@ -48,6 +57,9 @@ export type GetTemplateConfigReq = {
|
|
|
48
57
|
workspaceId?: number
|
|
49
58
|
name?: string
|
|
50
59
|
version?: string
|
|
60
|
+
templateType?: string
|
|
61
|
+
type?: string
|
|
62
|
+
createTimestamp?: string
|
|
51
63
|
}
|
|
52
64
|
|
|
53
65
|
export type CreateTemplateConfigResp = {
|
|
@@ -66,7 +78,6 @@ export type CreateTemplateConfigReq = {
|
|
|
66
78
|
targetTemplateType?: string
|
|
67
79
|
targetConf?: string
|
|
68
80
|
fromTemplateName?: string
|
|
69
|
-
targetWorkspaceId?: number
|
|
70
81
|
}
|
|
71
82
|
|
|
72
83
|
export type UpdateTemplateConfigReq = {
|
|
@@ -76,10 +87,12 @@ export type UpdateTemplateConfigReq = {
|
|
|
76
87
|
type?: string
|
|
77
88
|
templateType?: string
|
|
78
89
|
items?: TemplateConfigItem[]
|
|
90
|
+
conf?: string
|
|
79
91
|
}
|
|
80
92
|
|
|
81
93
|
export type GetTemplateConfigResp = {
|
|
82
94
|
data?: UpdateTemplateConfigReq
|
|
95
|
+
pagination?: CommonCommon.Pagination
|
|
83
96
|
}
|
|
84
97
|
|
|
85
98
|
export type GetTemplateConfigListReq = {
|
|
@@ -101,10 +114,12 @@ export type TemplateConfigItem = {
|
|
|
101
114
|
valueType?: TemplateConfigItemValueType
|
|
102
115
|
valueRemarksZh?: string
|
|
103
116
|
valueRemarksEn?: string
|
|
117
|
+
updateTimestamp?: string
|
|
104
118
|
}
|
|
105
119
|
|
|
106
120
|
export type GetTemplateConfigListResp = {
|
|
107
121
|
items?: GetTemplateConfigReq[]
|
|
122
|
+
pagination?: CommonCommon.Pagination
|
|
108
123
|
}
|
|
109
124
|
|
|
110
125
|
export class Template {
|
|
@@ -126,4 +141,7 @@ export class Template {
|
|
|
126
141
|
static GetTemplateConfigString(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
|
|
127
142
|
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
128
143
|
}
|
|
144
|
+
static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
|
|
145
|
+
return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
146
|
+
}
|
|
129
147
|
}
|