@daocloud-proto/baize 0.111.1 → 0.111.3
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/cluster/v1alpha1/cluster.pb.ts +1 -0
- package/management-api/dataset/v1alpha1/dataset.pb.ts +15 -0
- package/management-api/device/v1alpha1/device.pb.ts +1 -0
- package/management-api/event/v1alpha1/event.pb.ts +51 -0
- package/management-api/job/v1alpha1/job.pb.ts +13 -0
- package/management-api/metrics/v1alpha1/metrics.pb.ts +12 -0
- package/management-api/notebook/v1alpha1/notebook.pb.ts +12 -0
- package/management-api/permission/v1alpha1/permission.pb.ts +26 -0
- package/management-api/queue/v1alpha1/queue.pb.ts +1 -0
- package/management-api/serving/v1alpha1/serving.pb.ts +52 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
8
|
import * as fm from "../../../fetch.pb"
|
|
9
9
|
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
10
|
+
import * as BaizeManagement_apiEventV1alpha1Event from "../../event/v1alpha1/event.pb"
|
|
10
11
|
import * as BaizeManagement_apiWorkspaceV1alpha1Workspace from "../../workspace/v1alpha1/workspace.pb"
|
|
11
12
|
|
|
12
13
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
@@ -237,6 +238,9 @@ export type SingleDatasetRequest = {
|
|
|
237
238
|
share?: boolean
|
|
238
239
|
sharedStoWorkspaces?: number[]
|
|
239
240
|
uri?: string
|
|
241
|
+
description?: string
|
|
242
|
+
labels?: {[key: string]: string}
|
|
243
|
+
annotations?: {[key: string]: string}
|
|
240
244
|
}
|
|
241
245
|
|
|
242
246
|
export type UpdateDatasetRequest = BaseUpdateDatasetRequest
|
|
@@ -291,6 +295,14 @@ export type ValidateDataSourceSecretsResponse = {
|
|
|
291
295
|
message?: string
|
|
292
296
|
}
|
|
293
297
|
|
|
298
|
+
export type ListDatasetEventsRequest = {
|
|
299
|
+
workspace?: number
|
|
300
|
+
cluster?: string
|
|
301
|
+
namespace?: string
|
|
302
|
+
name?: string
|
|
303
|
+
page?: BaizeCommonCommon.Pagination
|
|
304
|
+
}
|
|
305
|
+
|
|
294
306
|
export class DatasetManagement {
|
|
295
307
|
static ListDatasets(req: ListDatasetRequest, initReq?: fm.InitReq): Promise<ListDatasetResponse> {
|
|
296
308
|
return fm.fetchReq<ListDatasetRequest, ListDatasetResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/datasets?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
@@ -298,6 +310,9 @@ export class DatasetManagement {
|
|
|
298
310
|
static GetDataset(req: SingleDatasetRequest, initReq?: fm.InitReq): Promise<Dataset> {
|
|
299
311
|
return fm.fetchReq<SingleDatasetRequest, Dataset>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets/${req["name"]}?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
300
312
|
}
|
|
313
|
+
static ListDatasetEvents(req: ListDatasetEventsRequest, initReq?: fm.InitReq): Promise<BaizeManagement_apiEventV1alpha1Event.ListEventsResponse> {
|
|
314
|
+
return fm.fetchReq<ListDatasetEventsRequest, BaizeManagement_apiEventV1alpha1Event.ListEventsResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets/${req["name"]}/events?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
315
|
+
}
|
|
301
316
|
static GetDatasetSyncProcess(req: SingleDatasetRequest, initReq?: fm.InitReq): Promise<DatasetSyncProcess> {
|
|
302
317
|
return fm.fetchReq<SingleDatasetRequest, DatasetSyncProcess>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets/${req["name"]}/sync-process?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
303
318
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
9
|
+
|
|
10
|
+
export enum EventObjKind {
|
|
11
|
+
KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
|
|
12
|
+
ANALYTICS = "ANALYTICS",
|
|
13
|
+
DATASET = "DATASET",
|
|
14
|
+
MODEL = "MODEL",
|
|
15
|
+
INFERENCE = "INFERENCE",
|
|
16
|
+
LABELING = "LABELING",
|
|
17
|
+
NOTEBOOK = "NOTEBOOK",
|
|
18
|
+
QUEUE = "QUEUE",
|
|
19
|
+
LOCAL_QUEUE = "LOCAL_QUEUE",
|
|
20
|
+
POD = "POD",
|
|
21
|
+
QUEUE_WORKLOAD = "QUEUE_WORKLOAD",
|
|
22
|
+
PYTORCH_JOB = "PYTORCH_JOB",
|
|
23
|
+
TF_JOB = "TF_JOB",
|
|
24
|
+
PADDLE_JOB = "PADDLE_JOB",
|
|
25
|
+
MXNET_JOB = "MXNET_JOB",
|
|
26
|
+
MPI_JOB = "MPI_JOB",
|
|
27
|
+
UNKNOWN = "UNKNOWN",
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export enum EventType {
|
|
31
|
+
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
32
|
+
NORMAL = "NORMAL",
|
|
33
|
+
WARNING = "WARNING",
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type Event = {
|
|
37
|
+
objKind?: EventObjKind
|
|
38
|
+
objName?: string
|
|
39
|
+
objNamespace?: string
|
|
40
|
+
type?: EventType
|
|
41
|
+
message?: string
|
|
42
|
+
reason?: string
|
|
43
|
+
firstTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
44
|
+
lastTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
45
|
+
count?: number
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type ListEventsResponse = {
|
|
49
|
+
items?: Event[]
|
|
50
|
+
page?: BaizeCommonCommon.Pagination
|
|
51
|
+
}
|
|
@@ -10,6 +10,7 @@ import * as fm from "../../../fetch.pb"
|
|
|
10
10
|
import * as GoogleProtobufStruct from "../../../google/protobuf/struct.pb"
|
|
11
11
|
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
12
12
|
import * as BaizeManagement_apiAnalysisV1alpha1Analysis from "../../analysis/v1alpha1/analysis.pb"
|
|
13
|
+
import * as BaizeManagement_apiEventV1alpha1Event from "../../event/v1alpha1/event.pb"
|
|
13
14
|
import * as BaizeManagement_apiJobV1alpha1Common from "./common.pb"
|
|
14
15
|
|
|
15
16
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
@@ -145,6 +146,15 @@ export type JobSchedulersResponse = {
|
|
|
145
146
|
items?: JobSchedulersResponseScheduler[]
|
|
146
147
|
}
|
|
147
148
|
|
|
149
|
+
export type ListJobEventsRequest = {
|
|
150
|
+
workspace?: number
|
|
151
|
+
type?: JobType
|
|
152
|
+
cluster?: string
|
|
153
|
+
namespace?: string
|
|
154
|
+
name?: string
|
|
155
|
+
page?: BaizeCommonCommon.Pagination
|
|
156
|
+
}
|
|
157
|
+
|
|
148
158
|
export class JobsManagement {
|
|
149
159
|
static ListJobs(req: ListJobsRequest, initReq?: fm.InitReq): Promise<ListJobsResponse> {
|
|
150
160
|
return fm.fetchReq<ListJobsRequest, ListJobsResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/jobs?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
@@ -152,6 +162,9 @@ export class JobsManagement {
|
|
|
152
162
|
static GetJob(req: SingleJobRequest, initReq?: fm.InitReq): Promise<Job> {
|
|
153
163
|
return fm.fetchReq<SingleJobRequest, Job>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
154
164
|
}
|
|
165
|
+
static ListJobEvents(req: ListJobEventsRequest, initReq?: fm.InitReq): Promise<BaizeManagement_apiEventV1alpha1Event.ListEventsResponse> {
|
|
166
|
+
return fm.fetchReq<ListJobEventsRequest, BaizeManagement_apiEventV1alpha1Event.ListEventsResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}/events?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
167
|
+
}
|
|
155
168
|
static CreateJob(req: CreateJobRequest, initReq?: fm.InitReq): Promise<Job> {
|
|
156
169
|
return fm.fetchReq<CreateJobRequest, Job>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
157
170
|
}
|
|
@@ -184,6 +184,15 @@ export type NvidiaGPUGrafanaDashboardRequest = {
|
|
|
184
184
|
to?: string
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
export type GPUGrafanaDashboardRequest = {
|
|
188
|
+
vendor?: string
|
|
189
|
+
cluster?: string
|
|
190
|
+
node?: string
|
|
191
|
+
gpuIndex?: string
|
|
192
|
+
from?: string
|
|
193
|
+
to?: string
|
|
194
|
+
}
|
|
195
|
+
|
|
187
196
|
export class MetricsService {
|
|
188
197
|
static QueryMultipleVectors(req: QueryMultipleVectorRequest, initReq?: fm.InitReq): Promise<MultipleVectorQueryResponse> {
|
|
189
198
|
return fm.fetchReq<QueryMultipleVectorRequest, MultipleVectorQueryResponse>(`/apis/baize.io/v1alpha1/metrics/multiple-queries?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -209,4 +218,7 @@ export class MetricsService {
|
|
|
209
218
|
static GetNvidiaGPUGrafanaDashboard(req: NvidiaGPUGrafanaDashboardRequest, initReq?: fm.InitReq): Promise<GrafanaDashboard> {
|
|
210
219
|
return fm.fetchReq<NvidiaGPUGrafanaDashboardRequest, GrafanaDashboard>(`/apis/baize.io/v1alpha1/grafana-dashboards/nvidia-gpu-overview?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
211
220
|
}
|
|
221
|
+
static GetGPUGrafanaDashboard(req: GPUGrafanaDashboardRequest, initReq?: fm.InitReq): Promise<GrafanaDashboard> {
|
|
222
|
+
return fm.fetchReq<GPUGrafanaDashboardRequest, GrafanaDashboard>(`/apis/baize.io/v1alpha1/grafana-dashboards/gpu-overview?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
223
|
+
}
|
|
212
224
|
}
|
|
@@ -9,6 +9,7 @@ import * as BaizeCommonK8s from "../../../common/k8s.pb"
|
|
|
9
9
|
import * as fm from "../../../fetch.pb"
|
|
10
10
|
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
11
11
|
import * as BaizeManagement_apiAnalysisV1alpha1Analysis from "../../analysis/v1alpha1/analysis.pb"
|
|
12
|
+
import * as BaizeManagement_apiEventV1alpha1Event from "../../event/v1alpha1/event.pb"
|
|
12
13
|
import * as BaizeManagement_apiImageV1alpha1Image from "../../image/v1alpha1/image.pb"
|
|
13
14
|
|
|
14
15
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
@@ -226,6 +227,14 @@ export type NotebookConnectionInfo = {
|
|
|
226
227
|
ssh?: NotebookConnectionInfoSSH
|
|
227
228
|
}
|
|
228
229
|
|
|
230
|
+
export type ListNotebookEventsRequest = {
|
|
231
|
+
workspace?: number
|
|
232
|
+
cluster?: string
|
|
233
|
+
namespace?: string
|
|
234
|
+
name?: string
|
|
235
|
+
page?: BaizeCommonCommon.Pagination
|
|
236
|
+
}
|
|
237
|
+
|
|
229
238
|
export class NotebookService {
|
|
230
239
|
static ListNotebooks(req: ListNotebooksRequest, initReq?: fm.InitReq): Promise<ListNotebooksResponse> {
|
|
231
240
|
return fm.fetchReq<ListNotebooksRequest, ListNotebooksResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/notebooks?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
@@ -233,6 +242,9 @@ export class NotebookService {
|
|
|
233
242
|
static GetNotebook(req: SingleNotebookRequest, initReq?: fm.InitReq): Promise<Notebook> {
|
|
234
243
|
return fm.fetchReq<SingleNotebookRequest, Notebook>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/notebooks/${req["name"]}?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
235
244
|
}
|
|
245
|
+
static ListNotebookEvents(req: ListNotebookEventsRequest, initReq?: fm.InitReq): Promise<BaizeManagement_apiEventV1alpha1Event.ListEventsResponse> {
|
|
246
|
+
return fm.fetchReq<ListNotebookEventsRequest, BaizeManagement_apiEventV1alpha1Event.ListEventsResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/notebooks/${req["name"]}/events?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
247
|
+
}
|
|
236
248
|
static GetNotebookConnectionInfo(req: SingleNotebookRequest, initReq?: fm.InitReq): Promise<NotebookConnectionInfo> {
|
|
237
249
|
return fm.fetchReq<SingleNotebookRequest, NotebookConnectionInfo>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/notebooks/${req["name"]}/connections?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
238
250
|
}
|
|
@@ -6,12 +6,38 @@
|
|
|
6
6
|
|
|
7
7
|
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
8
|
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type Permission = {
|
|
10
|
+
resourceType?: string
|
|
11
|
+
actions?: string[]
|
|
12
|
+
}
|
|
13
|
+
|
|
9
14
|
export type UserPermission = {
|
|
10
15
|
isBaizeOwner?: boolean
|
|
11
16
|
}
|
|
12
17
|
|
|
18
|
+
export type GetCurrentUserWorkspacePermissionRequest = {
|
|
19
|
+
workspaceId?: number
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type GetCurrentUserWorkspacePermissionResponse = {
|
|
23
|
+
permission?: Permission[]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type GetCurrentUserOperatorPermissionRequest = {
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type GetCurrentUserOperatorPermissionResponse = {
|
|
30
|
+
permission?: Permission[]
|
|
31
|
+
}
|
|
32
|
+
|
|
13
33
|
export class PermissionService {
|
|
14
34
|
static GetCurrentUserPermission(req: BaizeCommonCommon.NoParamsQuery, initReq?: fm.InitReq): Promise<UserPermission> {
|
|
15
35
|
return fm.fetchReq<BaizeCommonCommon.NoParamsQuery, UserPermission>(`/apis/baize.io/v1alpha1/current-user/permission?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
16
36
|
}
|
|
37
|
+
static GetCurrentUserWorkspacePermissions(req: GetCurrentUserWorkspacePermissionRequest, initReq?: fm.InitReq): Promise<GetCurrentUserWorkspacePermissionResponse> {
|
|
38
|
+
return fm.fetchReq<GetCurrentUserWorkspacePermissionRequest, GetCurrentUserWorkspacePermissionResponse>(`/apis/baize.io/v1alpha1/current-user/ws-permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
39
|
+
}
|
|
40
|
+
static GetCurrentUserOperatorPermissions(req: GetCurrentUserOperatorPermissionRequest, initReq?: fm.InitReq): Promise<GetCurrentUserOperatorPermissionResponse> {
|
|
41
|
+
return fm.fetchReq<GetCurrentUserOperatorPermissionRequest, GetCurrentUserOperatorPermissionResponse>(`/apis/baize.io/v1alpha1/current-user/operator-permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
42
|
+
}
|
|
17
43
|
}
|
|
@@ -8,6 +8,8 @@ import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
|
8
8
|
import * as BaizeCommonK8s from "../../../common/k8s.pb"
|
|
9
9
|
import * as fm from "../../../fetch.pb"
|
|
10
10
|
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
11
|
+
import * as GoogleProtobufWrappers from "../../../google/protobuf/wrappers.pb"
|
|
12
|
+
import * as BaizeManagement_apiEventV1alpha1Event from "../../event/v1alpha1/event.pb"
|
|
11
13
|
import * as BaizeManagement_apiServingTritonModel_config from "../triton/model_config.pb"
|
|
12
14
|
|
|
13
15
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
@@ -81,6 +83,11 @@ export type ServingConfigVLLMLoraModel = {
|
|
|
81
83
|
relativePath?: string
|
|
82
84
|
}
|
|
83
85
|
|
|
86
|
+
export type ServingConfigVLLMCustomOptionalArg = {
|
|
87
|
+
argName?: string
|
|
88
|
+
argValues?: string[]
|
|
89
|
+
}
|
|
90
|
+
|
|
84
91
|
export type ServingConfigVLLM = {
|
|
85
92
|
trustRemoteCode?: boolean
|
|
86
93
|
tensorParallelSize?: number
|
|
@@ -89,6 +96,7 @@ export type ServingConfigVLLM = {
|
|
|
89
96
|
maxLorasRank?: number
|
|
90
97
|
maxLoras?: number
|
|
91
98
|
maxCpuLoras?: number
|
|
99
|
+
customOptionalArgs?: ServingConfigVLLMCustomOptionalArg[]
|
|
92
100
|
}
|
|
93
101
|
|
|
94
102
|
export type ServingConfigTritonModelConfig = {
|
|
@@ -135,6 +143,7 @@ export type InferenceServing = {
|
|
|
135
143
|
lastUpdated?: GoogleProtobufTimestamp.Timestamp
|
|
136
144
|
authType?: ServingAuthAuthType
|
|
137
145
|
creationTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
146
|
+
hpaConfig?: HPAConfig
|
|
138
147
|
}
|
|
139
148
|
|
|
140
149
|
export type InferenceServingStatusModelStatus = {
|
|
@@ -162,6 +171,22 @@ export type ServingAuthTritonRestrictedKeyValue = {
|
|
|
162
171
|
export type ServingAuth = BaseServingAuth
|
|
163
172
|
& OneOf<{ tritonRestrictedKeyValue: ServingAuthTritonRestrictedKeyValue }>
|
|
164
173
|
|
|
174
|
+
export type HPAConfig = {
|
|
175
|
+
enabled?: boolean
|
|
176
|
+
minReplicas?: number
|
|
177
|
+
maxReplicas?: number
|
|
178
|
+
metrics?: Metrics[]
|
|
179
|
+
scaleUpStabilizationWindowSeconds?: GoogleProtobufWrappers.Int32Value
|
|
180
|
+
scaleDownStabilizationWindowSeconds?: GoogleProtobufWrappers.Int32Value
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export type Metrics = {
|
|
184
|
+
name?: string
|
|
185
|
+
value?: GoogleProtobufWrappers.Int32Value
|
|
186
|
+
avgValue?: GoogleProtobufWrappers.Int32Value
|
|
187
|
+
utilizationPercentage?: GoogleProtobufWrappers.Int32Value
|
|
188
|
+
}
|
|
189
|
+
|
|
165
190
|
export type CreateInferenceServingRequest = {
|
|
166
191
|
workspace?: number
|
|
167
192
|
name?: string
|
|
@@ -175,6 +200,7 @@ export type CreateInferenceServingRequest = {
|
|
|
175
200
|
podConfig?: BaizeCommonK8s.PodConfig
|
|
176
201
|
framework?: Framework
|
|
177
202
|
auth?: ServingAuth
|
|
203
|
+
hpaConfig?: HPAConfig
|
|
178
204
|
}
|
|
179
205
|
|
|
180
206
|
export type UpdateInferenceServingRequest = {
|
|
@@ -188,6 +214,7 @@ export type UpdateInferenceServingRequest = {
|
|
|
188
214
|
annotations?: {[key: string]: string}
|
|
189
215
|
podConfig?: BaizeCommonK8s.PodConfig
|
|
190
216
|
auth?: ServingAuth
|
|
217
|
+
hpaConfig?: HPAConfig
|
|
191
218
|
}
|
|
192
219
|
|
|
193
220
|
export type SingleInferenceServingRequest = {
|
|
@@ -209,6 +236,25 @@ export type ListInferenceServingsResponse = {
|
|
|
209
236
|
page?: BaizeCommonCommon.Pagination
|
|
210
237
|
}
|
|
211
238
|
|
|
239
|
+
export type GetServingHPARequest = {
|
|
240
|
+
name?: string
|
|
241
|
+
cluster?: string
|
|
242
|
+
namespace?: string
|
|
243
|
+
workspace?: number
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export type GetServingHPAResponse = {
|
|
247
|
+
data?: string
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export type ListInferenceEventsRequest = {
|
|
251
|
+
cluster?: string
|
|
252
|
+
namespace?: string
|
|
253
|
+
workspace?: number
|
|
254
|
+
name?: string
|
|
255
|
+
page?: BaizeCommonCommon.Pagination
|
|
256
|
+
}
|
|
257
|
+
|
|
212
258
|
export class InferenceServingManagement {
|
|
213
259
|
static CreateInferenceServing(req: CreateInferenceServingRequest, initReq?: fm.InitReq): Promise<InferenceServing> {
|
|
214
260
|
return fm.fetchReq<CreateInferenceServingRequest, InferenceServing>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/inference-serving`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -216,6 +262,12 @@ export class InferenceServingManagement {
|
|
|
216
262
|
static GetInferenceServing(req: SingleInferenceServingRequest, initReq?: fm.InitReq): Promise<InferenceServing> {
|
|
217
263
|
return fm.fetchReq<SingleInferenceServingRequest, InferenceServing>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/inference-serving/${req["name"]}?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
218
264
|
}
|
|
265
|
+
static GetInferenceServingHPA(req: GetServingHPARequest, initReq?: fm.InitReq): Promise<GetServingHPAResponse> {
|
|
266
|
+
return fm.fetchReq<GetServingHPARequest, GetServingHPAResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/inference-serving/${req["name"]}/hpa?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
267
|
+
}
|
|
268
|
+
static ListInferenceEvents(req: ListInferenceEventsRequest, initReq?: fm.InitReq): Promise<BaizeManagement_apiEventV1alpha1Event.ListEventsResponse> {
|
|
269
|
+
return fm.fetchReq<ListInferenceEventsRequest, BaizeManagement_apiEventV1alpha1Event.ListEventsResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/inference-serving/${req["name"]}/events?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
270
|
+
}
|
|
219
271
|
static ListInferenceServings(req: ListInferenceServingsRequest, initReq?: fm.InitReq): Promise<ListInferenceServingsResponse> {
|
|
220
272
|
return fm.fetchReq<ListInferenceServingsRequest, ListInferenceServingsResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/inference-serving?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
221
273
|
}
|