@daocloud-proto/mcamel-postgresql 0.0.2-67 → 0.0.2-672-g503e75f6
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 +353 -10
- package/common.pb.ts +87 -2
- package/metric.pb.ts +13 -1
- package/package.json +1 -1
- package/postgresql.pb.ts +369 -25
- package/storage_config.pb.ts +188 -0
- package/template.pb.ts +200 -0
- package/version.pb.ts +8 -1
|
@@ -0,0 +1,188 @@
|
|
|
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
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
|
+
type OneOf<T> =
|
|
12
|
+
| { [k in keyof T]?: undefined }
|
|
13
|
+
| (
|
|
14
|
+
keyof T extends infer K ?
|
|
15
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
16
|
+
: never)
|
|
17
|
+
: never);
|
|
18
|
+
|
|
19
|
+
export enum GetStorageConfigParamRespSelectSelectType {
|
|
20
|
+
Single = "Single",
|
|
21
|
+
Multiple = "Multiple",
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export enum GetStorageConfigConsumersRespStorageConfigConsumerType {
|
|
25
|
+
STORAGE_CONFIG_CONSUMER_TYPE_UNSPECIFIED = "STORAGE_CONFIG_CONSUMER_TYPE_UNSPECIFIED",
|
|
26
|
+
STORAGE_CONFIG_CONSUMER_TYPE_MYSQL = "STORAGE_CONFIG_CONSUMER_TYPE_MYSQL",
|
|
27
|
+
STORAGE_CONFIG_CONSUMER_TYPE_REDIS = "STORAGE_CONFIG_CONSUMER_TYPE_REDIS",
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export enum GetStorageConfigListReqSortDir {
|
|
31
|
+
ASC = "ASC",
|
|
32
|
+
DESC = "DESC",
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type GetStorageConfigParamReq = {
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type GetStorageConfigParamRespSelectDataStringValue = {
|
|
39
|
+
value?: string
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type GetStorageConfigParamRespSelectDataIntValue = {
|
|
43
|
+
value?: number
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
type BaseGetStorageConfigParamRespSelectData = {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type GetStorageConfigParamRespSelectData = BaseGetStorageConfigParamRespSelectData
|
|
51
|
+
& OneOf<{ sValue: GetStorageConfigParamRespSelectDataStringValue; iValue: GetStorageConfigParamRespSelectDataIntValue }>
|
|
52
|
+
|
|
53
|
+
export type GetStorageConfigParamRespSelect = {
|
|
54
|
+
selectType?: GetStorageConfigParamRespSelectSelectType
|
|
55
|
+
data?: GetStorageConfigParamRespSelectData[]
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type GetStorageConfigParamResp = {
|
|
59
|
+
storageType?: GetStorageConfigParamRespSelect
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type CreateStorageConfigBucketCheckJobReq = {
|
|
63
|
+
storageType?: string
|
|
64
|
+
endpoint?: string
|
|
65
|
+
accessKey?: string
|
|
66
|
+
secretKey?: string
|
|
67
|
+
bucket?: string
|
|
68
|
+
cluster?: string
|
|
69
|
+
namespace?: string
|
|
70
|
+
name?: string
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type CreateStorageConfigBucketCheckJobResp = {
|
|
74
|
+
message?: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type CreateStorageConfigReq = {
|
|
78
|
+
workspaceId?: number
|
|
79
|
+
cluster?: string
|
|
80
|
+
namespace?: string
|
|
81
|
+
name?: string
|
|
82
|
+
storageType?: string
|
|
83
|
+
accessKey?: string
|
|
84
|
+
secretKey?: string
|
|
85
|
+
bucket?: string
|
|
86
|
+
endpoint?: string
|
|
87
|
+
minioCluster?: string
|
|
88
|
+
minioNamespace?: string
|
|
89
|
+
minioName?: string
|
|
90
|
+
description?: string
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type CreateStorageConfigResp = {
|
|
94
|
+
message?: string
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type GetStorageConfigConsumersReq = {
|
|
98
|
+
workspaceId?: number
|
|
99
|
+
name?: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type GetStorageConfigConsumersRespConsumer = {
|
|
103
|
+
type?: GetStorageConfigConsumersRespStorageConfigConsumerType
|
|
104
|
+
cluster?: string
|
|
105
|
+
namespace?: string
|
|
106
|
+
name?: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type GetStorageConfigConsumersResp = {
|
|
110
|
+
consumers?: GetStorageConfigConsumersRespConsumer[]
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type DeleteStorageConfigReq = {
|
|
114
|
+
workspaceId?: number
|
|
115
|
+
name?: string
|
|
116
|
+
cluster?: string
|
|
117
|
+
namespace?: string
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type DeleteStorageConfigResp = {
|
|
121
|
+
message?: string
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export type UpdateStorageConfigResp = {
|
|
125
|
+
message?: string
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type StorageConfigItemStorageConfigStatus = {
|
|
129
|
+
lastUpdateTimestamp?: string
|
|
130
|
+
createTimestamp?: string
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type StorageConfigItem = {
|
|
134
|
+
spec?: CreateStorageConfigReq
|
|
135
|
+
status?: StorageConfigItemStorageConfigStatus
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type GetStorageConfigReq = {
|
|
139
|
+
workspaceId?: number
|
|
140
|
+
name?: string
|
|
141
|
+
namespace?: string
|
|
142
|
+
cluster?: string
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export type GetStorageConfigResp = {
|
|
146
|
+
item?: StorageConfigItem
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type GetStorageConfigListReq = {
|
|
150
|
+
page?: number
|
|
151
|
+
pageSize?: number
|
|
152
|
+
sortDir?: GetStorageConfigListReqSortDir
|
|
153
|
+
sortBy?: string
|
|
154
|
+
searchKey?: string
|
|
155
|
+
workspaceId?: number
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export type GetStorageConfigListResp = {
|
|
159
|
+
items?: StorageConfigItem[]
|
|
160
|
+
pagination?: CommonCommon.Pagination
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export class StorageConfig {
|
|
164
|
+
static GetStorageConfigParam(req: GetStorageConfigParamReq, initReq?: fm.InitReq): Promise<GetStorageConfigParamResp> {
|
|
165
|
+
return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/postgresql/v1alpha2/storage-config/param?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
166
|
+
}
|
|
167
|
+
static CreateStorageConfigBucketCheckJob(req: CreateStorageConfigBucketCheckJobReq, initReq?: fm.InitReq): Promise<CreateStorageConfigBucketCheckJobResp> {
|
|
168
|
+
return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/postgresql/v1alpha2/storage-config/bucket/check-job`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
169
|
+
}
|
|
170
|
+
static CreateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<CreateStorageConfigResp> {
|
|
171
|
+
return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/storage-config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
172
|
+
}
|
|
173
|
+
static GetStorageConfigConsumers(req: GetStorageConfigConsumersReq, initReq?: fm.InitReq): Promise<GetStorageConfigConsumersResp> {
|
|
174
|
+
return fm.fetchReq<GetStorageConfigConsumersReq, GetStorageConfigConsumersResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/storage-config/${req["name"]}/consumers?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
175
|
+
}
|
|
176
|
+
static DeleteStorageConfig(req: DeleteStorageConfigReq, initReq?: fm.InitReq): Promise<DeleteStorageConfigResp> {
|
|
177
|
+
return fm.fetchReq<DeleteStorageConfigReq, DeleteStorageConfigResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/storage-config/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
178
|
+
}
|
|
179
|
+
static UpdateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<UpdateStorageConfigResp> {
|
|
180
|
+
return fm.fetchReq<CreateStorageConfigReq, UpdateStorageConfigResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/storage-config/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
181
|
+
}
|
|
182
|
+
static GetStorageConfig(req: GetStorageConfigReq, initReq?: fm.InitReq): Promise<GetStorageConfigResp> {
|
|
183
|
+
return fm.fetchReq<GetStorageConfigReq, GetStorageConfigResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/storage-config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
184
|
+
}
|
|
185
|
+
static GetStorageConfigList(req: GetStorageConfigListReq, initReq?: fm.InitReq): Promise<GetStorageConfigListResp> {
|
|
186
|
+
return fm.fetchReq<GetStorageConfigListReq, GetStorageConfigListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/storage-configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
187
|
+
}
|
|
188
|
+
}
|
package/template.pb.ts
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
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
|
+
templateTypeMap?: {[key: string]: TemplateInstanceTypeList}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type GetTemplateConfigStringResp = {
|
|
60
|
+
conf?: string
|
|
61
|
+
fileName?: string
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type DeleteTemplateReq = {
|
|
65
|
+
workspaceId?: number
|
|
66
|
+
name?: string
|
|
67
|
+
version?: string
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type DeleteTemplateConfigResp = {
|
|
71
|
+
message?: string
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type CreateOrUpdateTemplateConfigResp = {
|
|
75
|
+
message?: string
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type GetTemplateConfigReq = {
|
|
79
|
+
page?: number
|
|
80
|
+
pageSize?: number
|
|
81
|
+
sortDir?: GetTemplateConfigReqSortDir
|
|
82
|
+
sortBy?: string
|
|
83
|
+
searchKey?: string
|
|
84
|
+
workspaceId?: number
|
|
85
|
+
name?: string
|
|
86
|
+
version?: string
|
|
87
|
+
templateType?: string
|
|
88
|
+
type?: string
|
|
89
|
+
createTimestamp?: string
|
|
90
|
+
templateInstanceType?: TemplateInstanceType
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type GetTemplateConfigStringReq = {
|
|
94
|
+
workspaceId?: number
|
|
95
|
+
name?: string
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type CreateTemplateConfigResp = {
|
|
99
|
+
message?: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type UpdateTemplateConfigResp = {
|
|
103
|
+
message?: string
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type CreateTemplateConfigReq = {
|
|
107
|
+
workspaceId?: number
|
|
108
|
+
targetName?: string
|
|
109
|
+
targetVersion?: string
|
|
110
|
+
targetType?: string
|
|
111
|
+
targetTemplateType?: string
|
|
112
|
+
targetConf?: string
|
|
113
|
+
fromTemplateName?: string
|
|
114
|
+
targetTemplateInstanceType?: TemplateInstanceType
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type UpdateTemplateConfigReq = {
|
|
118
|
+
workspaceId?: number
|
|
119
|
+
name?: string
|
|
120
|
+
version?: string
|
|
121
|
+
type?: string
|
|
122
|
+
templateType?: string
|
|
123
|
+
items?: TemplateConfigItem[]
|
|
124
|
+
conf?: string
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type GetTemplateConfigResp = {
|
|
128
|
+
data?: UpdateTemplateConfigReq
|
|
129
|
+
pagination?: CommonCommon.Pagination
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export type GetTemplateConfigListReq = {
|
|
133
|
+
page?: number
|
|
134
|
+
pageSize?: number
|
|
135
|
+
sortDir?: GetTemplateConfigListReqSortDir
|
|
136
|
+
sortBy?: string
|
|
137
|
+
searchKey?: string
|
|
138
|
+
workspaceId?: number
|
|
139
|
+
version?: string
|
|
140
|
+
templateInstanceType?: TemplateInstanceType
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type TemplateConfigItem = {
|
|
144
|
+
name?: string
|
|
145
|
+
default?: string
|
|
146
|
+
current?: string
|
|
147
|
+
value?: string
|
|
148
|
+
isNeedRestart?: boolean
|
|
149
|
+
valueType?: TemplateConfigItemValueType
|
|
150
|
+
valueRemarksZh?: string
|
|
151
|
+
valueRemarksEn?: string
|
|
152
|
+
updateTimestamp?: string
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export type GetTemplateConfigListResp = {
|
|
156
|
+
items?: GetTemplateConfigReq[]
|
|
157
|
+
pagination?: CommonCommon.Pagination
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type GetTemplateInstanceTypeListReq = {
|
|
161
|
+
workspaceId?: number
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export type TemplateInstanceTypeList = {
|
|
165
|
+
values?: TemplateInstanceType[]
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export type GetTemplateInstanceTypeListResp = {
|
|
169
|
+
type?: TemplateInstanceType[]
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export class Template {
|
|
173
|
+
static GetTemplateConfigList(req: GetTemplateConfigListReq, initReq?: fm.InitReq): Promise<GetTemplateConfigListResp> {
|
|
174
|
+
return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/template_config?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
175
|
+
}
|
|
176
|
+
static GetTemplateInstanceTypeList(req: GetTemplateInstanceTypeListReq, initReq?: fm.InitReq): Promise<GetTemplateInstanceTypeListResp> {
|
|
177
|
+
return fm.fetchReq<GetTemplateInstanceTypeListReq, GetTemplateInstanceTypeListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/template_instance_type?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
178
|
+
}
|
|
179
|
+
static GetTemplateConfig(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigResp> {
|
|
180
|
+
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/template_config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
181
|
+
}
|
|
182
|
+
static DeleteTemplateConfig(req: DeleteTemplateReq, initReq?: fm.InitReq): Promise<DeleteTemplateConfigResp> {
|
|
183
|
+
return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/template_config/${req["name"]}/${req["version"]}`, {...initReq, method: "DELETE"})
|
|
184
|
+
}
|
|
185
|
+
static CreateTemplateConfig(req: CreateTemplateConfigReq, initReq?: fm.InitReq): Promise<CreateTemplateConfigResp> {
|
|
186
|
+
return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/template_config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
187
|
+
}
|
|
188
|
+
static UpdateTemplateConfig(req: UpdateTemplateConfigReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigResp> {
|
|
189
|
+
return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
190
|
+
}
|
|
191
|
+
static GetTemplateConfigString(req: GetTemplateConfigStringReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
|
|
192
|
+
return fm.fetchReq<GetTemplateConfigStringReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
193
|
+
}
|
|
194
|
+
static UpdateTemplateConfigToItem(req: UpdateTemplateConfigToItemReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigToItemResp> {
|
|
195
|
+
return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/template_config/to_template`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
196
|
+
}
|
|
197
|
+
static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
|
|
198
|
+
return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
199
|
+
}
|
|
200
|
+
}
|
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/postgresql/
|
|
29
|
+
return fm.fetchReq<Empty, GetVersionReply>(`/apis/mcamel.io/postgresql/v1alpha2/postgresql/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
|
}
|