@daocloud-proto/mcamel-postgresql 0.0.1 → 0.0.2
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 +11 -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",
|
|
@@ -128,7 +122,7 @@ export type CreatePostgresqlReq = {
|
|
|
128
122
|
superuserPassword?: string
|
|
129
123
|
storageClassName?: string
|
|
130
124
|
storageCapacity?: string
|
|
131
|
-
serviceType?:
|
|
125
|
+
serviceType?: CommonCommon.ServiceType
|
|
132
126
|
serviceAnnotations?: {[key: string]: string}
|
|
133
127
|
ports?: CreatePostgresqlReqPorts[]
|
|
134
128
|
cpuRequest?: string
|
|
@@ -147,6 +141,14 @@ export type CreatePostgresqlReq = {
|
|
|
147
141
|
pgAdminDefaultEmail?: string
|
|
148
142
|
pgAdminDefaultPassword?: string
|
|
149
143
|
affinity?: CommonCommon.Affinity
|
|
144
|
+
externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
|
|
145
|
+
lbTyp?: CommonCommon.LBTyp
|
|
146
|
+
lbPoolName?: string
|
|
147
|
+
lbAddress?: string
|
|
148
|
+
pgAdminExternalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
|
|
149
|
+
pgAdminLbTyp?: CommonCommon.LBTyp
|
|
150
|
+
pgAdminLbPoolName?: string
|
|
151
|
+
pgAdminLbAddress?: string
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
export type UpdatePostgresqlConfReq = {
|
|
@@ -266,6 +268,7 @@ export type GetPostgresqlPodListRespData = {
|
|
|
266
268
|
memoryLimit?: number
|
|
267
269
|
createTimestamp?: string
|
|
268
270
|
podType?: GetPostgresqlPodListRespPodType
|
|
271
|
+
replicationLagInBytes?: string
|
|
269
272
|
common?: CommonCommon.PodCommon
|
|
270
273
|
}
|
|
271
274
|
|
|
@@ -338,7 +341,7 @@ export class Postgresql {
|
|
|
338
341
|
return fm.fetchReq<GetPostgresqlListReq, GetPostgresqlListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/postgresqls?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
339
342
|
}
|
|
340
343
|
static GetPostgresqlOperatorVersionList(req: GetPostgresqlOperatorVersionListReq, initReq?: fm.InitReq): Promise<GetPostgresqlOperatorVersionListResp> {
|
|
341
|
-
return fm.fetchReq<GetPostgresqlOperatorVersionListReq, GetPostgresqlOperatorVersionListResp>(`/apis/mcamel.io/postgresql/v1alpha1/
|
|
344
|
+
return fm.fetchReq<GetPostgresqlOperatorVersionListReq, GetPostgresqlOperatorVersionListResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgres-operator/versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
342
345
|
}
|
|
343
346
|
static GetPostgresql(req: GetPostgresqlReq, initReq?: fm.InitReq): Promise<GetPostgresqlResp> {
|
|
344
347
|
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"})
|