@daocloud-proto/mcamel-mysql 0.1.5-9 → 0.1.5-92
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/mysql.pb.ts +40 -7
- package/package.json +1 -1
package/mysql.pb.ts
CHANGED
|
@@ -87,6 +87,19 @@ export enum GetMysqlConfRespItemsParamType {
|
|
|
87
87
|
conf = "conf",
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
export type RecoverMysqlReq = {
|
|
91
|
+
workspaceId?: number
|
|
92
|
+
cluster?: string
|
|
93
|
+
namespace?: string
|
|
94
|
+
name?: string
|
|
95
|
+
backupPath?: string
|
|
96
|
+
targetMysqlClusterName?: string
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export type RecoverMysqlResp = {
|
|
100
|
+
message?: string
|
|
101
|
+
}
|
|
102
|
+
|
|
90
103
|
export type GetMysqlBackupListReq = {
|
|
91
104
|
page?: number
|
|
92
105
|
pageSize?: number
|
|
@@ -136,11 +149,11 @@ export type GetMysqlBackupListResp = {
|
|
|
136
149
|
export type GetMysqlBackupJobListRespGetMysqlBackupJobItemGetMysqlBackupJobItemSpec = {
|
|
137
150
|
name?: string
|
|
138
151
|
namespace?: string
|
|
139
|
-
creationTimestamp?:
|
|
152
|
+
creationTimestamp?: string
|
|
140
153
|
parallelism?: number
|
|
141
154
|
completions?: number
|
|
142
155
|
jobType?: GetMysqlBackupJobListRespGetMysqlBackupJobItemGetMysqlBackupJobItemSpecJobType
|
|
143
|
-
|
|
156
|
+
completionTimestamp?: string
|
|
144
157
|
backupType?: GetMysqlBackupJobListRespGetMysqlBackupJobItemGetMysqlBackupJobItemSpecBackupType
|
|
145
158
|
backupPath?: string
|
|
146
159
|
}
|
|
@@ -155,9 +168,18 @@ export type GetMysqlBackupJobListRespGetMysqlBackupJobItem = {
|
|
|
155
168
|
status?: GetMysqlBackupJobListRespGetMysqlBackupJobItemStatus
|
|
156
169
|
}
|
|
157
170
|
|
|
171
|
+
export type GetMysqlBackupJobListRespStatus = {
|
|
172
|
+
isConfigAutoBackup?: boolean
|
|
173
|
+
backupSchedule?: string
|
|
174
|
+
backupSecretName?: string
|
|
175
|
+
backupBucket?: string
|
|
176
|
+
backupBucketSubPath?: string
|
|
177
|
+
}
|
|
178
|
+
|
|
158
179
|
export type GetMysqlBackupJobListResp = {
|
|
159
180
|
items?: GetMysqlBackupJobListRespGetMysqlBackupJobItem[]
|
|
160
181
|
pagination?: CommonCommon.Pagination
|
|
182
|
+
status?: GetMysqlBackupJobListRespStatus
|
|
161
183
|
}
|
|
162
184
|
|
|
163
185
|
export type GetMysqlBackupSecretResp = {
|
|
@@ -181,7 +203,8 @@ export type CreateMysqlBackupReq = {
|
|
|
181
203
|
namespace?: string
|
|
182
204
|
name?: string
|
|
183
205
|
backupName?: string
|
|
184
|
-
|
|
206
|
+
backupBucket?: string
|
|
207
|
+
backupBucketSubPath?: string
|
|
185
208
|
}
|
|
186
209
|
|
|
187
210
|
export type CreateMysqlBackupResp = {
|
|
@@ -255,7 +278,7 @@ export type CreateMysqlReq = {
|
|
|
255
278
|
conf?: string
|
|
256
279
|
backupSchedule?: string
|
|
257
280
|
backupSecretName?: string
|
|
258
|
-
|
|
281
|
+
backupBucket?: string
|
|
259
282
|
isOpenPhpAdmin?: boolean
|
|
260
283
|
phpAdminServiceType?: CreateMysqlReqServiceType
|
|
261
284
|
phpAdminNodePort?: number
|
|
@@ -263,6 +286,10 @@ export type CreateMysqlReq = {
|
|
|
263
286
|
phpAdminCpuLimit?: string
|
|
264
287
|
phpAdminMemoryRequest?: string
|
|
265
288
|
phpAdminMemoryLimit?: string
|
|
289
|
+
backupHistoryLimit?: number
|
|
290
|
+
backupBucketSubPath?: string
|
|
291
|
+
initBackupPath?: string
|
|
292
|
+
initBackupSecretName?: string
|
|
266
293
|
}
|
|
267
294
|
|
|
268
295
|
export type UpdateMysqlConfReq = {
|
|
@@ -393,7 +420,7 @@ export type GetMysqlNodeListRespData = {
|
|
|
393
420
|
cpuLimit?: number
|
|
394
421
|
memoryUsage?: number
|
|
395
422
|
memoryLimit?: number
|
|
396
|
-
|
|
423
|
+
createTimestamp?: string
|
|
397
424
|
nodeType?: string
|
|
398
425
|
}
|
|
399
426
|
|
|
@@ -431,7 +458,9 @@ export type CreateMysqlAutoBackupReq = {
|
|
|
431
458
|
namespace?: string
|
|
432
459
|
name?: string
|
|
433
460
|
backupSchedule?: string
|
|
434
|
-
|
|
461
|
+
backupBucket?: string
|
|
462
|
+
backupHistoryLimit?: number
|
|
463
|
+
backupBucketSubPath?: string
|
|
435
464
|
}
|
|
436
465
|
|
|
437
466
|
export type CreateMysqlAutoBackupResp = {
|
|
@@ -468,11 +497,12 @@ export type MysqlClusterItemStatus = {
|
|
|
468
497
|
podsAreReadyNum?: number
|
|
469
498
|
webManagerAddr?: string
|
|
470
499
|
clusterIPs?: string[]
|
|
500
|
+
isAutoBackupEnabled?: boolean
|
|
471
501
|
}
|
|
472
502
|
|
|
473
503
|
export type MysqlClusterItemMetadata = {
|
|
474
504
|
annotations?: {[key: string]: string}
|
|
475
|
-
creationTimestamp?:
|
|
505
|
+
creationTimestamp?: string
|
|
476
506
|
name?: string
|
|
477
507
|
namespace?: string
|
|
478
508
|
}
|
|
@@ -549,4 +579,7 @@ export class Mysql {
|
|
|
549
579
|
static SetMysqlBackupSecret(req: SetMysqlBackupSecretReq, initReq?: fm.InitReq): Promise<SetMysqlBackupSecretResp> {
|
|
550
580
|
return fm.fetchReq<SetMysqlBackupSecretReq, SetMysqlBackupSecretResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["workspaceId"]}/secret`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
551
581
|
}
|
|
582
|
+
static RecoverMysql(req: RecoverMysqlReq, initReq?: fm.InitReq): Promise<RecoverMysqlResp> {
|
|
583
|
+
return fm.fetchReq<RecoverMysqlReq, RecoverMysqlResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/recover`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
584
|
+
}
|
|
552
585
|
}
|