@daocloud-proto/mcamel-mysql 0.16.0-rc1-3 → 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/cluster.pb.ts +1 -0
- package/mysql.pb.ts +26 -9
- package/package.json +1 -1
- package/template.pb.ts +17 -0
- package/version.pb.ts +8 -1
package/cluster.pb.ts
CHANGED
package/mysql.pb.ts
CHANGED
|
@@ -20,11 +20,20 @@ type OneOf<T> =
|
|
|
20
20
|
export enum RoleType {
|
|
21
21
|
Unknown = "Unknown",
|
|
22
22
|
Master = "Master",
|
|
23
|
-
|
|
23
|
+
Replica = "Replica",
|
|
24
24
|
PRIMARY = "PRIMARY",
|
|
25
25
|
SECONDARY = "SECONDARY",
|
|
26
26
|
}
|
|
27
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
|
+
|
|
28
37
|
export enum InstanceType {
|
|
29
38
|
UnKnown = "UnKnown",
|
|
30
39
|
SingleNode = "SingleNode",
|
|
@@ -159,14 +168,19 @@ export type GetTopologyResp = {
|
|
|
159
168
|
name?: string
|
|
160
169
|
instanceType?: InstanceType
|
|
161
170
|
version?: string
|
|
162
|
-
topology?: Topology[]
|
|
163
171
|
storageClassName?: string
|
|
164
172
|
storageCapacity?: string
|
|
173
|
+
nodes?: Node[]
|
|
174
|
+
edges?: Edge[]
|
|
165
175
|
}
|
|
166
176
|
|
|
167
|
-
export type
|
|
168
|
-
source?:
|
|
169
|
-
|
|
177
|
+
export type Edge = {
|
|
178
|
+
source?: string
|
|
179
|
+
target?: string
|
|
180
|
+
properties?: Property
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export type Property = {
|
|
170
184
|
}
|
|
171
185
|
|
|
172
186
|
export type Node = {
|
|
@@ -175,11 +189,14 @@ export type Node = {
|
|
|
175
189
|
role?: RoleType
|
|
176
190
|
podName?: string
|
|
177
191
|
ip?: string
|
|
192
|
+
podStatus?: PodStatus
|
|
178
193
|
status?: Status
|
|
179
|
-
cpuLimit?:
|
|
180
|
-
|
|
181
|
-
memoryLimit?:
|
|
182
|
-
|
|
194
|
+
cpuLimit?: string
|
|
195
|
+
cpuRequest?: string
|
|
196
|
+
memoryLimit?: string
|
|
197
|
+
memoryRequest?: string
|
|
198
|
+
totalContainer?: number
|
|
199
|
+
totalContainerReady?: number
|
|
183
200
|
gtidPurged?: string
|
|
184
201
|
gtidExecuted?: string
|
|
185
202
|
lagBehindUpstream?: string
|
package/package.json
CHANGED
package/template.pb.ts
CHANGED
|
@@ -16,6 +16,7 @@ export enum TemplateInstanceType {
|
|
|
16
16
|
MysqlMgrConfig = "MysqlMgrConfig",
|
|
17
17
|
MongodbConfig = "MongodbConfig",
|
|
18
18
|
PostgresqlConfig = "PostgresqlConfig",
|
|
19
|
+
RabbitmqConfig = "RabbitmqConfig",
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
export enum GetTemplateConfigReqSortDir {
|
|
@@ -34,6 +35,18 @@ export enum TemplateConfigItemValueType {
|
|
|
34
35
|
MultiString = "MultiString",
|
|
35
36
|
}
|
|
36
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
|
+
|
|
37
50
|
export type GetTemplateConfigVersionsReq = {
|
|
38
51
|
workspaceId?: number
|
|
39
52
|
}
|
|
@@ -91,6 +104,7 @@ export type CreateTemplateConfigReq = {
|
|
|
91
104
|
targetTemplateType?: string
|
|
92
105
|
targetConf?: string
|
|
93
106
|
fromTemplateName?: string
|
|
107
|
+
targetTemplateInstanceType?: TemplateInstanceType
|
|
94
108
|
}
|
|
95
109
|
|
|
96
110
|
export type UpdateTemplateConfigReq = {
|
|
@@ -166,6 +180,9 @@ export class Template {
|
|
|
166
180
|
static GetTemplateConfigString(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
|
|
167
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"})
|
|
168
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)})
|
|
185
|
+
}
|
|
169
186
|
static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
|
|
170
187
|
return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
171
188
|
}
|
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
|
}
|