@daocloud-proto/mcamel-mongodb 0.8.0-rc1-2 → 0.9.0-rc1-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/cluster.pb.ts CHANGED
@@ -399,6 +399,7 @@ export type GetResourceQuotaRespSpec = {
399
399
  export type GetResourceQuotaRespStatus = {
400
400
  hard?: {[key: string]: string}
401
401
  used?: {[key: string]: string}
402
+ available?: {[key: string]: string}
402
403
  }
403
404
 
404
405
  export type GetResourceQuotaResp = {
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 = {
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.9.0-rc1-2",
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,18 @@ 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
+ pagination?: CommonCommon.Pagination
48
+ }
49
+
37
50
  export type GetTemplateConfigVersionsReq = {
38
51
  workspaceId?: number
39
52
  }
@@ -91,6 +104,7 @@ export type CreateTemplateConfigReq = {
91
104
  targetTemplateType?: string
92
105
  targetConf?: string
93
106
  fromTemplateName?: string
107
+ targetTemplateInstanceType?: TemplateInstanceType
94
108
  }
95
109
 
96
110
  export type UpdateTemplateConfigReq = {
@@ -166,6 +180,9 @@ export class Template {
166
180
  static GetTemplateConfigString(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
167
181
  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"})
168
182
  }
183
+ static UpdateTemplateConfigToItem(req: UpdateTemplateConfigToItemReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigToItemResp> {
184
+ return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/template_config/to_template`, {...initReq, method: "PUT", body: JSON.stringify(req)})
185
+ }
169
186
  static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
170
187
  return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
171
188
  }
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
  }