@daocloud-proto/mcamel-postgresql 0.11.0-rc1-1 → 0.14.0-rc1-3
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 +4 -0
- package/common.pb.ts +9 -0
- package/package.json +1 -1
- package/postgresql.pb.ts +37 -6
- package/template.pb.ts +8 -3
package/cluster.pb.ts
CHANGED
|
@@ -30,6 +30,8 @@ export enum PermissionsType {
|
|
|
30
30
|
UpdateTemplate = "UpdateTemplate",
|
|
31
31
|
DeleteTemplate = "DeleteTemplate",
|
|
32
32
|
GetUserPassword = "GetUserPassword",
|
|
33
|
+
ExportTemplate = "ExportTemplate",
|
|
34
|
+
ImportTemplate = "ImportTemplate",
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
export enum EventType {
|
|
@@ -136,6 +138,8 @@ export type GetPermissionsListRespPermissions = {
|
|
|
136
138
|
updateTemplate?: boolean
|
|
137
139
|
deleteTemplate?: boolean
|
|
138
140
|
getUserPassword?: boolean
|
|
141
|
+
exportTemplate?: boolean
|
|
142
|
+
importTemplate?: boolean
|
|
139
143
|
}
|
|
140
144
|
|
|
141
145
|
export type GetPermissionsListResp = {
|
package/common.pb.ts
CHANGED
|
@@ -50,6 +50,14 @@ export enum PodCommonConditionStatus {
|
|
|
50
50
|
PodConditionStatusFalse = "PodConditionStatusFalse",
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
export enum PodCommonFilterPodStatus {
|
|
54
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
55
|
+
RUNNING = "RUNNING",
|
|
56
|
+
ERROR = "ERROR",
|
|
57
|
+
COMPLETED = "COMPLETED",
|
|
58
|
+
WAITING = "WAITING",
|
|
59
|
+
}
|
|
60
|
+
|
|
53
61
|
export type Affinity = {
|
|
54
62
|
nodeAffinity?: NodeAffinity
|
|
55
63
|
podAffinity?: PodAffinity
|
|
@@ -163,6 +171,7 @@ export type PodCommon = {
|
|
|
163
171
|
initContainersName?: string[]
|
|
164
172
|
initContainersStatuses?: ContainerStatus[]
|
|
165
173
|
containersStatuses?: ContainerStatus[]
|
|
174
|
+
podStatus?: string
|
|
166
175
|
}
|
|
167
176
|
|
|
168
177
|
export type OwnerReference = {
|
package/package.json
CHANGED
package/postgresql.pb.ts
CHANGED
|
@@ -29,12 +29,30 @@ export enum GetPostgresqlTopologyRespNodePodStatus {
|
|
|
29
29
|
Succeeded = "Succeeded",
|
|
30
30
|
Failed = "Failed",
|
|
31
31
|
Unknown = "Unknown",
|
|
32
|
+
Terminating = "Terminating",
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
export enum GetPostgresqlTopologyRespNodeRole {
|
|
35
36
|
RoleUnknown = "RoleUnknown",
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
Primary = "Primary",
|
|
38
|
+
Standby = "Standby",
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export enum GetPostgresqlTopologyRespNodeSyncState {
|
|
42
|
+
SyncStateUnknown = "SyncStateUnknown",
|
|
43
|
+
Sync = "Sync",
|
|
44
|
+
Async = "Async",
|
|
45
|
+
Potential = "Potential",
|
|
46
|
+
Quorum = "Quorum",
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export enum GetPostgresqlTopologyRespNodeState {
|
|
50
|
+
StateUnknown = "StateUnknown",
|
|
51
|
+
Startup = "Startup",
|
|
52
|
+
Catchup = "Catchup",
|
|
53
|
+
Streaming = "Streaming",
|
|
54
|
+
Backup = "Backup",
|
|
55
|
+
Stopping = "Stopping",
|
|
38
56
|
}
|
|
39
57
|
|
|
40
58
|
export enum GetPostgresqlS3ConfigListReqSortDir {
|
|
@@ -109,8 +127,8 @@ export enum GetPostgresqlPodListRespPodStatus {
|
|
|
109
127
|
}
|
|
110
128
|
|
|
111
129
|
export enum GetPostgresqlPodListRespPodType {
|
|
112
|
-
|
|
113
|
-
|
|
130
|
+
Primary = "Primary",
|
|
131
|
+
Standby = "Standby",
|
|
114
132
|
PgAdmin = "PgAdmin",
|
|
115
133
|
}
|
|
116
134
|
|
|
@@ -124,6 +142,13 @@ export enum GetPostgresqlConfRespItemsParamType {
|
|
|
124
142
|
conf = "conf",
|
|
125
143
|
}
|
|
126
144
|
|
|
145
|
+
export enum PostgresqlItemStatusRestoreInitialStatus {
|
|
146
|
+
Unknown = "Unknown",
|
|
147
|
+
Running = "Running",
|
|
148
|
+
Failed = "Failed",
|
|
149
|
+
Succeeded = "Succeeded",
|
|
150
|
+
}
|
|
151
|
+
|
|
127
152
|
export type GetPostgresqlTopologyReq = {
|
|
128
153
|
cluster?: string
|
|
129
154
|
namespace?: string
|
|
@@ -143,7 +168,12 @@ export type GetPostgresqlTopologyRespNode = {
|
|
|
143
168
|
podCpuLimit?: string
|
|
144
169
|
podMemoryLimit?: string
|
|
145
170
|
role?: GetPostgresqlTopologyRespNodeRole
|
|
146
|
-
syncState?:
|
|
171
|
+
syncState?: GetPostgresqlTopologyRespNodeSyncState
|
|
172
|
+
state?: GetPostgresqlTopologyRespNodeState
|
|
173
|
+
sentLsn?: string
|
|
174
|
+
writeLsn?: string
|
|
175
|
+
flushLsn?: string
|
|
176
|
+
replayLsn?: string
|
|
147
177
|
}
|
|
148
178
|
|
|
149
179
|
export type GetPostgresqlTopologyRespEdges = {
|
|
@@ -578,6 +608,7 @@ export type PostgresqlItemStatus = {
|
|
|
578
608
|
avgReplicationLagInBytes?: string
|
|
579
609
|
common?: CommonCommon.CommonItemStatus
|
|
580
610
|
isControl?: boolean
|
|
611
|
+
restoreInitialStatus?: PostgresqlItemStatusRestoreInitialStatus
|
|
581
612
|
}
|
|
582
613
|
|
|
583
614
|
export type PostgresqlItemMetadata = {
|
|
@@ -646,7 +677,7 @@ export class Postgresql {
|
|
|
646
677
|
return fm.fetchReq<CreatePostgresqlRestoreReq, CreatePostgresqlRestoreResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/restore`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
647
678
|
}
|
|
648
679
|
static DeletePostgresqlBackup(req: DeletePostgresqlBackupReq, initReq?: fm.InitReq): Promise<DeletePostgresqlBackupResp> {
|
|
649
|
-
return fm.fetchReq<DeletePostgresqlBackupReq, DeletePostgresqlBackupResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/backups/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup/${req["backupName"]}`, {...initReq, method: "DELETE"})
|
|
680
|
+
return fm.fetchReq<DeletePostgresqlBackupReq, DeletePostgresqlBackupResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/backups/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup/${req["backupName"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
|
|
650
681
|
}
|
|
651
682
|
static UpdatePostgresqlBackupConfig(req: UpdatePostgresqlBackupConfigReq, initReq?: fm.InitReq): Promise<UpdatePostgresqlBackupConfigResp> {
|
|
652
683
|
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)})
|
package/template.pb.ts
CHANGED
|
@@ -44,7 +44,6 @@ export type UpdateTemplateConfigToItemReq = {
|
|
|
44
44
|
|
|
45
45
|
export type UpdateTemplateConfigToItemResp = {
|
|
46
46
|
items?: TemplateConfigItem[]
|
|
47
|
-
pagination?: CommonCommon.Pagination
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
export type GetTemplateConfigVersionsReq = {
|
|
@@ -57,6 +56,7 @@ export type GetTemplateConfigVersionsResp = {
|
|
|
57
56
|
|
|
58
57
|
export type GetTemplateConfigStringResp = {
|
|
59
58
|
conf?: string
|
|
59
|
+
fileName?: string
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export type DeleteTemplateReq = {
|
|
@@ -88,6 +88,11 @@ export type GetTemplateConfigReq = {
|
|
|
88
88
|
templateInstanceType?: TemplateInstanceType
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
export type GetTemplateConfigStringReq = {
|
|
92
|
+
workspaceId?: number
|
|
93
|
+
name?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
91
96
|
export type CreateTemplateConfigResp = {
|
|
92
97
|
message?: string
|
|
93
98
|
}
|
|
@@ -177,8 +182,8 @@ export class Template {
|
|
|
177
182
|
static UpdateTemplateConfig(req: UpdateTemplateConfigReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigResp> {
|
|
178
183
|
return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
179
184
|
}
|
|
180
|
-
static GetTemplateConfigString(req:
|
|
181
|
-
return fm.fetchReq<
|
|
185
|
+
static GetTemplateConfigString(req: GetTemplateConfigStringReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
|
|
186
|
+
return fm.fetchReq<GetTemplateConfigStringReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
182
187
|
}
|
|
183
188
|
static UpdateTemplateConfigToItem(req: UpdateTemplateConfigToItemReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigToItemResp> {
|
|
184
189
|
return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/template_config/to_template`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|