@daocloud-proto/mcamel-rabbitmq 0.18.0-rc1-1 → 0.20.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-rabbitmq",
3
- "version":"0.18.0-rc1-1",
3
+ "version":"0.20.0-rc1-4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/rabbitmq.pb.ts CHANGED
@@ -6,6 +6,7 @@
6
6
 
7
7
  import * as CommonCommon from "./common.pb"
8
8
  import * as fm from "./fetch.pb"
9
+ import * as TemplateTemplate from "./template.pb"
9
10
 
10
11
  type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
11
12
  type OneOf<T> =
@@ -132,14 +133,17 @@ export type CreateRabbitMqReq = {
132
133
  managementLbTyp?: CommonCommon.LBTyp
133
134
  managementLbPoolName?: string
134
135
  managementLbAddress?: string
136
+ conf?: string
137
+ confTemplateName?: string
135
138
  }
136
139
 
137
140
  export type UpdateRabbitMqConfReq = {
138
141
  cluster?: string
139
142
  namespace?: string
140
143
  name?: string
141
- defaultUser?: string
142
- defaultPass?: string
144
+ conf?: string
145
+ confItems?: TemplateTemplate.TemplateConfigItem[]
146
+ reloadFromConfTemplateName?: string
143
147
  }
144
148
 
145
149
  export type UpdateRabbitMqParamsReq = {
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/rabbitmq/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/rabbitmq/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/rabbitmq/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/rabbitmq/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/rabbitmq/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/rabbitmq/v1alpha1/rabbitmq/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
  }