@daocloud-proto/mcamel-postgresql 0.10.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 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 = {
@@ -399,6 +403,7 @@ export type GetResourceQuotaRespSpec = {
399
403
  export type GetResourceQuotaRespStatus = {
400
404
  hard?: {[key: string]: string}
401
405
  used?: {[key: string]: string}
406
+ available?: {[key: string]: string}
402
407
  }
403
408
 
404
409
  export type GetResourceQuotaResp = {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-postgresql",
3
- "version":"0.10.0-rc1-1",
3
+ "version":"0.14.0-rc1-3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/postgresql.pb.ts CHANGED
@@ -23,6 +23,38 @@ export enum Status {
23
23
  Creating = "Creating",
24
24
  }
25
25
 
26
+ export enum GetPostgresqlTopologyRespNodePodStatus {
27
+ Pending = "Pending",
28
+ Running = "Running",
29
+ Succeeded = "Succeeded",
30
+ Failed = "Failed",
31
+ Unknown = "Unknown",
32
+ Terminating = "Terminating",
33
+ }
34
+
35
+ export enum GetPostgresqlTopologyRespNodeRole {
36
+ RoleUnknown = "RoleUnknown",
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",
56
+ }
57
+
26
58
  export enum GetPostgresqlS3ConfigListReqSortDir {
27
59
  ASC = "ASC",
28
60
  DESC = "DESC",
@@ -95,8 +127,8 @@ export enum GetPostgresqlPodListRespPodStatus {
95
127
  }
96
128
 
97
129
  export enum GetPostgresqlPodListRespPodType {
98
- Master = "Master",
99
- Replica = "Replica",
130
+ Primary = "Primary",
131
+ Standby = "Standby",
100
132
  PgAdmin = "PgAdmin",
101
133
  }
102
134
 
@@ -110,6 +142,51 @@ export enum GetPostgresqlConfRespItemsParamType {
110
142
  conf = "conf",
111
143
  }
112
144
 
145
+ export enum PostgresqlItemStatusRestoreInitialStatus {
146
+ Unknown = "Unknown",
147
+ Running = "Running",
148
+ Failed = "Failed",
149
+ Succeeded = "Succeeded",
150
+ }
151
+
152
+ export type GetPostgresqlTopologyReq = {
153
+ cluster?: string
154
+ namespace?: string
155
+ name?: string
156
+ }
157
+
158
+ export type GetPostgresqlTopologyRespNode = {
159
+ cluster?: string
160
+ namespace?: string
161
+ podName?: string
162
+ ip?: string
163
+ podStatus?: GetPostgresqlTopologyRespNodePodStatus
164
+ totalContainer?: number
165
+ totalContainerReady?: number
166
+ podCpuRequest?: string
167
+ podMemoryRequest?: string
168
+ podCpuLimit?: string
169
+ podMemoryLimit?: string
170
+ role?: GetPostgresqlTopologyRespNodeRole
171
+ syncState?: GetPostgresqlTopologyRespNodeSyncState
172
+ state?: GetPostgresqlTopologyRespNodeState
173
+ sentLsn?: string
174
+ writeLsn?: string
175
+ flushLsn?: string
176
+ replayLsn?: string
177
+ }
178
+
179
+ export type GetPostgresqlTopologyRespEdges = {
180
+ source?: string
181
+ target?: string
182
+ properties?: {[key: string]: string}
183
+ }
184
+
185
+ export type GetPostgresqlTopologyResp = {
186
+ nodes?: GetPostgresqlTopologyRespNode[]
187
+ edges?: GetPostgresqlTopologyRespEdges[]
188
+ }
189
+
113
190
  export type CreatePostgresqlRestoreReq = {
114
191
  cluster?: string
115
192
  namespace?: string
@@ -129,6 +206,7 @@ export type DeletePostgresqlBackupReq = {
129
206
  namespace?: string
130
207
  name?: string
131
208
  backupName?: string
209
+ removeRemoteBackup?: boolean
132
210
  }
133
211
 
134
212
  export type DeletePostgresqlBackupResp = {
@@ -530,6 +608,7 @@ export type PostgresqlItemStatus = {
530
608
  avgReplicationLagInBytes?: string
531
609
  common?: CommonCommon.CommonItemStatus
532
610
  isControl?: boolean
611
+ restoreInitialStatus?: PostgresqlItemStatusRestoreInitialStatus
533
612
  }
534
613
 
535
614
  export type PostgresqlItemMetadata = {
@@ -598,7 +677,7 @@ export class Postgresql {
598
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)})
599
678
  }
600
679
  static DeletePostgresqlBackup(req: DeletePostgresqlBackupReq, initReq?: fm.InitReq): Promise<DeletePostgresqlBackupResp> {
601
- 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)})
602
681
  }
603
682
  static UpdatePostgresqlBackupConfig(req: UpdatePostgresqlBackupConfigReq, initReq?: fm.InitReq): Promise<UpdatePostgresqlBackupConfigResp> {
604
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)})
@@ -612,4 +691,7 @@ export class Postgresql {
612
691
  static CreateBucketExistChecking(req: CreateBucketExistCheckingReq, initReq?: fm.InitReq): Promise<CreateBucketExistCheckingResp> {
613
692
  return fm.fetchReq<CreateBucketExistCheckingReq, CreateBucketExistCheckingResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/s3/config/checking`, {...initReq, method: "PUT", body: JSON.stringify(req)})
614
693
  }
694
+ static GetPostgresqlTopology(req: GetPostgresqlTopologyReq, initReq?: fm.InitReq): Promise<GetPostgresqlTopologyResp> {
695
+ return fm.fetchReq<GetPostgresqlTopologyReq, GetPostgresqlTopologyResp>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/topology?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
696
+ }
615
697
  }
package/template.pb.ts CHANGED
@@ -16,6 +16,7 @@ export enum TemplateInstanceType {
16
16
  MysqlMgrConfig = "MysqlMgrConfig",
17
17
  MongodbConfig = "MongodbConfig",
18
18
  PostgresqlConfig = "PostgresqlConfig",
19
+ RabbitmqConfig = "RabbitmqConfig",
19
20
  }
20
21
 
21
22
  export enum GetTemplateConfigReqSortDir {
@@ -34,6 +35,17 @@ export enum TemplateConfigItemValueType {
34
35
  MultiString = "MultiString",
35
36
  }
36
37
 
38
+ export type UpdateTemplateConfigToItemReq = {
39
+ workspaceId?: number
40
+ conf?: string
41
+ version?: string
42
+ templateInstanceType?: TemplateInstanceType
43
+ }
44
+
45
+ export type UpdateTemplateConfigToItemResp = {
46
+ items?: TemplateConfigItem[]
47
+ }
48
+
37
49
  export type GetTemplateConfigVersionsReq = {
38
50
  workspaceId?: number
39
51
  }
@@ -44,6 +56,7 @@ export type GetTemplateConfigVersionsResp = {
44
56
 
45
57
  export type GetTemplateConfigStringResp = {
46
58
  conf?: string
59
+ fileName?: string
47
60
  }
48
61
 
49
62
  export type DeleteTemplateReq = {
@@ -75,6 +88,11 @@ export type GetTemplateConfigReq = {
75
88
  templateInstanceType?: TemplateInstanceType
76
89
  }
77
90
 
91
+ export type GetTemplateConfigStringReq = {
92
+ workspaceId?: number
93
+ name?: string
94
+ }
95
+
78
96
  export type CreateTemplateConfigResp = {
79
97
  message?: string
80
98
  }
@@ -91,6 +109,7 @@ export type CreateTemplateConfigReq = {
91
109
  targetTemplateType?: string
92
110
  targetConf?: string
93
111
  fromTemplateName?: string
112
+ targetTemplateInstanceType?: TemplateInstanceType
94
113
  }
95
114
 
96
115
  export type UpdateTemplateConfigReq = {
@@ -163,8 +182,11 @@ export class Template {
163
182
  static UpdateTemplateConfig(req: UpdateTemplateConfigReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigResp> {
164
183
  return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
165
184
  }
166
- static GetTemplateConfigString(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
167
- return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
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"})
187
+ }
188
+ static UpdateTemplateConfigToItem(req: UpdateTemplateConfigToItemReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigToItemResp> {
189
+ return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/template_config/to_template`, {...initReq, method: "PUT", body: JSON.stringify(req)})
168
190
  }
169
191
  static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
170
192
  return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
package/version.pb.ts CHANGED
@@ -17,6 +17,10 @@ export type GetVersionReply = {
17
17
  buildTime?: string
18
18
  }
19
19
 
20
+ export type HealthzReply = {
21
+ message?: string
22
+ }
23
+
20
24
  export type Empty = {
21
25
  }
22
26
 
@@ -24,4 +28,7 @@ export class Version {
24
28
  static Get(req: Empty, initReq?: fm.InitReq): Promise<GetVersionReply> {
25
29
  return fm.fetchReq<Empty, GetVersionReply>(`/apis/mcamel.io/postgresql/v1alpha1/postgresql/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
26
30
  }
31
+ static Healthz(req: Empty, initReq?: fm.InitReq): Promise<HealthzReply> {
32
+ return fm.fetchReq<Empty, HealthzReply>(`/healthz?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
33
+ }
27
34
  }