@daocloud-proto/mcamel-mysql 0.20.0-rc1-3 → 0.21.0-rc1-5
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 +75 -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
|
@@ -54,6 +54,7 @@ export enum Status {
|
|
|
54
54
|
MgrUnmanaged = "MgrUnmanaged",
|
|
55
55
|
MgrUnreachable = "MgrUnreachable",
|
|
56
56
|
MgrUnknown = "MgrUnknown",
|
|
57
|
+
StatusUnknown = "StatusUnknown",
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
export enum GetSlowlogPodListRespItemNodeType {
|
|
@@ -173,6 +174,7 @@ export type GetSlowlogPodListReq = {
|
|
|
173
174
|
cluster?: string
|
|
174
175
|
namespace?: string
|
|
175
176
|
name?: string
|
|
177
|
+
workspaceId?: number
|
|
176
178
|
instanceType?: InstanceType
|
|
177
179
|
}
|
|
178
180
|
|
|
@@ -192,6 +194,7 @@ export type UpdateSlowlogStatusReq = {
|
|
|
192
194
|
name?: string
|
|
193
195
|
instanceType?: InstanceType
|
|
194
196
|
enable?: boolean
|
|
197
|
+
workspaceId?: number
|
|
195
198
|
}
|
|
196
199
|
|
|
197
200
|
export type UpdateSlowlogStatusResp = {
|
|
@@ -203,6 +206,7 @@ export type GetSlowlogConfReq = {
|
|
|
203
206
|
namespace?: string
|
|
204
207
|
name?: string
|
|
205
208
|
instanceType?: InstanceType
|
|
209
|
+
workspaceId?: number
|
|
206
210
|
}
|
|
207
211
|
|
|
208
212
|
export type GetSlowlogConfResp = {
|
|
@@ -216,6 +220,7 @@ export type DeleteSlowlogReq = {
|
|
|
216
220
|
name?: string
|
|
217
221
|
podName?: string[]
|
|
218
222
|
instanceType?: InstanceType
|
|
223
|
+
workspaceId?: number
|
|
219
224
|
}
|
|
220
225
|
|
|
221
226
|
export type DeleteSlowlogResp = {
|
|
@@ -235,6 +240,7 @@ export type GetSlowlogListReq = {
|
|
|
235
240
|
instanceType?: InstanceType
|
|
236
241
|
fromDate?: string
|
|
237
242
|
toDate?: string
|
|
243
|
+
workspaceId?: number
|
|
238
244
|
}
|
|
239
245
|
|
|
240
246
|
export type GetSlowlogListRespItem = {
|
|
@@ -258,6 +264,7 @@ export type GetTopologyRequest = {
|
|
|
258
264
|
namespace?: string
|
|
259
265
|
name?: string
|
|
260
266
|
instanceType?: InstanceType
|
|
267
|
+
workspaceId?: number
|
|
261
268
|
}
|
|
262
269
|
|
|
263
270
|
export type GetTopologyResp = {
|
|
@@ -337,6 +344,7 @@ export type GetMysqlUsersReq = {
|
|
|
337
344
|
namespace?: string
|
|
338
345
|
name?: string
|
|
339
346
|
instanceType?: InstanceType
|
|
347
|
+
workspaceId?: number
|
|
340
348
|
}
|
|
341
349
|
|
|
342
350
|
export type GetMysqlUsersRespUserItem = {
|
|
@@ -394,6 +402,7 @@ export type GetMysqlBackupListReq = {
|
|
|
394
402
|
namespace?: string
|
|
395
403
|
name?: string
|
|
396
404
|
instanceType?: InstanceType
|
|
405
|
+
workspaceId?: number
|
|
397
406
|
}
|
|
398
407
|
|
|
399
408
|
export type GetMysqlBackupJobListReq = {
|
|
@@ -406,6 +415,7 @@ export type GetMysqlBackupJobListReq = {
|
|
|
406
415
|
namespace?: string
|
|
407
416
|
name?: string
|
|
408
417
|
backupName?: string
|
|
418
|
+
workspaceId?: number
|
|
409
419
|
}
|
|
410
420
|
|
|
411
421
|
export type GetMysqlBackupSecretReq = {
|
|
@@ -520,6 +530,7 @@ export type DeleteMysqlBackupReq = {
|
|
|
520
530
|
namespace?: string
|
|
521
531
|
name?: string
|
|
522
532
|
instanceType?: InstanceType
|
|
533
|
+
workspaceId?: number
|
|
523
534
|
}
|
|
524
535
|
|
|
525
536
|
export type DeleteMysqlBackupResp = {
|
|
@@ -548,10 +559,12 @@ export type GetMysqlConfReq = {
|
|
|
548
559
|
namespace?: string
|
|
549
560
|
name?: string
|
|
550
561
|
instanceType?: InstanceType
|
|
562
|
+
workspaceId?: number
|
|
551
563
|
}
|
|
552
564
|
|
|
553
565
|
export type GetMysqlParamReq = {
|
|
554
566
|
cluster?: string
|
|
567
|
+
workspaceId?: number
|
|
555
568
|
}
|
|
556
569
|
|
|
557
570
|
export type CreateMysqlReqPorts = {
|
|
@@ -570,7 +583,6 @@ export type CreateMysqlReq = {
|
|
|
570
583
|
describe?: string
|
|
571
584
|
version?: string
|
|
572
585
|
replicas?: number
|
|
573
|
-
instanceType?: InstanceType
|
|
574
586
|
storageClassName?: string
|
|
575
587
|
storageCapacity?: string
|
|
576
588
|
rootPassword?: string
|
|
@@ -614,6 +626,16 @@ export type CreateMysqlReq = {
|
|
|
614
626
|
phpAdminLbTyp?: CommonCommon.LBTyp
|
|
615
627
|
phpAdminLbPoolName?: string
|
|
616
628
|
phpAdminLbAddress?: string
|
|
629
|
+
instanceType?: InstanceType
|
|
630
|
+
mgrRouterConfig?: MgrRouterConfig
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
export type MgrRouterConfig = {
|
|
634
|
+
replicas?: number
|
|
635
|
+
cpuRequest?: string
|
|
636
|
+
cpuLimit?: string
|
|
637
|
+
memoryRequest?: string
|
|
638
|
+
memoryLimit?: string
|
|
617
639
|
}
|
|
618
640
|
|
|
619
641
|
export type UpdateMysqlConfReq = {
|
|
@@ -623,6 +645,7 @@ export type UpdateMysqlConfReq = {
|
|
|
623
645
|
confItems?: TemplateTemplate.TemplateConfigItem[]
|
|
624
646
|
reloadFromConfTemplateName?: string
|
|
625
647
|
instanceType?: InstanceType
|
|
648
|
+
workspaceId?: number
|
|
626
649
|
}
|
|
627
650
|
|
|
628
651
|
export type UpdateMysqlParamsResp = {
|
|
@@ -696,10 +719,12 @@ export type DeleteMysqlReq = {
|
|
|
696
719
|
namespace?: string
|
|
697
720
|
name?: string
|
|
698
721
|
instanceType?: InstanceType
|
|
722
|
+
workspaceId?: number
|
|
699
723
|
}
|
|
700
724
|
|
|
701
725
|
export type DeleteMysqlsReq = {
|
|
702
726
|
data?: DeleteMysqlReq[]
|
|
727
|
+
workspaceId?: number
|
|
703
728
|
}
|
|
704
729
|
|
|
705
730
|
export type DeleteMysqlResp = {
|
|
@@ -720,6 +745,7 @@ export type GetMysqlNodeListReq = {
|
|
|
720
745
|
sortBy?: string
|
|
721
746
|
searchKey?: string
|
|
722
747
|
instanceType?: InstanceType
|
|
748
|
+
workspaceId?: number
|
|
723
749
|
}
|
|
724
750
|
|
|
725
751
|
export type GetMysqlNodeListRespData = {
|
|
@@ -749,6 +775,7 @@ export type GetMysqlGrafanaAddrReq = {
|
|
|
749
775
|
from?: string
|
|
750
776
|
to?: string
|
|
751
777
|
instanceType?: InstanceType
|
|
778
|
+
workspaceId?: number
|
|
752
779
|
}
|
|
753
780
|
|
|
754
781
|
export type GetMysqlGrafanaAddrResp = {
|
|
@@ -760,6 +787,7 @@ export type GetMysqlReq = {
|
|
|
760
787
|
namespace?: string
|
|
761
788
|
name?: string
|
|
762
789
|
instanceType?: InstanceType
|
|
790
|
+
workspaceId?: number
|
|
763
791
|
}
|
|
764
792
|
|
|
765
793
|
export type GetMysqlResp = {
|
|
@@ -813,92 +841,108 @@ export type MysqlClusterItem = {
|
|
|
813
841
|
status?: MysqlClusterItemStatus
|
|
814
842
|
}
|
|
815
843
|
|
|
816
|
-
export
|
|
844
|
+
export type SwitchMasterRequest = {
|
|
845
|
+
cluster?: string
|
|
846
|
+
namespace?: string
|
|
847
|
+
name?: string
|
|
848
|
+
workspaceId?: number
|
|
849
|
+
newMasterPodName?: string
|
|
850
|
+
instanceType?: InstanceType
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
export type SwitchMasterResp = {
|
|
854
|
+
data?: string
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
export class MysqlV3 {
|
|
817
858
|
static GetMysqlList(req: GetMysqlListReq, initReq?: fm.InitReq): Promise<GetMysqlListResp> {
|
|
818
|
-
return fm.fetchReq<GetMysqlListReq, GetMysqlListResp>(`/apis/mcamel.io/mysql/
|
|
859
|
+
return fm.fetchReq<GetMysqlListReq, GetMysqlListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysqls?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
819
860
|
}
|
|
820
861
|
static GetMysqlOperatorVersionList(req: GetMysqlOperatorVersionListReq, initReq?: fm.InitReq): Promise<GetMysqlOperatorVersionListResp> {
|
|
821
|
-
return fm.fetchReq<GetMysqlOperatorVersionListReq, GetMysqlOperatorVersionListResp>(`/apis/mcamel.io/mysql/
|
|
862
|
+
return fm.fetchReq<GetMysqlOperatorVersionListReq, GetMysqlOperatorVersionListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/mysql-operator/versions?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
822
863
|
}
|
|
823
864
|
static GetMysql(req: GetMysqlReq, initReq?: fm.InitReq): Promise<GetMysqlResp> {
|
|
824
|
-
return fm.fetchReq<GetMysqlReq, GetMysqlResp>(`/apis/mcamel.io/mysql/
|
|
865
|
+
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
866
|
}
|
|
826
867
|
static GetMysqlParam(req: GetMysqlParamReq, initReq?: fm.InitReq): Promise<GetMysqlParamResp> {
|
|
827
|
-
return fm.fetchReq<GetMysqlParamReq, GetMysqlParamResp>(`/apis/mcamel.io/mysql/
|
|
868
|
+
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
869
|
}
|
|
829
870
|
static GetMysqlNodeList(req: GetMysqlNodeListReq, initReq?: fm.InitReq): Promise<GetMysqlNodeListResp> {
|
|
830
|
-
return fm.fetchReq<GetMysqlNodeListReq, GetMysqlNodeListResp>(`/apis/mcamel.io/mysql/
|
|
871
|
+
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
872
|
}
|
|
832
873
|
static GetMysqlGrafanaAddr(req: GetMysqlGrafanaAddrReq, initReq?: fm.InitReq): Promise<GetMysqlGrafanaAddrResp> {
|
|
833
|
-
return fm.fetchReq<GetMysqlGrafanaAddrReq, GetMysqlGrafanaAddrResp>(`/apis/mcamel.io/mysql/
|
|
874
|
+
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
875
|
}
|
|
835
876
|
static CreateMysql(req: CreateMysqlReq, initReq?: fm.InitReq): Promise<CreateMysqlResp> {
|
|
836
|
-
return fm.fetchReq<CreateMysqlReq, CreateMysqlResp>(`/apis/mcamel.io/mysql/
|
|
877
|
+
return fm.fetchReq<CreateMysqlReq, CreateMysqlResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
837
878
|
}
|
|
838
879
|
static GetMysqlConfs(req: GetMysqlConfReq, initReq?: fm.InitReq): Promise<GetMysqlConfResp> {
|
|
839
|
-
return fm.fetchReq<GetMysqlConfReq, GetMysqlConfResp>(`/apis/mcamel.io/mysql/
|
|
880
|
+
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
881
|
}
|
|
841
882
|
static UpdateMysqlConf(req: UpdateMysqlConfReq, initReq?: fm.InitReq): Promise<UpdateMysqlConfResp> {
|
|
842
|
-
return fm.fetchReq<UpdateMysqlConfReq, UpdateMysqlConfResp>(`/apis/mcamel.io/mysql/
|
|
883
|
+
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
884
|
}
|
|
844
885
|
static UpdateMysqlParams(req: CreateMysqlReq, initReq?: fm.InitReq): Promise<UpdateMysqlParamsResp> {
|
|
845
|
-
return fm.fetchReq<CreateMysqlReq, UpdateMysqlParamsResp>(`/apis/mcamel.io/mysql/
|
|
886
|
+
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
887
|
}
|
|
847
888
|
static DeleteMysql(req: DeleteMysqlReq, initReq?: fm.InitReq): Promise<DeleteMysqlResp> {
|
|
848
|
-
return fm.fetchReq<DeleteMysqlReq, DeleteMysqlResp>(`/apis/mcamel.io/mysql/
|
|
889
|
+
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
890
|
}
|
|
850
891
|
static DeleteMysqls(req: DeleteMysqlsReq, initReq?: fm.InitReq): Promise<DeleteMysqlsResp> {
|
|
851
|
-
return fm.fetchReq<DeleteMysqlsReq, DeleteMysqlsResp>(`/apis/mcamel.io/mysql/
|
|
892
|
+
return fm.fetchReq<DeleteMysqlsReq, DeleteMysqlsResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysqls`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
852
893
|
}
|
|
853
894
|
static GetMysqlBackupList(req: GetMysqlBackupListReq, initReq?: fm.InitReq): Promise<GetMysqlBackupListResp> {
|
|
854
|
-
return fm.fetchReq<GetMysqlBackupListReq, GetMysqlBackupListResp>(`/apis/mcamel.io/mysql/
|
|
895
|
+
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
896
|
}
|
|
856
897
|
static GetMysqlBackupJobList(req: GetMysqlBackupJobListReq, initReq?: fm.InitReq): Promise<GetMysqlBackupJobListResp> {
|
|
857
|
-
return fm.fetchReq<GetMysqlBackupJobListReq, GetMysqlBackupJobListResp>(`/apis/mcamel.io/mysql/
|
|
898
|
+
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
899
|
}
|
|
859
900
|
static CreateMysqlBackup(req: CreateMysqlBackupReq, initReq?: fm.InitReq): Promise<CreateMysqlBackupResp> {
|
|
860
|
-
return fm.fetchReq<CreateMysqlBackupReq, CreateMysqlBackupResp>(`/apis/mcamel.io/mysql/
|
|
901
|
+
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
902
|
}
|
|
862
903
|
static DeleteMysqlBackup(req: DeleteMysqlBackupReq, initReq?: fm.InitReq): Promise<DeleteMysqlBackupResp> {
|
|
863
|
-
return fm.fetchReq<DeleteMysqlBackupReq, DeleteMysqlBackupResp>(`/apis/mcamel.io/mysql/
|
|
904
|
+
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
905
|
}
|
|
865
906
|
static GetMysqlBackupSecret(req: GetMysqlBackupSecretReq, initReq?: fm.InitReq): Promise<GetMysqlBackupSecretResp> {
|
|
866
|
-
return fm.fetchReq<GetMysqlBackupSecretReq, GetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/
|
|
907
|
+
return fm.fetchReq<GetMysqlBackupSecretReq, GetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/secret?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
867
908
|
}
|
|
868
909
|
static GetMysqlBackupProviderList(req: GetMysqlBackupProviderListReq, initReq?: fm.InitReq): Promise<GetMysqlBackupProviderListResp> {
|
|
869
|
-
return fm.fetchReq<GetMysqlBackupProviderListReq, GetMysqlBackupProviderListResp>(`/apis/mcamel.io/mysql/
|
|
910
|
+
return fm.fetchReq<GetMysqlBackupProviderListReq, GetMysqlBackupProviderListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/providers?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
870
911
|
}
|
|
871
912
|
static SetMysqlBackupSecret(req: SetMysqlBackupSecretReq, initReq?: fm.InitReq): Promise<SetMysqlBackupSecretResp> {
|
|
872
|
-
return fm.fetchReq<SetMysqlBackupSecretReq, SetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/
|
|
913
|
+
return fm.fetchReq<SetMysqlBackupSecretReq, SetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/mysql/secret`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
873
914
|
}
|
|
874
915
|
static CreateMysqlRecover(req: CreateMysqlRecoverReq, initReq?: fm.InitReq): Promise<CreateMysqlRecoverResp> {
|
|
875
|
-
return fm.fetchReq<CreateMysqlRecoverReq, CreateMysqlRecoverResp>(`/apis/mcamel.io/mysql/
|
|
916
|
+
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
917
|
}
|
|
877
918
|
static UpdateMysqlBackupConfig(req: UpdateMysqlBackupConfigReq, initReq?: fm.InitReq): Promise<UpdateMysqlBackupConfigResp> {
|
|
878
|
-
return fm.fetchReq<UpdateMysqlBackupConfigReq, UpdateMysqlBackupConfigResp>(`/apis/mcamel.io/mysql/
|
|
919
|
+
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
920
|
}
|
|
880
921
|
static GetMysqlUsers(req: GetMysqlUsersReq, initReq?: fm.InitReq): Promise<GetMysqlUsersResp> {
|
|
881
|
-
return fm.fetchReq<GetMysqlUsersReq, GetMysqlUsersResp>(`/apis/mcamel.io/mysql/
|
|
922
|
+
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
923
|
}
|
|
883
924
|
static GetMinioList(req: GetMinioListReq, initReq?: fm.InitReq): Promise<GetMinioListResp> {
|
|
884
|
-
return fm.fetchReq<GetMinioListReq, GetMinioListResp>(`/apis/mcamel.io/mysql/
|
|
925
|
+
return fm.fetchReq<GetMinioListReq, GetMinioListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/minios?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
885
926
|
}
|
|
886
927
|
static GetTopology(req: GetTopologyRequest, initReq?: fm.InitReq): Promise<GetTopologyResp> {
|
|
887
|
-
return fm.fetchReq<GetTopologyRequest, GetTopologyResp>(`/apis/mcamel.io/mysql/
|
|
928
|
+
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
929
|
}
|
|
889
930
|
static GetSlowlogList(req: GetSlowlogListReq, initReq?: fm.InitReq): Promise<GetSlowlogListResp> {
|
|
890
|
-
return fm.fetchReq<GetSlowlogListReq, GetSlowlogListResp>(`/apis/mcamel.io/mysql/
|
|
931
|
+
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
932
|
}
|
|
892
933
|
static DeleteSlowlog(req: DeleteSlowlogReq, initReq?: fm.InitReq): Promise<DeleteSlowlogResp> {
|
|
893
|
-
return fm.fetchReq<DeleteSlowlogReq, DeleteSlowlogResp>(`/apis/mcamel.io/mysql/
|
|
934
|
+
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
935
|
}
|
|
895
936
|
static GetSlowlogConf(req: GetSlowlogConfReq, initReq?: fm.InitReq): Promise<GetSlowlogConfResp> {
|
|
896
|
-
return fm.fetchReq<GetSlowlogConfReq, GetSlowlogConfResp>(`/apis/mcamel.io/mysql/
|
|
937
|
+
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
938
|
}
|
|
898
939
|
static UpdateSlowlogStatus(req: UpdateSlowlogStatusReq, initReq?: fm.InitReq): Promise<UpdateSlowlogStatusResp> {
|
|
899
|
-
return fm.fetchReq<UpdateSlowlogStatusReq, UpdateSlowlogStatusResp>(`/apis/mcamel.io/mysql/
|
|
940
|
+
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
941
|
}
|
|
901
942
|
static GetSlowlogPodList(req: GetSlowlogPodListReq, initReq?: fm.InitReq): Promise<GetSlowlogPodListResp> {
|
|
902
|
-
return fm.fetchReq<GetSlowlogPodListReq, GetSlowlogPodListResp>(`/apis/mcamel.io/mysql/
|
|
943
|
+
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"})
|
|
944
|
+
}
|
|
945
|
+
static SwitchMaster(req: SwitchMasterRequest, initReq?: fm.InitReq): Promise<SwitchMasterResp> {
|
|
946
|
+
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)})
|
|
903
947
|
}
|
|
904
948
|
}
|
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"})
|