@daocloud-proto/mcamel-mongodb 0.8.0-rc1-2 → 0.10.0-rc1-4

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/mongodb.pb.ts CHANGED
@@ -239,6 +239,7 @@ export type DeleteMongodbBackupReq = {
239
239
  namespace?: string
240
240
  backupName?: string
241
241
  isOpenAutoBackup?: boolean
242
+ removeRemoteBackup?: boolean
242
243
  }
243
244
 
244
245
  export type DeleteMongodbBackupResp = {
@@ -569,7 +570,7 @@ export class Mongodb {
569
570
  return fm.fetchReq<GetMongodbBackupListReq, GetMongodbBackupListResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backups?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
570
571
  }
571
572
  static DeleteMongodbBackup(req: DeleteMongodbBackupReq, initReq?: fm.InitReq): Promise<DeleteMongodbBackupResp> {
572
- return fm.fetchReq<DeleteMongodbBackupReq, DeleteMongodbBackupResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/backups/${req["cluster"]}/${req["namespace"]}/${req["backupName"]}`, {...initReq, method: "DELETE"})
573
+ return fm.fetchReq<DeleteMongodbBackupReq, DeleteMongodbBackupResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/backups/${req["cluster"]}/${req["namespace"]}/${req["backupName"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
573
574
  }
574
575
  static CreateMongodbRecover(req: CreateMongodbRecoverReq, initReq?: fm.InitReq): Promise<CreateMongodbRecoverResp> {
575
576
  return fm.fetchReq<CreateMongodbRecoverReq, CreateMongodbRecoverResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/recover`, {...initReq, method: "POST", body: JSON.stringify(req)})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-mongodb",
3
- "version":"0.8.0-rc1-2",
3
+ "version":"0.10.0-rc1-4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
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/mongodb/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/mongodb/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/mongodb/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/mongodb/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/mongodb/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/mongodb/v1alpha1/mongodb/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
  }