@daocloud-proto/baize 0.119.0 → 0.121.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/common/common.pb.ts +1 -0
- package/common/k8s.pb.ts +3 -0
- package/management-api/cluster/v1alpha1/cluster.pb.ts +20 -0
- package/management-api/job/v1alpha1/common.pb.ts +1 -0
- package/management-api/notebook/v1alpha1/notebook.pb.ts +1 -0
- package/management-api/pod/v1alpha1/pod.pb.ts +1 -0
- package/management-api/queue/v1alpha1/queue.pb.ts +1 -0
- package/management-api/serving/v1alpha1/serving.pb.ts +5 -2
- package/package.json +1 -1
package/common/common.pb.ts
CHANGED
package/common/k8s.pb.ts
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as BaizeCommonCommon from "./common.pb"
|
|
8
|
+
|
|
7
9
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
8
10
|
type OneOf<T> =
|
|
9
11
|
| { [k in keyof T]?: undefined }
|
|
@@ -69,6 +71,7 @@ export type PodConfig = {
|
|
|
69
71
|
livenessProbe?: Probe
|
|
70
72
|
readinessProbe?: Probe
|
|
71
73
|
startupProbe?: Probe
|
|
74
|
+
tolerations?: BaizeCommonCommon.Toleration[]
|
|
72
75
|
}
|
|
73
76
|
|
|
74
77
|
|
|
@@ -15,6 +15,12 @@ export enum ClusterStatus {
|
|
|
15
15
|
CLUSTER_STATUS_UNKNOWN = "CLUSTER_STATUS_UNKNOWN",
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
export enum Prerequisite {
|
|
19
|
+
PREREQUISITE_UNSPECIFIED = "PREREQUISITE_UNSPECIFIED",
|
|
20
|
+
Dind = "Dind",
|
|
21
|
+
MxDcmd = "MxDcmd",
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
export type AICluster = {
|
|
19
25
|
name?: string
|
|
20
26
|
withAiSuite?: boolean
|
|
@@ -85,6 +91,8 @@ export type GPUSetting = {
|
|
|
85
91
|
type?: string
|
|
86
92
|
alias?: string
|
|
87
93
|
resource?: GPUResourceSetting[]
|
|
94
|
+
resourceTemplate?: GPUResourceSetting
|
|
95
|
+
isDynamic?: boolean
|
|
88
96
|
}
|
|
89
97
|
|
|
90
98
|
export type GPUResourceSetting = {
|
|
@@ -147,6 +155,15 @@ export type ListResourceAffinitiesResponse = {
|
|
|
147
155
|
page?: BaizeCommonCommon.Pagination
|
|
148
156
|
}
|
|
149
157
|
|
|
158
|
+
export type GetPrerequisiteRequest = {
|
|
159
|
+
cluster?: string
|
|
160
|
+
prerequisite?: Prerequisite
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export type GetPrerequisiteResponse = {
|
|
164
|
+
ok?: boolean
|
|
165
|
+
}
|
|
166
|
+
|
|
150
167
|
export class ClusterService {
|
|
151
168
|
static ListClusters(req: ListAIClustersRequest, initReq?: fm.InitReq): Promise<ListAIClustersResponse> {
|
|
152
169
|
return fm.fetchReq<ListAIClustersRequest, ListAIClustersResponse>(`/apis/baize.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -169,4 +186,7 @@ export class ClusterService {
|
|
|
169
186
|
static ListClusterNodes(req: ListClusterNodesRequest, initReq?: fm.InitReq): Promise<ListClusterNodesResponse> {
|
|
170
187
|
return fm.fetchReq<ListClusterNodesRequest, ListClusterNodesResponse>(`/apis/baize.io/v1alpha1/clusters/${req["cluster"]}/nodes?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
171
188
|
}
|
|
189
|
+
static GetPrerequisite(req: GetPrerequisiteRequest, initReq?: fm.InitReq): Promise<GetPrerequisiteResponse> {
|
|
190
|
+
return fm.fetchReq<GetPrerequisiteRequest, GetPrerequisiteResponse>(`/apis/baize.io/v1alpha1/clusters/${req["cluster"]}/prerequisites/${req["prerequisite"]}?${fm.renderURLSearchParams(req, ["cluster", "prerequisite"])}`, {...initReq, method: "GET"})
|
|
191
|
+
}
|
|
172
192
|
}
|
|
@@ -216,6 +216,7 @@ export type ResourceFlavor = {
|
|
|
216
216
|
tolerations?: BaizeCommonCommon.Toleration[]
|
|
217
217
|
creationTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
218
218
|
nodeDetails?: BaizeCommonCommon.Node[]
|
|
219
|
+
default?: boolean
|
|
219
220
|
}
|
|
220
221
|
|
|
221
222
|
export type ListResourceFlavorsRequest = {
|
|
@@ -153,6 +153,7 @@ export type InferenceServing = {
|
|
|
153
153
|
auth?: ServingAuth
|
|
154
154
|
creationTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
155
155
|
hpaConfig?: HPAConfig
|
|
156
|
+
image?: string
|
|
156
157
|
}
|
|
157
158
|
|
|
158
159
|
export type InferenceServingStatusModelStatus = {
|
|
@@ -197,7 +198,6 @@ export type Metrics = {
|
|
|
197
198
|
}
|
|
198
199
|
|
|
199
200
|
export type CreateInferenceServingRequest = {
|
|
200
|
-
workspace?: number
|
|
201
201
|
name?: string
|
|
202
202
|
cluster?: string
|
|
203
203
|
namespace?: string
|
|
@@ -210,10 +210,11 @@ export type CreateInferenceServingRequest = {
|
|
|
210
210
|
framework?: Framework
|
|
211
211
|
auth?: ServingAuth
|
|
212
212
|
hpaConfig?: HPAConfig
|
|
213
|
+
workspace?: number
|
|
214
|
+
image?: string
|
|
213
215
|
}
|
|
214
216
|
|
|
215
217
|
export type UpdateInferenceServingRequest = {
|
|
216
|
-
workspace?: number
|
|
217
218
|
name?: string
|
|
218
219
|
cluster?: string
|
|
219
220
|
namespace?: string
|
|
@@ -225,6 +226,8 @@ export type UpdateInferenceServingRequest = {
|
|
|
225
226
|
framework?: Framework
|
|
226
227
|
auth?: ServingAuth
|
|
227
228
|
hpaConfig?: HPAConfig
|
|
229
|
+
workspace?: number
|
|
230
|
+
image?: string
|
|
228
231
|
}
|
|
229
232
|
|
|
230
233
|
export type SingleInferenceServingRequest = {
|