@daocloud-proto/mcamel-mysql 0.17.0-rc1-4 → 0.20.0-rc1-3
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 +21 -17
- package/common.pb.ts +9 -0
- package/metric.pb.ts +1 -1
- package/mysql.pb.ts +113 -0
- package/package.json +1 -1
- package/storage_config.pb.ts +8 -8
- package/template.pb.ts +16 -11
- package/version.pb.ts +1 -1
package/cloudshell.pb.ts
CHANGED
|
@@ -67,12 +67,12 @@ export type GetorDeleteCloudShellRequest = {
|
|
|
67
67
|
|
|
68
68
|
export class CloudShellService {
|
|
69
69
|
static CreateCloudShell(req: CreateCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
|
|
70
|
-
return fm.fetchReq<CreateCloudShellRequest, CloudShell>(`/apis/mcamel.io/mysql/
|
|
70
|
+
return fm.fetchReq<CreateCloudShellRequest, CloudShell>(`/apis/mcamel.io/mysql/v1alpha2/cloudshells`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
71
71
|
}
|
|
72
72
|
static GetCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
|
|
73
|
-
return fm.fetchReq<GetorDeleteCloudShellRequest, CloudShell>(`/apis/mcamel.io/mysql/
|
|
73
|
+
return fm.fetchReq<GetorDeleteCloudShellRequest, CloudShell>(`/apis/mcamel.io/mysql/v1alpha2/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
74
74
|
}
|
|
75
75
|
static DeleteCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
76
|
-
return fm.fetchReq<GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/mcamel.io/mysql/
|
|
76
|
+
return fm.fetchReq<GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/mcamel.io/mysql/v1alpha2/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
77
77
|
}
|
|
78
78
|
}
|
package/cluster.pb.ts
CHANGED
|
@@ -30,6 +30,8 @@ export enum PermissionsType {
|
|
|
30
30
|
UpdateTemplate = "UpdateTemplate",
|
|
31
31
|
DeleteTemplate = "DeleteTemplate",
|
|
32
32
|
GetUserPassword = "GetUserPassword",
|
|
33
|
+
ExportTemplate = "ExportTemplate",
|
|
34
|
+
ImportTemplate = "ImportTemplate",
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
export enum EventType {
|
|
@@ -136,6 +138,8 @@ export type GetPermissionsListRespPermissions = {
|
|
|
136
138
|
updateTemplate?: boolean
|
|
137
139
|
deleteTemplate?: boolean
|
|
138
140
|
getUserPassword?: boolean
|
|
141
|
+
exportTemplate?: boolean
|
|
142
|
+
importTemplate?: boolean
|
|
139
143
|
}
|
|
140
144
|
|
|
141
145
|
export type GetPermissionsListResp = {
|
|
@@ -410,54 +414,54 @@ export type GetResourceQuotaResp = {
|
|
|
410
414
|
|
|
411
415
|
export class Cluster {
|
|
412
416
|
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
413
|
-
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/mysql/
|
|
417
|
+
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
414
418
|
}
|
|
415
419
|
static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
|
|
416
|
-
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/mysql/
|
|
420
|
+
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
417
421
|
}
|
|
418
422
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
419
|
-
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mysql/
|
|
423
|
+
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
420
424
|
}
|
|
421
425
|
static GetClusterNodePortList(req: GetClusterNodePortListReq, initReq?: fm.InitReq): Promise<GetClusterNodePortListResp> {
|
|
422
|
-
return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/mysql/
|
|
426
|
+
return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/nodeports?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
423
427
|
}
|
|
424
428
|
static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
|
|
425
|
-
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/mysql/
|
|
429
|
+
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
426
430
|
}
|
|
427
431
|
static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
|
|
428
|
-
return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/mysql/
|
|
432
|
+
return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
429
433
|
}
|
|
430
434
|
static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
|
|
431
|
-
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mysql/
|
|
435
|
+
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mysql/v1alpha2/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
432
436
|
}
|
|
433
437
|
static GetInsightAgentStatus(req: GetInsightAgentStatusReq, initReq?: fm.InitReq): Promise<GetInsightAgentStatusResp> {
|
|
434
|
-
return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/mysql/
|
|
438
|
+
return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/insight/status?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
435
439
|
}
|
|
436
440
|
static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
|
|
437
|
-
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/mysql/
|
|
441
|
+
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
438
442
|
}
|
|
439
443
|
static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
|
|
440
|
-
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/mysql/
|
|
444
|
+
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
441
445
|
}
|
|
442
446
|
static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
|
|
443
|
-
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/mysql/
|
|
447
|
+
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
444
448
|
}
|
|
445
449
|
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
446
|
-
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/mysql/
|
|
450
|
+
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
447
451
|
}
|
|
448
452
|
static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
|
|
449
|
-
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/mysql/
|
|
453
|
+
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
450
454
|
}
|
|
451
455
|
static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
|
|
452
|
-
return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/mysql/
|
|
456
|
+
return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
453
457
|
}
|
|
454
458
|
static InstallFile(req: InstallFileReq, initReq?: fm.InitReq): Promise<InstallFileResp> {
|
|
455
|
-
return fm.fetchReq<InstallFileReq, InstallFileResp>(`/apis/mcamel.io/mysql/
|
|
459
|
+
return fm.fetchReq<InstallFileReq, InstallFileResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/install-file`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
456
460
|
}
|
|
457
461
|
static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
|
|
458
|
-
return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/mysql/
|
|
462
|
+
return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
459
463
|
}
|
|
460
464
|
static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
|
|
461
|
-
return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/mysql/
|
|
465
|
+
return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
462
466
|
}
|
|
463
467
|
}
|
package/common.pb.ts
CHANGED
|
@@ -50,6 +50,14 @@ export enum PodCommonConditionStatus {
|
|
|
50
50
|
PodConditionStatusFalse = "PodConditionStatusFalse",
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
export enum PodCommonFilterPodStatus {
|
|
54
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
55
|
+
RUNNING = "RUNNING",
|
|
56
|
+
ERROR = "ERROR",
|
|
57
|
+
COMPLETED = "COMPLETED",
|
|
58
|
+
WAITING = "WAITING",
|
|
59
|
+
}
|
|
60
|
+
|
|
53
61
|
export type Affinity = {
|
|
54
62
|
nodeAffinity?: NodeAffinity
|
|
55
63
|
podAffinity?: PodAffinity
|
|
@@ -163,6 +171,7 @@ export type PodCommon = {
|
|
|
163
171
|
initContainersName?: string[]
|
|
164
172
|
initContainersStatuses?: ContainerStatus[]
|
|
165
173
|
containersStatuses?: ContainerStatus[]
|
|
174
|
+
podStatus?: string
|
|
166
175
|
}
|
|
167
176
|
|
|
168
177
|
export type OwnerReference = {
|
package/metric.pb.ts
CHANGED
|
@@ -31,6 +31,6 @@ export type GetAlertsListResp = {
|
|
|
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/v1alpha2/${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
|
@@ -32,6 +32,7 @@ export enum PodStatus {
|
|
|
32
32
|
PodStatus_Running = "PodStatus_Running",
|
|
33
33
|
PodStatus_Succeeded = "PodStatus_Succeeded",
|
|
34
34
|
PodStatus_Failed = "PodStatus_Failed",
|
|
35
|
+
PodStatus_Terminating = "PodStatus_Terminating",
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
export enum InstanceType {
|
|
@@ -55,6 +56,19 @@ export enum Status {
|
|
|
55
56
|
MgrUnknown = "MgrUnknown",
|
|
56
57
|
}
|
|
57
58
|
|
|
59
|
+
export enum GetSlowlogPodListRespItemNodeType {
|
|
60
|
+
Master = "Master",
|
|
61
|
+
Replica = "Replica",
|
|
62
|
+
PhpAdmin = "PhpAdmin",
|
|
63
|
+
PRIMARY = "PRIMARY",
|
|
64
|
+
SECONDARY = "SECONDARY",
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export enum GetSlowlogListReqSortDir {
|
|
68
|
+
ASC = "ASC",
|
|
69
|
+
DESC = "DESC",
|
|
70
|
+
}
|
|
71
|
+
|
|
58
72
|
export enum GetMinioListReqSortDir {
|
|
59
73
|
ASC = "ASC",
|
|
60
74
|
DESC = "DESC",
|
|
@@ -155,6 +169,90 @@ export enum MysqlClusterItemStatusRestoreInitialStatus {
|
|
|
155
169
|
Succeeded = "Succeeded",
|
|
156
170
|
}
|
|
157
171
|
|
|
172
|
+
export type GetSlowlogPodListReq = {
|
|
173
|
+
cluster?: string
|
|
174
|
+
namespace?: string
|
|
175
|
+
name?: string
|
|
176
|
+
instanceType?: InstanceType
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export type GetSlowlogPodListRespItem = {
|
|
180
|
+
podName?: string
|
|
181
|
+
slowLogCount?: number
|
|
182
|
+
nodeType?: GetSlowlogPodListRespItemNodeType
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export type GetSlowlogPodListResp = {
|
|
186
|
+
items?: GetSlowlogPodListRespItem[]
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export type UpdateSlowlogStatusReq = {
|
|
190
|
+
cluster?: string
|
|
191
|
+
namespace?: string
|
|
192
|
+
name?: string
|
|
193
|
+
instanceType?: InstanceType
|
|
194
|
+
enable?: boolean
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export type UpdateSlowlogStatusResp = {
|
|
198
|
+
message?: string
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export type GetSlowlogConfReq = {
|
|
202
|
+
cluster?: string
|
|
203
|
+
namespace?: string
|
|
204
|
+
name?: string
|
|
205
|
+
instanceType?: InstanceType
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export type GetSlowlogConfResp = {
|
|
209
|
+
longQueryTime?: string
|
|
210
|
+
slowQueryLog?: boolean
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export type DeleteSlowlogReq = {
|
|
214
|
+
cluster?: string
|
|
215
|
+
namespace?: string
|
|
216
|
+
name?: string
|
|
217
|
+
podName?: string[]
|
|
218
|
+
instanceType?: InstanceType
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export type DeleteSlowlogResp = {
|
|
222
|
+
message?: string
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export type GetSlowlogListReq = {
|
|
226
|
+
page?: number
|
|
227
|
+
pageSize?: number
|
|
228
|
+
sortDir?: GetSlowlogListReqSortDir
|
|
229
|
+
sortBy?: string
|
|
230
|
+
searchKey?: string
|
|
231
|
+
cluster?: string
|
|
232
|
+
namespace?: string
|
|
233
|
+
name?: string
|
|
234
|
+
podName?: string
|
|
235
|
+
instanceType?: InstanceType
|
|
236
|
+
fromDate?: string
|
|
237
|
+
toDate?: string
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export type GetSlowlogListRespItem = {
|
|
241
|
+
startTime?: string
|
|
242
|
+
db?: string
|
|
243
|
+
sqlText?: string
|
|
244
|
+
queryTime?: string
|
|
245
|
+
lockTime?: string
|
|
246
|
+
rowsExamined?: string
|
|
247
|
+
rowsSent?: string
|
|
248
|
+
userHost?: string
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export type GetSlowlogListResp = {
|
|
252
|
+
items?: GetSlowlogListRespItem[]
|
|
253
|
+
pagination?: CommonCommon.Pagination
|
|
254
|
+
}
|
|
255
|
+
|
|
158
256
|
export type GetTopologyRequest = {
|
|
159
257
|
cluster?: string
|
|
160
258
|
namespace?: string
|
|
@@ -788,4 +886,19 @@ export class MysqlMgr {
|
|
|
788
886
|
static GetTopology(req: GetTopologyRequest, initReq?: fm.InitReq): Promise<GetTopologyResp> {
|
|
789
887
|
return fm.fetchReq<GetTopologyRequest, GetTopologyResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/topology?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name", "instanceType"])}`, {...initReq, method: "GET"})
|
|
790
888
|
}
|
|
889
|
+
static GetSlowlogList(req: GetSlowlogListReq, initReq?: fm.InitReq): Promise<GetSlowlogListResp> {
|
|
890
|
+
return fm.fetchReq<GetSlowlogListReq, GetSlowlogListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["podName"]}/${req["instanceType"]}/slowlog?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name", "podName", "instanceType"])}`, {...initReq, method: "GET"})
|
|
891
|
+
}
|
|
892
|
+
static DeleteSlowlog(req: DeleteSlowlogReq, initReq?: fm.InitReq): Promise<DeleteSlowlogResp> {
|
|
893
|
+
return fm.fetchReq<DeleteSlowlogReq, DeleteSlowlogResp>(`/apis/mcamel.io/mysql/v1alpha2/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/slowlog`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
|
|
894
|
+
}
|
|
895
|
+
static GetSlowlogConf(req: GetSlowlogConfReq, initReq?: fm.InitReq): Promise<GetSlowlogConfResp> {
|
|
896
|
+
return fm.fetchReq<GetSlowlogConfReq, GetSlowlogConfResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/slowlog/conf?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name", "instanceType"])}`, {...initReq, method: "GET"})
|
|
897
|
+
}
|
|
898
|
+
static UpdateSlowlogStatus(req: UpdateSlowlogStatusReq, initReq?: fm.InitReq): Promise<UpdateSlowlogStatusResp> {
|
|
899
|
+
return fm.fetchReq<UpdateSlowlogStatusReq, UpdateSlowlogStatusResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/slowlog/toggle`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
900
|
+
}
|
|
901
|
+
static GetSlowlogPodList(req: GetSlowlogPodListReq, initReq?: fm.InitReq): Promise<GetSlowlogPodListResp> {
|
|
902
|
+
return fm.fetchReq<GetSlowlogPodListReq, GetSlowlogPodListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/slowlog/pods?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name", "instanceType"])}`, {...initReq, method: "GET"})
|
|
903
|
+
}
|
|
791
904
|
}
|
package/package.json
CHANGED
package/storage_config.pb.ts
CHANGED
|
@@ -162,27 +162,27 @@ export type GetStorageConfigListResp = {
|
|
|
162
162
|
|
|
163
163
|
export class StorageConfig {
|
|
164
164
|
static GetStorageConfigParam(req: GetStorageConfigParamReq, initReq?: fm.InitReq): Promise<GetStorageConfigParamResp> {
|
|
165
|
-
return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/mysql/
|
|
165
|
+
return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/mysql/v1alpha2/storage-config/param?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
166
166
|
}
|
|
167
167
|
static CreateStorageConfigBucketCheckJob(req: CreateStorageConfigBucketCheckJobReq, initReq?: fm.InitReq): Promise<CreateStorageConfigBucketCheckJobResp> {
|
|
168
|
-
return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/mysql/
|
|
168
|
+
return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/mysql/v1alpha2/storage-config/bucket/check-job`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
169
169
|
}
|
|
170
170
|
static CreateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<CreateStorageConfigResp> {
|
|
171
|
-
return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/mysql/
|
|
171
|
+
return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/storage-config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
172
172
|
}
|
|
173
173
|
static GetStorageConfigConsumers(req: GetStorageConfigConsumersReq, initReq?: fm.InitReq): Promise<GetStorageConfigConsumersResp> {
|
|
174
|
-
return fm.fetchReq<GetStorageConfigConsumersReq, GetStorageConfigConsumersResp>(`/apis/mcamel.io/mysql/
|
|
174
|
+
return fm.fetchReq<GetStorageConfigConsumersReq, GetStorageConfigConsumersResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/storage-config/${req["name"]}/consumers?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
175
175
|
}
|
|
176
176
|
static DeleteStorageConfig(req: DeleteStorageConfigReq, initReq?: fm.InitReq): Promise<DeleteStorageConfigResp> {
|
|
177
|
-
return fm.fetchReq<DeleteStorageConfigReq, DeleteStorageConfigResp>(`/apis/mcamel.io/mysql/
|
|
177
|
+
return fm.fetchReq<DeleteStorageConfigReq, DeleteStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/storage-config/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
178
178
|
}
|
|
179
179
|
static UpdateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<UpdateStorageConfigResp> {
|
|
180
|
-
return fm.fetchReq<CreateStorageConfigReq, UpdateStorageConfigResp>(`/apis/mcamel.io/mysql/
|
|
180
|
+
return fm.fetchReq<CreateStorageConfigReq, UpdateStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/storage-config/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
181
181
|
}
|
|
182
182
|
static GetStorageConfig(req: GetStorageConfigReq, initReq?: fm.InitReq): Promise<GetStorageConfigResp> {
|
|
183
|
-
return fm.fetchReq<GetStorageConfigReq, GetStorageConfigResp>(`/apis/mcamel.io/mysql/
|
|
183
|
+
return fm.fetchReq<GetStorageConfigReq, GetStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/storage-config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
184
184
|
}
|
|
185
185
|
static GetStorageConfigList(req: GetStorageConfigListReq, initReq?: fm.InitReq): Promise<GetStorageConfigListResp> {
|
|
186
|
-
return fm.fetchReq<GetStorageConfigListReq, GetStorageConfigListResp>(`/apis/mcamel.io/mysql/
|
|
186
|
+
return fm.fetchReq<GetStorageConfigListReq, GetStorageConfigListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/storage-configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
187
187
|
}
|
|
188
188
|
}
|
package/template.pb.ts
CHANGED
|
@@ -44,7 +44,6 @@ export type UpdateTemplateConfigToItemReq = {
|
|
|
44
44
|
|
|
45
45
|
export type UpdateTemplateConfigToItemResp = {
|
|
46
46
|
items?: TemplateConfigItem[]
|
|
47
|
-
pagination?: CommonCommon.Pagination
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
export type GetTemplateConfigVersionsReq = {
|
|
@@ -57,6 +56,7 @@ export type GetTemplateConfigVersionsResp = {
|
|
|
57
56
|
|
|
58
57
|
export type GetTemplateConfigStringResp = {
|
|
59
58
|
conf?: string
|
|
59
|
+
fileName?: string
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export type DeleteTemplateReq = {
|
|
@@ -88,6 +88,11 @@ export type GetTemplateConfigReq = {
|
|
|
88
88
|
templateInstanceType?: TemplateInstanceType
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
export type GetTemplateConfigStringReq = {
|
|
92
|
+
workspaceId?: number
|
|
93
|
+
name?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
91
96
|
export type CreateTemplateConfigResp = {
|
|
92
97
|
message?: string
|
|
93
98
|
}
|
|
@@ -160,30 +165,30 @@ export type GetTemplateInstanceTypeListResp = {
|
|
|
160
165
|
|
|
161
166
|
export class Template {
|
|
162
167
|
static GetTemplateConfigList(req: GetTemplateConfigListReq, initReq?: fm.InitReq): Promise<GetTemplateConfigListResp> {
|
|
163
|
-
return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/mysql/
|
|
168
|
+
return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
164
169
|
}
|
|
165
170
|
static GetTemplateInstanceTypeList(req: GetTemplateInstanceTypeListReq, initReq?: fm.InitReq): Promise<GetTemplateInstanceTypeListResp> {
|
|
166
|
-
return fm.fetchReq<GetTemplateInstanceTypeListReq, GetTemplateInstanceTypeListResp>(`/apis/mcamel.io/mysql/
|
|
171
|
+
return fm.fetchReq<GetTemplateInstanceTypeListReq, GetTemplateInstanceTypeListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_instance_type?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
167
172
|
}
|
|
168
173
|
static GetTemplateConfig(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigResp> {
|
|
169
|
-
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
174
|
+
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
170
175
|
}
|
|
171
176
|
static DeleteTemplateConfig(req: DeleteTemplateReq, initReq?: fm.InitReq): Promise<DeleteTemplateConfigResp> {
|
|
172
|
-
return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
177
|
+
return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config/${req["name"]}/${req["version"]}`, {...initReq, method: "DELETE"})
|
|
173
178
|
}
|
|
174
179
|
static CreateTemplateConfig(req: CreateTemplateConfigReq, initReq?: fm.InitReq): Promise<CreateTemplateConfigResp> {
|
|
175
|
-
return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
180
|
+
return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
176
181
|
}
|
|
177
182
|
static UpdateTemplateConfig(req: UpdateTemplateConfigReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigResp> {
|
|
178
|
-
return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/mysql/
|
|
183
|
+
return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
179
184
|
}
|
|
180
|
-
static GetTemplateConfigString(req:
|
|
181
|
-
return fm.fetchReq<
|
|
185
|
+
static GetTemplateConfigString(req: GetTemplateConfigStringReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
|
|
186
|
+
return fm.fetchReq<GetTemplateConfigStringReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
182
187
|
}
|
|
183
188
|
static UpdateTemplateConfigToItem(req: UpdateTemplateConfigToItemReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigToItemResp> {
|
|
184
|
-
return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/mysql/
|
|
189
|
+
return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config/to_template`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
185
190
|
}
|
|
186
191
|
static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
|
|
187
|
-
return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/mysql/
|
|
192
|
+
return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
188
193
|
}
|
|
189
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/v1alpha2/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"})
|