@daocloud-proto/mcamel-mysql 0.5.1-4 → 0.5.1-7
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 +347 -8
- package/common.pb.ts +76 -1
- package/insight.pb.ts +8 -12
- package/metric.pb.ts +13 -1
- package/mysql.pb.ts +332 -34
- package/package.json +1 -1
- package/storage_config.pb.ts +9 -8
- package/template.pb.ts +195 -0
- package/version.pb.ts +8 -1
package/storage_config.pb.ts
CHANGED
|
@@ -24,6 +24,7 @@ export enum GetStorageConfigParamRespSelectSelectType {
|
|
|
24
24
|
export enum GetStorageConfigConsumersRespStorageConfigConsumerType {
|
|
25
25
|
STORAGE_CONFIG_CONSUMER_TYPE_UNSPECIFIED = "STORAGE_CONFIG_CONSUMER_TYPE_UNSPECIFIED",
|
|
26
26
|
STORAGE_CONFIG_CONSUMER_TYPE_MYSQL = "STORAGE_CONFIG_CONSUMER_TYPE_MYSQL",
|
|
27
|
+
STORAGE_CONFIG_CONSUMER_TYPE_REDIS = "STORAGE_CONFIG_CONSUMER_TYPE_REDIS",
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export enum GetStorageConfigListReqSortDir {
|
|
@@ -161,27 +162,27 @@ export type GetStorageConfigListResp = {
|
|
|
161
162
|
|
|
162
163
|
export class StorageConfig {
|
|
163
164
|
static GetStorageConfigParam(req: GetStorageConfigParamReq, initReq?: fm.InitReq): Promise<GetStorageConfigParamResp> {
|
|
164
|
-
return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/mysql/
|
|
165
|
+
return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/mysql/v1alpha3/storage-config/param?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
165
166
|
}
|
|
166
167
|
static CreateStorageConfigBucketCheckJob(req: CreateStorageConfigBucketCheckJobReq, initReq?: fm.InitReq): Promise<CreateStorageConfigBucketCheckJobResp> {
|
|
167
|
-
return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/mysql/
|
|
168
|
+
return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/mysql/v1alpha3/storage-config/bucket/check-job`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
168
169
|
}
|
|
169
170
|
static CreateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<CreateStorageConfigResp> {
|
|
170
|
-
return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/mysql/
|
|
171
|
+
return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/storage-config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
171
172
|
}
|
|
172
173
|
static GetStorageConfigConsumers(req: GetStorageConfigConsumersReq, initReq?: fm.InitReq): Promise<GetStorageConfigConsumersResp> {
|
|
173
|
-
return fm.fetchReq<GetStorageConfigConsumersReq, GetStorageConfigConsumersResp>(`/apis/mcamel.io/mysql/
|
|
174
|
+
return fm.fetchReq<GetStorageConfigConsumersReq, GetStorageConfigConsumersResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/storage-config/${req["name"]}/consumers?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
174
175
|
}
|
|
175
176
|
static DeleteStorageConfig(req: DeleteStorageConfigReq, initReq?: fm.InitReq): Promise<DeleteStorageConfigResp> {
|
|
176
|
-
return fm.fetchReq<DeleteStorageConfigReq, DeleteStorageConfigResp>(`/apis/mcamel.io/mysql/
|
|
177
|
+
return fm.fetchReq<DeleteStorageConfigReq, DeleteStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/storage-config/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
177
178
|
}
|
|
178
179
|
static UpdateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<UpdateStorageConfigResp> {
|
|
179
|
-
return fm.fetchReq<CreateStorageConfigReq, UpdateStorageConfigResp>(`/apis/mcamel.io/mysql/
|
|
180
|
+
return fm.fetchReq<CreateStorageConfigReq, UpdateStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/storage-config/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
180
181
|
}
|
|
181
182
|
static GetStorageConfig(req: GetStorageConfigReq, initReq?: fm.InitReq): Promise<GetStorageConfigResp> {
|
|
182
|
-
return fm.fetchReq<GetStorageConfigReq, GetStorageConfigResp>(`/apis/mcamel.io/mysql/
|
|
183
|
+
return fm.fetchReq<GetStorageConfigReq, GetStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/storage-config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
183
184
|
}
|
|
184
185
|
static GetStorageConfigList(req: GetStorageConfigListReq, initReq?: fm.InitReq): Promise<GetStorageConfigListResp> {
|
|
185
|
-
return fm.fetchReq<GetStorageConfigListReq, GetStorageConfigListResp>(`/apis/mcamel.io/mysql/
|
|
186
|
+
return fm.fetchReq<GetStorageConfigListReq, GetStorageConfigListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/storage-configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
186
187
|
}
|
|
187
188
|
}
|
package/template.pb.ts
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as CommonCommon from "./common.pb"
|
|
8
|
+
import * as fm from "./fetch.pb"
|
|
9
|
+
|
|
10
|
+
export enum TemplateInstanceType {
|
|
11
|
+
TemplateInstanceTypeUnspecified = "TemplateInstanceTypeUnspecified",
|
|
12
|
+
MysqlMasterReplica = "MysqlMasterReplica",
|
|
13
|
+
RedisStandalone = "RedisStandalone",
|
|
14
|
+
RedisFailover = "RedisFailover",
|
|
15
|
+
RedisCluster = "RedisCluster",
|
|
16
|
+
KafkaConfig = "KafkaConfig",
|
|
17
|
+
MysqlMgrConfig = "MysqlMgrConfig",
|
|
18
|
+
MongodbConfig = "MongodbConfig",
|
|
19
|
+
PostgresqlConfig = "PostgresqlConfig",
|
|
20
|
+
RabbitmqConfig = "RabbitmqConfig",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export enum GetTemplateConfigReqSortDir {
|
|
24
|
+
ASC = "ASC",
|
|
25
|
+
DESC = "DESC",
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export enum GetTemplateConfigListReqSortDir {
|
|
29
|
+
ASC = "ASC",
|
|
30
|
+
DESC = "DESC",
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export enum TemplateConfigItemValueType {
|
|
34
|
+
String = "String",
|
|
35
|
+
SingleSelection = "SingleSelection",
|
|
36
|
+
MultiString = "MultiString",
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type UpdateTemplateConfigToItemReq = {
|
|
40
|
+
workspaceId?: number
|
|
41
|
+
conf?: string
|
|
42
|
+
version?: string
|
|
43
|
+
templateInstanceType?: TemplateInstanceType
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type UpdateTemplateConfigToItemResp = {
|
|
47
|
+
items?: TemplateConfigItem[]
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type GetTemplateConfigVersionsReq = {
|
|
51
|
+
workspaceId?: number
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type GetTemplateConfigVersionsResp = {
|
|
55
|
+
versions?: string[]
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type GetTemplateConfigStringResp = {
|
|
59
|
+
conf?: string
|
|
60
|
+
fileName?: string
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type DeleteTemplateReq = {
|
|
64
|
+
workspaceId?: number
|
|
65
|
+
name?: string
|
|
66
|
+
version?: string
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type DeleteTemplateConfigResp = {
|
|
70
|
+
message?: string
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type CreateOrUpdateTemplateConfigResp = {
|
|
74
|
+
message?: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type GetTemplateConfigReq = {
|
|
78
|
+
page?: number
|
|
79
|
+
pageSize?: number
|
|
80
|
+
sortDir?: GetTemplateConfigReqSortDir
|
|
81
|
+
sortBy?: string
|
|
82
|
+
searchKey?: string
|
|
83
|
+
workspaceId?: number
|
|
84
|
+
name?: string
|
|
85
|
+
version?: string
|
|
86
|
+
templateType?: string
|
|
87
|
+
type?: string
|
|
88
|
+
createTimestamp?: string
|
|
89
|
+
templateInstanceType?: TemplateInstanceType
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type GetTemplateConfigStringReq = {
|
|
93
|
+
workspaceId?: number
|
|
94
|
+
name?: string
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type CreateTemplateConfigResp = {
|
|
98
|
+
message?: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type UpdateTemplateConfigResp = {
|
|
102
|
+
message?: string
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type CreateTemplateConfigReq = {
|
|
106
|
+
workspaceId?: number
|
|
107
|
+
targetName?: string
|
|
108
|
+
targetVersion?: string
|
|
109
|
+
targetType?: string
|
|
110
|
+
targetTemplateType?: string
|
|
111
|
+
targetConf?: string
|
|
112
|
+
fromTemplateName?: string
|
|
113
|
+
targetTemplateInstanceType?: TemplateInstanceType
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type UpdateTemplateConfigReq = {
|
|
117
|
+
workspaceId?: number
|
|
118
|
+
name?: string
|
|
119
|
+
version?: string
|
|
120
|
+
type?: string
|
|
121
|
+
templateType?: string
|
|
122
|
+
items?: TemplateConfigItem[]
|
|
123
|
+
conf?: string
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type GetTemplateConfigResp = {
|
|
127
|
+
data?: UpdateTemplateConfigReq
|
|
128
|
+
pagination?: CommonCommon.Pagination
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type GetTemplateConfigListReq = {
|
|
132
|
+
page?: number
|
|
133
|
+
pageSize?: number
|
|
134
|
+
sortDir?: GetTemplateConfigListReqSortDir
|
|
135
|
+
sortBy?: string
|
|
136
|
+
searchKey?: string
|
|
137
|
+
workspaceId?: number
|
|
138
|
+
version?: string
|
|
139
|
+
templateInstanceType?: TemplateInstanceType
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type TemplateConfigItem = {
|
|
143
|
+
name?: string
|
|
144
|
+
default?: string
|
|
145
|
+
current?: string
|
|
146
|
+
value?: string
|
|
147
|
+
isNeedRestart?: boolean
|
|
148
|
+
valueType?: TemplateConfigItemValueType
|
|
149
|
+
valueRemarksZh?: string
|
|
150
|
+
valueRemarksEn?: string
|
|
151
|
+
updateTimestamp?: string
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type GetTemplateConfigListResp = {
|
|
155
|
+
items?: GetTemplateConfigReq[]
|
|
156
|
+
pagination?: CommonCommon.Pagination
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export type GetTemplateInstanceTypeListReq = {
|
|
160
|
+
workspaceId?: number
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export type GetTemplateInstanceTypeListResp = {
|
|
164
|
+
type?: TemplateInstanceType[]
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export class Template {
|
|
168
|
+
static GetTemplateConfigList(req: GetTemplateConfigListReq, initReq?: fm.InitReq): Promise<GetTemplateConfigListResp> {
|
|
169
|
+
return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
170
|
+
}
|
|
171
|
+
static GetTemplateInstanceTypeList(req: GetTemplateInstanceTypeListReq, initReq?: fm.InitReq): Promise<GetTemplateInstanceTypeListResp> {
|
|
172
|
+
return fm.fetchReq<GetTemplateInstanceTypeListReq, GetTemplateInstanceTypeListResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_instance_type?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
173
|
+
}
|
|
174
|
+
static GetTemplateConfig(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigResp> {
|
|
175
|
+
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
176
|
+
}
|
|
177
|
+
static DeleteTemplateConfig(req: DeleteTemplateReq, initReq?: fm.InitReq): Promise<DeleteTemplateConfigResp> {
|
|
178
|
+
return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config/${req["name"]}/${req["version"]}`, {...initReq, method: "DELETE"})
|
|
179
|
+
}
|
|
180
|
+
static CreateTemplateConfig(req: CreateTemplateConfigReq, initReq?: fm.InitReq): Promise<CreateTemplateConfigResp> {
|
|
181
|
+
return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
182
|
+
}
|
|
183
|
+
static UpdateTemplateConfig(req: UpdateTemplateConfigReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigResp> {
|
|
184
|
+
return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
185
|
+
}
|
|
186
|
+
static GetTemplateConfigString(req: GetTemplateConfigStringReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
|
|
187
|
+
return fm.fetchReq<GetTemplateConfigStringReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
188
|
+
}
|
|
189
|
+
static UpdateTemplateConfigToItem(req: UpdateTemplateConfigToItemReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigToItemResp> {
|
|
190
|
+
return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config/to_template`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
191
|
+
}
|
|
192
|
+
static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
|
|
193
|
+
return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
194
|
+
}
|
|
195
|
+
}
|
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/v1alpha3/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
|
}
|