@daocloud-proto/mcamel-minio 0.2.0-45 → 0.2.0-451
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/cloudshell.pb.ts +5 -0
- package/cluster.pb.ts +245 -0
- package/common.pb.ts +56 -1
- package/insight.pb.ts +8 -12
- package/metric.pb.ts +11 -0
- package/minio.pb.ts +10 -8
- package/package.json +1 -1
- package/storage_config.pb.ts +188 -0
- package/template.pb.ts +172 -0
package/cloudshell.pb.ts
CHANGED
|
@@ -13,6 +13,8 @@ export enum CreateCloudShellRequestType {
|
|
|
13
13
|
bash = "bash",
|
|
14
14
|
exec = "exec",
|
|
15
15
|
logs = "logs",
|
|
16
|
+
upload = "upload",
|
|
17
|
+
download = "download",
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
export type ObjectMeta = {
|
|
@@ -53,6 +55,9 @@ export type CreateCloudShellRequest = {
|
|
|
53
55
|
cluster?: string
|
|
54
56
|
namespace?: string
|
|
55
57
|
podName?: string
|
|
58
|
+
filePath?: string
|
|
59
|
+
container?: string
|
|
60
|
+
logCount?: number
|
|
56
61
|
data?: CloudShell
|
|
57
62
|
}
|
|
58
63
|
|
package/cluster.pb.ts
CHANGED
|
@@ -7,12 +7,46 @@
|
|
|
7
7
|
import * as CommonCommon from "./common.pb"
|
|
8
8
|
import * as fm from "./fetch.pb"
|
|
9
9
|
|
|
10
|
+
export enum PermissionsType {
|
|
11
|
+
None = "None",
|
|
12
|
+
GetInstance = "GetInstance",
|
|
13
|
+
CreateInstance = "CreateInstance",
|
|
14
|
+
UpdateInstance = "UpdateInstance",
|
|
15
|
+
DeleteInstance = "DeleteInstance",
|
|
16
|
+
GetMetric = "GetMetric",
|
|
17
|
+
GetInstanceLog = "GetInstanceLog",
|
|
18
|
+
GetConfig = "GetConfig",
|
|
19
|
+
UpdateConfig = "UpdateConfig",
|
|
20
|
+
GetBackup = "GetBackup",
|
|
21
|
+
CreateBackup = "CreateBackup",
|
|
22
|
+
UpdateBackup = "UpdateBackup",
|
|
23
|
+
DeleteBackup = "DeleteBackup",
|
|
24
|
+
GetBackupConf = "GetBackupConf",
|
|
25
|
+
CreateBackupConf = "CreateBackupConf",
|
|
26
|
+
UpdateBackupConf = "UpdateBackupConf",
|
|
27
|
+
DeleteBackupConf = "DeleteBackupConf",
|
|
28
|
+
GetTemplate = "GetTemplate",
|
|
29
|
+
CreateTemplate = "CreateTemplate",
|
|
30
|
+
UpdateTemplate = "UpdateTemplate",
|
|
31
|
+
DeleteTemplate = "DeleteTemplate",
|
|
32
|
+
}
|
|
33
|
+
|
|
10
34
|
export enum EventType {
|
|
11
35
|
EVENT_TYPE_UNSPECIFIED = "EVENT_TYPE_UNSPECIFIED",
|
|
12
36
|
Normal = "Normal",
|
|
13
37
|
Warning = "Warning",
|
|
14
38
|
}
|
|
15
39
|
|
|
40
|
+
export enum InstallFileReqGVR {
|
|
41
|
+
None = "None",
|
|
42
|
+
CustomResourceDefinition = "CustomResourceDefinition",
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export enum GetAllEventListReqSortDir {
|
|
46
|
+
ASC = "ASC",
|
|
47
|
+
DESC = "DESC",
|
|
48
|
+
}
|
|
49
|
+
|
|
16
50
|
export enum GetEventListReqKind {
|
|
17
51
|
KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
|
|
18
52
|
Pod = "Pod",
|
|
@@ -23,9 +57,153 @@ export enum GetWorkspaceListReqSortDir {
|
|
|
23
57
|
DESC = "DESC",
|
|
24
58
|
}
|
|
25
59
|
|
|
60
|
+
export enum ClusterItemNetworkMode {
|
|
61
|
+
Unknown = "Unknown",
|
|
62
|
+
Flannel = "Flannel",
|
|
63
|
+
Calico = "Calico",
|
|
64
|
+
}
|
|
65
|
+
|
|
26
66
|
export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
27
67
|
NotInstall = "NotInstall",
|
|
28
68
|
Install = "Install",
|
|
69
|
+
ClusterUnknown = "ClusterUnknown",
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type InstallFileReq = {
|
|
73
|
+
cluster?: string
|
|
74
|
+
path?: string
|
|
75
|
+
gvr?: InstallFileReqGVR
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type InstallFileResp = {
|
|
79
|
+
message?: string
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type GetInstallVersionReq = {
|
|
83
|
+
cluster?: string
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type GetInstallVersionRespSupportVersion = {
|
|
87
|
+
minVersion?: string
|
|
88
|
+
maxVersion?: string
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type GetInstallVersionRespStatus = {
|
|
92
|
+
inRange?: boolean
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type GetInstallVersionResp = {
|
|
96
|
+
clusterVersion?: string
|
|
97
|
+
supportVersion?: GetInstallVersionRespSupportVersion
|
|
98
|
+
status?: GetInstallVersionRespStatus
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type RestartInstanceReq = {
|
|
102
|
+
workspaceId?: number
|
|
103
|
+
cluster?: string
|
|
104
|
+
namespace?: string
|
|
105
|
+
name?: string
|
|
106
|
+
extra?: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type RestartInstanceResp = {
|
|
110
|
+
message?: string
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type GetPermissionsListReq = {
|
|
114
|
+
workspaceId?: number
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type GetPermissionsListRespPermissions = {
|
|
118
|
+
getInstance?: boolean
|
|
119
|
+
createInstance?: boolean
|
|
120
|
+
updateInstance?: boolean
|
|
121
|
+
deleteInstance?: boolean
|
|
122
|
+
getMetric?: boolean
|
|
123
|
+
getInstanceLog?: boolean
|
|
124
|
+
getConfig?: boolean
|
|
125
|
+
updateConfig?: boolean
|
|
126
|
+
getBackup?: boolean
|
|
127
|
+
createBackup?: boolean
|
|
128
|
+
updateBackup?: boolean
|
|
129
|
+
deleteBackup?: boolean
|
|
130
|
+
getBackupConf?: boolean
|
|
131
|
+
createBackupConf?: boolean
|
|
132
|
+
updateBackupConf?: boolean
|
|
133
|
+
deleteBackupConf?: boolean
|
|
134
|
+
getTemplate?: boolean
|
|
135
|
+
createTemplate?: boolean
|
|
136
|
+
updateTemplate?: boolean
|
|
137
|
+
deleteTemplate?: boolean
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type GetPermissionsListResp = {
|
|
141
|
+
permissionsBool?: GetPermissionsListRespPermissions
|
|
142
|
+
permissions?: PermissionsType[]
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export type GetAllEventKindsListResp = {
|
|
146
|
+
data?: string[]
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type GetAllEventKindsListReq = {
|
|
150
|
+
cluster?: string
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type GetAllEventListReq = {
|
|
154
|
+
page?: number
|
|
155
|
+
pageSize?: number
|
|
156
|
+
sortDir?: GetAllEventListReqSortDir
|
|
157
|
+
sortBy?: string
|
|
158
|
+
searchKey?: string
|
|
159
|
+
cluster?: string
|
|
160
|
+
namespace?: string
|
|
161
|
+
name?: string
|
|
162
|
+
eventType?: EventType
|
|
163
|
+
kindName?: string
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export type GetAllEventListRespItemsSource = {
|
|
167
|
+
component?: string
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export type GetAllEventListRespItemsMetadata = {
|
|
171
|
+
uid?: string
|
|
172
|
+
name?: string
|
|
173
|
+
namespace?: string
|
|
174
|
+
annotations?: {[key: string]: string}
|
|
175
|
+
resourceVersion?: string
|
|
176
|
+
creationTimestamp?: string
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export type GetAllEventListRespItemsInvolvedObject = {
|
|
180
|
+
uid?: string
|
|
181
|
+
kind?: string
|
|
182
|
+
name?: string
|
|
183
|
+
namespace?: string
|
|
184
|
+
apiVersion?: string
|
|
185
|
+
resourceVersion?: string
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export type GetAllEventListRespItems = {
|
|
189
|
+
kind?: string
|
|
190
|
+
type?: string
|
|
191
|
+
count?: number
|
|
192
|
+
reason?: string
|
|
193
|
+
source?: GetAllEventListRespItemsSource
|
|
194
|
+
message?: string
|
|
195
|
+
metadata?: GetAllEventListRespItemsMetadata
|
|
196
|
+
apiVersion?: string
|
|
197
|
+
lastTimestamp?: string
|
|
198
|
+
firstTimestamp?: string
|
|
199
|
+
involvedObject?: GetAllEventListRespItemsInvolvedObject
|
|
200
|
+
reportingInstance?: string
|
|
201
|
+
reportingComponent?: string
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export type GetAllEventListResp = {
|
|
205
|
+
items?: GetAllEventListRespItems[]
|
|
206
|
+
pagination?: CommonCommon.Pagination
|
|
29
207
|
}
|
|
30
208
|
|
|
31
209
|
export type GetClusterNodeLabelListReq = {
|
|
@@ -42,6 +220,24 @@ export type GetClusterNodeLabelListResp = {
|
|
|
42
220
|
pagination?: CommonCommon.Pagination
|
|
43
221
|
}
|
|
44
222
|
|
|
223
|
+
export type GetClusterPodLabelListReq = {
|
|
224
|
+
page?: number
|
|
225
|
+
pageSize?: number
|
|
226
|
+
searchKey?: string
|
|
227
|
+
filterNamespace?: string
|
|
228
|
+
cluster?: string
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export type GetClusterPodLabelListRespLabel = {
|
|
232
|
+
key?: string
|
|
233
|
+
value?: string[]
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export type GetClusterPodLabelListResp = {
|
|
237
|
+
items?: GetClusterPodLabelListRespLabel[]
|
|
238
|
+
pagination?: CommonCommon.Pagination
|
|
239
|
+
}
|
|
240
|
+
|
|
45
241
|
export type GetClusterNodePortListReq = {
|
|
46
242
|
cluster?: string
|
|
47
243
|
}
|
|
@@ -114,6 +310,7 @@ export type GetWorkspaceListReq = {
|
|
|
114
310
|
export type GetWorkspaceListRespItem = {
|
|
115
311
|
workspaceId?: number
|
|
116
312
|
alias?: string
|
|
313
|
+
visible?: boolean
|
|
117
314
|
}
|
|
118
315
|
|
|
119
316
|
export type GetWorkspaceListResp = {
|
|
@@ -121,15 +318,39 @@ export type GetWorkspaceListResp = {
|
|
|
121
318
|
pagination?: CommonCommon.Pagination
|
|
122
319
|
}
|
|
123
320
|
|
|
321
|
+
export type GetClusterHostnetworkPortsReq = {
|
|
322
|
+
workspaceId?: number
|
|
323
|
+
cluster?: string
|
|
324
|
+
}
|
|
325
|
+
|
|
124
326
|
export type GetClusterListReq = {
|
|
125
327
|
workspaceId?: number
|
|
328
|
+
searchKey?: string
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export type GetClusterHostnetworkPortsResp = {
|
|
332
|
+
items?: string[]
|
|
126
333
|
}
|
|
127
334
|
|
|
128
335
|
export type GetClusterListResp = {
|
|
129
336
|
items?: string[]
|
|
337
|
+
clusters?: ClusterItem[]
|
|
130
338
|
pagination?: CommonCommon.Pagination
|
|
131
339
|
}
|
|
132
340
|
|
|
341
|
+
export type ClusterItemMetadata = {
|
|
342
|
+
name?: string
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export type ClusterItemStatus = {
|
|
346
|
+
networkMode?: ClusterItemNetworkMode[]
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export type ClusterItem = {
|
|
350
|
+
metadata?: ClusterItemMetadata
|
|
351
|
+
status?: ClusterItemStatus
|
|
352
|
+
}
|
|
353
|
+
|
|
133
354
|
export type GetClusterNamespaceListReq = {
|
|
134
355
|
workspaceId?: number
|
|
135
356
|
cluster?: string
|
|
@@ -152,6 +373,9 @@ export class Cluster {
|
|
|
152
373
|
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
153
374
|
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
154
375
|
}
|
|
376
|
+
static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
|
|
377
|
+
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/hostnetwork_ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
378
|
+
}
|
|
155
379
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
156
380
|
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
157
381
|
}
|
|
@@ -161,6 +385,9 @@ export class Cluster {
|
|
|
161
385
|
static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
|
|
162
386
|
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
163
387
|
}
|
|
388
|
+
static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
|
|
389
|
+
return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
390
|
+
}
|
|
164
391
|
static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
|
|
165
392
|
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/minio/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
166
393
|
}
|
|
@@ -170,7 +397,25 @@ export class Cluster {
|
|
|
170
397
|
static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
|
|
171
398
|
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
172
399
|
}
|
|
400
|
+
static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
|
|
401
|
+
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
402
|
+
}
|
|
403
|
+
static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
|
|
404
|
+
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
405
|
+
}
|
|
173
406
|
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
174
407
|
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
175
408
|
}
|
|
409
|
+
static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
|
|
410
|
+
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
411
|
+
}
|
|
412
|
+
static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
|
|
413
|
+
return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
414
|
+
}
|
|
415
|
+
static InstallFile(req: InstallFileReq, initReq?: fm.InitReq): Promise<InstallFileResp> {
|
|
416
|
+
return fm.fetchReq<InstallFileReq, InstallFileResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/install-file`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
417
|
+
}
|
|
418
|
+
static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
|
|
419
|
+
return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
420
|
+
}
|
|
176
421
|
}
|
package/common.pb.ts
CHANGED
|
@@ -10,7 +10,7 @@ export enum ExternalTrafficPolicy {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export enum LBTyp {
|
|
13
|
-
|
|
13
|
+
MetalLB = "MetalLB",
|
|
14
14
|
Others = "Others",
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -145,9 +145,14 @@ export type PodCommon = {
|
|
|
145
145
|
cpuLimit?: number
|
|
146
146
|
memoryUsage?: number
|
|
147
147
|
memoryLimit?: number
|
|
148
|
+
pvUsedInGb?: number
|
|
149
|
+
pvAllocatedInGb?: number
|
|
148
150
|
conditions?: PodCommonCondition[]
|
|
149
151
|
containersName?: string[]
|
|
150
152
|
ownerReference?: OwnerReference[]
|
|
153
|
+
initContainersName?: string[]
|
|
154
|
+
initContainersStatuses?: ContainerStatus[]
|
|
155
|
+
containersStatuses?: ContainerStatus[]
|
|
151
156
|
}
|
|
152
157
|
|
|
153
158
|
export type OwnerReference = {
|
|
@@ -160,4 +165,54 @@ export type OwnerReference = {
|
|
|
160
165
|
export type CommonItemStatus = {
|
|
161
166
|
serviceAddresses?: string[]
|
|
162
167
|
webManagerAddress?: string
|
|
168
|
+
webLogAddress?: string
|
|
169
|
+
avgPvAllocatedInGb?: number
|
|
170
|
+
avgPvUsedInGb?: number
|
|
171
|
+
cpuUtilization?: number
|
|
172
|
+
memoryUtilization?: number
|
|
173
|
+
isClusterUnknown?: boolean
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export type AccessWhitelistInternal = {
|
|
177
|
+
namespace?: string
|
|
178
|
+
podSelector?: {[key: string]: string}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export type AccessWhitelistExternal = {
|
|
182
|
+
cidr?: string
|
|
183
|
+
ip?: string
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export type AccessWhitelist = {
|
|
187
|
+
internals?: AccessWhitelistInternal[]
|
|
188
|
+
externals?: AccessWhitelistExternal[]
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export type ContainerStatus = {
|
|
192
|
+
name?: string
|
|
193
|
+
state?: ContainerState
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export type ContainerState = {
|
|
197
|
+
waiting?: ContainerStateWaiting
|
|
198
|
+
running?: ContainerStateRunning
|
|
199
|
+
terminated?: ContainerStateTerminated
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export type ContainerStateWaiting = {
|
|
203
|
+
reason?: string
|
|
204
|
+
message?: string
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export type ContainerStateRunning = {
|
|
208
|
+
startedAt?: string
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export type ContainerStateTerminated = {
|
|
212
|
+
exitCode?: number
|
|
213
|
+
signal?: number
|
|
214
|
+
reason?: string
|
|
215
|
+
message?: string
|
|
216
|
+
startedAt?: string
|
|
217
|
+
finishedAt?: string
|
|
163
218
|
}
|
package/insight.pb.ts
CHANGED
|
@@ -20,27 +20,23 @@ export enum TargetType {
|
|
|
20
20
|
DEPLOYMENT = "DEPLOYMENT",
|
|
21
21
|
STATEFULSET = "STATEFULSET",
|
|
22
22
|
DAEMONSET = "DAEMONSET",
|
|
23
|
-
CRONJOB = "CRONJOB",
|
|
24
23
|
POD = "POD",
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
export enum AlertStatus {
|
|
28
|
-
ALERT_STATUS_UNSPECIFIED = "ALERT_STATUS_UNSPECIFIED",
|
|
29
|
-
ALERT_STATUS_FIRING = "ALERT_STATUS_FIRING",
|
|
30
|
-
ALERT_STATUS_RESOLVED = "ALERT_STATUS_RESOLVED",
|
|
31
|
-
}
|
|
32
|
-
|
|
33
26
|
export type AlertSummary = {
|
|
34
|
-
|
|
27
|
+
id?: string
|
|
28
|
+
groupName?: string
|
|
29
|
+
groupId?: string
|
|
35
30
|
ruleName?: string
|
|
36
|
-
|
|
31
|
+
ruleId?: string
|
|
37
32
|
clusterName?: string
|
|
38
33
|
namespace?: string
|
|
39
34
|
targetType?: TargetType
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
target?: string
|
|
36
|
+
severity?: Severity
|
|
37
|
+
value?: string
|
|
38
|
+
notifyResponse?: string
|
|
42
39
|
description?: string
|
|
43
40
|
startAt?: string
|
|
44
41
|
updateAt?: string
|
|
45
|
-
notifyResponse?: string
|
|
46
42
|
}
|
package/metric.pb.ts
CHANGED
|
@@ -7,7 +7,18 @@
|
|
|
7
7
|
import * as CommonCommon from "./common.pb"
|
|
8
8
|
import * as fm from "./fetch.pb"
|
|
9
9
|
import * as InsightIoApiInsightV1alpha1Insight from "./insight.pb"
|
|
10
|
+
|
|
11
|
+
export enum GetAlertsListReqSortDir {
|
|
12
|
+
ASC = "ASC",
|
|
13
|
+
DESC = "DESC",
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
export type GetAlertsListReq = {
|
|
17
|
+
page?: number
|
|
18
|
+
pageSize?: number
|
|
19
|
+
sortDir?: GetAlertsListReqSortDir
|
|
20
|
+
sortBy?: string
|
|
21
|
+
searchKey?: string
|
|
11
22
|
cluster?: string
|
|
12
23
|
namespace?: string
|
|
13
24
|
name?: string
|
package/minio.pb.ts
CHANGED
|
@@ -32,12 +32,6 @@ export enum GetMinioConfReqSortDir {
|
|
|
32
32
|
DESC = "DESC",
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export enum CreateMinioReqServiceType {
|
|
36
|
-
ClusterIP = "ClusterIP",
|
|
37
|
-
NodePort = "NodePort",
|
|
38
|
-
LoadBalancer = "LoadBalancer",
|
|
39
|
-
}
|
|
40
|
-
|
|
41
35
|
export enum CreateMinioReqInstanceType {
|
|
42
36
|
HighAvailable = "HighAvailable",
|
|
43
37
|
Single = "Single",
|
|
@@ -128,7 +122,7 @@ export type CreateMinioReq = {
|
|
|
128
122
|
volumesPerServer?: number
|
|
129
123
|
storageClassName?: string
|
|
130
124
|
storageCapacity?: string
|
|
131
|
-
serviceType?:
|
|
125
|
+
serviceType?: CommonCommon.ServiceType
|
|
132
126
|
serviceAnnotations?: {[key: string]: string}
|
|
133
127
|
ports?: CreateMinioReqPorts[]
|
|
134
128
|
cpuRequest?: string
|
|
@@ -138,13 +132,17 @@ export type CreateMinioReq = {
|
|
|
138
132
|
instanceType?: CreateMinioReqInstanceType
|
|
139
133
|
consoleAccessKey?: string
|
|
140
134
|
consoleSecretKey?: string
|
|
141
|
-
consoleServiceType?:
|
|
135
|
+
consoleServiceType?: CommonCommon.ServiceType
|
|
142
136
|
consoleNodePort?: number
|
|
143
137
|
consoleServiceAnnotations?: {[key: string]: string}
|
|
144
138
|
minioRootUser?: string
|
|
145
139
|
minioRootPassword?: string
|
|
146
140
|
buckets?: CreateMinioReqBucket[]
|
|
147
141
|
affinity?: CommonCommon.Affinity
|
|
142
|
+
externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
|
|
143
|
+
lbTyp?: CommonCommon.LBTyp
|
|
144
|
+
lbPoolName?: string
|
|
145
|
+
lbAddress?: string
|
|
148
146
|
}
|
|
149
147
|
|
|
150
148
|
export type UpdateMinioConfReq = {
|
|
@@ -272,6 +270,8 @@ export type GetMinioGrafanaAddrReq = {
|
|
|
272
270
|
cluster?: string
|
|
273
271
|
namespace?: string
|
|
274
272
|
name?: string
|
|
273
|
+
from?: string
|
|
274
|
+
to?: string
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
export type GetMinioGrafanaAddrResp = {
|
|
@@ -311,6 +311,8 @@ export type TenantItemStatus = {
|
|
|
311
311
|
webManagerAddr?: string
|
|
312
312
|
clusterIPs?: string[]
|
|
313
313
|
serviceAddr?: string
|
|
314
|
+
isControl?: boolean
|
|
315
|
+
consoleAccessToken?: string
|
|
314
316
|
common?: CommonCommon.CommonItemStatus
|
|
315
317
|
}
|
|
316
318
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as CommonCommon from "./common.pb"
|
|
8
|
+
import * as fm from "./fetch.pb"
|
|
9
|
+
|
|
10
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
|
+
type OneOf<T> =
|
|
12
|
+
| { [k in keyof T]?: undefined }
|
|
13
|
+
| (
|
|
14
|
+
keyof T extends infer K ?
|
|
15
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
16
|
+
: never)
|
|
17
|
+
: never);
|
|
18
|
+
|
|
19
|
+
export enum GetStorageConfigParamRespSelectSelectType {
|
|
20
|
+
Single = "Single",
|
|
21
|
+
Multiple = "Multiple",
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export enum GetStorageConfigConsumersRespStorageConfigConsumerType {
|
|
25
|
+
STORAGE_CONFIG_CONSUMER_TYPE_UNSPECIFIED = "STORAGE_CONFIG_CONSUMER_TYPE_UNSPECIFIED",
|
|
26
|
+
STORAGE_CONFIG_CONSUMER_TYPE_MYSQL = "STORAGE_CONFIG_CONSUMER_TYPE_MYSQL",
|
|
27
|
+
STORAGE_CONFIG_CONSUMER_TYPE_REDIS = "STORAGE_CONFIG_CONSUMER_TYPE_REDIS",
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export enum GetStorageConfigListReqSortDir {
|
|
31
|
+
ASC = "ASC",
|
|
32
|
+
DESC = "DESC",
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type GetStorageConfigParamReq = {
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type GetStorageConfigParamRespSelectDataStringValue = {
|
|
39
|
+
value?: string
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type GetStorageConfigParamRespSelectDataIntValue = {
|
|
43
|
+
value?: number
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
type BaseGetStorageConfigParamRespSelectData = {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type GetStorageConfigParamRespSelectData = BaseGetStorageConfigParamRespSelectData
|
|
51
|
+
& OneOf<{ sValue: GetStorageConfigParamRespSelectDataStringValue; iValue: GetStorageConfigParamRespSelectDataIntValue }>
|
|
52
|
+
|
|
53
|
+
export type GetStorageConfigParamRespSelect = {
|
|
54
|
+
selectType?: GetStorageConfigParamRespSelectSelectType
|
|
55
|
+
data?: GetStorageConfigParamRespSelectData[]
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type GetStorageConfigParamResp = {
|
|
59
|
+
storageType?: GetStorageConfigParamRespSelect
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type CreateStorageConfigBucketCheckJobReq = {
|
|
63
|
+
storageType?: string
|
|
64
|
+
endpoint?: string
|
|
65
|
+
accessKey?: string
|
|
66
|
+
secretKey?: string
|
|
67
|
+
bucket?: string
|
|
68
|
+
cluster?: string
|
|
69
|
+
namespace?: string
|
|
70
|
+
name?: string
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type CreateStorageConfigBucketCheckJobResp = {
|
|
74
|
+
message?: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type CreateStorageConfigReq = {
|
|
78
|
+
workspaceId?: number
|
|
79
|
+
cluster?: string
|
|
80
|
+
namespace?: string
|
|
81
|
+
name?: string
|
|
82
|
+
storageType?: string
|
|
83
|
+
accessKey?: string
|
|
84
|
+
secretKey?: string
|
|
85
|
+
bucket?: string
|
|
86
|
+
endpoint?: string
|
|
87
|
+
minioCluster?: string
|
|
88
|
+
minioNamespace?: string
|
|
89
|
+
minioName?: string
|
|
90
|
+
description?: string
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type CreateStorageConfigResp = {
|
|
94
|
+
message?: string
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type GetStorageConfigConsumersReq = {
|
|
98
|
+
workspaceId?: number
|
|
99
|
+
name?: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type GetStorageConfigConsumersRespConsumer = {
|
|
103
|
+
type?: GetStorageConfigConsumersRespStorageConfigConsumerType
|
|
104
|
+
cluster?: string
|
|
105
|
+
namespace?: string
|
|
106
|
+
name?: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type GetStorageConfigConsumersResp = {
|
|
110
|
+
consumers?: GetStorageConfigConsumersRespConsumer[]
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type DeleteStorageConfigReq = {
|
|
114
|
+
workspaceId?: number
|
|
115
|
+
name?: string
|
|
116
|
+
cluster?: string
|
|
117
|
+
namespace?: string
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type DeleteStorageConfigResp = {
|
|
121
|
+
message?: string
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export type UpdateStorageConfigResp = {
|
|
125
|
+
message?: string
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type StorageConfigItemStorageConfigStatus = {
|
|
129
|
+
lastUpdateTimestamp?: string
|
|
130
|
+
createTimestamp?: string
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type StorageConfigItem = {
|
|
134
|
+
spec?: CreateStorageConfigReq
|
|
135
|
+
status?: StorageConfigItemStorageConfigStatus
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type GetStorageConfigReq = {
|
|
139
|
+
workspaceId?: number
|
|
140
|
+
name?: string
|
|
141
|
+
namespace?: string
|
|
142
|
+
cluster?: string
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export type GetStorageConfigResp = {
|
|
146
|
+
item?: StorageConfigItem
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type GetStorageConfigListReq = {
|
|
150
|
+
page?: number
|
|
151
|
+
pageSize?: number
|
|
152
|
+
sortDir?: GetStorageConfigListReqSortDir
|
|
153
|
+
sortBy?: string
|
|
154
|
+
searchKey?: string
|
|
155
|
+
workspaceId?: number
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export type GetStorageConfigListResp = {
|
|
159
|
+
items?: StorageConfigItem[]
|
|
160
|
+
pagination?: CommonCommon.Pagination
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export class StorageConfig {
|
|
164
|
+
static GetStorageConfigParam(req: GetStorageConfigParamReq, initReq?: fm.InitReq): Promise<GetStorageConfigParamResp> {
|
|
165
|
+
return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/minio/v1alpha1/storage-config/param?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
166
|
+
}
|
|
167
|
+
static CreateStorageConfigBucketCheckJob(req: CreateStorageConfigBucketCheckJobReq, initReq?: fm.InitReq): Promise<CreateStorageConfigBucketCheckJobResp> {
|
|
168
|
+
return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/minio/v1alpha1/storage-config/bucket/check-job`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
169
|
+
}
|
|
170
|
+
static CreateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<CreateStorageConfigResp> {
|
|
171
|
+
return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/storage-config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
172
|
+
}
|
|
173
|
+
static GetStorageConfigConsumers(req: GetStorageConfigConsumersReq, initReq?: fm.InitReq): Promise<GetStorageConfigConsumersResp> {
|
|
174
|
+
return fm.fetchReq<GetStorageConfigConsumersReq, GetStorageConfigConsumersResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}/consumers?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
175
|
+
}
|
|
176
|
+
static DeleteStorageConfig(req: DeleteStorageConfigReq, initReq?: fm.InitReq): Promise<DeleteStorageConfigResp> {
|
|
177
|
+
return fm.fetchReq<DeleteStorageConfigReq, DeleteStorageConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/storage-config/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
178
|
+
}
|
|
179
|
+
static UpdateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<UpdateStorageConfigResp> {
|
|
180
|
+
return fm.fetchReq<CreateStorageConfigReq, UpdateStorageConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
181
|
+
}
|
|
182
|
+
static GetStorageConfig(req: GetStorageConfigReq, initReq?: fm.InitReq): Promise<GetStorageConfigResp> {
|
|
183
|
+
return fm.fetchReq<GetStorageConfigReq, GetStorageConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
184
|
+
}
|
|
185
|
+
static GetStorageConfigList(req: GetStorageConfigListReq, initReq?: fm.InitReq): Promise<GetStorageConfigListResp> {
|
|
186
|
+
return fm.fetchReq<GetStorageConfigListReq, GetStorageConfigListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/storage-configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
187
|
+
}
|
|
188
|
+
}
|
package/template.pb.ts
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as CommonCommon from "./common.pb"
|
|
8
|
+
import * as fm from "./fetch.pb"
|
|
9
|
+
|
|
10
|
+
export enum TemplateInstanceType {
|
|
11
|
+
MysqlMasterReplica = "MysqlMasterReplica",
|
|
12
|
+
RedisStandalone = "RedisStandalone",
|
|
13
|
+
RedisFailover = "RedisFailover",
|
|
14
|
+
RedisCluster = "RedisCluster",
|
|
15
|
+
KafkaConfig = "KafkaConfig",
|
|
16
|
+
MysqlMgrConfig = "MysqlMgrConfig",
|
|
17
|
+
MongodbConfig = "MongodbConfig",
|
|
18
|
+
PostgresqlConfig = "PostgresqlConfig",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export enum GetTemplateConfigReqSortDir {
|
|
22
|
+
ASC = "ASC",
|
|
23
|
+
DESC = "DESC",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export enum GetTemplateConfigListReqSortDir {
|
|
27
|
+
ASC = "ASC",
|
|
28
|
+
DESC = "DESC",
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export enum TemplateConfigItemValueType {
|
|
32
|
+
String = "String",
|
|
33
|
+
SingleSelection = "SingleSelection",
|
|
34
|
+
MultiString = "MultiString",
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type GetTemplateConfigVersionsReq = {
|
|
38
|
+
workspaceId?: number
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type GetTemplateConfigVersionsResp = {
|
|
42
|
+
versions?: string[]
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type GetTemplateConfigStringResp = {
|
|
46
|
+
conf?: string
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type DeleteTemplateReq = {
|
|
50
|
+
workspaceId?: number
|
|
51
|
+
name?: string
|
|
52
|
+
version?: string
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type DeleteTemplateConfigResp = {
|
|
56
|
+
message?: string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type CreateOrUpdateTemplateConfigResp = {
|
|
60
|
+
message?: string
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type GetTemplateConfigReq = {
|
|
64
|
+
page?: number
|
|
65
|
+
pageSize?: number
|
|
66
|
+
sortDir?: GetTemplateConfigReqSortDir
|
|
67
|
+
sortBy?: string
|
|
68
|
+
searchKey?: string
|
|
69
|
+
workspaceId?: number
|
|
70
|
+
name?: string
|
|
71
|
+
version?: string
|
|
72
|
+
templateType?: string
|
|
73
|
+
type?: string
|
|
74
|
+
createTimestamp?: string
|
|
75
|
+
templateInstanceType?: TemplateInstanceType
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type CreateTemplateConfigResp = {
|
|
79
|
+
message?: string
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type UpdateTemplateConfigResp = {
|
|
83
|
+
message?: string
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type CreateTemplateConfigReq = {
|
|
87
|
+
workspaceId?: number
|
|
88
|
+
targetName?: string
|
|
89
|
+
targetVersion?: string
|
|
90
|
+
targetType?: string
|
|
91
|
+
targetTemplateType?: string
|
|
92
|
+
targetConf?: string
|
|
93
|
+
fromTemplateName?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type UpdateTemplateConfigReq = {
|
|
97
|
+
workspaceId?: number
|
|
98
|
+
name?: string
|
|
99
|
+
version?: string
|
|
100
|
+
type?: string
|
|
101
|
+
templateType?: string
|
|
102
|
+
items?: TemplateConfigItem[]
|
|
103
|
+
conf?: string
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type GetTemplateConfigResp = {
|
|
107
|
+
data?: UpdateTemplateConfigReq
|
|
108
|
+
pagination?: CommonCommon.Pagination
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type GetTemplateConfigListReq = {
|
|
112
|
+
page?: number
|
|
113
|
+
pageSize?: number
|
|
114
|
+
sortDir?: GetTemplateConfigListReqSortDir
|
|
115
|
+
sortBy?: string
|
|
116
|
+
searchKey?: string
|
|
117
|
+
workspaceId?: number
|
|
118
|
+
version?: string
|
|
119
|
+
templateInstanceType?: TemplateInstanceType
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export type TemplateConfigItem = {
|
|
123
|
+
name?: string
|
|
124
|
+
default?: string
|
|
125
|
+
current?: string
|
|
126
|
+
value?: string
|
|
127
|
+
isNeedRestart?: boolean
|
|
128
|
+
valueType?: TemplateConfigItemValueType
|
|
129
|
+
valueRemarksZh?: string
|
|
130
|
+
valueRemarksEn?: string
|
|
131
|
+
updateTimestamp?: string
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export type GetTemplateConfigListResp = {
|
|
135
|
+
items?: GetTemplateConfigReq[]
|
|
136
|
+
pagination?: CommonCommon.Pagination
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type GetTemplateInstanceTypeListReq = {
|
|
140
|
+
workspaceId?: number
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type GetTemplateInstanceTypeListResp = {
|
|
144
|
+
type?: TemplateInstanceType[]
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export class Template {
|
|
148
|
+
static GetTemplateConfigList(req: GetTemplateConfigListReq, initReq?: fm.InitReq): Promise<GetTemplateConfigListResp> {
|
|
149
|
+
return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_config?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
150
|
+
}
|
|
151
|
+
static GetTemplateInstanceTypeList(req: GetTemplateInstanceTypeListReq, initReq?: fm.InitReq): Promise<GetTemplateInstanceTypeListResp> {
|
|
152
|
+
return fm.fetchReq<GetTemplateInstanceTypeListReq, GetTemplateInstanceTypeListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_instance_type?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
153
|
+
}
|
|
154
|
+
static GetTemplateConfig(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigResp> {
|
|
155
|
+
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
156
|
+
}
|
|
157
|
+
static DeleteTemplateConfig(req: DeleteTemplateReq, initReq?: fm.InitReq): Promise<DeleteTemplateConfigResp> {
|
|
158
|
+
return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/${req["version"]}`, {...initReq, method: "DELETE"})
|
|
159
|
+
}
|
|
160
|
+
static CreateTemplateConfig(req: CreateTemplateConfigReq, initReq?: fm.InitReq): Promise<CreateTemplateConfigResp> {
|
|
161
|
+
return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
162
|
+
}
|
|
163
|
+
static UpdateTemplateConfig(req: UpdateTemplateConfigReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigResp> {
|
|
164
|
+
return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
165
|
+
}
|
|
166
|
+
static GetTemplateConfigString(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
|
|
167
|
+
return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
168
|
+
}
|
|
169
|
+
static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
|
|
170
|
+
return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
171
|
+
}
|
|
172
|
+
}
|