@daocloud-proto/mcamel-mysql 0.15.0-rc1-2 → 0.17.0-rc1-4
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 +87 -14
- package/common.pb.ts +11 -0
- package/metric.pb.ts +3 -3
- package/mysql.pb.ts +44 -48
- package/package.json +1 -1
- package/storage_config.pb.ts +8 -8
- package/template.pb.ts +27 -8
- package/version.pb.ts +8 -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/v1alpha1/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/v1alpha1/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/v1alpha1/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
77
77
|
}
|
|
78
78
|
}
|
package/cluster.pb.ts
CHANGED
|
@@ -29,6 +29,7 @@ export enum PermissionsType {
|
|
|
29
29
|
CreateTemplate = "CreateTemplate",
|
|
30
30
|
UpdateTemplate = "UpdateTemplate",
|
|
31
31
|
DeleteTemplate = "DeleteTemplate",
|
|
32
|
+
GetUserPassword = "GetUserPassword",
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
export enum EventType {
|
|
@@ -37,6 +38,11 @@ export enum EventType {
|
|
|
37
38
|
Warning = "Warning",
|
|
38
39
|
}
|
|
39
40
|
|
|
41
|
+
export enum InstallFileReqGVR {
|
|
42
|
+
None = "None",
|
|
43
|
+
CustomResourceDefinition = "CustomResourceDefinition",
|
|
44
|
+
}
|
|
45
|
+
|
|
40
46
|
export enum GetAllEventListReqSortDir {
|
|
41
47
|
ASC = "ASC",
|
|
42
48
|
DESC = "DESC",
|
|
@@ -63,6 +69,16 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
|
63
69
|
Install = "Install",
|
|
64
70
|
}
|
|
65
71
|
|
|
72
|
+
export type InstallFileReq = {
|
|
73
|
+
cluster?: string
|
|
74
|
+
path?: string
|
|
75
|
+
gvr?: InstallFileReqGVR
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type InstallFileResp = {
|
|
79
|
+
message?: string
|
|
80
|
+
}
|
|
81
|
+
|
|
66
82
|
export type GetInstallVersionReq = {
|
|
67
83
|
cluster?: string
|
|
68
84
|
}
|
|
@@ -119,6 +135,7 @@ export type GetPermissionsListRespPermissions = {
|
|
|
119
135
|
createTemplate?: boolean
|
|
120
136
|
updateTemplate?: boolean
|
|
121
137
|
deleteTemplate?: boolean
|
|
138
|
+
getUserPassword?: boolean
|
|
122
139
|
}
|
|
123
140
|
|
|
124
141
|
export type GetPermissionsListResp = {
|
|
@@ -199,8 +216,14 @@ export type GetClusterNodeLabelListRespLabel = {
|
|
|
199
216
|
value?: string[]
|
|
200
217
|
}
|
|
201
218
|
|
|
219
|
+
export type GetClusterNodeLabelListRespNode2Label = {
|
|
220
|
+
nodeName?: string
|
|
221
|
+
label?: GetClusterNodeLabelListRespLabel[]
|
|
222
|
+
}
|
|
223
|
+
|
|
202
224
|
export type GetClusterNodeLabelListResp = {
|
|
203
225
|
items?: GetClusterNodeLabelListRespLabel[]
|
|
226
|
+
items1?: GetClusterNodeLabelListRespNode2Label[]
|
|
204
227
|
pagination?: CommonCommon.Pagination
|
|
205
228
|
}
|
|
206
229
|
|
|
@@ -302,11 +325,20 @@ export type GetWorkspaceListResp = {
|
|
|
302
325
|
pagination?: CommonCommon.Pagination
|
|
303
326
|
}
|
|
304
327
|
|
|
328
|
+
export type GetClusterHostnetworkPortsReq = {
|
|
329
|
+
workspaceId?: number
|
|
330
|
+
cluster?: string
|
|
331
|
+
}
|
|
332
|
+
|
|
305
333
|
export type GetClusterListReq = {
|
|
306
334
|
workspaceId?: number
|
|
307
335
|
searchKey?: string
|
|
308
336
|
}
|
|
309
337
|
|
|
338
|
+
export type GetClusterHostnetworkPortsResp = {
|
|
339
|
+
items?: number[]
|
|
340
|
+
}
|
|
341
|
+
|
|
310
342
|
export type GetClusterListResp = {
|
|
311
343
|
items?: string[]
|
|
312
344
|
clusters?: ClusterItem[]
|
|
@@ -333,6 +365,7 @@ export type GetClusterNamespaceListReq = {
|
|
|
333
365
|
|
|
334
366
|
export type GetClusterNamespaceListResp = {
|
|
335
367
|
items?: string[]
|
|
368
|
+
disableItems?: string[]
|
|
336
369
|
pagination?: CommonCommon.Pagination
|
|
337
370
|
}
|
|
338
371
|
|
|
@@ -342,49 +375,89 @@ export type GetInsightAgentStatusReq = {
|
|
|
342
375
|
|
|
343
376
|
export type GetInsightAgentStatusResp = {
|
|
344
377
|
status?: GetInsightAgentStatusRespInsightAgentStatus
|
|
378
|
+
clusterStatus?: CommonCommon.ClusterStatus
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export type GetResourceQuotaReq = {
|
|
382
|
+
cluster?: string
|
|
383
|
+
namespace?: string
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export type GetResourceQuotaRespMetadata = {
|
|
387
|
+
uid?: string
|
|
388
|
+
name?: string
|
|
389
|
+
namespace?: string
|
|
390
|
+
annotations?: {[key: string]: string}
|
|
391
|
+
resourceVersion?: string
|
|
392
|
+
creationTimestamp?: string
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export type GetResourceQuotaRespSpec = {
|
|
396
|
+
hard?: {[key: string]: string}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export type GetResourceQuotaRespStatus = {
|
|
400
|
+
hard?: {[key: string]: string}
|
|
401
|
+
used?: {[key: string]: string}
|
|
402
|
+
available?: {[key: string]: string}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export type GetResourceQuotaResp = {
|
|
406
|
+
metadata?: GetResourceQuotaRespMetadata
|
|
407
|
+
spec?: GetResourceQuotaRespSpec
|
|
408
|
+
status?: GetResourceQuotaRespStatus
|
|
345
409
|
}
|
|
346
410
|
|
|
347
411
|
export class Cluster {
|
|
348
412
|
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
349
|
-
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/mysql/
|
|
413
|
+
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
414
|
+
}
|
|
415
|
+
static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
|
|
416
|
+
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
350
417
|
}
|
|
351
418
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
352
|
-
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mysql/
|
|
419
|
+
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
353
420
|
}
|
|
354
421
|
static GetClusterNodePortList(req: GetClusterNodePortListReq, initReq?: fm.InitReq): Promise<GetClusterNodePortListResp> {
|
|
355
|
-
return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/mysql/
|
|
422
|
+
return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/nodeports?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
356
423
|
}
|
|
357
424
|
static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
|
|
358
|
-
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/mysql/
|
|
425
|
+
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
359
426
|
}
|
|
360
427
|
static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
|
|
361
|
-
return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/mysql/
|
|
428
|
+
return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
362
429
|
}
|
|
363
430
|
static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
|
|
364
|
-
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mysql/
|
|
431
|
+
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mysql/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
365
432
|
}
|
|
366
433
|
static GetInsightAgentStatus(req: GetInsightAgentStatusReq, initReq?: fm.InitReq): Promise<GetInsightAgentStatusResp> {
|
|
367
|
-
return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/mysql/
|
|
434
|
+
return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/insight/status?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
368
435
|
}
|
|
369
436
|
static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
|
|
370
|
-
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/mysql/
|
|
437
|
+
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
371
438
|
}
|
|
372
439
|
static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
|
|
373
|
-
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/mysql/
|
|
440
|
+
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
374
441
|
}
|
|
375
442
|
static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
|
|
376
|
-
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/mysql/
|
|
443
|
+
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
377
444
|
}
|
|
378
445
|
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
379
|
-
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/mysql/
|
|
446
|
+
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
380
447
|
}
|
|
381
448
|
static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
|
|
382
|
-
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/mysql/
|
|
449
|
+
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
383
450
|
}
|
|
384
451
|
static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
|
|
385
|
-
return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/mysql/
|
|
452
|
+
return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
453
|
+
}
|
|
454
|
+
static InstallFile(req: InstallFileReq, initReq?: fm.InitReq): Promise<InstallFileResp> {
|
|
455
|
+
return fm.fetchReq<InstallFileReq, InstallFileResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/install-file`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
386
456
|
}
|
|
387
457
|
static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
|
|
388
|
-
return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/mysql/
|
|
458
|
+
return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
459
|
+
}
|
|
460
|
+
static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
|
|
461
|
+
return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
389
462
|
}
|
|
390
463
|
}
|
package/common.pb.ts
CHANGED
|
@@ -20,6 +20,16 @@ export enum ServiceType {
|
|
|
20
20
|
LoadBalancer = "LoadBalancer",
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
export enum ClusterStatus {
|
|
24
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
25
|
+
Unknown = "Unknown",
|
|
26
|
+
Creating = "Creating",
|
|
27
|
+
Running = "Running",
|
|
28
|
+
Updating = "Updating",
|
|
29
|
+
Deleting = "Deleting",
|
|
30
|
+
Failed = "Failed",
|
|
31
|
+
}
|
|
32
|
+
|
|
23
33
|
export enum PageInfoReqSortDir {
|
|
24
34
|
ASC = "ASC",
|
|
25
35
|
DESC = "DESC",
|
|
@@ -170,6 +180,7 @@ export type CommonItemStatus = {
|
|
|
170
180
|
avgPvUsedInGb?: number
|
|
171
181
|
cpuUtilization?: number
|
|
172
182
|
memoryUtilization?: number
|
|
183
|
+
clusterStatus?: ClusterStatus
|
|
173
184
|
}
|
|
174
185
|
|
|
175
186
|
export type AccessWhitelistInternal = {
|
package/metric.pb.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as CommonCommon from "./common.pb"
|
|
8
8
|
import * as fm from "./fetch.pb"
|
|
9
|
-
import * as
|
|
9
|
+
import * as InsightIoApiInsightV1alpha1Insight from "./insight.pb"
|
|
10
10
|
|
|
11
11
|
export enum GetAlertsListReqSortDir {
|
|
12
12
|
ASC = "ASC",
|
|
@@ -25,12 +25,12 @@ export type GetAlertsListReq = {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export type GetAlertsListResp = {
|
|
28
|
-
items?:
|
|
28
|
+
items?: InsightIoApiInsightV1alpha1Insight.AlertSummary[]
|
|
29
29
|
pagination?: CommonCommon.Pagination
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export class Metric {
|
|
33
33
|
static GetAlertsList(req: GetAlertsListReq, initReq?: fm.InitReq): Promise<GetAlertsListResp> {
|
|
34
|
-
return fm.fetchReq<GetAlertsListReq, GetAlertsListResp>(`/apis/mcamel.io/mysql/
|
|
34
|
+
return fm.fetchReq<GetAlertsListReq, GetAlertsListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/alerts?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
35
35
|
}
|
|
36
36
|
}
|
package/mysql.pb.ts
CHANGED
|
@@ -17,6 +17,23 @@ type OneOf<T> =
|
|
|
17
17
|
: never)
|
|
18
18
|
: never);
|
|
19
19
|
|
|
20
|
+
export enum RoleType {
|
|
21
|
+
Unknown = "Unknown",
|
|
22
|
+
Master = "Master",
|
|
23
|
+
Replica = "Replica",
|
|
24
|
+
PRIMARY = "PRIMARY",
|
|
25
|
+
SECONDARY = "SECONDARY",
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export enum PodStatus {
|
|
29
|
+
PodStatus_UNSPECIFIED = "PodStatus_UNSPECIFIED",
|
|
30
|
+
PodStatus_Unknown = "PodStatus_Unknown",
|
|
31
|
+
PodStatus_Pending = "PodStatus_Pending",
|
|
32
|
+
PodStatus_Running = "PodStatus_Running",
|
|
33
|
+
PodStatus_Succeeded = "PodStatus_Succeeded",
|
|
34
|
+
PodStatus_Failed = "PodStatus_Failed",
|
|
35
|
+
}
|
|
36
|
+
|
|
20
37
|
export enum InstanceType {
|
|
21
38
|
UnKnown = "UnKnown",
|
|
22
39
|
SingleNode = "SingleNode",
|
|
@@ -151,52 +168,39 @@ export type GetTopologyResp = {
|
|
|
151
168
|
name?: string
|
|
152
169
|
instanceType?: InstanceType
|
|
153
170
|
version?: string
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
masterSlave?: MasterSlaveTopology
|
|
159
|
-
mgr?: MgrTopology
|
|
171
|
+
storageClassName?: string
|
|
172
|
+
storageCapacity?: string
|
|
173
|
+
nodes?: Node[]
|
|
174
|
+
edges?: Edge[]
|
|
160
175
|
}
|
|
161
176
|
|
|
162
|
-
export type
|
|
163
|
-
|
|
177
|
+
export type Edge = {
|
|
178
|
+
source?: string
|
|
179
|
+
target?: string
|
|
180
|
+
properties?: Property
|
|
164
181
|
}
|
|
165
182
|
|
|
166
|
-
export type
|
|
167
|
-
master?: Node
|
|
168
|
-
slaves?: Node[]
|
|
183
|
+
export type Property = {
|
|
169
184
|
}
|
|
170
185
|
|
|
171
186
|
export type Node = {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
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
|
|
187
|
+
serverUuid?: string
|
|
188
|
+
upstreamServerUuid?: string
|
|
189
|
+
role?: RoleType
|
|
190
|
+
podName?: string
|
|
191
|
+
ip?: string
|
|
192
|
+
podStatus?: PodStatus
|
|
193
|
+
status?: Status
|
|
194
|
+
cpuLimit?: string
|
|
195
|
+
cpuRequest?: string
|
|
196
|
+
memoryLimit?: string
|
|
197
|
+
memoryRequest?: string
|
|
198
|
+
totalContainer?: number
|
|
199
|
+
totalContainerReady?: number
|
|
200
|
+
gtidPurged?: string
|
|
201
|
+
gtidExecuted?: string
|
|
202
|
+
lagBehindUpstream?: string
|
|
203
|
+
error?: string
|
|
200
204
|
}
|
|
201
205
|
|
|
202
206
|
export type GetMinioListReq = {
|
|
@@ -535,13 +539,6 @@ export type GetMysqlParamRespSelectDataStringValue = {
|
|
|
535
539
|
value?: string
|
|
536
540
|
}
|
|
537
541
|
|
|
538
|
-
export type GetMysqlParamRespSelectDataResourceValue = {
|
|
539
|
-
cpuRequest?: string
|
|
540
|
-
cpuLimit?: string
|
|
541
|
-
memoryRequest?: string
|
|
542
|
-
memoryLimit?: string
|
|
543
|
-
}
|
|
544
|
-
|
|
545
542
|
export type GetMysqlParamRespSelectDataIntValue = {
|
|
546
543
|
value?: number
|
|
547
544
|
}
|
|
@@ -556,7 +553,7 @@ type BaseGetMysqlParamRespSelectData = {
|
|
|
556
553
|
}
|
|
557
554
|
|
|
558
555
|
export type GetMysqlParamRespSelectData = BaseGetMysqlParamRespSelectData
|
|
559
|
-
& OneOf<{ sValue: GetMysqlParamRespSelectDataStringValue;
|
|
556
|
+
& OneOf<{ sValue: GetMysqlParamRespSelectDataStringValue; iValue: GetMysqlParamRespSelectDataIntValue; scValue: GetMysqlParamRespSelectDataStorageClassValue }>
|
|
560
557
|
|
|
561
558
|
export type GetMysqlParamRespSelect = {
|
|
562
559
|
selectType?: GetMysqlParamRespSelectSelectType
|
|
@@ -566,7 +563,6 @@ export type GetMysqlParamRespSelect = {
|
|
|
566
563
|
export type GetMysqlParamResp = {
|
|
567
564
|
version?: GetMysqlParamRespSelect
|
|
568
565
|
replicas?: GetMysqlParamRespSelect
|
|
569
|
-
resource?: GetMysqlParamRespSelect
|
|
570
566
|
storage?: GetMysqlParamRespSelect
|
|
571
567
|
cnf?: GetMysqlParamRespSelect
|
|
572
568
|
eightXcnf?: GetMysqlParamRespSelect
|
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/v1alpha1/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/v1alpha1/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/v1alpha1/${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/v1alpha1/${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/v1alpha1/${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/v1alpha1/${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/v1alpha1/${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/v1alpha1/${req["workspaceId"]}/storage-configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
187
187
|
}
|
|
188
188
|
}
|
package/template.pb.ts
CHANGED
|
@@ -14,6 +14,9 @@ export enum TemplateInstanceType {
|
|
|
14
14
|
RedisCluster = "RedisCluster",
|
|
15
15
|
KafkaConfig = "KafkaConfig",
|
|
16
16
|
MysqlMgrConfig = "MysqlMgrConfig",
|
|
17
|
+
MongodbConfig = "MongodbConfig",
|
|
18
|
+
PostgresqlConfig = "PostgresqlConfig",
|
|
19
|
+
RabbitmqConfig = "RabbitmqConfig",
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
export enum GetTemplateConfigReqSortDir {
|
|
@@ -32,6 +35,18 @@ export enum TemplateConfigItemValueType {
|
|
|
32
35
|
MultiString = "MultiString",
|
|
33
36
|
}
|
|
34
37
|
|
|
38
|
+
export type UpdateTemplateConfigToItemReq = {
|
|
39
|
+
workspaceId?: number
|
|
40
|
+
conf?: string
|
|
41
|
+
version?: string
|
|
42
|
+
templateInstanceType?: TemplateInstanceType
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type UpdateTemplateConfigToItemResp = {
|
|
46
|
+
items?: TemplateConfigItem[]
|
|
47
|
+
pagination?: CommonCommon.Pagination
|
|
48
|
+
}
|
|
49
|
+
|
|
35
50
|
export type GetTemplateConfigVersionsReq = {
|
|
36
51
|
workspaceId?: number
|
|
37
52
|
}
|
|
@@ -89,6 +104,7 @@ export type CreateTemplateConfigReq = {
|
|
|
89
104
|
targetTemplateType?: string
|
|
90
105
|
targetConf?: string
|
|
91
106
|
fromTemplateName?: string
|
|
107
|
+
targetTemplateInstanceType?: TemplateInstanceType
|
|
92
108
|
}
|
|
93
109
|
|
|
94
110
|
export type UpdateTemplateConfigReq = {
|
|
@@ -144,27 +160,30 @@ export type GetTemplateInstanceTypeListResp = {
|
|
|
144
160
|
|
|
145
161
|
export class Template {
|
|
146
162
|
static GetTemplateConfigList(req: GetTemplateConfigListReq, initReq?: fm.InitReq): Promise<GetTemplateConfigListResp> {
|
|
147
|
-
return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/mysql/
|
|
163
|
+
return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/template_config?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
148
164
|
}
|
|
149
165
|
static GetTemplateInstanceTypeList(req: GetTemplateInstanceTypeListReq, initReq?: fm.InitReq): Promise<GetTemplateInstanceTypeListResp> {
|
|
150
|
-
return fm.fetchReq<GetTemplateInstanceTypeListReq, GetTemplateInstanceTypeListResp>(`/apis/mcamel.io/mysql/
|
|
166
|
+
return fm.fetchReq<GetTemplateInstanceTypeListReq, GetTemplateInstanceTypeListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/template_instance_type?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
151
167
|
}
|
|
152
168
|
static GetTemplateConfig(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigResp> {
|
|
153
|
-
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
169
|
+
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
154
170
|
}
|
|
155
171
|
static DeleteTemplateConfig(req: DeleteTemplateReq, initReq?: fm.InitReq): Promise<DeleteTemplateConfigResp> {
|
|
156
|
-
return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
172
|
+
return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/${req["version"]}`, {...initReq, method: "DELETE"})
|
|
157
173
|
}
|
|
158
174
|
static CreateTemplateConfig(req: CreateTemplateConfigReq, initReq?: fm.InitReq): Promise<CreateTemplateConfigResp> {
|
|
159
|
-
return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
175
|
+
return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/template_config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
160
176
|
}
|
|
161
177
|
static UpdateTemplateConfig(req: UpdateTemplateConfigReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigResp> {
|
|
162
|
-
return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
178
|
+
return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
163
179
|
}
|
|
164
180
|
static GetTemplateConfigString(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
|
|
165
|
-
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/mysql/
|
|
181
|
+
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
182
|
+
}
|
|
183
|
+
static UpdateTemplateConfigToItem(req: UpdateTemplateConfigToItemReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigToItemResp> {
|
|
184
|
+
return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/template_config/to_template`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
166
185
|
}
|
|
167
186
|
static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
|
|
168
|
-
return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/mysql/
|
|
187
|
+
return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
169
188
|
}
|
|
170
189
|
}
|
package/version.pb.ts
CHANGED
|
@@ -17,11 +17,18 @@ export type GetVersionReply = {
|
|
|
17
17
|
buildTime?: string
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
export type HealthzReply = {
|
|
21
|
+
message?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
20
24
|
export type Empty = {
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
export class Version {
|
|
24
28
|
static Get(req: Empty, initReq?: fm.InitReq): Promise<GetVersionReply> {
|
|
25
|
-
return fm.fetchReq<Empty, GetVersionReply>(`/apis/mcamel.io/mysql/
|
|
29
|
+
return fm.fetchReq<Empty, GetVersionReply>(`/apis/mcamel.io/mysql/v1alpha1/mysql/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
30
|
+
}
|
|
31
|
+
static Healthz(req: Empty, initReq?: fm.InitReq): Promise<HealthzReply> {
|
|
32
|
+
return fm.fetchReq<Empty, HealthzReply>(`/healthz?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
26
33
|
}
|
|
27
34
|
}
|