@daocloud-proto/mcamel-mongodb 0.0.1-10-g5542873

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.
@@ -0,0 +1,78 @@
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 GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
8
+ import * as CommonCommon from "./common.pb"
9
+ import * as fm from "./fetch.pb"
10
+
11
+ export enum CreateCloudShellRequestType {
12
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
13
+ bash = "bash",
14
+ exec = "exec",
15
+ logs = "logs",
16
+ upload = "upload",
17
+ download = "download",
18
+ }
19
+
20
+ export type ObjectMeta = {
21
+ name?: string
22
+ namespace?: string
23
+ uid?: string
24
+ resourceVersion?: string
25
+ creationTimestamp?: string
26
+ deletionTimestamp?: string
27
+ labels?: {[key: string]: string}
28
+ annotations?: {[key: string]: string}
29
+ ownerReferences?: CommonCommon.OwnerReference[]
30
+ cluster?: string
31
+ workspaceAlias?: string
32
+ }
33
+
34
+ export type CloudShell = {
35
+ metadata?: ObjectMeta
36
+ spec?: CloudShellSpec
37
+ status?: CloudShellStatus
38
+ }
39
+
40
+ export type CloudShellSpec = {
41
+ configMapName?: string
42
+ once?: boolean
43
+ commandAction?: string
44
+ ttl?: number
45
+ cleanup?: boolean
46
+ }
47
+
48
+ export type CloudShellStatus = {
49
+ phase?: string
50
+ accessUrl?: string
51
+ }
52
+
53
+ export type CreateCloudShellRequest = {
54
+ type?: CreateCloudShellRequestType
55
+ cluster?: string
56
+ namespace?: string
57
+ podName?: string
58
+ filePath?: string
59
+ container?: string
60
+ logCount?: number
61
+ data?: CloudShell
62
+ }
63
+
64
+ export type GetorDeleteCloudShellRequest = {
65
+ name?: string
66
+ }
67
+
68
+ export class CloudShellService {
69
+ static CreateCloudShell(req: CreateCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
70
+ return fm.fetchReq<CreateCloudShellRequest, CloudShell>(`/apis/mcamel.io/seaweedfs/v1alpha1/cloudshells`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
71
+ }
72
+ static GetCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
73
+ return fm.fetchReq<GetorDeleteCloudShellRequest, CloudShell>(`/apis/mcamel.io/seaweedfs/v1alpha1/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
74
+ }
75
+ static DeleteCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
76
+ return fm.fetchReq<GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/mcamel.io/seaweedfs/v1alpha1/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
77
+ }
78
+ }
package/cluster.pb.ts ADDED
@@ -0,0 +1,594 @@
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 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
+ GetUserPassword = "GetUserPassword",
33
+ ExportTemplate = "ExportTemplate",
34
+ ImportTemplate = "ImportTemplate",
35
+ }
36
+
37
+ export enum EventType {
38
+ EVENT_TYPE_UNSPECIFIED = "EVENT_TYPE_UNSPECIFIED",
39
+ Normal = "Normal",
40
+ Warning = "Warning",
41
+ }
42
+
43
+ export enum GetClusterNodeTaintListRespTaintEffect {
44
+ NoSchedule = "NoSchedule",
45
+ PreferNoSchedule = "PreferNoSchedule",
46
+ NoExecute = "NoExecute",
47
+ }
48
+
49
+ export enum InstallFileReqGVR {
50
+ None = "None",
51
+ CustomResourceDefinition = "CustomResourceDefinition",
52
+ }
53
+
54
+ export enum GetAllEventListReqSortDir {
55
+ ASC = "ASC",
56
+ DESC = "DESC",
57
+ }
58
+
59
+ export enum GetEventListReqKind {
60
+ KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
61
+ Pod = "Pod",
62
+ }
63
+
64
+ export enum GetWorkspaceListReqSortDir {
65
+ ASC = "ASC",
66
+ DESC = "DESC",
67
+ }
68
+
69
+ export enum ClusterItemNetworkMode {
70
+ Unknown = "Unknown",
71
+ Flannel = "Flannel",
72
+ Calico = "Calico",
73
+ }
74
+
75
+ export enum ClusterSettingPluginPluginName {
76
+ PLUGIN_NAME_UNSPECIFIED = "PLUGIN_NAME_UNSPECIFIED",
77
+ HPA = "HPA",
78
+ Insight = "Insight",
79
+ GPU = "GPU",
80
+ METALLB = "METALLB",
81
+ Spiderpool = "Spiderpool",
82
+ CustomMetrics = "CustomMetrics",
83
+ CronHPA = "CronHPA",
84
+ VPA = "VPA",
85
+ Hwameistor = "Hwameistor",
86
+ Flannel = "Flannel",
87
+ KubeOvn = "KubeOvn",
88
+ OLM = "OLM",
89
+ EgressGateway = "EgressGateway",
90
+ Snapshot = "Snapshot",
91
+ DRA = "DRA",
92
+ }
93
+
94
+ export enum GetInsightAgentStatusRespInsightAgentStatus {
95
+ NotInstall = "NotInstall",
96
+ Install = "Install",
97
+ }
98
+
99
+ export type GetAllVisibleWorkspaceClusterListReq = {
100
+ }
101
+
102
+ export type GetAllVisibleWorkspaceClusterListResp = {
103
+ clusters?: ClusterItem[]
104
+ pagination?: CommonCommon.Pagination
105
+ }
106
+
107
+ export type GetAllVisibleWorkspaceClusterNamespaceListReq = {
108
+ cluster?: string
109
+ }
110
+
111
+ export type GetAllVisibleWorkspaceClusterNamespaceListResp = {
112
+ items?: WorkspaceClusterNamespace[]
113
+ pagination?: CommonCommon.Pagination
114
+ }
115
+
116
+ export type WorkspaceClusterNamespace = {
117
+ namespace?: string
118
+ cluster?: string
119
+ workspaceId?: string
120
+ workspaceName?: string
121
+ }
122
+
123
+ export type GetClusterNodeTaintListReq = {
124
+ cluster?: string
125
+ nodeName?: string
126
+ }
127
+
128
+ export type GetClusterNodeTaintListRespTaint = {
129
+ key?: string
130
+ value?: string
131
+ effect?: GetClusterNodeTaintListRespTaintEffect
132
+ nodeName?: string
133
+ }
134
+
135
+ export type GetClusterNodeTaintListResp = {
136
+ items?: GetClusterNodeTaintListRespTaint[]
137
+ }
138
+
139
+ export type GetClusterNodeListReq = {
140
+ cluster?: string
141
+ }
142
+
143
+ export type GetClusterNodeListRespNode = {
144
+ name?: string
145
+ }
146
+
147
+ export type GetClusterNodeListResp = {
148
+ items?: GetClusterNodeListRespNode[]
149
+ }
150
+
151
+ export type GetClusterReq = {
152
+ workspaceId?: number
153
+ name?: string
154
+ }
155
+
156
+ export type GetClusterResp = {
157
+ cluster?: ClusterItem
158
+ }
159
+
160
+ export type InstallFileReq = {
161
+ cluster?: string
162
+ path?: string
163
+ gvr?: InstallFileReqGVR
164
+ }
165
+
166
+ export type InstallFileResp = {
167
+ message?: string
168
+ }
169
+
170
+ export type GetInstallVersionReq = {
171
+ cluster?: string
172
+ }
173
+
174
+ export type GetInstallVersionRespSupportVersion = {
175
+ minVersion?: string
176
+ maxVersion?: string
177
+ }
178
+
179
+ export type GetInstallVersionRespStatus = {
180
+ inRange?: boolean
181
+ }
182
+
183
+ export type GetInstallVersionResp = {
184
+ clusterVersion?: string
185
+ supportVersion?: GetInstallVersionRespSupportVersion
186
+ status?: GetInstallVersionRespStatus
187
+ }
188
+
189
+ export type RestartInstanceReq = {
190
+ workspaceId?: number
191
+ cluster?: string
192
+ namespace?: string
193
+ name?: string
194
+ extra?: string
195
+ }
196
+
197
+ export type RestartInstanceResp = {
198
+ message?: string
199
+ }
200
+
201
+ export type GetPermissionsListReq = {
202
+ workspaceId?: number
203
+ }
204
+
205
+ export type GetPermissionsListRespPermissions = {
206
+ getInstance?: boolean
207
+ createInstance?: boolean
208
+ updateInstance?: boolean
209
+ deleteInstance?: boolean
210
+ getMetric?: boolean
211
+ getInstanceLog?: boolean
212
+ getConfig?: boolean
213
+ updateConfig?: boolean
214
+ getBackup?: boolean
215
+ createBackup?: boolean
216
+ updateBackup?: boolean
217
+ deleteBackup?: boolean
218
+ getBackupConf?: boolean
219
+ createBackupConf?: boolean
220
+ updateBackupConf?: boolean
221
+ deleteBackupConf?: boolean
222
+ getTemplate?: boolean
223
+ createTemplate?: boolean
224
+ updateTemplate?: boolean
225
+ deleteTemplate?: boolean
226
+ getUserPassword?: boolean
227
+ exportTemplate?: boolean
228
+ importTemplate?: boolean
229
+ }
230
+
231
+ export type GetPermissionsListResp = {
232
+ permissionsBool?: GetPermissionsListRespPermissions
233
+ permissions?: PermissionsType[]
234
+ }
235
+
236
+ export type GetAllEventKindsListResp = {
237
+ data?: string[]
238
+ }
239
+
240
+ export type GetAllEventKindsListReq = {
241
+ cluster?: string
242
+ }
243
+
244
+ export type GetAllEventListReq = {
245
+ page?: number
246
+ pageSize?: number
247
+ sortDir?: GetAllEventListReqSortDir
248
+ sortBy?: string
249
+ searchKey?: string
250
+ cluster?: string
251
+ namespace?: string
252
+ name?: string
253
+ eventType?: EventType
254
+ kindName?: string
255
+ workspaceId?: number
256
+ }
257
+
258
+ export type GetAllEventListRespItemsSource = {
259
+ component?: string
260
+ }
261
+
262
+ export type GetAllEventListRespItemsMetadata = {
263
+ uid?: string
264
+ name?: string
265
+ namespace?: string
266
+ annotations?: {[key: string]: string}
267
+ resourceVersion?: string
268
+ creationTimestamp?: string
269
+ }
270
+
271
+ export type GetAllEventListRespItemsInvolvedObject = {
272
+ uid?: string
273
+ kind?: string
274
+ name?: string
275
+ namespace?: string
276
+ apiVersion?: string
277
+ resourceVersion?: string
278
+ }
279
+
280
+ export type GetAllEventListRespItems = {
281
+ kind?: string
282
+ type?: string
283
+ count?: number
284
+ reason?: string
285
+ source?: GetAllEventListRespItemsSource
286
+ message?: string
287
+ metadata?: GetAllEventListRespItemsMetadata
288
+ apiVersion?: string
289
+ lastTimestamp?: string
290
+ firstTimestamp?: string
291
+ involvedObject?: GetAllEventListRespItemsInvolvedObject
292
+ reportingInstance?: string
293
+ reportingComponent?: string
294
+ }
295
+
296
+ export type GetAllEventListResp = {
297
+ items?: GetAllEventListRespItems[]
298
+ pagination?: CommonCommon.Pagination
299
+ }
300
+
301
+ export type GetClusterNodeLabelListReq = {
302
+ cluster?: string
303
+ }
304
+
305
+ export type GetClusterNodeLabelListRespLabel = {
306
+ key?: string
307
+ value?: string[]
308
+ }
309
+
310
+ export type GetClusterNodeLabelListRespNode2Label = {
311
+ nodeName?: string
312
+ label?: GetClusterNodeLabelListRespLabel[]
313
+ }
314
+
315
+ export type GetClusterNodeLabelListResp = {
316
+ items?: GetClusterNodeLabelListRespLabel[]
317
+ items1?: GetClusterNodeLabelListRespNode2Label[]
318
+ pagination?: CommonCommon.Pagination
319
+ }
320
+
321
+ export type GetClusterPodLabelListReq = {
322
+ page?: number
323
+ pageSize?: number
324
+ searchKey?: string
325
+ filterNamespace?: string
326
+ cluster?: string
327
+ }
328
+
329
+ export type GetClusterPodLabelListRespLabel = {
330
+ key?: string
331
+ value?: string[]
332
+ }
333
+
334
+ export type GetClusterPodLabelListResp = {
335
+ items?: GetClusterPodLabelListRespLabel[]
336
+ pagination?: CommonCommon.Pagination
337
+ }
338
+
339
+ export type GetClusterNodePortListReq = {
340
+ cluster?: string
341
+ }
342
+
343
+ export type GetClusterNodePortListResp = {
344
+ items?: string[]
345
+ pagination?: CommonCommon.Pagination
346
+ }
347
+
348
+ export type EventSource = {
349
+ component?: string
350
+ host?: string
351
+ }
352
+
353
+ export type GetMetallbIPAddressPoolsListReq = {
354
+ cluster?: string
355
+ }
356
+
357
+ export type GetMetallbIPAddressPoolsListRespItem = {
358
+ name?: string
359
+ addresses?: string[]
360
+ autoAssign?: boolean
361
+ avoidBuggyIPs?: boolean
362
+ }
363
+
364
+ export type GetMetallbIPAddressPoolsListResp = {
365
+ items?: GetMetallbIPAddressPoolsListRespItem[]
366
+ isSupportLb?: boolean
367
+ externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy[]
368
+ lbTyp?: CommonCommon.LBTyp[]
369
+ }
370
+
371
+ export type GetEventListReq = {
372
+ cluster?: string
373
+ namespace?: string
374
+ kind?: GetEventListReqKind
375
+ kindName?: string
376
+ page?: number
377
+ pageSize?: number
378
+ type?: EventType[]
379
+ }
380
+
381
+ export type ObjectReference = {
382
+ kind?: string
383
+ name?: string
384
+ }
385
+
386
+ export type GetEventListRespItem = {
387
+ involvedObject?: ObjectReference
388
+ reason?: string
389
+ message?: string
390
+ source?: EventSource
391
+ lastTimestamp?: string
392
+ type?: EventType
393
+ }
394
+
395
+ export type GetEventListResp = {
396
+ items?: GetEventListRespItem[]
397
+ pagination?: CommonCommon.Pagination
398
+ }
399
+
400
+ export type GetWorkspaceListReq = {
401
+ page?: number
402
+ pageSize?: number
403
+ sortDir?: GetWorkspaceListReqSortDir
404
+ sortBy?: string
405
+ searchKey?: string
406
+ }
407
+
408
+ export type GetWorkspaceListRespItem = {
409
+ workspaceId?: number
410
+ alias?: string
411
+ visible?: boolean
412
+ }
413
+
414
+ export type GetWorkspaceListResp = {
415
+ items?: GetWorkspaceListRespItem[]
416
+ pagination?: CommonCommon.Pagination
417
+ }
418
+
419
+ export type GetClusterHostnetworkPortsReq = {
420
+ workspaceId?: number
421
+ cluster?: string
422
+ }
423
+
424
+ export type GetClusterListReq = {
425
+ workspaceId?: number
426
+ searchKey?: string
427
+ }
428
+
429
+ export type GetClusterHostnetworkPortsResp = {
430
+ items?: number[]
431
+ }
432
+
433
+ export type GetClusterListResp = {
434
+ items?: string[]
435
+ clusters?: ClusterItem[]
436
+ pagination?: CommonCommon.Pagination
437
+ }
438
+
439
+ export type ClusterItemMetadata = {
440
+ name?: string
441
+ }
442
+
443
+ export type ClusterItemStatus = {
444
+ networkMode?: ClusterItemNetworkMode[]
445
+ setting?: ClusterSetting
446
+ clusterStatus?: CommonCommon.ClusterStatus
447
+ workspace?: Workspace
448
+ }
449
+
450
+ export type ClusterItem = {
451
+ metadata?: ClusterItemMetadata
452
+ status?: ClusterItemStatus
453
+ }
454
+
455
+ export type Workspace = {
456
+ id?: number
457
+ name?: string
458
+ }
459
+
460
+ export type ClusterSettingPlugin = {
461
+ name?: ClusterSettingPluginPluginName
462
+ enabled?: boolean
463
+ intelligentDetection?: boolean
464
+ externalAddress?: string
465
+ setting?: string
466
+ healthy?: boolean
467
+ }
468
+
469
+ export type ClusterSetting = {
470
+ plugins?: ClusterSettingPlugin[]
471
+ network?: ClusterSettingPlugin[]
472
+ }
473
+
474
+ export type GetClusterNamespaceListReq = {
475
+ workspaceId?: number
476
+ cluster?: string
477
+ }
478
+
479
+ export type GetClusterNamespaceListResp = {
480
+ items?: string[]
481
+ disableItems?: string[]
482
+ pagination?: CommonCommon.Pagination
483
+ }
484
+
485
+ export type GetInsightAgentStatusReq = {
486
+ cluster?: string
487
+ }
488
+
489
+ export type GetInsightAgentStatusResp = {
490
+ status?: GetInsightAgentStatusRespInsightAgentStatus
491
+ clusterStatus?: CommonCommon.ClusterStatus
492
+ }
493
+
494
+ export type GetResourceQuotaReq = {
495
+ cluster?: string
496
+ namespace?: string
497
+ }
498
+
499
+ export type GetResourceQuotaRespMetadata = {
500
+ uid?: string
501
+ name?: string
502
+ namespace?: string
503
+ annotations?: {[key: string]: string}
504
+ resourceVersion?: string
505
+ creationTimestamp?: string
506
+ }
507
+
508
+ export type GetResourceQuotaRespSpec = {
509
+ hard?: {[key: string]: string}
510
+ }
511
+
512
+ export type GetResourceQuotaRespStatus = {
513
+ hard?: {[key: string]: string}
514
+ used?: {[key: string]: string}
515
+ available?: {[key: string]: string}
516
+ }
517
+
518
+ export type GetResourceQuotaResp = {
519
+ metadata?: GetResourceQuotaRespMetadata
520
+ spec?: GetResourceQuotaRespSpec
521
+ status?: GetResourceQuotaRespStatus
522
+ }
523
+
524
+ export class Cluster {
525
+ static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
526
+ return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
527
+ }
528
+ static GetAllVisibleWorkspaceClusterList(req: GetAllVisibleWorkspaceClusterListReq, initReq?: fm.InitReq): Promise<GetAllVisibleWorkspaceClusterListResp> {
529
+ return fm.fetchReq<GetAllVisibleWorkspaceClusterListReq, GetAllVisibleWorkspaceClusterListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
530
+ }
531
+ static GetCluster(req: GetClusterReq, initReq?: fm.InitReq): Promise<GetClusterResp> {
532
+ return fm.fetchReq<GetClusterReq, GetClusterResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["workspaceId"]}/clusters/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
533
+ }
534
+ static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
535
+ return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
536
+ }
537
+ static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
538
+ return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
539
+ }
540
+ static GetAllVisibleWorkspaceClusterNamespaceList(req: GetAllVisibleWorkspaceClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetAllVisibleWorkspaceClusterNamespaceListResp> {
541
+ return fm.fetchReq<GetAllVisibleWorkspaceClusterNamespaceListReq, GetAllVisibleWorkspaceClusterNamespaceListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
542
+ }
543
+ static GetClusterNodePortList(req: GetClusterNodePortListReq, initReq?: fm.InitReq): Promise<GetClusterNodePortListResp> {
544
+ return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["cluster"]}/nodeports?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
545
+ }
546
+ static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
547
+ return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
548
+ }
549
+ static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
550
+ return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
551
+ }
552
+ static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
553
+ return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
554
+ }
555
+ static GetInsightAgentStatus(req: GetInsightAgentStatusReq, initReq?: fm.InitReq): Promise<GetInsightAgentStatusResp> {
556
+ return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["cluster"]}/insight/status?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
557
+ }
558
+ static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
559
+ return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
560
+ }
561
+ static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
562
+ return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
563
+ }
564
+ static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
565
+ return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
566
+ }
567
+ static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
568
+ return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
569
+ }
570
+ static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
571
+ return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
572
+ }
573
+ static GetAllVisibleWorkspacePermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
574
+ return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
575
+ }
576
+ static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
577
+ return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
578
+ }
579
+ static InstallFile(req: InstallFileReq, initReq?: fm.InitReq): Promise<InstallFileResp> {
580
+ return fm.fetchReq<InstallFileReq, InstallFileResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["cluster"]}/install-file`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
581
+ }
582
+ static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
583
+ return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
584
+ }
585
+ static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
586
+ return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
587
+ }
588
+ static GetClusterNodeTaintList(req: GetClusterNodeTaintListReq, initReq?: fm.InitReq): Promise<GetClusterNodeTaintListResp> {
589
+ return fm.fetchReq<GetClusterNodeTaintListReq, GetClusterNodeTaintListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/clusters/${req["cluster"]}/nodes/taints?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
590
+ }
591
+ static GetClusterNodeList(req: GetClusterNodeListReq, initReq?: fm.InitReq): Promise<GetClusterNodeListResp> {
592
+ return fm.fetchReq<GetClusterNodeListReq, GetClusterNodeListResp>(`/apis/mcamel.io/seaweedfs/v1alpha1/clusters/${req["cluster"]}/nodes?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
593
+ }
594
+ }