@daocloud-proto/mcamel-mongodb 0.7.0-rc1-3 → 0.8.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 +44 -2
- package/common.pb.ts +11 -1
- package/mongodb.pb.ts +10 -10
- package/package.json +1 -1
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?:
|
|
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/mongodb/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/mongodb/v1alpha1/${req["workspaceId"]}/
|
|
415
|
+
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/mongodb/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/mongodb/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/mongodb/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/mongodb/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
|
-
|
|
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
|
-
|
|
228
|
+
initSourceMongodbClusterName?: string
|
|
222
229
|
initSourceBackupName?: string
|
|
223
230
|
backupSchedule?: string
|
|
224
231
|
backupBucket?: string
|
|
@@ -312,13 +319,6 @@ export type GetMongodbParamRespSelectDataStringValue = {
|
|
|
312
319
|
value?: string
|
|
313
320
|
}
|
|
314
321
|
|
|
315
|
-
export type GetMongodbParamRespSelectDataResourceValue = {
|
|
316
|
-
cpuRequest?: string
|
|
317
|
-
cpuLimit?: string
|
|
318
|
-
memoryRequest?: string
|
|
319
|
-
memoryLimit?: string
|
|
320
|
-
}
|
|
321
|
-
|
|
322
322
|
export type GetMongodbParamRespSelectDataIntValue = {
|
|
323
323
|
value?: number
|
|
324
324
|
}
|
|
@@ -333,7 +333,7 @@ type BaseGetMongodbParamRespSelectData = {
|
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
export type GetMongodbParamRespSelectData = BaseGetMongodbParamRespSelectData
|
|
336
|
-
& OneOf<{ sValue: GetMongodbParamRespSelectDataStringValue;
|
|
336
|
+
& OneOf<{ sValue: GetMongodbParamRespSelectDataStringValue; iValue: GetMongodbParamRespSelectDataIntValue; scValue: GetMongodbParamRespSelectDataStorageClassValue }>
|
|
337
337
|
|
|
338
338
|
export type GetMongodbParamRespSelect = {
|
|
339
339
|
selectType?: GetMongodbParamRespSelectSelectType
|
|
@@ -344,7 +344,6 @@ export type GetMongodbParamResp = {
|
|
|
344
344
|
version?: GetMongodbParamRespSelect
|
|
345
345
|
conf?: GetMongodbParamRespSelect
|
|
346
346
|
replicas?: GetMongodbParamRespSelect
|
|
347
|
-
resource?: GetMongodbParamRespSelect
|
|
348
347
|
storage?: GetMongodbParamRespSelect
|
|
349
348
|
}
|
|
350
349
|
|
|
@@ -465,6 +464,7 @@ export type MongodbItemStatus = {
|
|
|
465
464
|
cpuUtilization?: number
|
|
466
465
|
memoryUtilization?: number
|
|
467
466
|
avgReplicationLagInSecond?: number
|
|
467
|
+
restoreInitialStatus?: MongodbItemStatusRestoreInitialStatus
|
|
468
468
|
}
|
|
469
469
|
|
|
470
470
|
export type MongodbItemMetadata = {
|