@daocloud-proto/mcamel-postgresql 0.0.2-23 → 0.0.2-231

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 CHANGED
@@ -7,12 +7,42 @@
7
7
  import * as CommonCommon from "./common.pb"
8
8
  import * as fm from "./fetch.pb"
9
9
 
10
+ export enum PermissionsType {
11
+ None = "None",
12
+ GetInstance = "GetInstance",
13
+ CreateInstance = "CreateInstance",
14
+ UpdateInstance = "UpdateInstance",
15
+ DeleteInstance = "DeleteInstance",
16
+ GetMetric = "GetMetric",
17
+ GetInstanceLog = "GetInstanceLog",
18
+ GetConfig = "GetConfig",
19
+ UpdateConfig = "UpdateConfig",
20
+ GetBackup = "GetBackup",
21
+ CreateBackup = "CreateBackup",
22
+ UpdateBackup = "UpdateBackup",
23
+ DeleteBackup = "DeleteBackup",
24
+ GetBackupConf = "GetBackupConf",
25
+ CreateBackupConf = "CreateBackupConf",
26
+ UpdateBackupConf = "UpdateBackupConf",
27
+ DeleteBackupConf = "DeleteBackupConf",
28
+ GetTemplate = "GetTemplate",
29
+ CreateTemplate = "CreateTemplate",
30
+ UpdateTemplate = "UpdateTemplate",
31
+ DeleteTemplate = "DeleteTemplate",
32
+ }
33
+
10
34
  export enum EventType {
11
35
  EVENT_TYPE_UNSPECIFIED = "EVENT_TYPE_UNSPECIFIED",
12
36
  Normal = "Normal",
13
37
  Warning = "Warning",
14
38
  }
15
39
 
40
+ export enum GetClusterRespNetworkMode {
41
+ Unknown = "Unknown",
42
+ Flannel = "Flannel",
43
+ Calico = "Calico",
44
+ }
45
+
16
46
  export enum GetAllEventListReqSortDir {
17
47
  ASC = "ASC",
18
48
  DESC = "DESC",
@@ -33,6 +63,63 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
33
63
  Install = "Install",
34
64
  }
35
65
 
66
+ export type GetClusterReq = {
67
+ cluster?: string
68
+ }
69
+
70
+ export type GetClusterRespMetadata = {
71
+ name?: string
72
+ }
73
+
74
+ export type GetClusterRespStatus = {
75
+ networkMode?: GetClusterRespNetworkMode[]
76
+ }
77
+
78
+ export type GetClusterResp = {
79
+ metadata?: GetClusterRespMetadata
80
+ status?: GetClusterRespStatus
81
+ }
82
+
83
+ export type GetPermissionsListReq = {
84
+ workspaceId?: number
85
+ }
86
+
87
+ export type GetPermissionsListRespPermissions = {
88
+ getInstance?: boolean
89
+ createInstance?: boolean
90
+ updateInstance?: boolean
91
+ deleteInstance?: boolean
92
+ getMetric?: boolean
93
+ getInstanceLog?: boolean
94
+ getConfig?: boolean
95
+ updateConfig?: boolean
96
+ getBackup?: boolean
97
+ createBackup?: boolean
98
+ updateBackup?: boolean
99
+ deleteBackup?: boolean
100
+ getBackupConf?: boolean
101
+ createBackupConf?: boolean
102
+ updateBackupConf?: boolean
103
+ deleteBackupConf?: boolean
104
+ getTemplate?: boolean
105
+ createTemplate?: boolean
106
+ updateTemplate?: boolean
107
+ deleteTemplate?: boolean
108
+ }
109
+
110
+ export type GetPermissionsListResp = {
111
+ permissionsBool?: GetPermissionsListRespPermissions
112
+ permissions?: PermissionsType[]
113
+ }
114
+
115
+ export type GetAllEventKindsListResp = {
116
+ data?: string[]
117
+ }
118
+
119
+ export type GetAllEventKindsListReq = {
120
+ cluster?: string
121
+ }
122
+
36
123
  export type GetAllEventListReq = {
37
124
  page?: number
38
125
  pageSize?: number
@@ -43,6 +130,7 @@ export type GetAllEventListReq = {
43
130
  namespace?: string
44
131
  name?: string
45
132
  eventType?: EventType
133
+ kindName?: string
46
134
  }
47
135
 
48
136
  export type GetAllEventListRespItemsSource = {
@@ -102,6 +190,24 @@ export type GetClusterNodeLabelListResp = {
102
190
  pagination?: CommonCommon.Pagination
103
191
  }
104
192
 
193
+ export type GetClusterPodLabelListReq = {
194
+ page?: number
195
+ pageSize?: number
196
+ searchKey?: string
197
+ filterNamespace?: string
198
+ cluster?: string
199
+ }
200
+
201
+ export type GetClusterPodLabelListRespLabel = {
202
+ key?: string
203
+ value?: string[]
204
+ }
205
+
206
+ export type GetClusterPodLabelListResp = {
207
+ items?: GetClusterPodLabelListRespLabel[]
208
+ pagination?: CommonCommon.Pagination
209
+ }
210
+
105
211
  export type GetClusterNodePortListReq = {
106
212
  cluster?: string
107
213
  }
@@ -174,6 +280,7 @@ export type GetWorkspaceListReq = {
174
280
  export type GetWorkspaceListRespItem = {
175
281
  workspaceId?: number
176
282
  alias?: string
283
+ visible?: boolean
177
284
  }
178
285
 
179
286
  export type GetWorkspaceListResp = {
@@ -212,6 +319,9 @@ export class Cluster {
212
319
  static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
213
320
  return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
214
321
  }
322
+ static GetCluster(req: GetClusterReq, initReq?: fm.InitReq): Promise<GetClusterResp> {
323
+ return fm.fetchReq<GetClusterReq, GetClusterResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
324
+ }
215
325
  static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
216
326
  return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
217
327
  }
@@ -221,6 +331,9 @@ export class Cluster {
221
331
  static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
222
332
  return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
223
333
  }
334
+ static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
335
+ return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
336
+ }
224
337
  static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
225
338
  return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/postgresql/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
226
339
  }
@@ -233,7 +346,13 @@ export class Cluster {
233
346
  static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
234
347
  return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
235
348
  }
349
+ static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
350
+ return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
351
+ }
236
352
  static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
237
353
  return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
238
354
  }
355
+ static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
356
+ return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
357
+ }
239
358
  }
package/common.pb.ts CHANGED
@@ -145,10 +145,14 @@ export type PodCommon = {
145
145
  cpuLimit?: number
146
146
  memoryUsage?: number
147
147
  memoryLimit?: number
148
+ pvUsedInGb?: number
149
+ pvAllocatedInGb?: number
148
150
  conditions?: PodCommonCondition[]
149
151
  containersName?: string[]
150
152
  ownerReference?: OwnerReference[]
151
153
  initContainersName?: string[]
154
+ initContainersStatuses?: ContainerStatus[]
155
+ containersStatuses?: ContainerStatus[]
152
156
  }
153
157
 
154
158
  export type OwnerReference = {
@@ -162,4 +166,50 @@ export type CommonItemStatus = {
162
166
  serviceAddresses?: string[]
163
167
  webManagerAddress?: string
164
168
  webLogAddress?: string
169
+ avgPvAllocatedInGb?: number
170
+ avgPvUsedInGb?: number
171
+ }
172
+
173
+ export type AccessWhitelistInternal = {
174
+ namespace?: string
175
+ podSelector?: {[key: string]: string}
176
+ }
177
+
178
+ export type AccessWhitelistExternal = {
179
+ cidr?: string
180
+ ip?: string
181
+ }
182
+
183
+ export type AccessWhitelist = {
184
+ internals?: AccessWhitelistInternal[]
185
+ externals?: AccessWhitelistExternal[]
186
+ }
187
+
188
+ export type ContainerStatus = {
189
+ name?: string
190
+ state?: ContainerState
191
+ }
192
+
193
+ export type ContainerState = {
194
+ waiting?: ContainerStateWaiting
195
+ running?: ContainerStateRunning
196
+ terminated?: ContainerStateTerminated
197
+ }
198
+
199
+ export type ContainerStateWaiting = {
200
+ reason?: string
201
+ message?: string
202
+ }
203
+
204
+ export type ContainerStateRunning = {
205
+ startedAt?: string
206
+ }
207
+
208
+ export type ContainerStateTerminated = {
209
+ exitCode?: number
210
+ signal?: number
211
+ reason?: string
212
+ message?: string
213
+ startedAt?: string
214
+ finishedAt?: string
165
215
  }
package/insight.pb.ts CHANGED
@@ -20,27 +20,23 @@ export enum TargetType {
20
20
  DEPLOYMENT = "DEPLOYMENT",
21
21
  STATEFULSET = "STATEFULSET",
22
22
  DAEMONSET = "DAEMONSET",
23
- CRONJOB = "CRONJOB",
24
23
  POD = "POD",
25
24
  }
26
25
 
27
- export enum AlertStatus {
28
- ALERT_STATUS_UNSPECIFIED = "ALERT_STATUS_UNSPECIFIED",
29
- ALERT_STATUS_FIRING = "ALERT_STATUS_FIRING",
30
- ALERT_STATUS_RESOLVED = "ALERT_STATUS_RESOLVED",
31
- }
32
-
33
26
  export type AlertSummary = {
34
- alertId?: string
27
+ id?: string
28
+ groupName?: string
29
+ groupId?: string
35
30
  ruleName?: string
36
- severity?: Severity
31
+ ruleId?: string
37
32
  clusterName?: string
38
33
  namespace?: string
39
34
  targetType?: TargetType
40
- targetName?: string
41
- status?: AlertStatus
35
+ target?: string
36
+ severity?: Severity
37
+ value?: string
38
+ notifyResponse?: string
42
39
  description?: string
43
40
  startAt?: string
44
41
  updateAt?: string
45
- notifyResponse?: string
46
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-postgresql",
3
- "version":"0.0.2-23",
3
+ "version":"0.0.2-231",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/postgresql.pb.ts CHANGED
@@ -22,6 +22,48 @@ export enum Status {
22
22
  Creating = "Creating",
23
23
  }
24
24
 
25
+ export enum GetPostgresqlS3ConfigListReqSortDir {
26
+ ASC = "ASC",
27
+ DESC = "DESC",
28
+ }
29
+
30
+ export enum GetPostgresqlBackupListReqSortDir {
31
+ ASC = "ASC",
32
+ DESC = "DESC",
33
+ }
34
+
35
+ export enum GetPostgresqlBackupListRespPostgresqlBackupItemStatusStatus {
36
+ Running = "Running",
37
+ Failed = "Failed",
38
+ Succeeded = "Succeeded",
39
+ }
40
+
41
+ export enum GetPostgresqlBackupListRespPostgresqlBackupItemStatusBackupType {
42
+ Full = "Full",
43
+ Incremental = "Incremental",
44
+ }
45
+
46
+ export enum GetPostgresqlBackupListRespPostgresqlBackupItemStatusBackupMethod {
47
+ Manual = "Manual",
48
+ Auto = "Auto",
49
+ }
50
+
51
+ export enum PostgresqlBackupItemStatusStatus {
52
+ Running = "Running",
53
+ Failed = "Failed",
54
+ Succeeded = "Succeeded",
55
+ }
56
+
57
+ export enum PostgresqlBackupItemStatusBackupType {
58
+ Full = "Full",
59
+ Incremental = "Incremental",
60
+ }
61
+
62
+ export enum PostgresqlBackupItemStatusBackupMethod {
63
+ Manual = "Manual",
64
+ Auto = "Auto",
65
+ }
66
+
25
67
  export enum GetPostgresqlListReqSortDir {
26
68
  ASC = "ASC",
27
69
  DESC = "DESC",
@@ -67,6 +109,150 @@ export enum GetPostgresqlConfRespItemsParamType {
67
109
  conf = "conf",
68
110
  }
69
111
 
112
+ export type DeletePostgresqlBackupReq = {
113
+ cluster?: string
114
+ namespace?: string
115
+ name?: string
116
+ backupName?: string
117
+ }
118
+
119
+ export type DeletePostgresqlBackupResp = {
120
+ message?: string
121
+ }
122
+
123
+ export type CreateBucketExistCheckingReq = {
124
+ endpoint?: string
125
+ accessKey?: string
126
+ secretKey?: string
127
+ bucket?: string
128
+ }
129
+
130
+ export type CreateBucketExistCheckingResp = {
131
+ message?: string
132
+ }
133
+
134
+ export type UpdatePostgresqlS3ConfigReq = {
135
+ cluster?: string
136
+ namespace?: string
137
+ name?: string
138
+ description?: string
139
+ endpoint?: string
140
+ accessKey?: string
141
+ secretKey?: string
142
+ bucket?: string
143
+ retentionTime?: string
144
+ provider?: string
145
+ }
146
+
147
+ export type UpdatePostgresqlS3ConfigResp = {
148
+ message?: string
149
+ }
150
+
151
+ export type GetPostgresqlS3ConfigListReq = {
152
+ page?: number
153
+ pageSize?: number
154
+ sortDir?: GetPostgresqlS3ConfigListReqSortDir
155
+ sortBy?: string
156
+ searchKey?: string
157
+ workspaceId?: number
158
+ }
159
+
160
+ export type GetPostgresqlS3ConfigListRespGetPostgresqlS3ConfigItemsStatus = {
161
+ createTimestamp?: string
162
+ updateTimestamp?: string
163
+ backupPath?: string
164
+ }
165
+
166
+ export type GetPostgresqlS3ConfigListRespGetPostgresqlS3ConfigItems = {
167
+ spec?: UpdatePostgresqlS3ConfigReq
168
+ status?: GetPostgresqlS3ConfigListRespGetPostgresqlS3ConfigItemsStatus
169
+ }
170
+
171
+ export type GetPostgresqlS3ConfigListResp = {
172
+ items?: GetPostgresqlS3ConfigListRespGetPostgresqlS3ConfigItems[]
173
+ pagination?: CommonCommon.Pagination
174
+ }
175
+
176
+ export type UpdatePostgresqlBackupConfigReq = {
177
+ cluster?: string
178
+ namespace?: string
179
+ name?: string
180
+ isOpenAutoBackup?: boolean
181
+ backupSchedule?: string
182
+ }
183
+
184
+ export type UpdatePostgresqlBackupConfigResp = {
185
+ message?: string
186
+ }
187
+
188
+ export type GetPostgresqlBackupListReq = {
189
+ page?: number
190
+ pageSize?: number
191
+ sortDir?: GetPostgresqlBackupListReqSortDir
192
+ sortBy?: string
193
+ searchKey?: string
194
+ cluster?: string
195
+ namespace?: string
196
+ name?: string
197
+ }
198
+
199
+ export type GetPostgresqlBackupListRespPostgresqlBackupItemMetadata = {
200
+ creationTimestamp?: string
201
+ name?: string
202
+ namespace?: string
203
+ }
204
+
205
+ export type GetPostgresqlBackupListRespPostgresqlBackupItemStatusJobCondition = {
206
+ type?: string
207
+ status?: string
208
+ reason?: string
209
+ message?: string
210
+ }
211
+
212
+ export type GetPostgresqlBackupListRespPostgresqlBackupItemStatus = {
213
+ completionTimestamp?: string
214
+ startTime?: string
215
+ active?: number
216
+ succeeded?: number
217
+ failed?: number
218
+ conditions?: GetPostgresqlBackupListRespPostgresqlBackupItemStatusJobCondition[]
219
+ status?: GetPostgresqlBackupListRespPostgresqlBackupItemStatusStatus
220
+ backupType?: GetPostgresqlBackupListRespPostgresqlBackupItemStatusBackupType
221
+ backupMethod?: GetPostgresqlBackupListRespPostgresqlBackupItemStatusBackupMethod
222
+ storePath?: string
223
+ }
224
+
225
+ export type GetPostgresqlBackupListRespPostgresqlBackupItem = {
226
+ metadata?: GetPostgresqlBackupListRespPostgresqlBackupItemMetadata
227
+ spec?: CreatePostgresqlBackupReq
228
+ status?: GetPostgresqlBackupListRespPostgresqlBackupItemStatus
229
+ }
230
+
231
+ export type GetPostgresqlBackupListResp = {
232
+ items?: GetPostgresqlBackupListRespPostgresqlBackupItem[]
233
+ pagination?: CommonCommon.Pagination
234
+ }
235
+
236
+ export type CreatePostgresqlBackupReq = {
237
+ cluster?: string
238
+ namespace?: string
239
+ name?: string
240
+ backupName?: string
241
+ }
242
+
243
+ export type CreatePostgresqlBackupResp = {
244
+ message?: string
245
+ }
246
+
247
+ export type PostgresqlBackupItemStatus = {
248
+ status?: PostgresqlBackupItemStatusStatus
249
+ message?: string
250
+ backupUrl?: string
251
+ backupType?: PostgresqlBackupItemStatusBackupType
252
+ backupMethod?: PostgresqlBackupItemStatusBackupMethod
253
+ completionTimestamp?: string
254
+ }
255
+
70
256
  export type GetPostgresqlUsersReq = {
71
257
  cluster?: string
72
258
  namespace?: string
@@ -89,6 +275,8 @@ export type GetPostgresqlListReq = {
89
275
  sortBy?: string
90
276
  searchKey?: string
91
277
  workspaceId?: number
278
+ filterCluster?: string
279
+ filterNamespace?: string
92
280
  }
93
281
 
94
282
  export type GetPostgresqlConfReq = {
@@ -147,6 +335,7 @@ export type CreatePostgresqlReq = {
147
335
  pgAdminDefaultEmail?: string
148
336
  pgAdminDefaultPassword?: string
149
337
  affinity?: CommonCommon.Affinity
338
+ backupConfig?: UpdatePostgresqlBackupConfigReq
150
339
  externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
151
340
  lbTyp?: CommonCommon.LBTyp
152
341
  lbPoolName?: string
@@ -288,6 +477,8 @@ export type GetPostgresqlGrafanaAddrReq = {
288
477
  cluster?: string
289
478
  namespace?: string
290
479
  name?: string
480
+ from?: string
481
+ to?: string
291
482
  }
292
483
 
293
484
  export type GetPostgresqlGrafanaAddrResp = {
@@ -384,4 +575,25 @@ export class Postgresql {
384
575
  static GetPostgresqlUsers(req: GetPostgresqlUsersReq, initReq?: fm.InitReq): Promise<GetPostgresqlUsersResp> {
385
576
  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"})
386
577
  }
578
+ static GetPostgresqlBackupList(req: GetPostgresqlBackupListReq, initReq?: fm.InitReq): Promise<GetPostgresqlBackupListResp> {
579
+ return fm.fetchReq<GetPostgresqlBackupListReq, GetPostgresqlBackupListResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backups?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
580
+ }
581
+ static CreatePostgresqlBackup(req: CreatePostgresqlBackupReq, initReq?: fm.InitReq): Promise<CreatePostgresqlBackupResp> {
582
+ return fm.fetchReq<CreatePostgresqlBackupReq, CreatePostgresqlBackupResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup`, {...initReq, method: "POST", body: JSON.stringify(req)})
583
+ }
584
+ static DeletePostgresqlBackup(req: DeletePostgresqlBackupReq, initReq?: fm.InitReq): Promise<DeletePostgresqlBackupResp> {
585
+ return fm.fetchReq<DeletePostgresqlBackupReq, DeletePostgresqlBackupResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/backups/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup/${req["backupName"]}`, {...initReq, method: "DELETE"})
586
+ }
587
+ static UpdatePostgresqlBackupConfig(req: UpdatePostgresqlBackupConfigReq, initReq?: fm.InitReq): Promise<UpdatePostgresqlBackupConfigResp> {
588
+ return fm.fetchReq<UpdatePostgresqlBackupConfigReq, UpdatePostgresqlBackupConfigResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup/config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
589
+ }
590
+ static GetPostgresqlS3ConfigList(req: GetPostgresqlS3ConfigListReq, initReq?: fm.InitReq): Promise<GetPostgresqlS3ConfigListResp> {
591
+ return fm.fetchReq<GetPostgresqlS3ConfigListReq, GetPostgresqlS3ConfigListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/s3/configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
592
+ }
593
+ static UpdatePostgresqlS3Config(req: UpdatePostgresqlS3ConfigReq, initReq?: fm.InitReq): Promise<UpdatePostgresqlS3ConfigResp> {
594
+ return fm.fetchReq<UpdatePostgresqlS3ConfigReq, UpdatePostgresqlS3ConfigResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/s3/config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
595
+ }
596
+ static CreateBucketExistChecking(req: CreateBucketExistCheckingReq, initReq?: fm.InitReq): Promise<CreateBucketExistCheckingResp> {
597
+ return fm.fetchReq<CreateBucketExistCheckingReq, CreateBucketExistCheckingResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/s3/config/checking`, {...initReq, method: "PUT", body: JSON.stringify(req)})
598
+ }
387
599
  }