@daocloud-proto/mcamel-postgresql 0.0.2-175 → 0.0.2-178

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/postgresql.pb.ts +196 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-postgresql",
3
- "version":"0.0.2-175",
3
+ "version":"0.0.2-178",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/postgresql.pb.ts CHANGED
@@ -22,6 +22,38 @@ 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 PostgresqlBackupItemStatusStatus {
42
+ Running = "Running",
43
+ Failed = "Failed",
44
+ Succeeded = "Succeeded",
45
+ }
46
+
47
+ export enum PostgresqlBackupItemStatusBackupType {
48
+ Full = "Full",
49
+ Incremental = "Incremental",
50
+ }
51
+
52
+ export enum PostgresqlBackupItemStatusBackupMethod {
53
+ Manual = "Manual",
54
+ Auto = "Auto",
55
+ }
56
+
25
57
  export enum GetPostgresqlListReqSortDir {
26
58
  ASC = "ASC",
27
59
  DESC = "DESC",
@@ -67,6 +99,148 @@ export enum GetPostgresqlConfRespItemsParamType {
67
99
  conf = "conf",
68
100
  }
69
101
 
102
+ export type DeletePostgresqlBackupReq = {
103
+ cluster?: string
104
+ namespace?: string
105
+ name?: string
106
+ backupName?: string
107
+ }
108
+
109
+ export type DeletePostgresqlBackupResp = {
110
+ message?: string
111
+ }
112
+
113
+ export type CreateBucketExistCheckingReq = {
114
+ endpoint?: string
115
+ accessKey?: string
116
+ secretKey?: string
117
+ bucket?: string
118
+ }
119
+
120
+ export type CreateBucketExistCheckingResp = {
121
+ message?: string
122
+ }
123
+
124
+ export type UpdatePostgresqlS3ConfigReq = {
125
+ cluster?: string
126
+ namespace?: string
127
+ name?: string
128
+ description?: string
129
+ endpoint?: string
130
+ accessKey?: string
131
+ secretKey?: string
132
+ bucket?: string
133
+ retentionTime?: string
134
+ provider?: string
135
+ }
136
+
137
+ export type UpdatePostgresqlS3ConfigResp = {
138
+ message?: string
139
+ }
140
+
141
+ export type GetPostgresqlS3ConfigListReq = {
142
+ page?: number
143
+ pageSize?: number
144
+ sortDir?: GetPostgresqlS3ConfigListReqSortDir
145
+ sortBy?: string
146
+ searchKey?: string
147
+ workspaceId?: number
148
+ }
149
+
150
+ export type GetPostgresqlS3ConfigListRespGetPostgresqlS3ConfigItemsStatus = {
151
+ createTimestamp?: string
152
+ updateTimestamp?: string
153
+ backupPath?: string
154
+ }
155
+
156
+ export type GetPostgresqlS3ConfigListRespGetPostgresqlS3ConfigItems = {
157
+ spec?: UpdatePostgresqlS3ConfigReq
158
+ status?: GetPostgresqlS3ConfigListRespGetPostgresqlS3ConfigItemsStatus
159
+ }
160
+
161
+ export type GetPostgresqlS3ConfigListResp = {
162
+ items?: GetPostgresqlS3ConfigListRespGetPostgresqlS3ConfigItems[]
163
+ pagination?: CommonCommon.Pagination
164
+ }
165
+
166
+ export type UpdatePostgresqlBackupConfigReq = {
167
+ cluster?: string
168
+ namespace?: string
169
+ name?: string
170
+ isOpenAutoBackup?: boolean
171
+ backupSchedule?: string
172
+ }
173
+
174
+ export type UpdatePostgresqlBackupConfigResp = {
175
+ message?: string
176
+ }
177
+
178
+ export type GetPostgresqlBackupListReq = {
179
+ page?: number
180
+ pageSize?: number
181
+ sortDir?: GetPostgresqlBackupListReqSortDir
182
+ sortBy?: string
183
+ searchKey?: string
184
+ cluster?: string
185
+ namespace?: string
186
+ name?: string
187
+ }
188
+
189
+ export type GetPostgresqlBackupListRespPostgresqlBackupItemMetadata = {
190
+ creationTimestamp?: string
191
+ name?: string
192
+ namespace?: string
193
+ }
194
+
195
+ export type GetPostgresqlBackupListRespPostgresqlBackupItemStatusJobCondition = {
196
+ type?: string
197
+ status?: string
198
+ reason?: string
199
+ message?: string
200
+ }
201
+
202
+ export type GetPostgresqlBackupListRespPostgresqlBackupItemStatus = {
203
+ completionTime?: string
204
+ startTime?: string
205
+ active?: number
206
+ succeeded?: number
207
+ failed?: number
208
+ conditions?: GetPostgresqlBackupListRespPostgresqlBackupItemStatusJobCondition[]
209
+ isAutoBackup?: boolean
210
+ status?: GetPostgresqlBackupListRespPostgresqlBackupItemStatusStatus
211
+ }
212
+
213
+ export type GetPostgresqlBackupListRespPostgresqlBackupItem = {
214
+ metadata?: GetPostgresqlBackupListRespPostgresqlBackupItemMetadata
215
+ spec?: CreatePostgresqlBackupReq
216
+ status?: GetPostgresqlBackupListRespPostgresqlBackupItemStatus
217
+ }
218
+
219
+ export type GetPostgresqlBackupListResp = {
220
+ items?: GetPostgresqlBackupListRespPostgresqlBackupItem[]
221
+ pagination?: CommonCommon.Pagination
222
+ }
223
+
224
+ export type CreatePostgresqlBackupReq = {
225
+ cluster?: string
226
+ namespace?: string
227
+ name?: string
228
+ backupName?: string
229
+ }
230
+
231
+ export type CreatePostgresqlBackupResp = {
232
+ message?: string
233
+ }
234
+
235
+ export type PostgresqlBackupItemStatus = {
236
+ status?: PostgresqlBackupItemStatusStatus
237
+ message?: string
238
+ backupUrl?: string
239
+ backupType?: PostgresqlBackupItemStatusBackupType
240
+ backupMethod?: PostgresqlBackupItemStatusBackupMethod
241
+ completionTimestamp?: string
242
+ }
243
+
70
244
  export type GetPostgresqlUsersReq = {
71
245
  cluster?: string
72
246
  namespace?: string
@@ -149,6 +323,7 @@ export type CreatePostgresqlReq = {
149
323
  pgAdminDefaultEmail?: string
150
324
  pgAdminDefaultPassword?: string
151
325
  affinity?: CommonCommon.Affinity
326
+ backupConfig?: UpdatePostgresqlBackupConfigReq
152
327
  externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
153
328
  lbTyp?: CommonCommon.LBTyp
154
329
  lbPoolName?: string
@@ -388,4 +563,25 @@ export class Postgresql {
388
563
  static GetPostgresqlUsers(req: GetPostgresqlUsersReq, initReq?: fm.InitReq): Promise<GetPostgresqlUsersResp> {
389
564
  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"})
390
565
  }
566
+ static GetPostgresqlBackupList(req: GetPostgresqlBackupListReq, initReq?: fm.InitReq): Promise<GetPostgresqlBackupListResp> {
567
+ 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"})
568
+ }
569
+ static CreatePostgresqlBackup(req: CreatePostgresqlBackupReq, initReq?: fm.InitReq): Promise<CreatePostgresqlBackupResp> {
570
+ 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)})
571
+ }
572
+ static DeletePostgresqlBackup(req: DeletePostgresqlBackupReq, initReq?: fm.InitReq): Promise<DeletePostgresqlBackupResp> {
573
+ return fm.fetchReq<DeletePostgresqlBackupReq, DeletePostgresqlBackupResp>(`/apis/mcamel.io/Postgresql/v1alpha1/Postgresql/backups/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup/${req["backupName"]}`, {...initReq, method: "DELETE"})
574
+ }
575
+ static UpdatePostgresqlBackupConfig(req: UpdatePostgresqlBackupConfigReq, initReq?: fm.InitReq): Promise<UpdatePostgresqlBackupConfigResp> {
576
+ 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)})
577
+ }
578
+ static GetPostgresqlS3ConfigList(req: GetPostgresqlS3ConfigListReq, initReq?: fm.InitReq): Promise<GetPostgresqlS3ConfigListResp> {
579
+ return fm.fetchReq<GetPostgresqlS3ConfigListReq, GetPostgresqlS3ConfigListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/s3/configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
580
+ }
581
+ static UpdatePostgresqlS3Config(req: UpdatePostgresqlS3ConfigReq, initReq?: fm.InitReq): Promise<UpdatePostgresqlS3ConfigResp> {
582
+ 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)})
583
+ }
584
+ static CreateBucketExistChecking(req: CreateBucketExistCheckingReq, initReq?: fm.InitReq): Promise<CreateBucketExistCheckingResp> {
585
+ return fm.fetchReq<CreateBucketExistCheckingReq, CreateBucketExistCheckingResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/s3/config/checking`, {...initReq, method: "PUT", body: JSON.stringify(req)})
586
+ }
391
587
  }