@daocloud-proto/mcamel-mysql 0.20.0-rc1-3 → 0.22.0-rc1-6
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 +63 -17
- package/common.pb.ts +1 -0
- package/metric.pb.ts +2 -1
- package/mysql.pb.ts +99 -31
- package/package.json +1 -1
- package/storage_config.pb.ts +8 -8
- package/template.pb.ts +9 -9
- 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/v1alpha3/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/v1alpha3/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/v1alpha3/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
77
77
|
}
|
|
78
78
|
}
|
package/cluster.pb.ts
CHANGED
|
@@ -66,11 +66,37 @@ export enum ClusterItemNetworkMode {
|
|
|
66
66
|
Calico = "Calico",
|
|
67
67
|
}
|
|
68
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
|
+
}
|
|
85
|
+
|
|
69
86
|
export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
70
87
|
NotInstall = "NotInstall",
|
|
71
88
|
Install = "Install",
|
|
72
89
|
}
|
|
73
90
|
|
|
91
|
+
export type GetClusterReq = {
|
|
92
|
+
workspaceId?: number
|
|
93
|
+
name?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type GetClusterResp = {
|
|
97
|
+
cluster?: ClusterItem
|
|
98
|
+
}
|
|
99
|
+
|
|
74
100
|
export type InstallFileReq = {
|
|
75
101
|
cluster?: string
|
|
76
102
|
path?: string
|
|
@@ -166,6 +192,7 @@ export type GetAllEventListReq = {
|
|
|
166
192
|
name?: string
|
|
167
193
|
eventType?: EventType
|
|
168
194
|
kindName?: string
|
|
195
|
+
workspaceId?: number
|
|
169
196
|
}
|
|
170
197
|
|
|
171
198
|
export type GetAllEventListRespItemsSource = {
|
|
@@ -355,6 +382,8 @@ export type ClusterItemMetadata = {
|
|
|
355
382
|
|
|
356
383
|
export type ClusterItemStatus = {
|
|
357
384
|
networkMode?: ClusterItemNetworkMode[]
|
|
385
|
+
setting?: ClusterSetting
|
|
386
|
+
clusterStatus?: CommonCommon.ClusterStatus
|
|
358
387
|
}
|
|
359
388
|
|
|
360
389
|
export type ClusterItem = {
|
|
@@ -362,6 +391,20 @@ export type ClusterItem = {
|
|
|
362
391
|
status?: ClusterItemStatus
|
|
363
392
|
}
|
|
364
393
|
|
|
394
|
+
export type ClusterSettingPlugin = {
|
|
395
|
+
name?: ClusterSettingPluginPluginName
|
|
396
|
+
enabled?: boolean
|
|
397
|
+
intelligentDetection?: boolean
|
|
398
|
+
externalAddress?: string
|
|
399
|
+
setting?: string
|
|
400
|
+
healthy?: boolean
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export type ClusterSetting = {
|
|
404
|
+
plugins?: ClusterSettingPlugin[]
|
|
405
|
+
network?: ClusterSettingPlugin[]
|
|
406
|
+
}
|
|
407
|
+
|
|
365
408
|
export type GetClusterNamespaceListReq = {
|
|
366
409
|
workspaceId?: number
|
|
367
410
|
cluster?: string
|
|
@@ -414,54 +457,57 @@ export type GetResourceQuotaResp = {
|
|
|
414
457
|
|
|
415
458
|
export class Cluster {
|
|
416
459
|
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
417
|
-
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/mysql/
|
|
460
|
+
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
461
|
+
}
|
|
462
|
+
static GetCluster(req: GetClusterReq, initReq?: fm.InitReq): Promise<GetClusterResp> {
|
|
463
|
+
return fm.fetchReq<GetClusterReq, GetClusterResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/clusters/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
418
464
|
}
|
|
419
465
|
static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
|
|
420
|
-
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/mysql/
|
|
466
|
+
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
421
467
|
}
|
|
422
468
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
423
|
-
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mysql/
|
|
469
|
+
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
424
470
|
}
|
|
425
471
|
static GetClusterNodePortList(req: GetClusterNodePortListReq, initReq?: fm.InitReq): Promise<GetClusterNodePortListResp> {
|
|
426
|
-
return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/mysql/
|
|
472
|
+
return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/nodeports?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
427
473
|
}
|
|
428
474
|
static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
|
|
429
|
-
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/mysql/
|
|
475
|
+
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
430
476
|
}
|
|
431
477
|
static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
|
|
432
|
-
return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/mysql/
|
|
478
|
+
return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
433
479
|
}
|
|
434
480
|
static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
|
|
435
|
-
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mysql/
|
|
481
|
+
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mysql/v1alpha3/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
436
482
|
}
|
|
437
483
|
static GetInsightAgentStatus(req: GetInsightAgentStatusReq, initReq?: fm.InitReq): Promise<GetInsightAgentStatusResp> {
|
|
438
|
-
return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/mysql/
|
|
484
|
+
return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/insight/status?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
439
485
|
}
|
|
440
486
|
static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
|
|
441
|
-
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/mysql/
|
|
487
|
+
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
442
488
|
}
|
|
443
489
|
static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
|
|
444
|
-
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/mysql/
|
|
490
|
+
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"})
|
|
445
491
|
}
|
|
446
492
|
static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
|
|
447
|
-
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/mysql/
|
|
493
|
+
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
448
494
|
}
|
|
449
495
|
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
450
|
-
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/mysql/
|
|
496
|
+
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
451
497
|
}
|
|
452
498
|
static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
|
|
453
|
-
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/mysql/
|
|
499
|
+
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
454
500
|
}
|
|
455
501
|
static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
|
|
456
|
-
return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/mysql/
|
|
502
|
+
return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
457
503
|
}
|
|
458
504
|
static InstallFile(req: InstallFileReq, initReq?: fm.InitReq): Promise<InstallFileResp> {
|
|
459
|
-
return fm.fetchReq<InstallFileReq, InstallFileResp>(`/apis/mcamel.io/mysql/
|
|
505
|
+
return fm.fetchReq<InstallFileReq, InstallFileResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/install-file`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
460
506
|
}
|
|
461
507
|
static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
|
|
462
|
-
return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/mysql/
|
|
508
|
+
return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
463
509
|
}
|
|
464
510
|
static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
|
|
465
|
-
return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/mysql/
|
|
511
|
+
return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
466
512
|
}
|
|
467
513
|
}
|
package/common.pb.ts
CHANGED
package/metric.pb.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type GetAlertsListReq = {
|
|
|
22
22
|
cluster?: string
|
|
23
23
|
namespace?: string
|
|
24
24
|
name?: string
|
|
25
|
+
workspaceId?: number
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
export type GetAlertsListResp = {
|
|
@@ -31,6 +32,6 @@ export type GetAlertsListResp = {
|
|
|
31
32
|
|
|
32
33
|
export class Metric {
|
|
33
34
|
static GetAlertsList(req: GetAlertsListReq, initReq?: fm.InitReq): Promise<GetAlertsListResp> {
|
|
34
|
-
return fm.fetchReq<GetAlertsListReq, GetAlertsListResp>(`/apis/mcamel.io/mysql/
|
|
35
|
+
return fm.fetchReq<GetAlertsListReq, GetAlertsListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/alerts?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
35
36
|
}
|
|
36
37
|
}
|
package/mysql.pb.ts
CHANGED
|
@@ -23,6 +23,7 @@ export enum RoleType {
|
|
|
23
23
|
Replica = "Replica",
|
|
24
24
|
PRIMARY = "PRIMARY",
|
|
25
25
|
SECONDARY = "SECONDARY",
|
|
26
|
+
Router = "Router",
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
export enum PodStatus {
|
|
@@ -54,6 +55,7 @@ export enum Status {
|
|
|
54
55
|
MgrUnmanaged = "MgrUnmanaged",
|
|
55
56
|
MgrUnreachable = "MgrUnreachable",
|
|
56
57
|
MgrUnknown = "MgrUnknown",
|
|
58
|
+
StatusUnknown = "StatusUnknown",
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
export enum GetSlowlogPodListRespItemNodeType {
|
|
@@ -156,6 +158,7 @@ export enum GetMysqlNodeListRespNodeType {
|
|
|
156
158
|
PhpAdmin = "PhpAdmin",
|
|
157
159
|
PRIMARY = "PRIMARY",
|
|
158
160
|
SECONDARY = "SECONDARY",
|
|
161
|
+
MgrRouter = "MgrRouter",
|
|
159
162
|
}
|
|
160
163
|
|
|
161
164
|
export enum GetMysqlConfRespItemsParamType {
|
|
@@ -169,10 +172,30 @@ export enum MysqlClusterItemStatusRestoreInitialStatus {
|
|
|
169
172
|
Succeeded = "Succeeded",
|
|
170
173
|
}
|
|
171
174
|
|
|
175
|
+
export type GetPodsAndRolesReq = {
|
|
176
|
+
cluster?: string
|
|
177
|
+
namespace?: string
|
|
178
|
+
name?: string
|
|
179
|
+
workspaceId?: number
|
|
180
|
+
instanceType?: InstanceType
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export type PodsAndRoles = {
|
|
184
|
+
podName?: string
|
|
185
|
+
podStatus?: PodStatus
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export type GetPodsAndRolesResp = {
|
|
189
|
+
isHealthy?: boolean
|
|
190
|
+
source?: PodsAndRoles[]
|
|
191
|
+
replica?: PodsAndRoles[]
|
|
192
|
+
}
|
|
193
|
+
|
|
172
194
|
export type GetSlowlogPodListReq = {
|
|
173
195
|
cluster?: string
|
|
174
196
|
namespace?: string
|
|
175
197
|
name?: string
|
|
198
|
+
workspaceId?: number
|
|
176
199
|
instanceType?: InstanceType
|
|
177
200
|
}
|
|
178
201
|
|
|
@@ -192,6 +215,7 @@ export type UpdateSlowlogStatusReq = {
|
|
|
192
215
|
name?: string
|
|
193
216
|
instanceType?: InstanceType
|
|
194
217
|
enable?: boolean
|
|
218
|
+
workspaceId?: number
|
|
195
219
|
}
|
|
196
220
|
|
|
197
221
|
export type UpdateSlowlogStatusResp = {
|
|
@@ -203,6 +227,7 @@ export type GetSlowlogConfReq = {
|
|
|
203
227
|
namespace?: string
|
|
204
228
|
name?: string
|
|
205
229
|
instanceType?: InstanceType
|
|
230
|
+
workspaceId?: number
|
|
206
231
|
}
|
|
207
232
|
|
|
208
233
|
export type GetSlowlogConfResp = {
|
|
@@ -216,6 +241,7 @@ export type DeleteSlowlogReq = {
|
|
|
216
241
|
name?: string
|
|
217
242
|
podName?: string[]
|
|
218
243
|
instanceType?: InstanceType
|
|
244
|
+
workspaceId?: number
|
|
219
245
|
}
|
|
220
246
|
|
|
221
247
|
export type DeleteSlowlogResp = {
|
|
@@ -235,6 +261,7 @@ export type GetSlowlogListReq = {
|
|
|
235
261
|
instanceType?: InstanceType
|
|
236
262
|
fromDate?: string
|
|
237
263
|
toDate?: string
|
|
264
|
+
workspaceId?: number
|
|
238
265
|
}
|
|
239
266
|
|
|
240
267
|
export type GetSlowlogListRespItem = {
|
|
@@ -258,6 +285,7 @@ export type GetTopologyRequest = {
|
|
|
258
285
|
namespace?: string
|
|
259
286
|
name?: string
|
|
260
287
|
instanceType?: InstanceType
|
|
288
|
+
workspaceId?: number
|
|
261
289
|
}
|
|
262
290
|
|
|
263
291
|
export type GetTopologyResp = {
|
|
@@ -337,6 +365,7 @@ export type GetMysqlUsersReq = {
|
|
|
337
365
|
namespace?: string
|
|
338
366
|
name?: string
|
|
339
367
|
instanceType?: InstanceType
|
|
368
|
+
workspaceId?: number
|
|
340
369
|
}
|
|
341
370
|
|
|
342
371
|
export type GetMysqlUsersRespUserItem = {
|
|
@@ -394,6 +423,7 @@ export type GetMysqlBackupListReq = {
|
|
|
394
423
|
namespace?: string
|
|
395
424
|
name?: string
|
|
396
425
|
instanceType?: InstanceType
|
|
426
|
+
workspaceId?: number
|
|
397
427
|
}
|
|
398
428
|
|
|
399
429
|
export type GetMysqlBackupJobListReq = {
|
|
@@ -406,6 +436,7 @@ export type GetMysqlBackupJobListReq = {
|
|
|
406
436
|
namespace?: string
|
|
407
437
|
name?: string
|
|
408
438
|
backupName?: string
|
|
439
|
+
workspaceId?: number
|
|
409
440
|
}
|
|
410
441
|
|
|
411
442
|
export type GetMysqlBackupSecretReq = {
|
|
@@ -520,6 +551,7 @@ export type DeleteMysqlBackupReq = {
|
|
|
520
551
|
namespace?: string
|
|
521
552
|
name?: string
|
|
522
553
|
instanceType?: InstanceType
|
|
554
|
+
workspaceId?: number
|
|
523
555
|
}
|
|
524
556
|
|
|
525
557
|
export type DeleteMysqlBackupResp = {
|
|
@@ -548,10 +580,12 @@ export type GetMysqlConfReq = {
|
|
|
548
580
|
namespace?: string
|
|
549
581
|
name?: string
|
|
550
582
|
instanceType?: InstanceType
|
|
583
|
+
workspaceId?: number
|
|
551
584
|
}
|
|
552
585
|
|
|
553
586
|
export type GetMysqlParamReq = {
|
|
554
587
|
cluster?: string
|
|
588
|
+
workspaceId?: number
|
|
555
589
|
}
|
|
556
590
|
|
|
557
591
|
export type CreateMysqlReqPorts = {
|
|
@@ -570,7 +604,6 @@ export type CreateMysqlReq = {
|
|
|
570
604
|
describe?: string
|
|
571
605
|
version?: string
|
|
572
606
|
replicas?: number
|
|
573
|
-
instanceType?: InstanceType
|
|
574
607
|
storageClassName?: string
|
|
575
608
|
storageCapacity?: string
|
|
576
609
|
rootPassword?: string
|
|
@@ -614,6 +647,16 @@ export type CreateMysqlReq = {
|
|
|
614
647
|
phpAdminLbTyp?: CommonCommon.LBTyp
|
|
615
648
|
phpAdminLbPoolName?: string
|
|
616
649
|
phpAdminLbAddress?: string
|
|
650
|
+
instanceType?: InstanceType
|
|
651
|
+
mgrRouterConfig?: MgrRouterConfig
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export type MgrRouterConfig = {
|
|
655
|
+
replicas?: number
|
|
656
|
+
cpuRequest?: string
|
|
657
|
+
cpuLimit?: string
|
|
658
|
+
memoryRequest?: string
|
|
659
|
+
memoryLimit?: string
|
|
617
660
|
}
|
|
618
661
|
|
|
619
662
|
export type UpdateMysqlConfReq = {
|
|
@@ -623,6 +666,7 @@ export type UpdateMysqlConfReq = {
|
|
|
623
666
|
confItems?: TemplateTemplate.TemplateConfigItem[]
|
|
624
667
|
reloadFromConfTemplateName?: string
|
|
625
668
|
instanceType?: InstanceType
|
|
669
|
+
workspaceId?: number
|
|
626
670
|
}
|
|
627
671
|
|
|
628
672
|
export type UpdateMysqlParamsResp = {
|
|
@@ -696,10 +740,12 @@ export type DeleteMysqlReq = {
|
|
|
696
740
|
namespace?: string
|
|
697
741
|
name?: string
|
|
698
742
|
instanceType?: InstanceType
|
|
743
|
+
workspaceId?: number
|
|
699
744
|
}
|
|
700
745
|
|
|
701
746
|
export type DeleteMysqlsReq = {
|
|
702
747
|
data?: DeleteMysqlReq[]
|
|
748
|
+
workspaceId?: number
|
|
703
749
|
}
|
|
704
750
|
|
|
705
751
|
export type DeleteMysqlResp = {
|
|
@@ -720,6 +766,7 @@ export type GetMysqlNodeListReq = {
|
|
|
720
766
|
sortBy?: string
|
|
721
767
|
searchKey?: string
|
|
722
768
|
instanceType?: InstanceType
|
|
769
|
+
workspaceId?: number
|
|
723
770
|
}
|
|
724
771
|
|
|
725
772
|
export type GetMysqlNodeListRespData = {
|
|
@@ -749,6 +796,7 @@ export type GetMysqlGrafanaAddrReq = {
|
|
|
749
796
|
from?: string
|
|
750
797
|
to?: string
|
|
751
798
|
instanceType?: InstanceType
|
|
799
|
+
workspaceId?: number
|
|
752
800
|
}
|
|
753
801
|
|
|
754
802
|
export type GetMysqlGrafanaAddrResp = {
|
|
@@ -760,6 +808,7 @@ export type GetMysqlReq = {
|
|
|
760
808
|
namespace?: string
|
|
761
809
|
name?: string
|
|
762
810
|
instanceType?: InstanceType
|
|
811
|
+
workspaceId?: number
|
|
763
812
|
}
|
|
764
813
|
|
|
765
814
|
export type GetMysqlResp = {
|
|
@@ -813,92 +862,111 @@ export type MysqlClusterItem = {
|
|
|
813
862
|
status?: MysqlClusterItemStatus
|
|
814
863
|
}
|
|
815
864
|
|
|
816
|
-
export
|
|
865
|
+
export type SwitchMasterRequest = {
|
|
866
|
+
cluster?: string
|
|
867
|
+
namespace?: string
|
|
868
|
+
name?: string
|
|
869
|
+
workspaceId?: number
|
|
870
|
+
newMasterPodName?: string
|
|
871
|
+
instanceType?: InstanceType
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
export type SwitchMasterResp = {
|
|
875
|
+
data?: string
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
export class MysqlV3 {
|
|
817
879
|
static GetMysqlList(req: GetMysqlListReq, initReq?: fm.InitReq): Promise<GetMysqlListResp> {
|
|
818
|
-
return fm.fetchReq<GetMysqlListReq, GetMysqlListResp>(`/apis/mcamel.io/mysql/
|
|
880
|
+
return fm.fetchReq<GetMysqlListReq, GetMysqlListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysqls?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
819
881
|
}
|
|
820
882
|
static GetMysqlOperatorVersionList(req: GetMysqlOperatorVersionListReq, initReq?: fm.InitReq): Promise<GetMysqlOperatorVersionListResp> {
|
|
821
|
-
return fm.fetchReq<GetMysqlOperatorVersionListReq, GetMysqlOperatorVersionListResp>(`/apis/mcamel.io/mysql/
|
|
883
|
+
return fm.fetchReq<GetMysqlOperatorVersionListReq, GetMysqlOperatorVersionListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/mysql-operator/versions?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
822
884
|
}
|
|
823
885
|
static GetMysql(req: GetMysqlReq, initReq?: fm.InitReq): Promise<GetMysqlResp> {
|
|
824
|
-
return fm.fetchReq<GetMysqlReq, GetMysqlResp>(`/apis/mcamel.io/mysql/
|
|
886
|
+
return fm.fetchReq<GetMysqlReq, GetMysqlResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
825
887
|
}
|
|
826
888
|
static GetMysqlParam(req: GetMysqlParamReq, initReq?: fm.InitReq): Promise<GetMysqlParamResp> {
|
|
827
|
-
return fm.fetchReq<GetMysqlParamReq, GetMysqlParamResp>(`/apis/mcamel.io/mysql/
|
|
889
|
+
return fm.fetchReq<GetMysqlParamReq, GetMysqlParamResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql-params/${req["cluster"]}?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
828
890
|
}
|
|
829
891
|
static GetMysqlNodeList(req: GetMysqlNodeListReq, initReq?: fm.InitReq): Promise<GetMysqlNodeListResp> {
|
|
830
|
-
return fm.fetchReq<GetMysqlNodeListReq, GetMysqlNodeListResp>(`/apis/mcamel.io/mysql/
|
|
892
|
+
return fm.fetchReq<GetMysqlNodeListReq, GetMysqlNodeListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/nodes?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
831
893
|
}
|
|
832
894
|
static GetMysqlGrafanaAddr(req: GetMysqlGrafanaAddrReq, initReq?: fm.InitReq): Promise<GetMysqlGrafanaAddrResp> {
|
|
833
|
-
return fm.fetchReq<GetMysqlGrafanaAddrReq, GetMysqlGrafanaAddrResp>(`/apis/mcamel.io/mysql/
|
|
895
|
+
return fm.fetchReq<GetMysqlGrafanaAddrReq, GetMysqlGrafanaAddrResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/grafana?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
834
896
|
}
|
|
835
897
|
static CreateMysql(req: CreateMysqlReq, initReq?: fm.InitReq): Promise<CreateMysqlResp> {
|
|
836
|
-
return fm.fetchReq<CreateMysqlReq, CreateMysqlResp>(`/apis/mcamel.io/mysql/
|
|
898
|
+
return fm.fetchReq<CreateMysqlReq, CreateMysqlResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
837
899
|
}
|
|
838
900
|
static GetMysqlConfs(req: GetMysqlConfReq, initReq?: fm.InitReq): Promise<GetMysqlConfResp> {
|
|
839
|
-
return fm.fetchReq<GetMysqlConfReq, GetMysqlConfResp>(`/apis/mcamel.io/mysql/
|
|
901
|
+
return fm.fetchReq<GetMysqlConfReq, GetMysqlConfResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/confs?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
840
902
|
}
|
|
841
903
|
static UpdateMysqlConf(req: UpdateMysqlConfReq, initReq?: fm.InitReq): Promise<UpdateMysqlConfResp> {
|
|
842
|
-
return fm.fetchReq<UpdateMysqlConfReq, UpdateMysqlConfResp>(`/apis/mcamel.io/mysql/
|
|
904
|
+
return fm.fetchReq<UpdateMysqlConfReq, UpdateMysqlConfResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/conf`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
843
905
|
}
|
|
844
906
|
static UpdateMysqlParams(req: CreateMysqlReq, initReq?: fm.InitReq): Promise<UpdateMysqlParamsResp> {
|
|
845
|
-
return fm.fetchReq<CreateMysqlReq, UpdateMysqlParamsResp>(`/apis/mcamel.io/mysql/
|
|
907
|
+
return fm.fetchReq<CreateMysqlReq, UpdateMysqlParamsResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/params`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
846
908
|
}
|
|
847
909
|
static DeleteMysql(req: DeleteMysqlReq, initReq?: fm.InitReq): Promise<DeleteMysqlResp> {
|
|
848
|
-
return fm.fetchReq<DeleteMysqlReq, DeleteMysqlResp>(`/apis/mcamel.io/mysql/
|
|
910
|
+
return fm.fetchReq<DeleteMysqlReq, DeleteMysqlResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["instanceType"]}/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
849
911
|
}
|
|
850
912
|
static DeleteMysqls(req: DeleteMysqlsReq, initReq?: fm.InitReq): Promise<DeleteMysqlsResp> {
|
|
851
|
-
return fm.fetchReq<DeleteMysqlsReq, DeleteMysqlsResp>(`/apis/mcamel.io/mysql/
|
|
913
|
+
return fm.fetchReq<DeleteMysqlsReq, DeleteMysqlsResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysqls`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
852
914
|
}
|
|
853
915
|
static GetMysqlBackupList(req: GetMysqlBackupListReq, initReq?: fm.InitReq): Promise<GetMysqlBackupListResp> {
|
|
854
|
-
return fm.fetchReq<GetMysqlBackupListReq, GetMysqlBackupListResp>(`/apis/mcamel.io/mysql/
|
|
916
|
+
return fm.fetchReq<GetMysqlBackupListReq, GetMysqlBackupListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backups?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
855
917
|
}
|
|
856
918
|
static GetMysqlBackupJobList(req: GetMysqlBackupJobListReq, initReq?: fm.InitReq): Promise<GetMysqlBackupJobListResp> {
|
|
857
|
-
return fm.fetchReq<GetMysqlBackupJobListReq, GetMysqlBackupJobListResp>(`/apis/mcamel.io/mysql/
|
|
919
|
+
return fm.fetchReq<GetMysqlBackupJobListReq, GetMysqlBackupJobListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup/jobs?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
858
920
|
}
|
|
859
921
|
static CreateMysqlBackup(req: CreateMysqlBackupReq, initReq?: fm.InitReq): Promise<CreateMysqlBackupResp> {
|
|
860
|
-
return fm.fetchReq<CreateMysqlBackupReq, CreateMysqlBackupResp>(`/apis/mcamel.io/mysql/
|
|
922
|
+
return fm.fetchReq<CreateMysqlBackupReq, CreateMysqlBackupResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
861
923
|
}
|
|
862
924
|
static DeleteMysqlBackup(req: DeleteMysqlBackupReq, initReq?: fm.InitReq): Promise<DeleteMysqlBackupResp> {
|
|
863
|
-
return fm.fetchReq<DeleteMysqlBackupReq, DeleteMysqlBackupResp>(`/apis/mcamel.io/mysql/
|
|
925
|
+
return fm.fetchReq<DeleteMysqlBackupReq, DeleteMysqlBackupResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["instanceType"]}/${req["name"]}/backup`, {...initReq, method: "DELETE"})
|
|
864
926
|
}
|
|
865
927
|
static GetMysqlBackupSecret(req: GetMysqlBackupSecretReq, initReq?: fm.InitReq): Promise<GetMysqlBackupSecretResp> {
|
|
866
|
-
return fm.fetchReq<GetMysqlBackupSecretReq, GetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/
|
|
928
|
+
return fm.fetchReq<GetMysqlBackupSecretReq, GetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/secret?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
867
929
|
}
|
|
868
930
|
static GetMysqlBackupProviderList(req: GetMysqlBackupProviderListReq, initReq?: fm.InitReq): Promise<GetMysqlBackupProviderListResp> {
|
|
869
|
-
return fm.fetchReq<GetMysqlBackupProviderListReq, GetMysqlBackupProviderListResp>(`/apis/mcamel.io/mysql/
|
|
931
|
+
return fm.fetchReq<GetMysqlBackupProviderListReq, GetMysqlBackupProviderListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/providers?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
870
932
|
}
|
|
871
933
|
static SetMysqlBackupSecret(req: SetMysqlBackupSecretReq, initReq?: fm.InitReq): Promise<SetMysqlBackupSecretResp> {
|
|
872
|
-
return fm.fetchReq<SetMysqlBackupSecretReq, SetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/
|
|
934
|
+
return fm.fetchReq<SetMysqlBackupSecretReq, SetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/secret`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
873
935
|
}
|
|
874
936
|
static CreateMysqlRecover(req: CreateMysqlRecoverReq, initReq?: fm.InitReq): Promise<CreateMysqlRecoverResp> {
|
|
875
|
-
return fm.fetchReq<CreateMysqlRecoverReq, CreateMysqlRecoverResp>(`/apis/mcamel.io/mysql/
|
|
937
|
+
return fm.fetchReq<CreateMysqlRecoverReq, CreateMysqlRecoverResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/recover`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
876
938
|
}
|
|
877
939
|
static UpdateMysqlBackupConfig(req: UpdateMysqlBackupConfigReq, initReq?: fm.InitReq): Promise<UpdateMysqlBackupConfigResp> {
|
|
878
|
-
return fm.fetchReq<UpdateMysqlBackupConfigReq, UpdateMysqlBackupConfigResp>(`/apis/mcamel.io/mysql/
|
|
940
|
+
return fm.fetchReq<UpdateMysqlBackupConfigReq, UpdateMysqlBackupConfigResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup/config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
879
941
|
}
|
|
880
942
|
static GetMysqlUsers(req: GetMysqlUsersReq, initReq?: fm.InitReq): Promise<GetMysqlUsersResp> {
|
|
881
|
-
return fm.fetchReq<GetMysqlUsersReq, GetMysqlUsersResp>(`/apis/mcamel.io/mysql/
|
|
943
|
+
return fm.fetchReq<GetMysqlUsersReq, GetMysqlUsersResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/users?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
882
944
|
}
|
|
883
945
|
static GetMinioList(req: GetMinioListReq, initReq?: fm.InitReq): Promise<GetMinioListResp> {
|
|
884
|
-
return fm.fetchReq<GetMinioListReq, GetMinioListResp>(`/apis/mcamel.io/mysql/
|
|
946
|
+
return fm.fetchReq<GetMinioListReq, GetMinioListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/minios?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
885
947
|
}
|
|
886
948
|
static GetTopology(req: GetTopologyRequest, initReq?: fm.InitReq): Promise<GetTopologyResp> {
|
|
887
|
-
return fm.fetchReq<GetTopologyRequest, GetTopologyResp>(`/apis/mcamel.io/mysql/
|
|
949
|
+
return fm.fetchReq<GetTopologyRequest, GetTopologyResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/topology?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name", "instanceType"])}`, {...initReq, method: "GET"})
|
|
888
950
|
}
|
|
889
951
|
static GetSlowlogList(req: GetSlowlogListReq, initReq?: fm.InitReq): Promise<GetSlowlogListResp> {
|
|
890
|
-
return fm.fetchReq<GetSlowlogListReq, GetSlowlogListResp>(`/apis/mcamel.io/mysql/
|
|
952
|
+
return fm.fetchReq<GetSlowlogListReq, GetSlowlogListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["podName"]}/${req["instanceType"]}/slowlog?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name", "podName", "instanceType"])}`, {...initReq, method: "GET"})
|
|
891
953
|
}
|
|
892
954
|
static DeleteSlowlog(req: DeleteSlowlogReq, initReq?: fm.InitReq): Promise<DeleteSlowlogResp> {
|
|
893
|
-
return fm.fetchReq<DeleteSlowlogReq, DeleteSlowlogResp>(`/apis/mcamel.io/mysql/
|
|
955
|
+
return fm.fetchReq<DeleteSlowlogReq, DeleteSlowlogResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/slowlog`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
|
|
894
956
|
}
|
|
895
957
|
static GetSlowlogConf(req: GetSlowlogConfReq, initReq?: fm.InitReq): Promise<GetSlowlogConfResp> {
|
|
896
|
-
return fm.fetchReq<GetSlowlogConfReq, GetSlowlogConfResp>(`/apis/mcamel.io/mysql/
|
|
958
|
+
return fm.fetchReq<GetSlowlogConfReq, GetSlowlogConfResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/slowlog/conf?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name", "instanceType"])}`, {...initReq, method: "GET"})
|
|
897
959
|
}
|
|
898
960
|
static UpdateSlowlogStatus(req: UpdateSlowlogStatusReq, initReq?: fm.InitReq): Promise<UpdateSlowlogStatusResp> {
|
|
899
|
-
return fm.fetchReq<UpdateSlowlogStatusReq, UpdateSlowlogStatusResp>(`/apis/mcamel.io/mysql/
|
|
961
|
+
return fm.fetchReq<UpdateSlowlogStatusReq, UpdateSlowlogStatusResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/slowlog/toggle`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
900
962
|
}
|
|
901
963
|
static GetSlowlogPodList(req: GetSlowlogPodListReq, initReq?: fm.InitReq): Promise<GetSlowlogPodListResp> {
|
|
902
|
-
return fm.fetchReq<GetSlowlogPodListReq, GetSlowlogPodListResp>(`/apis/mcamel.io/mysql/
|
|
964
|
+
return fm.fetchReq<GetSlowlogPodListReq, GetSlowlogPodListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/slowlog/pods?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name", "instanceType"])}`, {...initReq, method: "GET"})
|
|
965
|
+
}
|
|
966
|
+
static SwitchMaster(req: SwitchMasterRequest, initReq?: fm.InitReq): Promise<SwitchMasterResp> {
|
|
967
|
+
return fm.fetchReq<SwitchMasterRequest, SwitchMasterResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/switch/master`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
968
|
+
}
|
|
969
|
+
static GetPodsAndRoles(req: GetPodsAndRolesReq, initReq?: fm.InitReq): Promise<GetPodsAndRolesResp> {
|
|
970
|
+
return fm.fetchReq<GetPodsAndRolesReq, GetPodsAndRolesResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/pods_and_roles?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name", "instanceType"])}`, {...initReq, method: "GET"})
|
|
903
971
|
}
|
|
904
972
|
}
|
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/v1alpha3/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/v1alpha3/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/v1alpha3/${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/v1alpha3/${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/v1alpha3/${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/v1alpha3/${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/v1alpha3/${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/v1alpha3/${req["workspaceId"]}/storage-configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
187
187
|
}
|
|
188
188
|
}
|
package/template.pb.ts
CHANGED
|
@@ -165,30 +165,30 @@ export type GetTemplateInstanceTypeListResp = {
|
|
|
165
165
|
|
|
166
166
|
export class Template {
|
|
167
167
|
static GetTemplateConfigList(req: GetTemplateConfigListReq, initReq?: fm.InitReq): Promise<GetTemplateConfigListResp> {
|
|
168
|
-
return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/mysql/
|
|
168
|
+
return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
169
169
|
}
|
|
170
170
|
static GetTemplateInstanceTypeList(req: GetTemplateInstanceTypeListReq, initReq?: fm.InitReq): Promise<GetTemplateInstanceTypeListResp> {
|
|
171
|
-
return fm.fetchReq<GetTemplateInstanceTypeListReq, GetTemplateInstanceTypeListResp>(`/apis/mcamel.io/mysql/
|
|
171
|
+
return fm.fetchReq<GetTemplateInstanceTypeListReq, GetTemplateInstanceTypeListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_instance_type?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
172
172
|
}
|
|
173
173
|
static GetTemplateConfig(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigResp> {
|
|
174
|
-
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
174
|
+
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
175
175
|
}
|
|
176
176
|
static DeleteTemplateConfig(req: DeleteTemplateReq, initReq?: fm.InitReq): Promise<DeleteTemplateConfigResp> {
|
|
177
|
-
return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
177
|
+
return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config/${req["name"]}/${req["version"]}`, {...initReq, method: "DELETE"})
|
|
178
178
|
}
|
|
179
179
|
static CreateTemplateConfig(req: CreateTemplateConfigReq, initReq?: fm.InitReq): Promise<CreateTemplateConfigResp> {
|
|
180
|
-
return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
180
|
+
return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
181
181
|
}
|
|
182
182
|
static UpdateTemplateConfig(req: UpdateTemplateConfigReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigResp> {
|
|
183
|
-
return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
183
|
+
return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
184
184
|
}
|
|
185
185
|
static GetTemplateConfigString(req: GetTemplateConfigStringReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
|
|
186
|
-
return fm.fetchReq<GetTemplateConfigStringReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/mysql/
|
|
186
|
+
return fm.fetchReq<GetTemplateConfigStringReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
187
187
|
}
|
|
188
188
|
static UpdateTemplateConfigToItem(req: UpdateTemplateConfigToItemReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigToItemResp> {
|
|
189
|
-
return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/mysql/
|
|
189
|
+
return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config/to_template`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
190
190
|
}
|
|
191
191
|
static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
|
|
192
|
-
return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/mysql/
|
|
192
|
+
return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
193
193
|
}
|
|
194
194
|
}
|
package/version.pb.ts
CHANGED
|
@@ -26,7 +26,7 @@ export type Empty = {
|
|
|
26
26
|
|
|
27
27
|
export class Version {
|
|
28
28
|
static Get(req: Empty, initReq?: fm.InitReq): Promise<GetVersionReply> {
|
|
29
|
-
return fm.fetchReq<Empty, GetVersionReply>(`/apis/mcamel.io/mysql/
|
|
29
|
+
return fm.fetchReq<Empty, GetVersionReply>(`/apis/mcamel.io/mysql/v1alpha3/mysql/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
30
30
|
}
|
|
31
31
|
static Healthz(req: Empty, initReq?: fm.InitReq): Promise<HealthzReply> {
|
|
32
32
|
return fm.fetchReq<Empty, HealthzReply>(`/healthz?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|