@daocloud-proto/baize 0.111.3 → 0.112.0
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/management-api/analysis/v1alpha2/analysis.pb.ts +28 -0
- package/management-api/cluster/v1alpha2/cluster.pb.ts +26 -0
- package/management-api/dataset/v1alpha2/dataset.pb.ts +28 -0
- package/management-api/job/v1alpha2/job.pb.ts +28 -0
- package/management-api/labeling/v1alpha2/labeling.pb.ts +28 -0
- package/management-api/metrics/v1alpha2/metrics.pb.ts +26 -0
- package/management-api/model/v1alpha2/model.pb.ts +26 -0
- package/management-api/notebook/v1alpha2/notebook.pb.ts +28 -0
- package/management-api/pod/v1alpha2/pod.pb.ts +29 -0
- package/management-api/queue/v1alpha1/queue.pb.ts +26 -0
- package/management-api/queue/v1alpha2/queue.pb.ts +26 -0
- package/management-api/serving/v1alpha2/serving.pb.ts +28 -0
- package/management-api/workspace/v1alpha2/workspace.pb.ts +28 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
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 BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListAnalysisRequest = {
|
|
10
|
+
workspace?: number
|
|
11
|
+
cluster?: string
|
|
12
|
+
namespace?: string
|
|
13
|
+
page?: BaizeCommonCommon.Pagination
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Analysis = {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListAnalysisResponse = {
|
|
20
|
+
items?: Analysis[]
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class AnalysisService {
|
|
25
|
+
static ListAnalysis(req: ListAnalysisRequest, initReq?: fm.InitReq): Promise<ListAnalysisResponse> {
|
|
26
|
+
return fm.fetchReq<ListAnalysisRequest, ListAnalysisResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/analysis?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListClustersRequest = {
|
|
10
|
+
workspace?: number
|
|
11
|
+
page?: BaizeCommonCommon.Pagination
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type Cluster = {
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type ListClustersResponse = {
|
|
18
|
+
items?: Cluster[]
|
|
19
|
+
page?: BaizeCommonCommon.Pagination
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class ClusterService {
|
|
23
|
+
static ListClusters(req: ListClustersRequest, initReq?: fm.InitReq): Promise<ListClustersResponse> {
|
|
24
|
+
return fm.fetchReq<ListClustersRequest, ListClustersResponse>(`/apis/baize.io/v1alpha2/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListDatasetsRequest = {
|
|
10
|
+
workspace?: number
|
|
11
|
+
cluster?: string
|
|
12
|
+
namespace?: string
|
|
13
|
+
page?: BaizeCommonCommon.Pagination
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Dataset = {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListDatasetsResponse = {
|
|
20
|
+
items?: Dataset[]
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class DatasetService {
|
|
25
|
+
static ListDatasets(req: ListDatasetsRequest, initReq?: fm.InitReq): Promise<ListDatasetsResponse> {
|
|
26
|
+
return fm.fetchReq<ListDatasetsRequest, ListDatasetsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/datasets?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListJobsRequest = {
|
|
10
|
+
workspace?: number
|
|
11
|
+
cluster?: string
|
|
12
|
+
namespace?: string
|
|
13
|
+
page?: BaizeCommonCommon.Pagination
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Job = {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListJobsResponse = {
|
|
20
|
+
items?: Job[]
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class JobService {
|
|
25
|
+
static ListJobs(req: ListJobsRequest, initReq?: fm.InitReq): Promise<ListJobsResponse> {
|
|
26
|
+
return fm.fetchReq<ListJobsRequest, ListJobsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/jobs?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListLabelingsRequest = {
|
|
10
|
+
workspace?: number
|
|
11
|
+
cluster?: string
|
|
12
|
+
namespace?: string
|
|
13
|
+
page?: BaizeCommonCommon.Pagination
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Labeling = {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListLabelingsResponse = {
|
|
20
|
+
items?: Labeling[]
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class LabelingService {
|
|
25
|
+
static ListLabeling(req: ListLabelingsRequest, initReq?: fm.InitReq): Promise<ListLabelingsResponse> {
|
|
26
|
+
return fm.fetchReq<ListLabelingsRequest, ListLabelingsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/labeling-instances?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 fm from "../../../fetch.pb"
|
|
8
|
+
export type GPUGrafanaDashboardRequest = {
|
|
9
|
+
cluster?: string
|
|
10
|
+
node?: string
|
|
11
|
+
gpuIndex?: string
|
|
12
|
+
vendor?: string
|
|
13
|
+
from?: string
|
|
14
|
+
to?: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type GrafanaDashboard = {
|
|
18
|
+
urlEn?: string
|
|
19
|
+
urlZh?: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class MetricsService {
|
|
23
|
+
static GetGPUGrafanaDashboard(req: GPUGrafanaDashboardRequest, initReq?: fm.InitReq): Promise<GrafanaDashboard> {
|
|
24
|
+
return fm.fetchReq<GPUGrafanaDashboardRequest, GrafanaDashboard>(`/apis/baize.io/v1alpha2/grafana-dashboards/gpu-overview?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListModelsRequest = {
|
|
10
|
+
workspace?: number
|
|
11
|
+
page?: BaizeCommonCommon.Pagination
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type Model = {
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type ListModelsResponse = {
|
|
18
|
+
items?: Model[]
|
|
19
|
+
page?: BaizeCommonCommon.Pagination
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class ModelService {
|
|
23
|
+
static ListModels(req: ListModelsRequest, initReq?: fm.InitReq): Promise<ListModelsResponse> {
|
|
24
|
+
return fm.fetchReq<ListModelsRequest, ListModelsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/models?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListNotebooksRequest = {
|
|
10
|
+
workspace?: number
|
|
11
|
+
cluster?: string
|
|
12
|
+
namespace?: string
|
|
13
|
+
page?: BaizeCommonCommon.Pagination
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Notebook = {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListNotebooksResponse = {
|
|
20
|
+
items?: Notebook[]
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class NotebookService {
|
|
25
|
+
static ListNotebooks(req: ListNotebooksRequest, initReq?: fm.InitReq): Promise<ListNotebooksResponse> {
|
|
26
|
+
return fm.fetchReq<ListNotebooksRequest, ListNotebooksResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/notebooks?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type Pod = {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type ListPodsRequest = {
|
|
13
|
+
workspace?: number
|
|
14
|
+
cluster?: string
|
|
15
|
+
namespace?: string
|
|
16
|
+
name?: string
|
|
17
|
+
page?: BaizeCommonCommon.Pagination
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type ListPodsResponse = {
|
|
21
|
+
items?: Pod[]
|
|
22
|
+
page?: BaizeCommonCommon.Pagination
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class PodService {
|
|
26
|
+
static ListPods(req: ListPodsRequest, initReq?: fm.InitReq): Promise<ListPodsResponse> {
|
|
27
|
+
return fm.fetchReq<ListPodsRequest, ListPodsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/resources/${req["name"]}/instances?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -62,6 +62,12 @@ export type QueueStatus = {
|
|
|
62
62
|
phase?: QueuePhase
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
export type FlavorQuota = {
|
|
66
|
+
name?: string
|
|
67
|
+
resources?: QueueResource[]
|
|
68
|
+
resourcesAvailable?: QueueResource[]
|
|
69
|
+
}
|
|
70
|
+
|
|
65
71
|
export type Queue = {
|
|
66
72
|
type?: QueueType
|
|
67
73
|
cluster?: string
|
|
@@ -76,6 +82,7 @@ export type Queue = {
|
|
|
76
82
|
strategy?: QueueStrategy
|
|
77
83
|
workspaceAlias?: string
|
|
78
84
|
preemptionWithinClusterQueue?: QueuePreemptionWithinClusterQueuePolicy
|
|
85
|
+
flavors?: FlavorQuota[]
|
|
79
86
|
}
|
|
80
87
|
|
|
81
88
|
export type ListQueueRequest = {
|
|
@@ -105,6 +112,7 @@ export type CreateQueueRequest = {
|
|
|
105
112
|
labels?: {[key: string]: string}
|
|
106
113
|
annotations?: {[key: string]: string}
|
|
107
114
|
preemptionWithinClusterQueue?: QueuePreemptionWithinClusterQueuePolicy
|
|
115
|
+
flavors?: FlavorQuota[]
|
|
108
116
|
}
|
|
109
117
|
|
|
110
118
|
export type UpdateQueueRequest = {
|
|
@@ -118,6 +126,7 @@ export type UpdateQueueRequest = {
|
|
|
118
126
|
labels?: {[key: string]: string}
|
|
119
127
|
annotations?: {[key: string]: string}
|
|
120
128
|
preemptionWithinClusterQueue?: QueuePreemptionWithinClusterQueuePolicy
|
|
129
|
+
flavors?: FlavorQuota[]
|
|
121
130
|
}
|
|
122
131
|
|
|
123
132
|
export type GetQueueRequest = {
|
|
@@ -190,6 +199,20 @@ export type ListQueueWorkloadResponse = {
|
|
|
190
199
|
page?: BaizeCommonCommon.Pagination
|
|
191
200
|
}
|
|
192
201
|
|
|
202
|
+
export type ResourceFlavor = {
|
|
203
|
+
name?: string
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type ListKueueResourceFlavorsRequest = {
|
|
207
|
+
cluster?: string
|
|
208
|
+
page?: BaizeCommonCommon.Pagination
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export type ListKueueResourceFlavorsResponse = {
|
|
212
|
+
items?: ResourceFlavor[]
|
|
213
|
+
page?: BaizeCommonCommon.Pagination
|
|
214
|
+
}
|
|
215
|
+
|
|
193
216
|
export class QueueManagement {
|
|
194
217
|
static ListQueues(req: ListQueueRequest, initReq?: fm.InitReq): Promise<ListQueueResponse> {
|
|
195
218
|
return fm.fetchReq<ListQueueRequest, ListQueueResponse>(`/apis/baize.io/v1alpha1/queues?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -218,4 +241,7 @@ export class QueueManagement {
|
|
|
218
241
|
static ListQueueWorkloads(req: ListQueueWorkloadRequest, initReq?: fm.InitReq): Promise<ListQueueWorkloadResponse> {
|
|
219
242
|
return fm.fetchReq<ListQueueWorkloadRequest, ListQueueWorkloadResponse>(`/apis/baize.io/v1alpha1/clusters/${req["cluster"]}/queues/${req["queueName"]}/workloads?${fm.renderURLSearchParams(req, ["cluster", "queueName"])}`, {...initReq, method: "GET"})
|
|
220
243
|
}
|
|
244
|
+
static ListKueueResourceFlavors(req: ListKueueResourceFlavorsRequest, initReq?: fm.InitReq): Promise<ListKueueResourceFlavorsResponse> {
|
|
245
|
+
return fm.fetchReq<ListKueueResourceFlavorsRequest, ListKueueResourceFlavorsResponse>(`/apis/baize.io/v1alpha1/clusters/${req["cluster"]}/kueue/resourceflavors?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
246
|
+
}
|
|
221
247
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type Queue = {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type ListQueuesRequest = {
|
|
13
|
+
workspace?: number
|
|
14
|
+
page?: BaizeCommonCommon.Pagination
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type ListQueuesResponse = {
|
|
18
|
+
items?: Queue[]
|
|
19
|
+
page?: BaizeCommonCommon.Pagination
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class QueueService {
|
|
23
|
+
static ListQueues(req: ListQueuesRequest, initReq?: fm.InitReq): Promise<ListQueuesResponse> {
|
|
24
|
+
return fm.fetchReq<ListQueuesRequest, ListQueuesResponse>(`/apis/baize.io/v1alpha2/queues?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type InferenceServing = {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type ListInferenceServingsRequest = {
|
|
13
|
+
cluster?: string
|
|
14
|
+
namespace?: string
|
|
15
|
+
workspace?: number
|
|
16
|
+
page?: BaizeCommonCommon.Pagination
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListInferenceServingsResponse = {
|
|
20
|
+
items?: InferenceServing[]
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class InferenceServingService {
|
|
25
|
+
static ListInferenceServings(req: ListInferenceServingsRequest, initReq?: fm.InitReq): Promise<ListInferenceServingsResponse> {
|
|
26
|
+
return fm.fetchReq<ListInferenceServingsRequest, ListInferenceServingsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/inference-serving?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListWorkspacesRequest = {
|
|
10
|
+
page?: BaizeCommonCommon.Pagination
|
|
11
|
+
cluster?: string
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type Workspace = {
|
|
15
|
+
workspaceId?: number
|
|
16
|
+
alias?: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListWorkspacesResponse = {
|
|
20
|
+
items?: Workspace[]
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class WorkspaceService {
|
|
25
|
+
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
26
|
+
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/baize.io/v1alpha2/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
27
|
+
}
|
|
28
|
+
}
|