@daocloud-proto/mcamel-postgresql 0.0.2-18 → 0.0.2-180

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
@@ -33,6 +33,14 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
33
33
  Install = "Install",
34
34
  }
35
35
 
36
+ export type GetAllEventKindsListResp = {
37
+ data?: string[]
38
+ }
39
+
40
+ export type GetAllEventKindsListReq = {
41
+ cluster?: string
42
+ }
43
+
36
44
  export type GetAllEventListReq = {
37
45
  page?: number
38
46
  pageSize?: number
@@ -43,6 +51,7 @@ export type GetAllEventListReq = {
43
51
  namespace?: string
44
52
  name?: string
45
53
  eventType?: EventType
54
+ kindName?: string
46
55
  }
47
56
 
48
57
  export type GetAllEventListRespItemsSource = {
@@ -102,6 +111,23 @@ export type GetClusterNodeLabelListResp = {
102
111
  pagination?: CommonCommon.Pagination
103
112
  }
104
113
 
114
+ export type GetClusterPodLabelListReq = {
115
+ page?: number
116
+ pageSize?: number
117
+ searchKey?: string
118
+ cluster?: string
119
+ }
120
+
121
+ export type GetClusterPodLabelListRespLabel = {
122
+ key?: string
123
+ value?: string[]
124
+ }
125
+
126
+ export type GetClusterPodLabelListResp = {
127
+ items?: GetClusterPodLabelListRespLabel[]
128
+ pagination?: CommonCommon.Pagination
129
+ }
130
+
105
131
  export type GetClusterNodePortListReq = {
106
132
  cluster?: string
107
133
  }
@@ -221,6 +247,9 @@ export class Cluster {
221
247
  static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
222
248
  return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
223
249
  }
250
+ static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
251
+ return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
252
+ }
224
253
  static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
225
254
  return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/postgresql/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
226
255
  }
@@ -233,6 +262,9 @@ export class Cluster {
233
262
  static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
234
263
  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
264
  }
265
+ static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
266
+ return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
267
+ }
236
268
  static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
237
269
  return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
238
270
  }
package/common.pb.ts CHANGED
@@ -145,6 +145,8 @@ 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[]
@@ -162,4 +164,7 @@ export type CommonItemStatus = {
162
164
  serviceAddresses?: string[]
163
165
  webManagerAddress?: string
164
166
  webLogAddress?: string
167
+ isHwameistorSc?: boolean
168
+ avgPvAllocatedInGb?: number
169
+ avgPvUsedInGb?: number
165
170
  }
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-18",
3
+ "version":"0.0.2-180",
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
@@ -89,6 +263,8 @@ export type GetPostgresqlListReq = {
89
263
  sortBy?: string
90
264
  searchKey?: string
91
265
  workspaceId?: number
266
+ filterCluster?: string
267
+ filterNamespace?: string
92
268
  }
93
269
 
94
270
  export type GetPostgresqlConfReq = {
@@ -147,6 +323,7 @@ export type CreatePostgresqlReq = {
147
323
  pgAdminDefaultEmail?: string
148
324
  pgAdminDefaultPassword?: string
149
325
  affinity?: CommonCommon.Affinity
326
+ backupConfig?: UpdatePostgresqlBackupConfigReq
150
327
  externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
151
328
  lbTyp?: CommonCommon.LBTyp
152
329
  lbPoolName?: string
@@ -288,6 +465,8 @@ export type GetPostgresqlGrafanaAddrReq = {
288
465
  cluster?: string
289
466
  namespace?: string
290
467
  name?: string
468
+ from?: string
469
+ to?: string
291
470
  }
292
471
 
293
472
  export type GetPostgresqlGrafanaAddrResp = {
@@ -384,4 +563,25 @@ export class Postgresql {
384
563
  static GetPostgresqlUsers(req: GetPostgresqlUsersReq, initReq?: fm.InitReq): Promise<GetPostgresqlUsersResp> {
385
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"})
386
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
+ }
387
587
  }