@daocloud-proto/mcamel-postgresql 0.0.1 → 0.0.2-10
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/package.json +1 -1
- package/postgresql.pb.ts +19 -8
package/package.json
CHANGED
package/postgresql.pb.ts
CHANGED
|
@@ -32,12 +32,6 @@ export enum GetPostgresqlConfReqSortDir {
|
|
|
32
32
|
DESC = "DESC",
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export enum CreatePostgresqlReqServiceType {
|
|
36
|
-
ClusterIP = "ClusterIP",
|
|
37
|
-
NodePort = "NodePort",
|
|
38
|
-
LoadBalancer = "LoadBalancer",
|
|
39
|
-
}
|
|
40
|
-
|
|
41
35
|
export enum GetPostgresqlParamRespSelectSelectType {
|
|
42
36
|
Single = "Single",
|
|
43
37
|
Multiple = "Multiple",
|
|
@@ -63,6 +57,12 @@ export enum GetPostgresqlPodListRespPodType {
|
|
|
63
57
|
PgAdmin = "PgAdmin",
|
|
64
58
|
}
|
|
65
59
|
|
|
60
|
+
export enum GetPostgresqlPodListRespHealthStatus {
|
|
61
|
+
HealthStatusUnknown = "HealthStatusUnknown",
|
|
62
|
+
HealthStatusHealthy = "HealthStatusHealthy",
|
|
63
|
+
HealthStatusUnhealthy = "HealthStatusUnhealthy",
|
|
64
|
+
}
|
|
65
|
+
|
|
66
66
|
export enum GetPostgresqlConfRespItemsParamType {
|
|
67
67
|
conf = "conf",
|
|
68
68
|
}
|
|
@@ -128,7 +128,7 @@ export type CreatePostgresqlReq = {
|
|
|
128
128
|
superuserPassword?: string
|
|
129
129
|
storageClassName?: string
|
|
130
130
|
storageCapacity?: string
|
|
131
|
-
serviceType?:
|
|
131
|
+
serviceType?: CommonCommon.ServiceType
|
|
132
132
|
serviceAnnotations?: {[key: string]: string}
|
|
133
133
|
ports?: CreatePostgresqlReqPorts[]
|
|
134
134
|
cpuRequest?: string
|
|
@@ -147,6 +147,14 @@ export type CreatePostgresqlReq = {
|
|
|
147
147
|
pgAdminDefaultEmail?: string
|
|
148
148
|
pgAdminDefaultPassword?: string
|
|
149
149
|
affinity?: CommonCommon.Affinity
|
|
150
|
+
externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
|
|
151
|
+
lbTyp?: CommonCommon.LBTyp
|
|
152
|
+
lbPoolName?: string
|
|
153
|
+
lbAddress?: string
|
|
154
|
+
pgAdminExternalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
|
|
155
|
+
pgAdminLbTyp?: CommonCommon.LBTyp
|
|
156
|
+
pgAdminLbPoolName?: string
|
|
157
|
+
pgAdminLbAddress?: string
|
|
150
158
|
}
|
|
151
159
|
|
|
152
160
|
export type UpdatePostgresqlConfReq = {
|
|
@@ -266,6 +274,8 @@ export type GetPostgresqlPodListRespData = {
|
|
|
266
274
|
memoryLimit?: number
|
|
267
275
|
createTimestamp?: string
|
|
268
276
|
podType?: GetPostgresqlPodListRespPodType
|
|
277
|
+
replicationLagInBytes?: string
|
|
278
|
+
healthStatus?: GetPostgresqlPodListRespHealthStatus
|
|
269
279
|
common?: CommonCommon.PodCommon
|
|
270
280
|
}
|
|
271
281
|
|
|
@@ -315,6 +325,7 @@ export type PostgresqlItemStatus = {
|
|
|
315
325
|
status?: Status
|
|
316
326
|
podsAreReadyNum?: number
|
|
317
327
|
clusterIPs?: string[]
|
|
328
|
+
avgReplicationLagInBytes?: string
|
|
318
329
|
common?: CommonCommon.CommonItemStatus
|
|
319
330
|
}
|
|
320
331
|
|
|
@@ -338,7 +349,7 @@ export class Postgresql {
|
|
|
338
349
|
return fm.fetchReq<GetPostgresqlListReq, GetPostgresqlListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/postgresqls?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
339
350
|
}
|
|
340
351
|
static GetPostgresqlOperatorVersionList(req: GetPostgresqlOperatorVersionListReq, initReq?: fm.InitReq): Promise<GetPostgresqlOperatorVersionListResp> {
|
|
341
|
-
return fm.fetchReq<GetPostgresqlOperatorVersionListReq, GetPostgresqlOperatorVersionListResp>(`/apis/mcamel.io/postgresql/v1alpha1/
|
|
352
|
+
return fm.fetchReq<GetPostgresqlOperatorVersionListReq, GetPostgresqlOperatorVersionListResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgres-operator/versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
342
353
|
}
|
|
343
354
|
static GetPostgresql(req: GetPostgresqlReq, initReq?: fm.InitReq): Promise<GetPostgresqlResp> {
|
|
344
355
|
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"})
|