@daocloud-proto/mcamel-mongodb 0.7.0-rc1-3 → 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
@@ -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,37 @@ 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
+ available?: {[key: string]: string}
403
+ }
404
+
405
+ export type GetResourceQuotaResp = {
406
+ metadata?: GetResourceQuotaRespMetadata
407
+ spec?: GetResourceQuotaRespSpec
408
+ status?: GetResourceQuotaRespStatus
369
409
  }
370
410
 
371
411
  export class Cluster {
@@ -373,7 +413,7 @@ export class Cluster {
373
413
  return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
374
414
  }
375
415
  static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
376
- return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/hostnetwork_ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
416
+ return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
377
417
  }
378
418
  static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
379
419
  return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
@@ -417,4 +457,7 @@ export class Cluster {
417
457
  static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
418
458
  return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
419
459
  }
460
+ static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
461
+ return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
462
+ }
420
463
  }
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/mongodb.pb.ts CHANGED
@@ -93,6 +93,13 @@ export enum GetMongodbConfRespItemsParamType {
93
93
  conf = "conf",
94
94
  }
95
95
 
96
+ export enum MongodbItemStatusRestoreInitialStatus {
97
+ Unknown = "Unknown",
98
+ Running = "Running",
99
+ Failed = "Failed",
100
+ Succeeded = "Succeeded",
101
+ }
102
+
96
103
  export type GetMinioListResp = {
97
104
  items?: TenantItem[]
98
105
  pagination?: CommonCommon.Pagination
@@ -218,7 +225,7 @@ export type CreateMongodbReq = {
218
225
  storageConfigNamespace?: string
219
226
  storageConfigCluster?: string
220
227
  isOpenAutoBackup?: boolean
221
- initSourceMysqlClusterName?: string
228
+ initSourceMongodbClusterName?: string
222
229
  initSourceBackupName?: string
223
230
  backupSchedule?: string
224
231
  backupBucket?: string
@@ -232,6 +239,7 @@ export type DeleteMongodbBackupReq = {
232
239
  namespace?: string
233
240
  backupName?: string
234
241
  isOpenAutoBackup?: boolean
242
+ removeRemoteBackup?: boolean
235
243
  }
236
244
 
237
245
  export type DeleteMongodbBackupResp = {
@@ -312,13 +320,6 @@ export type GetMongodbParamRespSelectDataStringValue = {
312
320
  value?: string
313
321
  }
314
322
 
315
- export type GetMongodbParamRespSelectDataResourceValue = {
316
- cpuRequest?: string
317
- cpuLimit?: string
318
- memoryRequest?: string
319
- memoryLimit?: string
320
- }
321
-
322
323
  export type GetMongodbParamRespSelectDataIntValue = {
323
324
  value?: number
324
325
  }
@@ -333,7 +334,7 @@ type BaseGetMongodbParamRespSelectData = {
333
334
  }
334
335
 
335
336
  export type GetMongodbParamRespSelectData = BaseGetMongodbParamRespSelectData
336
- & OneOf<{ sValue: GetMongodbParamRespSelectDataStringValue; rValue: GetMongodbParamRespSelectDataResourceValue; iValue: GetMongodbParamRespSelectDataIntValue; scValue: GetMongodbParamRespSelectDataStorageClassValue }>
337
+ & OneOf<{ sValue: GetMongodbParamRespSelectDataStringValue; iValue: GetMongodbParamRespSelectDataIntValue; scValue: GetMongodbParamRespSelectDataStorageClassValue }>
337
338
 
338
339
  export type GetMongodbParamRespSelect = {
339
340
  selectType?: GetMongodbParamRespSelectSelectType
@@ -344,7 +345,6 @@ export type GetMongodbParamResp = {
344
345
  version?: GetMongodbParamRespSelect
345
346
  conf?: GetMongodbParamRespSelect
346
347
  replicas?: GetMongodbParamRespSelect
347
- resource?: GetMongodbParamRespSelect
348
348
  storage?: GetMongodbParamRespSelect
349
349
  }
350
350
 
@@ -465,6 +465,7 @@ export type MongodbItemStatus = {
465
465
  cpuUtilization?: number
466
466
  memoryUtilization?: number
467
467
  avgReplicationLagInSecond?: number
468
+ restoreInitialStatus?: MongodbItemStatusRestoreInitialStatus
468
469
  }
469
470
 
470
471
  export type MongodbItemMetadata = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-mongodb",
3
- "version":"0.7.0-rc1-3",
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
  }