@daocloud-proto/mcamel-rabbitmq 0.17.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
@@ -29,6 +29,9 @@ export enum PermissionsType {
29
29
  CreateTemplate = "CreateTemplate",
30
30
  UpdateTemplate = "UpdateTemplate",
31
31
  DeleteTemplate = "DeleteTemplate",
32
+ GetUserPassword = "GetUserPassword",
33
+ ExportTemplate = "ExportTemplate",
34
+ ImportTemplate = "ImportTemplate",
32
35
  }
33
36
 
34
37
  export enum EventType {
@@ -134,6 +137,9 @@ export type GetPermissionsListRespPermissions = {
134
137
  createTemplate?: boolean
135
138
  updateTemplate?: boolean
136
139
  deleteTemplate?: boolean
140
+ getUserPassword?: boolean
141
+ exportTemplate?: boolean
142
+ importTemplate?: boolean
137
143
  }
138
144
 
139
145
  export type GetPermissionsListResp = {
@@ -214,8 +220,14 @@ export type GetClusterNodeLabelListRespLabel = {
214
220
  value?: string[]
215
221
  }
216
222
 
223
+ export type GetClusterNodeLabelListRespNode2Label = {
224
+ nodeName?: string
225
+ label?: GetClusterNodeLabelListRespLabel[]
226
+ }
227
+
217
228
  export type GetClusterNodeLabelListResp = {
218
229
  items?: GetClusterNodeLabelListRespLabel[]
230
+ items1?: GetClusterNodeLabelListRespNode2Label[]
219
231
  pagination?: CommonCommon.Pagination
220
232
  }
221
233
 
@@ -328,7 +340,7 @@ export type GetClusterListReq = {
328
340
  }
329
341
 
330
342
  export type GetClusterHostnetworkPortsResp = {
331
- items?: string[]
343
+ items?: number[]
332
344
  }
333
345
 
334
346
  export type GetClusterListResp = {
@@ -357,6 +369,7 @@ export type GetClusterNamespaceListReq = {
357
369
 
358
370
  export type GetClusterNamespaceListResp = {
359
371
  items?: string[]
372
+ disableItems?: string[]
360
373
  pagination?: CommonCommon.Pagination
361
374
  }
362
375
 
@@ -366,6 +379,37 @@ export type GetInsightAgentStatusReq = {
366
379
 
367
380
  export type GetInsightAgentStatusResp = {
368
381
  status?: GetInsightAgentStatusRespInsightAgentStatus
382
+ clusterStatus?: CommonCommon.ClusterStatus
383
+ }
384
+
385
+ export type GetResourceQuotaReq = {
386
+ cluster?: string
387
+ namespace?: string
388
+ }
389
+
390
+ export type GetResourceQuotaRespMetadata = {
391
+ uid?: string
392
+ name?: string
393
+ namespace?: string
394
+ annotations?: {[key: string]: string}
395
+ resourceVersion?: string
396
+ creationTimestamp?: string
397
+ }
398
+
399
+ export type GetResourceQuotaRespSpec = {
400
+ hard?: {[key: string]: string}
401
+ }
402
+
403
+ export type GetResourceQuotaRespStatus = {
404
+ hard?: {[key: string]: string}
405
+ used?: {[key: string]: string}
406
+ available?: {[key: string]: string}
407
+ }
408
+
409
+ export type GetResourceQuotaResp = {
410
+ metadata?: GetResourceQuotaRespMetadata
411
+ spec?: GetResourceQuotaRespSpec
412
+ status?: GetResourceQuotaRespStatus
369
413
  }
370
414
 
371
415
  export class Cluster {
@@ -373,7 +417,7 @@ export class Cluster {
373
417
  return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
374
418
  }
375
419
  static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
376
- return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/hostnetwork_ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
420
+ return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
377
421
  }
378
422
  static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
379
423
  return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
@@ -417,4 +461,7 @@ export class Cluster {
417
461
  static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
418
462
  return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
419
463
  }
464
+ static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
465
+ return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
466
+ }
420
467
  }
package/common.pb.ts CHANGED
@@ -20,6 +20,16 @@ export enum ServiceType {
20
20
  LoadBalancer = "LoadBalancer",
21
21
  }
22
22
 
23
+ export enum ClusterStatus {
24
+ UNSPECIFIED = "UNSPECIFIED",
25
+ Unknown = "Unknown",
26
+ Creating = "Creating",
27
+ Running = "Running",
28
+ Updating = "Updating",
29
+ Deleting = "Deleting",
30
+ Failed = "Failed",
31
+ }
32
+
23
33
  export enum PageInfoReqSortDir {
24
34
  ASC = "ASC",
25
35
  DESC = "DESC",
@@ -40,6 +50,14 @@ export enum PodCommonConditionStatus {
40
50
  PodConditionStatusFalse = "PodConditionStatusFalse",
41
51
  }
42
52
 
53
+ export enum PodCommonFilterPodStatus {
54
+ UNSPECIFIED = "UNSPECIFIED",
55
+ RUNNING = "RUNNING",
56
+ ERROR = "ERROR",
57
+ COMPLETED = "COMPLETED",
58
+ WAITING = "WAITING",
59
+ }
60
+
43
61
  export type Affinity = {
44
62
  nodeAffinity?: NodeAffinity
45
63
  podAffinity?: PodAffinity
@@ -153,6 +171,7 @@ export type PodCommon = {
153
171
  initContainersName?: string[]
154
172
  initContainersStatuses?: ContainerStatus[]
155
173
  containersStatuses?: ContainerStatus[]
174
+ podStatus?: string
156
175
  }
157
176
 
158
177
  export type OwnerReference = {
@@ -170,7 +189,7 @@ export type CommonItemStatus = {
170
189
  avgPvUsedInGb?: number
171
190
  cpuUtilization?: number
172
191
  memoryUtilization?: number
173
- isClusterUnknown?: boolean
192
+ clusterStatus?: ClusterStatus
174
193
  }
175
194
 
176
195
  export type AccessWhitelistInternal = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-rabbitmq",
3
- "version":"0.17.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 = {
@@ -171,13 +175,6 @@ export type GetRabbitMqParamRespSelectDataStringValue = {
171
175
  value?: string
172
176
  }
173
177
 
174
- export type GetRabbitMqParamRespSelectDataResourceValue = {
175
- cpuRequest?: string
176
- cpuLimit?: string
177
- memoryRequest?: string
178
- memoryLimit?: string
179
- }
180
-
181
178
  export type GetRabbitMqParamRespSelectDataIntValue = {
182
179
  value?: number
183
180
  }
@@ -192,7 +189,7 @@ type BaseGetRabbitMqParamRespSelectData = {
192
189
  }
193
190
 
194
191
  export type GetRabbitMqParamRespSelectData = BaseGetRabbitMqParamRespSelectData
195
- & OneOf<{ sValue: GetRabbitMqParamRespSelectDataStringValue; rValue: GetRabbitMqParamRespSelectDataResourceValue; iValue: GetRabbitMqParamRespSelectDataIntValue; scValue: GetRabbitMqParamRespSelectDataStorageClassValue }>
192
+ & OneOf<{ sValue: GetRabbitMqParamRespSelectDataStringValue; iValue: GetRabbitMqParamRespSelectDataIntValue; scValue: GetRabbitMqParamRespSelectDataStorageClassValue }>
196
193
 
197
194
  export type GetRabbitMqParamRespSelect = {
198
195
  selectType?: GetRabbitMqParamRespSelectSelectType
@@ -202,7 +199,6 @@ export type GetRabbitMqParamRespSelect = {
202
199
  export type GetRabbitMqParamResp = {
203
200
  version?: GetRabbitMqParamRespSelect
204
201
  replicas?: GetRabbitMqParamRespSelect
205
- resource?: GetRabbitMqParamRespSelect
206
202
  storage?: GetRabbitMqParamRespSelect
207
203
  }
208
204
 
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
  }