@daocloud-proto/mcamel-rabbitmq 0.17.0-rc1-1 → 0.18.0-rc1-1

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,7 @@ export enum PermissionsType {
29
29
  CreateTemplate = "CreateTemplate",
30
30
  UpdateTemplate = "UpdateTemplate",
31
31
  DeleteTemplate = "DeleteTemplate",
32
+ GetUserPassword = "GetUserPassword",
32
33
  }
33
34
 
34
35
  export enum EventType {
@@ -134,6 +135,7 @@ export type GetPermissionsListRespPermissions = {
134
135
  createTemplate?: boolean
135
136
  updateTemplate?: boolean
136
137
  deleteTemplate?: boolean
138
+ getUserPassword?: boolean
137
139
  }
138
140
 
139
141
  export type GetPermissionsListResp = {
@@ -214,8 +216,14 @@ export type GetClusterNodeLabelListRespLabel = {
214
216
  value?: string[]
215
217
  }
216
218
 
219
+ export type GetClusterNodeLabelListRespNode2Label = {
220
+ nodeName?: string
221
+ label?: GetClusterNodeLabelListRespLabel[]
222
+ }
223
+
217
224
  export type GetClusterNodeLabelListResp = {
218
225
  items?: GetClusterNodeLabelListRespLabel[]
226
+ items1?: GetClusterNodeLabelListRespNode2Label[]
219
227
  pagination?: CommonCommon.Pagination
220
228
  }
221
229
 
@@ -328,7 +336,7 @@ export type GetClusterListReq = {
328
336
  }
329
337
 
330
338
  export type GetClusterHostnetworkPortsResp = {
331
- items?: string[]
339
+ items?: number[]
332
340
  }
333
341
 
334
342
  export type GetClusterListResp = {
@@ -357,6 +365,7 @@ export type GetClusterNamespaceListReq = {
357
365
 
358
366
  export type GetClusterNamespaceListResp = {
359
367
  items?: string[]
368
+ disableItems?: string[]
360
369
  pagination?: CommonCommon.Pagination
361
370
  }
362
371
 
@@ -366,6 +375,36 @@ export type GetInsightAgentStatusReq = {
366
375
 
367
376
  export type GetInsightAgentStatusResp = {
368
377
  status?: GetInsightAgentStatusRespInsightAgentStatus
378
+ clusterStatus?: CommonCommon.ClusterStatus
379
+ }
380
+
381
+ export type GetResourceQuotaReq = {
382
+ cluster?: string
383
+ namespace?: string
384
+ }
385
+
386
+ export type GetResourceQuotaRespMetadata = {
387
+ uid?: string
388
+ name?: string
389
+ namespace?: string
390
+ annotations?: {[key: string]: string}
391
+ resourceVersion?: string
392
+ creationTimestamp?: string
393
+ }
394
+
395
+ export type GetResourceQuotaRespSpec = {
396
+ hard?: {[key: string]: string}
397
+ }
398
+
399
+ export type GetResourceQuotaRespStatus = {
400
+ hard?: {[key: string]: string}
401
+ used?: {[key: string]: string}
402
+ }
403
+
404
+ export type GetResourceQuotaResp = {
405
+ metadata?: GetResourceQuotaRespMetadata
406
+ spec?: GetResourceQuotaRespSpec
407
+ status?: GetResourceQuotaRespStatus
369
408
  }
370
409
 
371
410
  export class Cluster {
@@ -373,7 +412,7 @@ export class Cluster {
373
412
  return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
374
413
  }
375
414
  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"})
415
+ return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
377
416
  }
378
417
  static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
379
418
  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 +456,7 @@ export class Cluster {
417
456
  static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
418
457
  return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
419
458
  }
459
+ static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
460
+ return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
461
+ }
420
462
  }
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",
@@ -170,7 +180,7 @@ export type CommonItemStatus = {
170
180
  avgPvUsedInGb?: number
171
181
  cpuUtilization?: number
172
182
  memoryUtilization?: number
173
- isClusterUnknown?: boolean
183
+ clusterStatus?: ClusterStatus
174
184
  }
175
185
 
176
186
  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.18.0-rc1-1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/rabbitmq.pb.ts CHANGED
@@ -171,13 +171,6 @@ export type GetRabbitMqParamRespSelectDataStringValue = {
171
171
  value?: string
172
172
  }
173
173
 
174
- export type GetRabbitMqParamRespSelectDataResourceValue = {
175
- cpuRequest?: string
176
- cpuLimit?: string
177
- memoryRequest?: string
178
- memoryLimit?: string
179
- }
180
-
181
174
  export type GetRabbitMqParamRespSelectDataIntValue = {
182
175
  value?: number
183
176
  }
@@ -192,7 +185,7 @@ type BaseGetRabbitMqParamRespSelectData = {
192
185
  }
193
186
 
194
187
  export type GetRabbitMqParamRespSelectData = BaseGetRabbitMqParamRespSelectData
195
- & OneOf<{ sValue: GetRabbitMqParamRespSelectDataStringValue; rValue: GetRabbitMqParamRespSelectDataResourceValue; iValue: GetRabbitMqParamRespSelectDataIntValue; scValue: GetRabbitMqParamRespSelectDataStorageClassValue }>
188
+ & OneOf<{ sValue: GetRabbitMqParamRespSelectDataStringValue; iValue: GetRabbitMqParamRespSelectDataIntValue; scValue: GetRabbitMqParamRespSelectDataStorageClassValue }>
196
189
 
197
190
  export type GetRabbitMqParamRespSelect = {
198
191
  selectType?: GetRabbitMqParamRespSelectSelectType
@@ -202,7 +195,6 @@ export type GetRabbitMqParamRespSelect = {
202
195
  export type GetRabbitMqParamResp = {
203
196
  version?: GetRabbitMqParamRespSelect
204
197
  replicas?: GetRabbitMqParamRespSelect
205
- resource?: GetRabbitMqParamRespSelect
206
198
  storage?: GetRabbitMqParamRespSelect
207
199
  }
208
200