@daocloud-proto/mcamel-mysql 0.10.2-1 → 0.15.0-rc1-2
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 +3 -3
- package/cluster.pb.ts +79 -12
- package/common.pb.ts +3 -0
- package/metric.pb.ts +14 -3
- package/mysql.pb.ts +128 -25
- package/package.json +1 -1
- package/storage_config.pb.ts +8 -8
- package/template.pb.ts +48 -7
- package/version.pb.ts +1 -1
package/cloudshell.pb.ts
CHANGED
|
@@ -67,12 +67,12 @@ export type GetorDeleteCloudShellRequest = {
|
|
|
67
67
|
|
|
68
68
|
export class CloudShellService {
|
|
69
69
|
static CreateCloudShell(req: CreateCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
|
|
70
|
-
return fm.fetchReq<CreateCloudShellRequest, CloudShell>(`/apis/mcamel.io/mysql/
|
|
70
|
+
return fm.fetchReq<CreateCloudShellRequest, CloudShell>(`/apis/mcamel.io/mysql/v1alpha2/cloudshells`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
71
71
|
}
|
|
72
72
|
static GetCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
|
|
73
|
-
return fm.fetchReq<GetorDeleteCloudShellRequest, CloudShell>(`/apis/mcamel.io/mysql/
|
|
73
|
+
return fm.fetchReq<GetorDeleteCloudShellRequest, CloudShell>(`/apis/mcamel.io/mysql/v1alpha2/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
74
74
|
}
|
|
75
75
|
static DeleteCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
76
|
-
return fm.fetchReq<GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/mcamel.io/mysql/
|
|
76
|
+
return fm.fetchReq<GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/mcamel.io/mysql/v1alpha2/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
77
77
|
}
|
|
78
78
|
}
|
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,11 +52,48 @@ 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",
|
|
54
64
|
}
|
|
55
65
|
|
|
66
|
+
export type GetInstallVersionReq = {
|
|
67
|
+
cluster?: string
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type GetInstallVersionRespSupportVersion = {
|
|
71
|
+
minVersion?: string
|
|
72
|
+
maxVersion?: string
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type GetInstallVersionRespStatus = {
|
|
76
|
+
inRange?: boolean
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type GetInstallVersionResp = {
|
|
80
|
+
clusterVersion?: string
|
|
81
|
+
supportVersion?: GetInstallVersionRespSupportVersion
|
|
82
|
+
status?: GetInstallVersionRespStatus
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type RestartInstanceReq = {
|
|
86
|
+
workspaceId?: number
|
|
87
|
+
cluster?: string
|
|
88
|
+
namespace?: string
|
|
89
|
+
name?: string
|
|
90
|
+
extra?: string
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type RestartInstanceResp = {
|
|
94
|
+
message?: string
|
|
95
|
+
}
|
|
96
|
+
|
|
56
97
|
export type GetPermissionsListReq = {
|
|
57
98
|
workspaceId?: number
|
|
58
99
|
}
|
|
@@ -74,6 +115,10 @@ export type GetPermissionsListRespPermissions = {
|
|
|
74
115
|
createBackupConf?: boolean
|
|
75
116
|
updateBackupConf?: boolean
|
|
76
117
|
deleteBackupConf?: boolean
|
|
118
|
+
getTemplate?: boolean
|
|
119
|
+
createTemplate?: boolean
|
|
120
|
+
updateTemplate?: boolean
|
|
121
|
+
deleteTemplate?: boolean
|
|
77
122
|
}
|
|
78
123
|
|
|
79
124
|
export type GetPermissionsListResp = {
|
|
@@ -249,6 +294,7 @@ export type GetWorkspaceListReq = {
|
|
|
249
294
|
export type GetWorkspaceListRespItem = {
|
|
250
295
|
workspaceId?: number
|
|
251
296
|
alias?: string
|
|
297
|
+
visible?: boolean
|
|
252
298
|
}
|
|
253
299
|
|
|
254
300
|
export type GetWorkspaceListResp = {
|
|
@@ -258,13 +304,28 @@ export type GetWorkspaceListResp = {
|
|
|
258
304
|
|
|
259
305
|
export type GetClusterListReq = {
|
|
260
306
|
workspaceId?: number
|
|
307
|
+
searchKey?: string
|
|
261
308
|
}
|
|
262
309
|
|
|
263
310
|
export type GetClusterListResp = {
|
|
264
311
|
items?: string[]
|
|
312
|
+
clusters?: ClusterItem[]
|
|
265
313
|
pagination?: CommonCommon.Pagination
|
|
266
314
|
}
|
|
267
315
|
|
|
316
|
+
export type ClusterItemMetadata = {
|
|
317
|
+
name?: string
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export type ClusterItemStatus = {
|
|
321
|
+
networkMode?: ClusterItemNetworkMode[]
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export type ClusterItem = {
|
|
325
|
+
metadata?: ClusterItemMetadata
|
|
326
|
+
status?: ClusterItemStatus
|
|
327
|
+
}
|
|
328
|
+
|
|
268
329
|
export type GetClusterNamespaceListReq = {
|
|
269
330
|
workspaceId?: number
|
|
270
331
|
cluster?: string
|
|
@@ -285,39 +346,45 @@ export type GetInsightAgentStatusResp = {
|
|
|
285
346
|
|
|
286
347
|
export class Cluster {
|
|
287
348
|
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
288
|
-
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/mysql/
|
|
349
|
+
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
289
350
|
}
|
|
290
351
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
291
|
-
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mysql/
|
|
352
|
+
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
292
353
|
}
|
|
293
354
|
static GetClusterNodePortList(req: GetClusterNodePortListReq, initReq?: fm.InitReq): Promise<GetClusterNodePortListResp> {
|
|
294
|
-
return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/mysql/
|
|
355
|
+
return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/nodeports?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
295
356
|
}
|
|
296
357
|
static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
|
|
297
|
-
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/mysql/
|
|
358
|
+
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
298
359
|
}
|
|
299
360
|
static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
|
|
300
|
-
return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/mysql/
|
|
361
|
+
return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
301
362
|
}
|
|
302
363
|
static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
|
|
303
|
-
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mysql/
|
|
364
|
+
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mysql/v1alpha2/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
304
365
|
}
|
|
305
366
|
static GetInsightAgentStatus(req: GetInsightAgentStatusReq, initReq?: fm.InitReq): Promise<GetInsightAgentStatusResp> {
|
|
306
|
-
return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/mysql/
|
|
367
|
+
return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/insight/status?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
307
368
|
}
|
|
308
369
|
static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
|
|
309
|
-
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/mysql/
|
|
370
|
+
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
310
371
|
}
|
|
311
372
|
static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
|
|
312
|
-
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/mysql/
|
|
373
|
+
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
313
374
|
}
|
|
314
375
|
static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
|
|
315
|
-
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/mysql/
|
|
376
|
+
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
316
377
|
}
|
|
317
378
|
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
318
|
-
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/mysql/
|
|
379
|
+
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
319
380
|
}
|
|
320
381
|
static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
|
|
321
|
-
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/mysql/
|
|
382
|
+
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
383
|
+
}
|
|
384
|
+
static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
|
|
385
|
+
return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
386
|
+
}
|
|
387
|
+
static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
|
|
388
|
+
return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
322
389
|
}
|
|
323
390
|
}
|
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/metric.pb.ts
CHANGED
|
@@ -6,20 +6,31 @@
|
|
|
6
6
|
|
|
7
7
|
import * as CommonCommon from "./common.pb"
|
|
8
8
|
import * as fm from "./fetch.pb"
|
|
9
|
-
import * as
|
|
9
|
+
import * as InsightIoApiInsightV1alpha2Insight from "./insight.pb"
|
|
10
|
+
|
|
11
|
+
export enum GetAlertsListReqSortDir {
|
|
12
|
+
ASC = "ASC",
|
|
13
|
+
DESC = "DESC",
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
export type GetAlertsListReq = {
|
|
17
|
+
page?: number
|
|
18
|
+
pageSize?: number
|
|
19
|
+
sortDir?: GetAlertsListReqSortDir
|
|
20
|
+
sortBy?: string
|
|
21
|
+
searchKey?: string
|
|
11
22
|
cluster?: string
|
|
12
23
|
namespace?: string
|
|
13
24
|
name?: string
|
|
14
25
|
}
|
|
15
26
|
|
|
16
27
|
export type GetAlertsListResp = {
|
|
17
|
-
items?:
|
|
28
|
+
items?: InsightIoApiInsightV1alpha2Insight.AlertSummary[]
|
|
18
29
|
pagination?: CommonCommon.Pagination
|
|
19
30
|
}
|
|
20
31
|
|
|
21
32
|
export class Metric {
|
|
22
33
|
static GetAlertsList(req: GetAlertsListReq, initReq?: fm.InitReq): Promise<GetAlertsListResp> {
|
|
23
|
-
return fm.fetchReq<GetAlertsListReq, GetAlertsListResp>(`/apis/mcamel.io/mysql/
|
|
34
|
+
return fm.fetchReq<GetAlertsListReq, GetAlertsListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/${req["name"]}/alerts?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
24
35
|
}
|
|
25
36
|
}
|
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> =
|
|
@@ -16,10 +17,25 @@ type OneOf<T> =
|
|
|
16
17
|
: never)
|
|
17
18
|
: never);
|
|
18
19
|
|
|
20
|
+
export enum InstanceType {
|
|
21
|
+
UnKnown = "UnKnown",
|
|
22
|
+
SingleNode = "SingleNode",
|
|
23
|
+
MasterSlave = "MasterSlave",
|
|
24
|
+
Mgr = "Mgr",
|
|
25
|
+
}
|
|
26
|
+
|
|
19
27
|
export enum Status {
|
|
20
28
|
Failed = "Failed",
|
|
21
29
|
Running = "Running",
|
|
22
30
|
Creating = "Creating",
|
|
31
|
+
MgrOnline = "MgrOnline",
|
|
32
|
+
MgrRecovering = "MgrRecovering",
|
|
33
|
+
MgrError = "MgrError",
|
|
34
|
+
MgrOffline = "MgrOffline",
|
|
35
|
+
MgrNotManaged = "MgrNotManaged",
|
|
36
|
+
MgrUnmanaged = "MgrUnmanaged",
|
|
37
|
+
MgrUnreachable = "MgrUnreachable",
|
|
38
|
+
MgrUnknown = "MgrUnknown",
|
|
23
39
|
}
|
|
24
40
|
|
|
25
41
|
export enum GetMinioListReqSortDir {
|
|
@@ -107,6 +123,8 @@ export enum GetMysqlNodeListRespNodeType {
|
|
|
107
123
|
Master = "Master",
|
|
108
124
|
Replica = "Replica",
|
|
109
125
|
PhpAdmin = "PhpAdmin",
|
|
126
|
+
PRIMARY = "PRIMARY",
|
|
127
|
+
SECONDARY = "SECONDARY",
|
|
110
128
|
}
|
|
111
129
|
|
|
112
130
|
export enum GetMysqlConfRespItemsParamType {
|
|
@@ -120,6 +138,67 @@ export enum MysqlClusterItemStatusRestoreInitialStatus {
|
|
|
120
138
|
Succeeded = "Succeeded",
|
|
121
139
|
}
|
|
122
140
|
|
|
141
|
+
export type GetTopologyRequest = {
|
|
142
|
+
cluster?: string
|
|
143
|
+
namespace?: string
|
|
144
|
+
name?: string
|
|
145
|
+
instanceType?: InstanceType
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export type GetTopologyResp = {
|
|
149
|
+
cluster?: string
|
|
150
|
+
namespace?: string
|
|
151
|
+
name?: string
|
|
152
|
+
instanceType?: InstanceType
|
|
153
|
+
version?: string
|
|
154
|
+
topology?: Topology
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export type Topology = {
|
|
158
|
+
masterSlave?: MasterSlaveTopology
|
|
159
|
+
mgr?: MgrTopology
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export type MasterSlaveTopology = {
|
|
163
|
+
replicaSet?: MasterSlaveReplicaSet[]
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export type MasterSlaveReplicaSet = {
|
|
167
|
+
master?: Node
|
|
168
|
+
slaves?: Node[]
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export type Node = {
|
|
172
|
+
serverId?: number
|
|
173
|
+
detail?: {[key: string]: string}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export type MgrTopology = {
|
|
177
|
+
replicaset?: MgrReplicaset[]
|
|
178
|
+
groupInformationSourceMember?: string
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export type MgrReplicaset = {
|
|
182
|
+
name?: string
|
|
183
|
+
primaryHost?: string
|
|
184
|
+
ssl?: string
|
|
185
|
+
status?: string
|
|
186
|
+
statusText?: string
|
|
187
|
+
primary?: MgrNode
|
|
188
|
+
secondaries?: MgrNode[]
|
|
189
|
+
topologyMode?: string
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type MgrNode = {
|
|
193
|
+
address?: string
|
|
194
|
+
memberRole?: string
|
|
195
|
+
mode?: string
|
|
196
|
+
replicationLag?: string
|
|
197
|
+
role?: string
|
|
198
|
+
status?: string
|
|
199
|
+
version?: string
|
|
200
|
+
}
|
|
201
|
+
|
|
123
202
|
export type GetMinioListReq = {
|
|
124
203
|
page?: number
|
|
125
204
|
pageSize?: number
|
|
@@ -155,6 +234,7 @@ export type GetMysqlUsersReq = {
|
|
|
155
234
|
cluster?: string
|
|
156
235
|
namespace?: string
|
|
157
236
|
name?: string
|
|
237
|
+
instanceType?: InstanceType
|
|
158
238
|
}
|
|
159
239
|
|
|
160
240
|
export type GetMysqlUsersRespUserItem = {
|
|
@@ -179,6 +259,7 @@ export type UpdateMysqlBackupConfigReq = {
|
|
|
179
259
|
storageConfigName?: string
|
|
180
260
|
storageConfigNamespace?: string
|
|
181
261
|
storageConfigCluster?: string
|
|
262
|
+
instanceType?: InstanceType
|
|
182
263
|
}
|
|
183
264
|
|
|
184
265
|
export type UpdateMysqlBackupConfigResp = {
|
|
@@ -192,6 +273,9 @@ export type CreateMysqlRecoverReq = {
|
|
|
192
273
|
name?: string
|
|
193
274
|
backupName?: string
|
|
194
275
|
targetMysqlClusterName?: string
|
|
276
|
+
targetMysqlClusterNamespace?: string
|
|
277
|
+
targetMysqlClusterCluster?: string
|
|
278
|
+
instanceType?: InstanceType
|
|
195
279
|
}
|
|
196
280
|
|
|
197
281
|
export type CreateMysqlRecoverResp = {
|
|
@@ -207,6 +291,7 @@ export type GetMysqlBackupListReq = {
|
|
|
207
291
|
cluster?: string
|
|
208
292
|
namespace?: string
|
|
209
293
|
name?: string
|
|
294
|
+
instanceType?: InstanceType
|
|
210
295
|
}
|
|
211
296
|
|
|
212
297
|
export type GetMysqlBackupJobListReq = {
|
|
@@ -317,6 +402,7 @@ export type CreateMysqlBackupReq = {
|
|
|
317
402
|
backupName?: string
|
|
318
403
|
backupBucket?: string
|
|
319
404
|
backupBucketSubPath?: string
|
|
405
|
+
instanceType?: InstanceType
|
|
320
406
|
}
|
|
321
407
|
|
|
322
408
|
export type CreateMysqlBackupResp = {
|
|
@@ -331,10 +417,12 @@ export type DeleteMysqlBackupReq = {
|
|
|
331
417
|
cluster?: string
|
|
332
418
|
namespace?: string
|
|
333
419
|
name?: string
|
|
420
|
+
instanceType?: InstanceType
|
|
334
421
|
}
|
|
335
422
|
|
|
336
423
|
export type DeleteMysqlBackupResp = {
|
|
337
424
|
message?: string
|
|
425
|
+
instanceType?: InstanceType
|
|
338
426
|
}
|
|
339
427
|
|
|
340
428
|
export type GetMysqlListReq = {
|
|
@@ -357,6 +445,7 @@ export type GetMysqlConfReq = {
|
|
|
357
445
|
cluster?: string
|
|
358
446
|
namespace?: string
|
|
359
447
|
name?: string
|
|
448
|
+
instanceType?: InstanceType
|
|
360
449
|
}
|
|
361
450
|
|
|
362
451
|
export type GetMysqlParamReq = {
|
|
@@ -379,6 +468,7 @@ export type CreateMysqlReq = {
|
|
|
379
468
|
describe?: string
|
|
380
469
|
version?: string
|
|
381
470
|
replicas?: number
|
|
471
|
+
instanceType?: InstanceType
|
|
382
472
|
storageClassName?: string
|
|
383
473
|
storageCapacity?: string
|
|
384
474
|
rootPassword?: string
|
|
@@ -413,6 +503,7 @@ export type CreateMysqlReq = {
|
|
|
413
503
|
storageConfigCluster?: string
|
|
414
504
|
affinity?: CommonCommon.Affinity
|
|
415
505
|
serviceMonitorInterval?: string
|
|
506
|
+
accessWhitelist?: CommonCommon.AccessWhitelist
|
|
416
507
|
externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
|
|
417
508
|
lbTyp?: CommonCommon.LBTyp
|
|
418
509
|
lbPoolName?: string
|
|
@@ -427,7 +518,9 @@ export type UpdateMysqlConfReq = {
|
|
|
427
518
|
cluster?: string
|
|
428
519
|
namespace?: string
|
|
429
520
|
name?: string
|
|
430
|
-
|
|
521
|
+
confItems?: TemplateTemplate.TemplateConfigItem[]
|
|
522
|
+
reloadFromConfTemplateName?: string
|
|
523
|
+
instanceType?: InstanceType
|
|
431
524
|
}
|
|
432
525
|
|
|
433
526
|
export type UpdateMysqlParamsResp = {
|
|
@@ -477,6 +570,7 @@ export type GetMysqlParamResp = {
|
|
|
477
570
|
storage?: GetMysqlParamRespSelect
|
|
478
571
|
cnf?: GetMysqlParamRespSelect
|
|
479
572
|
eightXcnf?: GetMysqlParamRespSelect
|
|
573
|
+
mgrVersion?: GetMysqlParamRespSelect
|
|
480
574
|
}
|
|
481
575
|
|
|
482
576
|
export type GetMysqlBackupProviderListResp = {
|
|
@@ -488,12 +582,14 @@ export type CreateMysqlResp = {
|
|
|
488
582
|
}
|
|
489
583
|
|
|
490
584
|
export type GetMysqlOperatorVersionListReq = {
|
|
585
|
+
cluster?: string
|
|
491
586
|
}
|
|
492
587
|
|
|
493
588
|
export type GetMysqlOperatorVersionListRespGetMysqlOperatorVersionListData = {
|
|
494
589
|
cluster?: string
|
|
495
590
|
namespace?: string
|
|
496
591
|
version?: string
|
|
592
|
+
instanceType?: InstanceType[]
|
|
497
593
|
}
|
|
498
594
|
|
|
499
595
|
export type GetMysqlOperatorVersionListResp = {
|
|
@@ -505,6 +601,7 @@ export type DeleteMysqlReq = {
|
|
|
505
601
|
cluster?: string
|
|
506
602
|
namespace?: string
|
|
507
603
|
name?: string
|
|
604
|
+
instanceType?: InstanceType
|
|
508
605
|
}
|
|
509
606
|
|
|
510
607
|
export type DeleteMysqlsReq = {
|
|
@@ -528,6 +625,7 @@ export type GetMysqlNodeListReq = {
|
|
|
528
625
|
sortDir?: GetMysqlNodeListReqSortDir
|
|
529
626
|
sortBy?: string
|
|
530
627
|
searchKey?: string
|
|
628
|
+
instanceType?: InstanceType
|
|
531
629
|
}
|
|
532
630
|
|
|
533
631
|
export type GetMysqlNodeListRespData = {
|
|
@@ -556,6 +654,7 @@ export type GetMysqlGrafanaAddrReq = {
|
|
|
556
654
|
name?: string
|
|
557
655
|
from?: string
|
|
558
656
|
to?: string
|
|
657
|
+
instanceType?: InstanceType
|
|
559
658
|
}
|
|
560
659
|
|
|
561
660
|
export type GetMysqlGrafanaAddrResp = {
|
|
@@ -566,6 +665,7 @@ export type GetMysqlReq = {
|
|
|
566
665
|
cluster?: string
|
|
567
666
|
namespace?: string
|
|
568
667
|
name?: string
|
|
668
|
+
instanceType?: InstanceType
|
|
569
669
|
}
|
|
570
670
|
|
|
571
671
|
export type GetMysqlResp = {
|
|
@@ -619,74 +719,77 @@ export type MysqlClusterItem = {
|
|
|
619
719
|
status?: MysqlClusterItemStatus
|
|
620
720
|
}
|
|
621
721
|
|
|
622
|
-
export class
|
|
722
|
+
export class MysqlMgr {
|
|
623
723
|
static GetMysqlList(req: GetMysqlListReq, initReq?: fm.InitReq): Promise<GetMysqlListResp> {
|
|
624
|
-
return fm.fetchReq<GetMysqlListReq, GetMysqlListResp>(`/apis/mcamel.io/mysql/
|
|
724
|
+
return fm.fetchReq<GetMysqlListReq, GetMysqlListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/mysqls?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
625
725
|
}
|
|
626
726
|
static GetMysqlOperatorVersionList(req: GetMysqlOperatorVersionListReq, initReq?: fm.InitReq): Promise<GetMysqlOperatorVersionListResp> {
|
|
627
|
-
return fm.fetchReq<GetMysqlOperatorVersionListReq, GetMysqlOperatorVersionListResp>(`/apis/mcamel.io/mysql/
|
|
727
|
+
return fm.fetchReq<GetMysqlOperatorVersionListReq, GetMysqlOperatorVersionListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/mysql-operator/versions?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
628
728
|
}
|
|
629
729
|
static GetMysql(req: GetMysqlReq, initReq?: fm.InitReq): Promise<GetMysqlResp> {
|
|
630
|
-
return fm.fetchReq<GetMysqlReq, GetMysqlResp>(`/apis/mcamel.io/mysql/
|
|
730
|
+
return fm.fetchReq<GetMysqlReq, GetMysqlResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
631
731
|
}
|
|
632
732
|
static GetMysqlParam(req: GetMysqlParamReq, initReq?: fm.InitReq): Promise<GetMysqlParamResp> {
|
|
633
|
-
return fm.fetchReq<GetMysqlParamReq, GetMysqlParamResp>(`/apis/mcamel.io/mysql/
|
|
733
|
+
return fm.fetchReq<GetMysqlParamReq, GetMysqlParamResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql-params/${req["cluster"]}?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
634
734
|
}
|
|
635
735
|
static GetMysqlNodeList(req: GetMysqlNodeListReq, initReq?: fm.InitReq): Promise<GetMysqlNodeListResp> {
|
|
636
|
-
return fm.fetchReq<GetMysqlNodeListReq, GetMysqlNodeListResp>(`/apis/mcamel.io/mysql/
|
|
736
|
+
return fm.fetchReq<GetMysqlNodeListReq, GetMysqlNodeListResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/nodes?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
637
737
|
}
|
|
638
738
|
static GetMysqlGrafanaAddr(req: GetMysqlGrafanaAddrReq, initReq?: fm.InitReq): Promise<GetMysqlGrafanaAddrResp> {
|
|
639
|
-
return fm.fetchReq<GetMysqlGrafanaAddrReq, GetMysqlGrafanaAddrResp>(`/apis/mcamel.io/mysql/
|
|
739
|
+
return fm.fetchReq<GetMysqlGrafanaAddrReq, GetMysqlGrafanaAddrResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/grafana?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
640
740
|
}
|
|
641
741
|
static CreateMysql(req: CreateMysqlReq, initReq?: fm.InitReq): Promise<CreateMysqlResp> {
|
|
642
|
-
return fm.fetchReq<CreateMysqlReq, CreateMysqlResp>(`/apis/mcamel.io/mysql/
|
|
742
|
+
return fm.fetchReq<CreateMysqlReq, CreateMysqlResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
643
743
|
}
|
|
644
744
|
static GetMysqlConfs(req: GetMysqlConfReq, initReq?: fm.InitReq): Promise<GetMysqlConfResp> {
|
|
645
|
-
return fm.fetchReq<GetMysqlConfReq, GetMysqlConfResp>(`/apis/mcamel.io/mysql/
|
|
745
|
+
return fm.fetchReq<GetMysqlConfReq, GetMysqlConfResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/confs?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
646
746
|
}
|
|
647
747
|
static UpdateMysqlConf(req: UpdateMysqlConfReq, initReq?: fm.InitReq): Promise<UpdateMysqlConfResp> {
|
|
648
|
-
return fm.fetchReq<UpdateMysqlConfReq, UpdateMysqlConfResp>(`/apis/mcamel.io/mysql/
|
|
748
|
+
return fm.fetchReq<UpdateMysqlConfReq, UpdateMysqlConfResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/conf`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
649
749
|
}
|
|
650
750
|
static UpdateMysqlParams(req: CreateMysqlReq, initReq?: fm.InitReq): Promise<UpdateMysqlParamsResp> {
|
|
651
|
-
return fm.fetchReq<CreateMysqlReq, UpdateMysqlParamsResp>(`/apis/mcamel.io/mysql/
|
|
751
|
+
return fm.fetchReq<CreateMysqlReq, UpdateMysqlParamsResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/params`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
652
752
|
}
|
|
653
753
|
static DeleteMysql(req: DeleteMysqlReq, initReq?: fm.InitReq): Promise<DeleteMysqlResp> {
|
|
654
|
-
return fm.fetchReq<DeleteMysqlReq, DeleteMysqlResp>(`/apis/mcamel.io/mysql/
|
|
754
|
+
return fm.fetchReq<DeleteMysqlReq, DeleteMysqlResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["instanceType"]}/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
655
755
|
}
|
|
656
756
|
static DeleteMysqls(req: DeleteMysqlsReq, initReq?: fm.InitReq): Promise<DeleteMysqlsResp> {
|
|
657
|
-
return fm.fetchReq<DeleteMysqlsReq, DeleteMysqlsResp>(`/apis/mcamel.io/mysql/
|
|
757
|
+
return fm.fetchReq<DeleteMysqlsReq, DeleteMysqlsResp>(`/apis/mcamel.io/mysql/v1alpha2/mysqls`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
658
758
|
}
|
|
659
759
|
static GetMysqlBackupList(req: GetMysqlBackupListReq, initReq?: fm.InitReq): Promise<GetMysqlBackupListResp> {
|
|
660
|
-
return fm.fetchReq<GetMysqlBackupListReq, GetMysqlBackupListResp>(`/apis/mcamel.io/mysql/
|
|
760
|
+
return fm.fetchReq<GetMysqlBackupListReq, GetMysqlBackupListResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backups?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
661
761
|
}
|
|
662
762
|
static GetMysqlBackupJobList(req: GetMysqlBackupJobListReq, initReq?: fm.InitReq): Promise<GetMysqlBackupJobListResp> {
|
|
663
|
-
return fm.fetchReq<GetMysqlBackupJobListReq, GetMysqlBackupJobListResp>(`/apis/mcamel.io/mysql/
|
|
763
|
+
return fm.fetchReq<GetMysqlBackupJobListReq, GetMysqlBackupJobListResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup/jobs?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
664
764
|
}
|
|
665
765
|
static CreateMysqlBackup(req: CreateMysqlBackupReq, initReq?: fm.InitReq): Promise<CreateMysqlBackupResp> {
|
|
666
|
-
return fm.fetchReq<CreateMysqlBackupReq, CreateMysqlBackupResp>(`/apis/mcamel.io/mysql/
|
|
766
|
+
return fm.fetchReq<CreateMysqlBackupReq, CreateMysqlBackupResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
667
767
|
}
|
|
668
768
|
static DeleteMysqlBackup(req: DeleteMysqlBackupReq, initReq?: fm.InitReq): Promise<DeleteMysqlBackupResp> {
|
|
669
|
-
return fm.fetchReq<DeleteMysqlBackupReq, DeleteMysqlBackupResp>(`/apis/mcamel.io/mysql/
|
|
769
|
+
return fm.fetchReq<DeleteMysqlBackupReq, DeleteMysqlBackupResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["instanceType"]}/${req["name"]}/backup`, {...initReq, method: "DELETE"})
|
|
670
770
|
}
|
|
671
771
|
static GetMysqlBackupSecret(req: GetMysqlBackupSecretReq, initReq?: fm.InitReq): Promise<GetMysqlBackupSecretResp> {
|
|
672
|
-
return fm.fetchReq<GetMysqlBackupSecretReq, GetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/
|
|
772
|
+
return fm.fetchReq<GetMysqlBackupSecretReq, GetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["workspaceId"]}/secret?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
673
773
|
}
|
|
674
774
|
static GetMysqlBackupProviderList(req: GetMysqlBackupProviderListReq, initReq?: fm.InitReq): Promise<GetMysqlBackupProviderListResp> {
|
|
675
|
-
return fm.fetchReq<GetMysqlBackupProviderListReq, GetMysqlBackupProviderListResp>(`/apis/mcamel.io/mysql/
|
|
775
|
+
return fm.fetchReq<GetMysqlBackupProviderListReq, GetMysqlBackupProviderListResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["workspaceId"]}/providers?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
676
776
|
}
|
|
677
777
|
static SetMysqlBackupSecret(req: SetMysqlBackupSecretReq, initReq?: fm.InitReq): Promise<SetMysqlBackupSecretResp> {
|
|
678
|
-
return fm.fetchReq<SetMysqlBackupSecretReq, SetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/
|
|
778
|
+
return fm.fetchReq<SetMysqlBackupSecretReq, SetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["workspaceId"]}/secret`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
679
779
|
}
|
|
680
780
|
static CreateMysqlRecover(req: CreateMysqlRecoverReq, initReq?: fm.InitReq): Promise<CreateMysqlRecoverResp> {
|
|
681
|
-
return fm.fetchReq<CreateMysqlRecoverReq, CreateMysqlRecoverResp>(`/apis/mcamel.io/mysql/
|
|
781
|
+
return fm.fetchReq<CreateMysqlRecoverReq, CreateMysqlRecoverResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/recover`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
682
782
|
}
|
|
683
783
|
static UpdateMysqlBackupConfig(req: UpdateMysqlBackupConfigReq, initReq?: fm.InitReq): Promise<UpdateMysqlBackupConfigResp> {
|
|
684
|
-
return fm.fetchReq<UpdateMysqlBackupConfigReq, UpdateMysqlBackupConfigResp>(`/apis/mcamel.io/mysql/
|
|
784
|
+
return fm.fetchReq<UpdateMysqlBackupConfigReq, UpdateMysqlBackupConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup/config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
685
785
|
}
|
|
686
786
|
static GetMysqlUsers(req: GetMysqlUsersReq, initReq?: fm.InitReq): Promise<GetMysqlUsersResp> {
|
|
687
|
-
return fm.fetchReq<GetMysqlUsersReq, GetMysqlUsersResp>(`/apis/mcamel.io/mysql/
|
|
787
|
+
return fm.fetchReq<GetMysqlUsersReq, GetMysqlUsersResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/users?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
688
788
|
}
|
|
689
789
|
static GetMinioList(req: GetMinioListReq, initReq?: fm.InitReq): Promise<GetMinioListResp> {
|
|
690
|
-
return fm.fetchReq<GetMinioListReq, GetMinioListResp>(`/apis/mcamel.io/mysql/
|
|
790
|
+
return fm.fetchReq<GetMinioListReq, GetMinioListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/minios?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
791
|
+
}
|
|
792
|
+
static GetTopology(req: GetTopologyRequest, initReq?: fm.InitReq): Promise<GetTopologyResp> {
|
|
793
|
+
return fm.fetchReq<GetTopologyRequest, GetTopologyResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/topology?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name", "instanceType"])}`, {...initReq, method: "GET"})
|
|
691
794
|
}
|
|
692
795
|
}
|
package/package.json
CHANGED
package/storage_config.pb.ts
CHANGED
|
@@ -162,27 +162,27 @@ export type GetStorageConfigListResp = {
|
|
|
162
162
|
|
|
163
163
|
export class StorageConfig {
|
|
164
164
|
static GetStorageConfigParam(req: GetStorageConfigParamReq, initReq?: fm.InitReq): Promise<GetStorageConfigParamResp> {
|
|
165
|
-
return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/mysql/
|
|
165
|
+
return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/mysql/v1alpha2/storage-config/param?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
166
166
|
}
|
|
167
167
|
static CreateStorageConfigBucketCheckJob(req: CreateStorageConfigBucketCheckJobReq, initReq?: fm.InitReq): Promise<CreateStorageConfigBucketCheckJobResp> {
|
|
168
|
-
return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/mysql/
|
|
168
|
+
return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/mysql/v1alpha2/storage-config/bucket/check-job`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
169
169
|
}
|
|
170
170
|
static CreateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<CreateStorageConfigResp> {
|
|
171
|
-
return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/mysql/
|
|
171
|
+
return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/storage-config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
172
172
|
}
|
|
173
173
|
static GetStorageConfigConsumers(req: GetStorageConfigConsumersReq, initReq?: fm.InitReq): Promise<GetStorageConfigConsumersResp> {
|
|
174
|
-
return fm.fetchReq<GetStorageConfigConsumersReq, GetStorageConfigConsumersResp>(`/apis/mcamel.io/mysql/
|
|
174
|
+
return fm.fetchReq<GetStorageConfigConsumersReq, GetStorageConfigConsumersResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/storage-config/${req["name"]}/consumers?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
175
175
|
}
|
|
176
176
|
static DeleteStorageConfig(req: DeleteStorageConfigReq, initReq?: fm.InitReq): Promise<DeleteStorageConfigResp> {
|
|
177
|
-
return fm.fetchReq<DeleteStorageConfigReq, DeleteStorageConfigResp>(`/apis/mcamel.io/mysql/
|
|
177
|
+
return fm.fetchReq<DeleteStorageConfigReq, DeleteStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/storage-config/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
178
178
|
}
|
|
179
179
|
static UpdateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<UpdateStorageConfigResp> {
|
|
180
|
-
return fm.fetchReq<CreateStorageConfigReq, UpdateStorageConfigResp>(`/apis/mcamel.io/mysql/
|
|
180
|
+
return fm.fetchReq<CreateStorageConfigReq, UpdateStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/storage-config/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
181
181
|
}
|
|
182
182
|
static GetStorageConfig(req: GetStorageConfigReq, initReq?: fm.InitReq): Promise<GetStorageConfigResp> {
|
|
183
|
-
return fm.fetchReq<GetStorageConfigReq, GetStorageConfigResp>(`/apis/mcamel.io/mysql/
|
|
183
|
+
return fm.fetchReq<GetStorageConfigReq, GetStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/storage-config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
184
184
|
}
|
|
185
185
|
static GetStorageConfigList(req: GetStorageConfigListReq, initReq?: fm.InitReq): Promise<GetStorageConfigListResp> {
|
|
186
|
-
return fm.fetchReq<GetStorageConfigListReq, GetStorageConfigListResp>(`/apis/mcamel.io/mysql/
|
|
186
|
+
return fm.fetchReq<GetStorageConfigListReq, GetStorageConfigListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/storage-configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
187
187
|
}
|
|
188
188
|
}
|
package/template.pb.ts
CHANGED
|
@@ -4,8 +4,18 @@
|
|
|
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
|
|
|
10
|
+
export enum TemplateInstanceType {
|
|
11
|
+
MysqlMasterReplica = "MysqlMasterReplica",
|
|
12
|
+
RedisStandalone = "RedisStandalone",
|
|
13
|
+
RedisFailover = "RedisFailover",
|
|
14
|
+
RedisCluster = "RedisCluster",
|
|
15
|
+
KafkaConfig = "KafkaConfig",
|
|
16
|
+
MysqlMgrConfig = "MysqlMgrConfig",
|
|
17
|
+
}
|
|
18
|
+
|
|
9
19
|
export enum GetTemplateConfigReqSortDir {
|
|
10
20
|
ASC = "ASC",
|
|
11
21
|
DESC = "DESC",
|
|
@@ -19,6 +29,15 @@ export enum GetTemplateConfigListReqSortDir {
|
|
|
19
29
|
export enum TemplateConfigItemValueType {
|
|
20
30
|
String = "String",
|
|
21
31
|
SingleSelection = "SingleSelection",
|
|
32
|
+
MultiString = "MultiString",
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type GetTemplateConfigVersionsReq = {
|
|
36
|
+
workspaceId?: number
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type GetTemplateConfigVersionsResp = {
|
|
40
|
+
versions?: string[]
|
|
22
41
|
}
|
|
23
42
|
|
|
24
43
|
export type GetTemplateConfigStringResp = {
|
|
@@ -48,6 +67,10 @@ export type GetTemplateConfigReq = {
|
|
|
48
67
|
workspaceId?: number
|
|
49
68
|
name?: string
|
|
50
69
|
version?: string
|
|
70
|
+
templateType?: string
|
|
71
|
+
type?: string
|
|
72
|
+
createTimestamp?: string
|
|
73
|
+
templateInstanceType?: TemplateInstanceType
|
|
51
74
|
}
|
|
52
75
|
|
|
53
76
|
export type CreateTemplateConfigResp = {
|
|
@@ -66,7 +89,6 @@ export type CreateTemplateConfigReq = {
|
|
|
66
89
|
targetTemplateType?: string
|
|
67
90
|
targetConf?: string
|
|
68
91
|
fromTemplateName?: string
|
|
69
|
-
targetWorkspaceId?: number
|
|
70
92
|
}
|
|
71
93
|
|
|
72
94
|
export type UpdateTemplateConfigReq = {
|
|
@@ -76,10 +98,12 @@ export type UpdateTemplateConfigReq = {
|
|
|
76
98
|
type?: string
|
|
77
99
|
templateType?: string
|
|
78
100
|
items?: TemplateConfigItem[]
|
|
101
|
+
conf?: string
|
|
79
102
|
}
|
|
80
103
|
|
|
81
104
|
export type GetTemplateConfigResp = {
|
|
82
105
|
data?: UpdateTemplateConfigReq
|
|
106
|
+
pagination?: CommonCommon.Pagination
|
|
83
107
|
}
|
|
84
108
|
|
|
85
109
|
export type GetTemplateConfigListReq = {
|
|
@@ -90,6 +114,7 @@ export type GetTemplateConfigListReq = {
|
|
|
90
114
|
searchKey?: string
|
|
91
115
|
workspaceId?: number
|
|
92
116
|
version?: string
|
|
117
|
+
templateInstanceType?: TemplateInstanceType
|
|
93
118
|
}
|
|
94
119
|
|
|
95
120
|
export type TemplateConfigItem = {
|
|
@@ -101,29 +126,45 @@ export type TemplateConfigItem = {
|
|
|
101
126
|
valueType?: TemplateConfigItemValueType
|
|
102
127
|
valueRemarksZh?: string
|
|
103
128
|
valueRemarksEn?: string
|
|
129
|
+
updateTimestamp?: string
|
|
104
130
|
}
|
|
105
131
|
|
|
106
132
|
export type GetTemplateConfigListResp = {
|
|
107
133
|
items?: GetTemplateConfigReq[]
|
|
134
|
+
pagination?: CommonCommon.Pagination
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export type GetTemplateInstanceTypeListReq = {
|
|
138
|
+
workspaceId?: number
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export type GetTemplateInstanceTypeListResp = {
|
|
142
|
+
type?: TemplateInstanceType[]
|
|
108
143
|
}
|
|
109
144
|
|
|
110
145
|
export class Template {
|
|
111
146
|
static GetTemplateConfigList(req: GetTemplateConfigListReq, initReq?: fm.InitReq): Promise<GetTemplateConfigListResp> {
|
|
112
|
-
return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/mysql/
|
|
147
|
+
return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
148
|
+
}
|
|
149
|
+
static GetTemplateInstanceTypeList(req: GetTemplateInstanceTypeListReq, initReq?: fm.InitReq): Promise<GetTemplateInstanceTypeListResp> {
|
|
150
|
+
return fm.fetchReq<GetTemplateInstanceTypeListReq, GetTemplateInstanceTypeListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_instance_type?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
113
151
|
}
|
|
114
152
|
static GetTemplateConfig(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigResp> {
|
|
115
|
-
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
153
|
+
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
116
154
|
}
|
|
117
155
|
static DeleteTemplateConfig(req: DeleteTemplateReq, initReq?: fm.InitReq): Promise<DeleteTemplateConfigResp> {
|
|
118
|
-
return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
156
|
+
return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config/${req["name"]}/${req["version"]}`, {...initReq, method: "DELETE"})
|
|
119
157
|
}
|
|
120
158
|
static CreateTemplateConfig(req: CreateTemplateConfigReq, initReq?: fm.InitReq): Promise<CreateTemplateConfigResp> {
|
|
121
|
-
return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
159
|
+
return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
122
160
|
}
|
|
123
161
|
static UpdateTemplateConfig(req: UpdateTemplateConfigReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigResp> {
|
|
124
|
-
return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
162
|
+
return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
125
163
|
}
|
|
126
164
|
static GetTemplateConfigString(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
|
|
127
|
-
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/mysql/
|
|
165
|
+
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
166
|
+
}
|
|
167
|
+
static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
|
|
168
|
+
return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
128
169
|
}
|
|
129
170
|
}
|
package/version.pb.ts
CHANGED
|
@@ -22,6 +22,6 @@ export type Empty = {
|
|
|
22
22
|
|
|
23
23
|
export class Version {
|
|
24
24
|
static Get(req: Empty, initReq?: fm.InitReq): Promise<GetVersionReply> {
|
|
25
|
-
return fm.fetchReq<Empty, GetVersionReply>(`/apis/mcamel.io/mysql/
|
|
25
|
+
return fm.fetchReq<Empty, GetVersionReply>(`/apis/mcamel.io/mysql/v1alpha2/mysql/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
26
26
|
}
|
|
27
27
|
}
|