@daocloud-proto/mcamel-postgresql 0.0.2-66 → 0.0.2-661-g6b7dbf29

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/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
- Master = "Master",
56
- Replica = "Replica",
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 = {
@@ -102,10 +390,12 @@ export type GetPostgresqlConfReq = {
102
390
  cluster?: string
103
391
  namespace?: string
104
392
  name?: string
393
+ workspaceId?: number
105
394
  }
106
395
 
107
396
  export type GetPostgresqlParamReq = {
108
397
  cluster?: string
398
+ workspaceId?: number
109
399
  }
110
400
 
111
401
  export type CreatePostgresqlReqPorts = {
@@ -138,6 +428,7 @@ export type CreatePostgresqlReq = {
138
428
  memoryRequest?: string
139
429
  memoryLimit?: string
140
430
  conf?: string
431
+ confTemplateName?: string
141
432
  isOpenPgAdmin?: boolean
142
433
  pgAdminServiceType?: CommonCommon.ServiceType
143
434
  pgAdminNodePort?: number
@@ -149,6 +440,8 @@ export type CreatePostgresqlReq = {
149
440
  pgAdminDefaultEmail?: string
150
441
  pgAdminDefaultPassword?: string
151
442
  affinity?: CommonCommon.Affinity
443
+ backupConfig?: UpdatePostgresqlBackupConfigReq
444
+ accessWhitelist?: CommonCommon.AccessWhitelist
152
445
  externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
153
446
  lbTyp?: CommonCommon.LBTyp
154
447
  lbPoolName?: string
@@ -157,6 +450,9 @@ export type CreatePostgresqlReq = {
157
450
  pgAdminLbTyp?: CommonCommon.LBTyp
158
451
  pgAdminLbPoolName?: string
159
452
  pgAdminLbAddress?: string
453
+ initSourcePostgresqlClusterName?: string
454
+ initSourceBackupName?: string
455
+ tolerations?: CommonCommon.Toleration[]
160
456
  }
161
457
 
162
458
  export type UpdatePostgresqlConfReq = {
@@ -164,6 +460,9 @@ export type UpdatePostgresqlConfReq = {
164
460
  namespace?: string
165
461
  name?: string
166
462
  conf?: string
463
+ confItems?: TemplateTemplate.TemplateConfigItem[]
464
+ reloadFromConfTemplateName?: string
465
+ workspaceId?: number
167
466
  }
168
467
 
169
468
  export type UpdatePostgresqlParamsResp = {
@@ -178,13 +477,6 @@ export type GetPostgresqlParamRespSelectDataStringValue = {
178
477
  value?: string
179
478
  }
180
479
 
181
- export type GetPostgresqlParamRespSelectDataResourceValue = {
182
- cpuRequest?: string
183
- cpuLimit?: string
184
- memoryRequest?: string
185
- memoryLimit?: string
186
- }
187
-
188
480
  export type GetPostgresqlParamRespSelectDataIntValue = {
189
481
  value?: number
190
482
  }
@@ -199,7 +491,7 @@ type BaseGetPostgresqlParamRespSelectData = {
199
491
  }
200
492
 
201
493
  export type GetPostgresqlParamRespSelectData = BaseGetPostgresqlParamRespSelectData
202
- & OneOf<{ sValue: GetPostgresqlParamRespSelectDataStringValue; rValue: GetPostgresqlParamRespSelectDataResourceValue; iValue: GetPostgresqlParamRespSelectDataIntValue; scValue: GetPostgresqlParamRespSelectDataStorageClassValue }>
494
+ & OneOf<{ sValue: GetPostgresqlParamRespSelectDataStringValue; iValue: GetPostgresqlParamRespSelectDataIntValue; scValue: GetPostgresqlParamRespSelectDataStorageClassValue }>
203
495
 
204
496
  export type GetPostgresqlParamRespSelect = {
205
497
  selectType?: GetPostgresqlParamRespSelectSelectType
@@ -210,7 +502,6 @@ export type GetPostgresqlParamResp = {
210
502
  version?: GetPostgresqlParamRespSelect
211
503
  conf?: GetPostgresqlParamRespSelect
212
504
  replicas?: GetPostgresqlParamRespSelect
213
- resource?: GetPostgresqlParamRespSelect
214
505
  storage?: GetPostgresqlParamRespSelect
215
506
  }
216
507
 
@@ -240,10 +531,12 @@ export type DeletePostgresqlReq = {
240
531
  cluster?: string
241
532
  namespace?: string
242
533
  name?: string
534
+ workspaceId?: number
243
535
  }
244
536
 
245
537
  export type DeletePostgresqlsReq = {
246
538
  data?: DeletePostgresqlReq[]
539
+ workspaceId?: number
247
540
  }
248
541
 
249
542
  export type DeletePostgresqlResp = {
@@ -263,6 +556,7 @@ export type GetPostgresqlPodListReq = {
263
556
  sortDir?: GetPostgresqlPodListReqSortDir
264
557
  sortBy?: string
265
558
  searchKey?: string
559
+ workspaceId?: number
266
560
  }
267
561
 
268
562
  export type GetPostgresqlPodListRespData = {
@@ -290,6 +584,9 @@ export type GetPostgresqlGrafanaAddrReq = {
290
584
  cluster?: string
291
585
  namespace?: string
292
586
  name?: string
587
+ from?: string
588
+ to?: string
589
+ workspaceId?: number
293
590
  }
294
591
 
295
592
  export type GetPostgresqlGrafanaAddrResp = {
@@ -300,6 +597,7 @@ export type GetPostgresqlReq = {
300
597
  cluster?: string
301
598
  namespace?: string
302
599
  name?: string
600
+ workspaceId?: number
303
601
  }
304
602
 
305
603
  export type GetPostgresqlResp = {
@@ -329,6 +627,8 @@ export type PostgresqlItemStatus = {
329
627
  clusterIPs?: string[]
330
628
  avgReplicationLagInBytes?: string
331
629
  common?: CommonCommon.CommonItemStatus
630
+ isControl?: boolean
631
+ restoreInitialStatus?: PostgresqlItemStatusRestoreInitialStatus
332
632
  }
333
633
 
334
634
  export type PostgresqlItemMetadata = {
@@ -336,6 +636,7 @@ export type PostgresqlItemMetadata = {
336
636
  creationTimestamp?: string
337
637
  name?: string
338
638
  namespace?: string
639
+ uid?: string
339
640
  }
340
641
 
341
642
  export type PostgresqlItem = {
@@ -346,44 +647,71 @@ export type PostgresqlItem = {
346
647
  status?: PostgresqlItemStatus
347
648
  }
348
649
 
349
- export class Postgresql {
650
+ export class PostgresqlV2 {
350
651
  static GetPostgresqlList(req: GetPostgresqlListReq, initReq?: fm.InitReq): Promise<GetPostgresqlListResp> {
351
- return fm.fetchReq<GetPostgresqlListReq, GetPostgresqlListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/postgresqls?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
652
+ return fm.fetchReq<GetPostgresqlListReq, GetPostgresqlListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresqls?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
352
653
  }
353
654
  static GetPostgresqlOperatorVersionList(req: GetPostgresqlOperatorVersionListReq, initReq?: fm.InitReq): Promise<GetPostgresqlOperatorVersionListResp> {
354
- return fm.fetchReq<GetPostgresqlOperatorVersionListReq, GetPostgresqlOperatorVersionListResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgres-operator/versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
655
+ return fm.fetchReq<GetPostgresqlOperatorVersionListReq, GetPostgresqlOperatorVersionListResp>(`/apis/mcamel.io/postgresql/v1alpha2/postgres-operator/versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
355
656
  }
356
657
  static GetPostgresql(req: GetPostgresqlReq, initReq?: fm.InitReq): Promise<GetPostgresqlResp> {
357
- return fm.fetchReq<GetPostgresqlReq, GetPostgresqlResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
658
+ 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
659
  }
359
660
  static GetPostgresqlParam(req: GetPostgresqlParamReq, initReq?: fm.InitReq): Promise<GetPostgresqlParamResp> {
360
- return fm.fetchReq<GetPostgresqlParamReq, GetPostgresqlParamResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql-params/${req["cluster"]}?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
661
+ 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
662
  }
362
663
  static GetPostgresqlPodList(req: GetPostgresqlPodListReq, initReq?: fm.InitReq): Promise<GetPostgresqlPodListResp> {
363
- return fm.fetchReq<GetPostgresqlPodListReq, GetPostgresqlPodListResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/pods?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
664
+ 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
665
  }
365
666
  static GetPostgresqlGrafanaAddr(req: GetPostgresqlGrafanaAddrReq, initReq?: fm.InitReq): Promise<GetPostgresqlGrafanaAddrResp> {
366
- return fm.fetchReq<GetPostgresqlGrafanaAddrReq, GetPostgresqlGrafanaAddrResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/grafana?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
667
+ 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
668
  }
368
669
  static CreatePostgresql(req: CreatePostgresqlReq, initReq?: fm.InitReq): Promise<CreatePostgresqlResp> {
369
- return fm.fetchReq<CreatePostgresqlReq, CreatePostgresqlResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql`, {...initReq, method: "POST", body: JSON.stringify(req)})
670
+ return fm.fetchReq<CreatePostgresqlReq, CreatePostgresqlResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql`, {...initReq, method: "POST", body: JSON.stringify(req)})
370
671
  }
371
672
  static GetPostgresqlConfs(req: GetPostgresqlConfReq, initReq?: fm.InitReq): Promise<GetPostgresqlConfResp> {
372
- return fm.fetchReq<GetPostgresqlConfReq, GetPostgresqlConfResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/confs?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
673
+ 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
674
  }
374
675
  static UpdatePostgresqlConf(req: UpdatePostgresqlConfReq, initReq?: fm.InitReq): Promise<UpdatePostgresqlConfResp> {
375
- return fm.fetchReq<UpdatePostgresqlConfReq, UpdatePostgresqlConfResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/conf`, {...initReq, method: "PUT", body: JSON.stringify(req)})
676
+ 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
677
  }
377
678
  static UpdatePostgresqlParams(req: CreatePostgresqlReq, initReq?: fm.InitReq): Promise<UpdatePostgresqlParamsResp> {
378
- return fm.fetchReq<CreatePostgresqlReq, UpdatePostgresqlParamsResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/params`, {...initReq, method: "PUT", body: JSON.stringify(req)})
679
+ 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
680
  }
380
681
  static DeletePostgresql(req: DeletePostgresqlReq, initReq?: fm.InitReq): Promise<DeletePostgresqlResp> {
381
- return fm.fetchReq<DeletePostgresqlReq, DeletePostgresqlResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
682
+ return fm.fetchReq<DeletePostgresqlReq, DeletePostgresqlResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
382
683
  }
383
684
  static DeletePostgresqls(req: DeletePostgresqlsReq, initReq?: fm.InitReq): Promise<DeletePostgresqlsResp> {
384
- return fm.fetchReq<DeletePostgresqlsReq, DeletePostgresqlsResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresqls`, {...initReq, method: "POST", body: JSON.stringify(req)})
685
+ return fm.fetchReq<DeletePostgresqlsReq, DeletePostgresqlsResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresqls`, {...initReq, method: "POST", body: JSON.stringify(req)})
385
686
  }
386
687
  static GetPostgresqlUsers(req: GetPostgresqlUsersReq, initReq?: fm.InitReq): Promise<GetPostgresqlUsersResp> {
387
- return fm.fetchReq<GetPostgresqlUsersReq, GetPostgresqlUsersResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/users?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
688
+ 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"})
689
+ }
690
+ static GetPostgresqlBackupList(req: GetPostgresqlBackupListReq, initReq?: fm.InitReq): Promise<GetPostgresqlBackupListResp> {
691
+ 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"})
692
+ }
693
+ static CreatePostgresqlBackup(req: CreatePostgresqlBackupReq, initReq?: fm.InitReq): Promise<CreatePostgresqlBackupResp> {
694
+ 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)})
695
+ }
696
+ static CreatePostgresqlRestore(req: CreatePostgresqlRestoreReq, initReq?: fm.InitReq): Promise<CreatePostgresqlRestoreResp> {
697
+ 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)})
698
+ }
699
+ static DeletePostgresqlBackup(req: DeletePostgresqlBackupReq, initReq?: fm.InitReq): Promise<DeletePostgresqlBackupResp> {
700
+ 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)})
701
+ }
702
+ static UpdatePostgresqlBackupConfig(req: UpdatePostgresqlBackupConfigReq, initReq?: fm.InitReq): Promise<UpdatePostgresqlBackupConfigResp> {
703
+ 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)})
704
+ }
705
+ static GetPostgresqlS3ConfigList(req: GetPostgresqlS3ConfigListReq, initReq?: fm.InitReq): Promise<GetPostgresqlS3ConfigListResp> {
706
+ return fm.fetchReq<GetPostgresqlS3ConfigListReq, GetPostgresqlS3ConfigListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/s3/configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
707
+ }
708
+ static UpdatePostgresqlS3Config(req: UpdatePostgresqlS3ConfigReq, initReq?: fm.InitReq): Promise<UpdatePostgresqlS3ConfigResp> {
709
+ 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)})
710
+ }
711
+ static CreateBucketExistChecking(req: CreateBucketExistCheckingReq, initReq?: fm.InitReq): Promise<CreateBucketExistCheckingResp> {
712
+ return fm.fetchReq<CreateBucketExistCheckingReq, CreateBucketExistCheckingResp>(`/apis/mcamel.io/postgresql/v1alpha2/postgresql/s3/config/checking`, {...initReq, method: "PUT", body: JSON.stringify(req)})
713
+ }
714
+ static GetPostgresqlTopology(req: GetPostgresqlTopologyReq, initReq?: fm.InitReq): Promise<GetPostgresqlTopologyResp> {
715
+ 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
716
  }
389
717
  }