@daocloud-proto/mcamel-mysql 0.2.8-4 → 0.2.9-15

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.
Files changed (2) hide show
  1. package/mysql.pb.ts +19 -26
  2. package/package.json +1 -1
package/mysql.pb.ts CHANGED
@@ -74,6 +74,11 @@ export enum GetMysqlParamRespSelectSelectType {
74
74
  Multiple = "Multiple",
75
75
  }
76
76
 
77
+ export enum GetMysqlNodeListReqSortDir {
78
+ ASC = "ASC",
79
+ DESC = "DESC",
80
+ }
81
+
77
82
  export enum GetMysqlNodeListRespPodStatus {
78
83
  PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
79
84
  Unknown = "Unknown",
@@ -89,6 +94,12 @@ export enum GetMysqlNodeListRespHealthStatus {
89
94
  HealthStatusUnhealthy = "HealthStatusUnhealthy",
90
95
  }
91
96
 
97
+ export enum GetMysqlNodeListRespNodeType {
98
+ Master = "Master",
99
+ Replica = "Replica",
100
+ PhpAdmin = "PhpAdmin",
101
+ }
102
+
92
103
  export enum GetMysqlConfRespItemsParamType {
93
104
  conf = "conf",
94
105
  }
@@ -324,29 +335,6 @@ export type UpdateMysqlConfReq = {
324
335
  conf?: string
325
336
  }
326
337
 
327
- export type UpdateMysqlParamsReq = {
328
- cluster?: string
329
- namespace?: string
330
- name?: string
331
- replicas?: number
332
- storageCapacity?: string
333
- serviceType?: CreateMysqlReqServiceType
334
- serviceAnnotations?: {[key: string]: string}
335
- describe?: string
336
- ports?: CreateMysqlReqPorts[]
337
- cpuRequest?: string
338
- cpuLimit?: string
339
- memoryRequest?: string
340
- memoryLimit?: string
341
- version?: string
342
- phpAdminServiceType?: CreateMysqlReqServiceType
343
- phpAdminNodePort?: number
344
- phpAdminCpuRequest?: string
345
- phpAdminCpuLimit?: string
346
- phpAdminMemoryRequest?: string
347
- phpAdminMemoryLimit?: string
348
- }
349
-
350
338
  export type UpdateMysqlParamsResp = {
351
339
  message?: string
352
340
  }
@@ -434,6 +422,11 @@ export type GetMysqlNodeListReq = {
434
422
  cluster?: string
435
423
  namespace?: string
436
424
  name?: string
425
+ page?: number
426
+ pageSize?: number
427
+ sortDir?: GetMysqlNodeListReqSortDir
428
+ sortBy?: string
429
+ searchKey?: string
437
430
  }
438
431
 
439
432
  export type GetMysqlNodeListRespData = {
@@ -446,7 +439,7 @@ export type GetMysqlNodeListRespData = {
446
439
  memoryUsage?: number
447
440
  memoryLimit?: number
448
441
  createTimestamp?: string
449
- nodeType?: string
442
+ nodeType?: GetMysqlNodeListRespNodeType
450
443
  healthStatus?: GetMysqlNodeListRespHealthStatus
451
444
  }
452
445
 
@@ -544,8 +537,8 @@ export class Mysql {
544
537
  static UpdateMysqlConf(req: UpdateMysqlConfReq, initReq?: fm.InitReq): Promise<UpdateMysqlConfResp> {
545
538
  return fm.fetchReq<UpdateMysqlConfReq, UpdateMysqlConfResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/conf`, {...initReq, method: "PUT", body: JSON.stringify(req)})
546
539
  }
547
- static UpdateMysqlParams(req: UpdateMysqlParamsReq, initReq?: fm.InitReq): Promise<UpdateMysqlParamsResp> {
548
- return fm.fetchReq<UpdateMysqlParamsReq, UpdateMysqlParamsResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/params`, {...initReq, method: "PUT", body: JSON.stringify(req)})
540
+ static UpdateMysqlParams(req: CreateMysqlReq, initReq?: fm.InitReq): Promise<UpdateMysqlParamsResp> {
541
+ return fm.fetchReq<CreateMysqlReq, UpdateMysqlParamsResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/params`, {...initReq, method: "PUT", body: JSON.stringify(req)})
549
542
  }
550
543
  static DeleteMysql(req: DeleteMysqlReq, initReq?: fm.InitReq): Promise<DeleteMysqlResp> {
551
544
  return fm.fetchReq<DeleteMysqlReq, DeleteMysqlResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-mysql",
3
- "version":"0.2.8-4",
3
+ "version":"0.2.9-15",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {