@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
package/postgresql.pb.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as CommonCommon from "./common.pb"
|
|
8
8
|
import * as fm from "./fetch.pb"
|
|
9
|
+
import * as TemplateTemplate from "./template.pb"
|
|
9
10
|
|
|
10
11
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
12
|
type OneOf<T> =
|
|
@@ -20,6 +21,81 @@ export enum Status {
|
|
|
20
21
|
Failed = "Failed",
|
|
21
22
|
Running = "Running",
|
|
22
23
|
Creating = "Creating",
|
|
24
|
+
Unknown = "Unknown",
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum GetPostgresqlTopologyRespNodePodStatus {
|
|
28
|
+
Pending = "Pending",
|
|
29
|
+
Running = "Running",
|
|
30
|
+
Succeeded = "Succeeded",
|
|
31
|
+
Failed = "Failed",
|
|
32
|
+
Unknown = "Unknown",
|
|
33
|
+
Terminating = "Terminating",
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export enum GetPostgresqlTopologyRespNodeRole {
|
|
37
|
+
RoleUnknown = "RoleUnknown",
|
|
38
|
+
Primary = "Primary",
|
|
39
|
+
Standby = "Standby",
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export enum GetPostgresqlTopologyRespNodeSyncState {
|
|
43
|
+
SyncStateUnknown = "SyncStateUnknown",
|
|
44
|
+
Sync = "Sync",
|
|
45
|
+
Async = "Async",
|
|
46
|
+
Potential = "Potential",
|
|
47
|
+
Quorum = "Quorum",
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export enum GetPostgresqlTopologyRespNodeState {
|
|
51
|
+
StateUnknown = "StateUnknown",
|
|
52
|
+
Startup = "Startup",
|
|
53
|
+
Catchup = "Catchup",
|
|
54
|
+
Streaming = "Streaming",
|
|
55
|
+
Backup = "Backup",
|
|
56
|
+
Stopping = "Stopping",
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export enum GetPostgresqlS3ConfigListReqSortDir {
|
|
60
|
+
ASC = "ASC",
|
|
61
|
+
DESC = "DESC",
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export enum GetPostgresqlBackupListReqSortDir {
|
|
65
|
+
ASC = "ASC",
|
|
66
|
+
DESC = "DESC",
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export enum GetPostgresqlBackupListRespPostgresqlBackupItemStatusStatus {
|
|
70
|
+
Running = "Running",
|
|
71
|
+
Failed = "Failed",
|
|
72
|
+
Succeeded = "Succeeded",
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export enum GetPostgresqlBackupListRespPostgresqlBackupItemStatusBackupType {
|
|
76
|
+
Full = "Full",
|
|
77
|
+
Incremental = "Incremental",
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export enum GetPostgresqlBackupListRespPostgresqlBackupItemStatusBackupMethod {
|
|
81
|
+
Manual = "Manual",
|
|
82
|
+
Auto = "Auto",
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export enum PostgresqlBackupItemStatusStatus {
|
|
86
|
+
Running = "Running",
|
|
87
|
+
Failed = "Failed",
|
|
88
|
+
Succeeded = "Succeeded",
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export enum PostgresqlBackupItemStatusBackupType {
|
|
92
|
+
Full = "Full",
|
|
93
|
+
Incremental = "Incremental",
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export enum PostgresqlBackupItemStatusBackupMethod {
|
|
97
|
+
Manual = "Manual",
|
|
98
|
+
Auto = "Auto",
|
|
23
99
|
}
|
|
24
100
|
|
|
25
101
|
export enum GetPostgresqlListReqSortDir {
|
|
@@ -52,8 +128,8 @@ export enum GetPostgresqlPodListRespPodStatus {
|
|
|
52
128
|
}
|
|
53
129
|
|
|
54
130
|
export enum GetPostgresqlPodListRespPodType {
|
|
55
|
-
|
|
56
|
-
|
|
131
|
+
Primary = "Primary",
|
|
132
|
+
Standby = "Standby",
|
|
57
133
|
PgAdmin = "PgAdmin",
|
|
58
134
|
}
|
|
59
135
|
|
|
@@ -67,10 +143,222 @@ export enum GetPostgresqlConfRespItemsParamType {
|
|
|
67
143
|
conf = "conf",
|
|
68
144
|
}
|
|
69
145
|
|
|
146
|
+
export enum PostgresqlItemStatusRestoreInitialStatus {
|
|
147
|
+
Unknown = "Unknown",
|
|
148
|
+
Running = "Running",
|
|
149
|
+
Failed = "Failed",
|
|
150
|
+
Succeeded = "Succeeded",
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type GetPostgresqlTopologyReq = {
|
|
154
|
+
cluster?: string
|
|
155
|
+
namespace?: string
|
|
156
|
+
name?: string
|
|
157
|
+
workspaceId?: number
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type GetPostgresqlTopologyRespNode = {
|
|
161
|
+
cluster?: string
|
|
162
|
+
namespace?: string
|
|
163
|
+
podName?: string
|
|
164
|
+
ip?: string
|
|
165
|
+
podStatus?: GetPostgresqlTopologyRespNodePodStatus
|
|
166
|
+
totalContainer?: number
|
|
167
|
+
totalContainerReady?: number
|
|
168
|
+
podCpuRequest?: string
|
|
169
|
+
podMemoryRequest?: string
|
|
170
|
+
podCpuLimit?: string
|
|
171
|
+
podMemoryLimit?: string
|
|
172
|
+
role?: GetPostgresqlTopologyRespNodeRole
|
|
173
|
+
syncState?: GetPostgresqlTopologyRespNodeSyncState
|
|
174
|
+
state?: GetPostgresqlTopologyRespNodeState
|
|
175
|
+
sentLsn?: string
|
|
176
|
+
writeLsn?: string
|
|
177
|
+
flushLsn?: string
|
|
178
|
+
replayLsn?: string
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export type GetPostgresqlTopologyRespEdges = {
|
|
182
|
+
source?: string
|
|
183
|
+
target?: string
|
|
184
|
+
properties?: {[key: string]: string}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export type GetPostgresqlTopologyResp = {
|
|
188
|
+
nodes?: GetPostgresqlTopologyRespNode[]
|
|
189
|
+
edges?: GetPostgresqlTopologyRespEdges[]
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type CreatePostgresqlRestoreReq = {
|
|
193
|
+
cluster?: string
|
|
194
|
+
namespace?: string
|
|
195
|
+
name?: string
|
|
196
|
+
backupName?: string
|
|
197
|
+
targetPostgresqlName?: string
|
|
198
|
+
targetPostgresqlNamespace?: string
|
|
199
|
+
targetPostgresqlCluster?: string
|
|
200
|
+
workspaceId?: number
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export type CreatePostgresqlRestoreResp = {
|
|
204
|
+
message?: string
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export type DeletePostgresqlBackupReq = {
|
|
208
|
+
cluster?: string
|
|
209
|
+
namespace?: string
|
|
210
|
+
name?: string
|
|
211
|
+
backupName?: string
|
|
212
|
+
removeRemoteBackup?: boolean
|
|
213
|
+
workspaceId?: number
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export type DeletePostgresqlBackupResp = {
|
|
217
|
+
message?: string
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export type CreateBucketExistCheckingReq = {
|
|
221
|
+
endpoint?: string
|
|
222
|
+
accessKey?: string
|
|
223
|
+
secretKey?: string
|
|
224
|
+
bucket?: string
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export type CreateBucketExistCheckingResp = {
|
|
228
|
+
message?: string
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export type UpdatePostgresqlS3ConfigReq = {
|
|
232
|
+
cluster?: string
|
|
233
|
+
namespace?: string
|
|
234
|
+
name?: string
|
|
235
|
+
description?: string
|
|
236
|
+
endpoint?: string
|
|
237
|
+
accessKey?: string
|
|
238
|
+
secretKey?: string
|
|
239
|
+
bucket?: string
|
|
240
|
+
retentionTime?: string
|
|
241
|
+
provider?: string
|
|
242
|
+
workspaceId?: number
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export type UpdatePostgresqlS3ConfigResp = {
|
|
246
|
+
message?: string
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export type GetPostgresqlS3ConfigListReq = {
|
|
250
|
+
page?: number
|
|
251
|
+
pageSize?: number
|
|
252
|
+
sortDir?: GetPostgresqlS3ConfigListReqSortDir
|
|
253
|
+
sortBy?: string
|
|
254
|
+
searchKey?: string
|
|
255
|
+
workspaceId?: number
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export type GetPostgresqlS3ConfigListRespGetPostgresqlS3ConfigItemsStatus = {
|
|
259
|
+
createTimestamp?: string
|
|
260
|
+
updateTimestamp?: string
|
|
261
|
+
backupPath?: string
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export type GetPostgresqlS3ConfigListRespGetPostgresqlS3ConfigItems = {
|
|
265
|
+
spec?: UpdatePostgresqlS3ConfigReq
|
|
266
|
+
status?: GetPostgresqlS3ConfigListRespGetPostgresqlS3ConfigItemsStatus
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export type GetPostgresqlS3ConfigListResp = {
|
|
270
|
+
items?: GetPostgresqlS3ConfigListRespGetPostgresqlS3ConfigItems[]
|
|
271
|
+
pagination?: CommonCommon.Pagination
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export type UpdatePostgresqlBackupConfigReq = {
|
|
275
|
+
cluster?: string
|
|
276
|
+
namespace?: string
|
|
277
|
+
name?: string
|
|
278
|
+
isOpenAutoBackup?: boolean
|
|
279
|
+
backupSchedule?: string
|
|
280
|
+
workspaceId?: number
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export type UpdatePostgresqlBackupConfigResp = {
|
|
284
|
+
message?: string
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export type GetPostgresqlBackupListReq = {
|
|
288
|
+
page?: number
|
|
289
|
+
pageSize?: number
|
|
290
|
+
sortDir?: GetPostgresqlBackupListReqSortDir
|
|
291
|
+
sortBy?: string
|
|
292
|
+
searchKey?: string
|
|
293
|
+
cluster?: string
|
|
294
|
+
namespace?: string
|
|
295
|
+
name?: string
|
|
296
|
+
workspaceId?: number
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export type GetPostgresqlBackupListRespPostgresqlBackupItemMetadata = {
|
|
300
|
+
creationTimestamp?: string
|
|
301
|
+
name?: string
|
|
302
|
+
namespace?: string
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export type GetPostgresqlBackupListRespPostgresqlBackupItemStatusJobCondition = {
|
|
306
|
+
type?: string
|
|
307
|
+
status?: string
|
|
308
|
+
reason?: string
|
|
309
|
+
message?: string
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export type GetPostgresqlBackupListRespPostgresqlBackupItemStatus = {
|
|
313
|
+
completionTimestamp?: string
|
|
314
|
+
startTime?: string
|
|
315
|
+
active?: number
|
|
316
|
+
succeeded?: number
|
|
317
|
+
failed?: number
|
|
318
|
+
conditions?: GetPostgresqlBackupListRespPostgresqlBackupItemStatusJobCondition[]
|
|
319
|
+
status?: GetPostgresqlBackupListRespPostgresqlBackupItemStatusStatus
|
|
320
|
+
backupType?: GetPostgresqlBackupListRespPostgresqlBackupItemStatusBackupType
|
|
321
|
+
backupMethod?: GetPostgresqlBackupListRespPostgresqlBackupItemStatusBackupMethod
|
|
322
|
+
storePath?: string
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export type GetPostgresqlBackupListRespPostgresqlBackupItem = {
|
|
326
|
+
metadata?: GetPostgresqlBackupListRespPostgresqlBackupItemMetadata
|
|
327
|
+
spec?: CreatePostgresqlBackupReq
|
|
328
|
+
status?: GetPostgresqlBackupListRespPostgresqlBackupItemStatus
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export type GetPostgresqlBackupListResp = {
|
|
332
|
+
items?: GetPostgresqlBackupListRespPostgresqlBackupItem[]
|
|
333
|
+
pagination?: CommonCommon.Pagination
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export type CreatePostgresqlBackupReq = {
|
|
337
|
+
cluster?: string
|
|
338
|
+
namespace?: string
|
|
339
|
+
name?: string
|
|
340
|
+
backupName?: string
|
|
341
|
+
workspaceId?: number
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export type CreatePostgresqlBackupResp = {
|
|
345
|
+
message?: string
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export type PostgresqlBackupItemStatus = {
|
|
349
|
+
status?: PostgresqlBackupItemStatusStatus
|
|
350
|
+
message?: string
|
|
351
|
+
backupUrl?: string
|
|
352
|
+
backupType?: PostgresqlBackupItemStatusBackupType
|
|
353
|
+
backupMethod?: PostgresqlBackupItemStatusBackupMethod
|
|
354
|
+
completionTimestamp?: string
|
|
355
|
+
}
|
|
356
|
+
|
|
70
357
|
export type GetPostgresqlUsersReq = {
|
|
71
358
|
cluster?: string
|
|
72
359
|
namespace?: string
|
|
73
360
|
name?: string
|
|
361
|
+
workspaceId?: number
|
|
74
362
|
}
|
|
75
363
|
|
|
76
364
|
export type GetPostgresqlUsersRespUserItem = {
|
|
@@ -93,6 +381,19 @@ export type GetPostgresqlListReq = {
|
|
|
93
381
|
filterNamespace?: string
|
|
94
382
|
}
|
|
95
383
|
|
|
384
|
+
export type GetAllVisibleWorkspacePostgresqlListReq = {
|
|
385
|
+
page?: number
|
|
386
|
+
pageSize?: number
|
|
387
|
+
searchKey?: string
|
|
388
|
+
filterCluster?: string
|
|
389
|
+
filterNamespaces?: string[]
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export type GetAllVisibleWorkspacePostgresqlListResp = {
|
|
393
|
+
items?: PostgresqlItem[]
|
|
394
|
+
pagination?: CommonCommon.Pagination
|
|
395
|
+
}
|
|
396
|
+
|
|
96
397
|
export type GetPostgresqlConfReq = {
|
|
97
398
|
page?: number
|
|
98
399
|
pageSize?: number
|
|
@@ -102,10 +403,12 @@ export type GetPostgresqlConfReq = {
|
|
|
102
403
|
cluster?: string
|
|
103
404
|
namespace?: string
|
|
104
405
|
name?: string
|
|
406
|
+
workspaceId?: number
|
|
105
407
|
}
|
|
106
408
|
|
|
107
409
|
export type GetPostgresqlParamReq = {
|
|
108
410
|
cluster?: string
|
|
411
|
+
workspaceId?: number
|
|
109
412
|
}
|
|
110
413
|
|
|
111
414
|
export type CreatePostgresqlReqPorts = {
|
|
@@ -138,6 +441,7 @@ export type CreatePostgresqlReq = {
|
|
|
138
441
|
memoryRequest?: string
|
|
139
442
|
memoryLimit?: string
|
|
140
443
|
conf?: string
|
|
444
|
+
confTemplateName?: string
|
|
141
445
|
isOpenPgAdmin?: boolean
|
|
142
446
|
pgAdminServiceType?: CommonCommon.ServiceType
|
|
143
447
|
pgAdminNodePort?: number
|
|
@@ -149,6 +453,8 @@ export type CreatePostgresqlReq = {
|
|
|
149
453
|
pgAdminDefaultEmail?: string
|
|
150
454
|
pgAdminDefaultPassword?: string
|
|
151
455
|
affinity?: CommonCommon.Affinity
|
|
456
|
+
backupConfig?: UpdatePostgresqlBackupConfigReq
|
|
457
|
+
accessWhitelist?: CommonCommon.AccessWhitelist
|
|
152
458
|
externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
|
|
153
459
|
lbTyp?: CommonCommon.LBTyp
|
|
154
460
|
lbPoolName?: string
|
|
@@ -157,6 +463,9 @@ export type CreatePostgresqlReq = {
|
|
|
157
463
|
pgAdminLbTyp?: CommonCommon.LBTyp
|
|
158
464
|
pgAdminLbPoolName?: string
|
|
159
465
|
pgAdminLbAddress?: string
|
|
466
|
+
initSourcePostgresqlClusterName?: string
|
|
467
|
+
initSourceBackupName?: string
|
|
468
|
+
tolerations?: CommonCommon.Toleration[]
|
|
160
469
|
}
|
|
161
470
|
|
|
162
471
|
export type UpdatePostgresqlConfReq = {
|
|
@@ -164,6 +473,9 @@ export type UpdatePostgresqlConfReq = {
|
|
|
164
473
|
namespace?: string
|
|
165
474
|
name?: string
|
|
166
475
|
conf?: string
|
|
476
|
+
confItems?: TemplateTemplate.TemplateConfigItem[]
|
|
477
|
+
reloadFromConfTemplateName?: string
|
|
478
|
+
workspaceId?: number
|
|
167
479
|
}
|
|
168
480
|
|
|
169
481
|
export type UpdatePostgresqlParamsResp = {
|
|
@@ -178,13 +490,6 @@ export type GetPostgresqlParamRespSelectDataStringValue = {
|
|
|
178
490
|
value?: string
|
|
179
491
|
}
|
|
180
492
|
|
|
181
|
-
export type GetPostgresqlParamRespSelectDataResourceValue = {
|
|
182
|
-
cpuRequest?: string
|
|
183
|
-
cpuLimit?: string
|
|
184
|
-
memoryRequest?: string
|
|
185
|
-
memoryLimit?: string
|
|
186
|
-
}
|
|
187
|
-
|
|
188
493
|
export type GetPostgresqlParamRespSelectDataIntValue = {
|
|
189
494
|
value?: number
|
|
190
495
|
}
|
|
@@ -199,7 +504,7 @@ type BaseGetPostgresqlParamRespSelectData = {
|
|
|
199
504
|
}
|
|
200
505
|
|
|
201
506
|
export type GetPostgresqlParamRespSelectData = BaseGetPostgresqlParamRespSelectData
|
|
202
|
-
& OneOf<{ sValue: GetPostgresqlParamRespSelectDataStringValue;
|
|
507
|
+
& OneOf<{ sValue: GetPostgresqlParamRespSelectDataStringValue; iValue: GetPostgresqlParamRespSelectDataIntValue; scValue: GetPostgresqlParamRespSelectDataStorageClassValue }>
|
|
203
508
|
|
|
204
509
|
export type GetPostgresqlParamRespSelect = {
|
|
205
510
|
selectType?: GetPostgresqlParamRespSelectSelectType
|
|
@@ -210,7 +515,6 @@ export type GetPostgresqlParamResp = {
|
|
|
210
515
|
version?: GetPostgresqlParamRespSelect
|
|
211
516
|
conf?: GetPostgresqlParamRespSelect
|
|
212
517
|
replicas?: GetPostgresqlParamRespSelect
|
|
213
|
-
resource?: GetPostgresqlParamRespSelect
|
|
214
518
|
storage?: GetPostgresqlParamRespSelect
|
|
215
519
|
}
|
|
216
520
|
|
|
@@ -240,10 +544,12 @@ export type DeletePostgresqlReq = {
|
|
|
240
544
|
cluster?: string
|
|
241
545
|
namespace?: string
|
|
242
546
|
name?: string
|
|
547
|
+
workspaceId?: number
|
|
243
548
|
}
|
|
244
549
|
|
|
245
550
|
export type DeletePostgresqlsReq = {
|
|
246
551
|
data?: DeletePostgresqlReq[]
|
|
552
|
+
workspaceId?: number
|
|
247
553
|
}
|
|
248
554
|
|
|
249
555
|
export type DeletePostgresqlResp = {
|
|
@@ -263,6 +569,7 @@ export type GetPostgresqlPodListReq = {
|
|
|
263
569
|
sortDir?: GetPostgresqlPodListReqSortDir
|
|
264
570
|
sortBy?: string
|
|
265
571
|
searchKey?: string
|
|
572
|
+
workspaceId?: number
|
|
266
573
|
}
|
|
267
574
|
|
|
268
575
|
export type GetPostgresqlPodListRespData = {
|
|
@@ -290,6 +597,9 @@ export type GetPostgresqlGrafanaAddrReq = {
|
|
|
290
597
|
cluster?: string
|
|
291
598
|
namespace?: string
|
|
292
599
|
name?: string
|
|
600
|
+
from?: string
|
|
601
|
+
to?: string
|
|
602
|
+
workspaceId?: number
|
|
293
603
|
}
|
|
294
604
|
|
|
295
605
|
export type GetPostgresqlGrafanaAddrResp = {
|
|
@@ -300,6 +610,7 @@ export type GetPostgresqlReq = {
|
|
|
300
610
|
cluster?: string
|
|
301
611
|
namespace?: string
|
|
302
612
|
name?: string
|
|
613
|
+
workspaceId?: number
|
|
303
614
|
}
|
|
304
615
|
|
|
305
616
|
export type GetPostgresqlResp = {
|
|
@@ -329,6 +640,8 @@ export type PostgresqlItemStatus = {
|
|
|
329
640
|
clusterIPs?: string[]
|
|
330
641
|
avgReplicationLagInBytes?: string
|
|
331
642
|
common?: CommonCommon.CommonItemStatus
|
|
643
|
+
isControl?: boolean
|
|
644
|
+
restoreInitialStatus?: PostgresqlItemStatusRestoreInitialStatus
|
|
332
645
|
}
|
|
333
646
|
|
|
334
647
|
export type PostgresqlItemMetadata = {
|
|
@@ -336,6 +649,7 @@ export type PostgresqlItemMetadata = {
|
|
|
336
649
|
creationTimestamp?: string
|
|
337
650
|
name?: string
|
|
338
651
|
namespace?: string
|
|
652
|
+
uid?: string
|
|
339
653
|
}
|
|
340
654
|
|
|
341
655
|
export type PostgresqlItem = {
|
|
@@ -346,44 +660,74 @@ export type PostgresqlItem = {
|
|
|
346
660
|
status?: PostgresqlItemStatus
|
|
347
661
|
}
|
|
348
662
|
|
|
349
|
-
export class
|
|
663
|
+
export class PostgresqlV2 {
|
|
350
664
|
static GetPostgresqlList(req: GetPostgresqlListReq, initReq?: fm.InitReq): Promise<GetPostgresqlListResp> {
|
|
351
|
-
return fm.fetchReq<GetPostgresqlListReq, GetPostgresqlListResp>(`/apis/mcamel.io/postgresql/
|
|
665
|
+
return fm.fetchReq<GetPostgresqlListReq, GetPostgresqlListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresqls?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
666
|
+
}
|
|
667
|
+
static GetAllVisibleWorkspacePostgresqlList(req: GetAllVisibleWorkspacePostgresqlListReq, initReq?: fm.InitReq): Promise<GetAllVisibleWorkspacePostgresqlListResp> {
|
|
668
|
+
return fm.fetchReq<GetAllVisibleWorkspacePostgresqlListReq, GetAllVisibleWorkspacePostgresqlListResp>(`/apis/mcamel.io/postgresql/v1alpha2/postgresqls?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
352
669
|
}
|
|
353
670
|
static GetPostgresqlOperatorVersionList(req: GetPostgresqlOperatorVersionListReq, initReq?: fm.InitReq): Promise<GetPostgresqlOperatorVersionListResp> {
|
|
354
|
-
return fm.fetchReq<GetPostgresqlOperatorVersionListReq, GetPostgresqlOperatorVersionListResp>(`/apis/mcamel.io/postgresql/
|
|
671
|
+
return fm.fetchReq<GetPostgresqlOperatorVersionListReq, GetPostgresqlOperatorVersionListResp>(`/apis/mcamel.io/postgresql/v1alpha2/postgres-operator/versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
355
672
|
}
|
|
356
673
|
static GetPostgresql(req: GetPostgresqlReq, initReq?: fm.InitReq): Promise<GetPostgresqlResp> {
|
|
357
|
-
return fm.fetchReq<GetPostgresqlReq, GetPostgresqlResp>(`/apis/mcamel.io/postgresql/
|
|
674
|
+
return fm.fetchReq<GetPostgresqlReq, GetPostgresqlResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
358
675
|
}
|
|
359
676
|
static GetPostgresqlParam(req: GetPostgresqlParamReq, initReq?: fm.InitReq): Promise<GetPostgresqlParamResp> {
|
|
360
|
-
return fm.fetchReq<GetPostgresqlParamReq, GetPostgresqlParamResp>(`/apis/mcamel.io/postgresql/
|
|
677
|
+
return fm.fetchReq<GetPostgresqlParamReq, GetPostgresqlParamResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql-params/${req["cluster"]}?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
361
678
|
}
|
|
362
679
|
static GetPostgresqlPodList(req: GetPostgresqlPodListReq, initReq?: fm.InitReq): Promise<GetPostgresqlPodListResp> {
|
|
363
|
-
return fm.fetchReq<GetPostgresqlPodListReq, GetPostgresqlPodListResp>(`/apis/mcamel.io/postgresql/
|
|
680
|
+
return fm.fetchReq<GetPostgresqlPodListReq, GetPostgresqlPodListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/pods?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
364
681
|
}
|
|
365
682
|
static GetPostgresqlGrafanaAddr(req: GetPostgresqlGrafanaAddrReq, initReq?: fm.InitReq): Promise<GetPostgresqlGrafanaAddrResp> {
|
|
366
|
-
return fm.fetchReq<GetPostgresqlGrafanaAddrReq, GetPostgresqlGrafanaAddrResp>(`/apis/mcamel.io/postgresql/
|
|
683
|
+
return fm.fetchReq<GetPostgresqlGrafanaAddrReq, GetPostgresqlGrafanaAddrResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/grafana?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
367
684
|
}
|
|
368
685
|
static CreatePostgresql(req: CreatePostgresqlReq, initReq?: fm.InitReq): Promise<CreatePostgresqlResp> {
|
|
369
|
-
return fm.fetchReq<CreatePostgresqlReq, CreatePostgresqlResp>(`/apis/mcamel.io/postgresql/
|
|
686
|
+
return fm.fetchReq<CreatePostgresqlReq, CreatePostgresqlResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
370
687
|
}
|
|
371
688
|
static GetPostgresqlConfs(req: GetPostgresqlConfReq, initReq?: fm.InitReq): Promise<GetPostgresqlConfResp> {
|
|
372
|
-
return fm.fetchReq<GetPostgresqlConfReq, GetPostgresqlConfResp>(`/apis/mcamel.io/postgresql/
|
|
689
|
+
return fm.fetchReq<GetPostgresqlConfReq, GetPostgresqlConfResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/confs?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
373
690
|
}
|
|
374
691
|
static UpdatePostgresqlConf(req: UpdatePostgresqlConfReq, initReq?: fm.InitReq): Promise<UpdatePostgresqlConfResp> {
|
|
375
|
-
return fm.fetchReq<UpdatePostgresqlConfReq, UpdatePostgresqlConfResp>(`/apis/mcamel.io/postgresql/
|
|
692
|
+
return fm.fetchReq<UpdatePostgresqlConfReq, UpdatePostgresqlConfResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/conf`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
376
693
|
}
|
|
377
694
|
static UpdatePostgresqlParams(req: CreatePostgresqlReq, initReq?: fm.InitReq): Promise<UpdatePostgresqlParamsResp> {
|
|
378
|
-
return fm.fetchReq<CreatePostgresqlReq, UpdatePostgresqlParamsResp>(`/apis/mcamel.io/postgresql/
|
|
695
|
+
return fm.fetchReq<CreatePostgresqlReq, UpdatePostgresqlParamsResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/params`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
379
696
|
}
|
|
380
697
|
static DeletePostgresql(req: DeletePostgresqlReq, initReq?: fm.InitReq): Promise<DeletePostgresqlResp> {
|
|
381
|
-
return fm.fetchReq<DeletePostgresqlReq, DeletePostgresqlResp>(`/apis/mcamel.io/postgresql/
|
|
698
|
+
return fm.fetchReq<DeletePostgresqlReq, DeletePostgresqlResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
382
699
|
}
|
|
383
700
|
static DeletePostgresqls(req: DeletePostgresqlsReq, initReq?: fm.InitReq): Promise<DeletePostgresqlsResp> {
|
|
384
|
-
return fm.fetchReq<DeletePostgresqlsReq, DeletePostgresqlsResp>(`/apis/mcamel.io/postgresql/
|
|
701
|
+
return fm.fetchReq<DeletePostgresqlsReq, DeletePostgresqlsResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresqls`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
385
702
|
}
|
|
386
703
|
static GetPostgresqlUsers(req: GetPostgresqlUsersReq, initReq?: fm.InitReq): Promise<GetPostgresqlUsersResp> {
|
|
387
|
-
return fm.fetchReq<GetPostgresqlUsersReq, GetPostgresqlUsersResp>(`/apis/mcamel.io/postgresql/
|
|
704
|
+
return fm.fetchReq<GetPostgresqlUsersReq, GetPostgresqlUsersResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/users?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
705
|
+
}
|
|
706
|
+
static GetPostgresqlBackupList(req: GetPostgresqlBackupListReq, initReq?: fm.InitReq): Promise<GetPostgresqlBackupListResp> {
|
|
707
|
+
return fm.fetchReq<GetPostgresqlBackupListReq, GetPostgresqlBackupListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backups?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
708
|
+
}
|
|
709
|
+
static CreatePostgresqlBackup(req: CreatePostgresqlBackupReq, initReq?: fm.InitReq): Promise<CreatePostgresqlBackupResp> {
|
|
710
|
+
return fm.fetchReq<CreatePostgresqlBackupReq, CreatePostgresqlBackupResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
711
|
+
}
|
|
712
|
+
static CreatePostgresqlRestore(req: CreatePostgresqlRestoreReq, initReq?: fm.InitReq): Promise<CreatePostgresqlRestoreResp> {
|
|
713
|
+
return fm.fetchReq<CreatePostgresqlRestoreReq, CreatePostgresqlRestoreResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/restore`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
714
|
+
}
|
|
715
|
+
static DeletePostgresqlBackup(req: DeletePostgresqlBackupReq, initReq?: fm.InitReq): Promise<DeletePostgresqlBackupResp> {
|
|
716
|
+
return fm.fetchReq<DeletePostgresqlBackupReq, DeletePostgresqlBackupResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/backups/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup/${req["backupName"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
|
|
717
|
+
}
|
|
718
|
+
static UpdatePostgresqlBackupConfig(req: UpdatePostgresqlBackupConfigReq, initReq?: fm.InitReq): Promise<UpdatePostgresqlBackupConfigResp> {
|
|
719
|
+
return fm.fetchReq<UpdatePostgresqlBackupConfigReq, UpdatePostgresqlBackupConfigResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup/config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
720
|
+
}
|
|
721
|
+
static GetPostgresqlS3ConfigList(req: GetPostgresqlS3ConfigListReq, initReq?: fm.InitReq): Promise<GetPostgresqlS3ConfigListResp> {
|
|
722
|
+
return fm.fetchReq<GetPostgresqlS3ConfigListReq, GetPostgresqlS3ConfigListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/s3/configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
723
|
+
}
|
|
724
|
+
static UpdatePostgresqlS3Config(req: UpdatePostgresqlS3ConfigReq, initReq?: fm.InitReq): Promise<UpdatePostgresqlS3ConfigResp> {
|
|
725
|
+
return fm.fetchReq<UpdatePostgresqlS3ConfigReq, UpdatePostgresqlS3ConfigResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/s3/config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
726
|
+
}
|
|
727
|
+
static CreateBucketExistChecking(req: CreateBucketExistCheckingReq, initReq?: fm.InitReq): Promise<CreateBucketExistCheckingResp> {
|
|
728
|
+
return fm.fetchReq<CreateBucketExistCheckingReq, CreateBucketExistCheckingResp>(`/apis/mcamel.io/postgresql/v1alpha2/postgresql/s3/config/checking`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
729
|
+
}
|
|
730
|
+
static GetPostgresqlTopology(req: GetPostgresqlTopologyReq, initReq?: fm.InitReq): Promise<GetPostgresqlTopologyResp> {
|
|
731
|
+
return fm.fetchReq<GetPostgresqlTopologyReq, GetPostgresqlTopologyResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/topology?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
388
732
|
}
|
|
389
733
|
}
|