@daocloud-proto/mcamel-postgresql 0.0.2-234 → 0.0.2-236
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 +21 -26
- package/common.pb.ts +2 -0
- package/package.json +1 -1
package/cluster.pb.ts
CHANGED
|
@@ -37,12 +37,6 @@ export enum EventType {
|
|
|
37
37
|
Warning = "Warning",
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export enum GetClusterRespNetworkMode {
|
|
41
|
-
Unknown = "Unknown",
|
|
42
|
-
Flannel = "Flannel",
|
|
43
|
-
Calico = "Calico",
|
|
44
|
-
}
|
|
45
|
-
|
|
46
40
|
export enum GetAllEventListReqSortDir {
|
|
47
41
|
ASC = "ASC",
|
|
48
42
|
DESC = "DESC",
|
|
@@ -58,28 +52,17 @@ export enum GetWorkspaceListReqSortDir {
|
|
|
58
52
|
DESC = "DESC",
|
|
59
53
|
}
|
|
60
54
|
|
|
55
|
+
export enum ClusterItemNetworkMode {
|
|
56
|
+
Unknown = "Unknown",
|
|
57
|
+
Flannel = "Flannel",
|
|
58
|
+
Calico = "Calico",
|
|
59
|
+
}
|
|
60
|
+
|
|
61
61
|
export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
62
62
|
NotInstall = "NotInstall",
|
|
63
63
|
Install = "Install",
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
export type GetClusterReq = {
|
|
67
|
-
cluster?: string
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export type GetClusterRespMetadata = {
|
|
71
|
-
name?: string
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export type GetClusterRespStatus = {
|
|
75
|
-
networkMode?: GetClusterRespNetworkMode[]
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export type GetClusterResp = {
|
|
79
|
-
metadata?: GetClusterRespMetadata
|
|
80
|
-
status?: GetClusterRespStatus
|
|
81
|
-
}
|
|
82
|
-
|
|
83
66
|
export type GetPermissionsListReq = {
|
|
84
67
|
workspaceId?: number
|
|
85
68
|
}
|
|
@@ -290,13 +273,28 @@ export type GetWorkspaceListResp = {
|
|
|
290
273
|
|
|
291
274
|
export type GetClusterListReq = {
|
|
292
275
|
workspaceId?: number
|
|
276
|
+
searchKey?: string
|
|
293
277
|
}
|
|
294
278
|
|
|
295
279
|
export type GetClusterListResp = {
|
|
296
280
|
items?: string[]
|
|
281
|
+
clusters?: ClusterItem[]
|
|
297
282
|
pagination?: CommonCommon.Pagination
|
|
298
283
|
}
|
|
299
284
|
|
|
285
|
+
export type ClusterItemMetadata = {
|
|
286
|
+
name?: string
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export type ClusterItemStatus = {
|
|
290
|
+
networkMode?: ClusterItemNetworkMode[]
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export type ClusterItem = {
|
|
294
|
+
metadata?: ClusterItemMetadata
|
|
295
|
+
status?: ClusterItemStatus
|
|
296
|
+
}
|
|
297
|
+
|
|
300
298
|
export type GetClusterNamespaceListReq = {
|
|
301
299
|
workspaceId?: number
|
|
302
300
|
cluster?: string
|
|
@@ -319,9 +317,6 @@ export class Cluster {
|
|
|
319
317
|
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
320
318
|
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
321
319
|
}
|
|
322
|
-
static GetCluster(req: GetClusterReq, initReq?: fm.InitReq): Promise<GetClusterResp> {
|
|
323
|
-
return fm.fetchReq<GetClusterReq, GetClusterResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
324
|
-
}
|
|
325
320
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
326
321
|
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
327
322
|
}
|
package/common.pb.ts
CHANGED