@daocloud-proto/baize 0.108.2 → 0.109.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.
|
@@ -46,6 +46,13 @@ export enum NotebookActionRequestAction {
|
|
|
46
46
|
STOP = "STOP",
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
export enum SnapshotTaskStatus {
|
|
50
|
+
Status_UNSPECIFIED = "Status_UNSPECIFIED",
|
|
51
|
+
CREATED = "CREATED",
|
|
52
|
+
FAILED = "FAILED",
|
|
53
|
+
COMPLETED = "COMPLETED",
|
|
54
|
+
}
|
|
55
|
+
|
|
49
56
|
export type ListNotebooksRequest = {
|
|
50
57
|
workspace?: number
|
|
51
58
|
cluster?: string
|
|
@@ -157,6 +164,7 @@ export type CreateNotebookSnapshotTaskRequest = {
|
|
|
157
164
|
cluster?: string
|
|
158
165
|
namespace?: string
|
|
159
166
|
name?: string
|
|
167
|
+
imageConfig?: BaizeManagement_apiImageV1alpha1Image.ImageConfig
|
|
160
168
|
}
|
|
161
169
|
|
|
162
170
|
export type SnapshotTask = {
|
|
@@ -165,6 +173,31 @@ export type SnapshotTask = {
|
|
|
165
173
|
namespace?: string
|
|
166
174
|
name?: string
|
|
167
175
|
triggerRound?: number
|
|
176
|
+
imageConfig?: BaizeManagement_apiImageV1alpha1Image.ImageConfig
|
|
177
|
+
creationTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
178
|
+
status?: SnapshotTaskStatus
|
|
179
|
+
notebookName?: string
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type ListSnapshotTasksRequest = {
|
|
183
|
+
workspace?: number
|
|
184
|
+
cluster?: string
|
|
185
|
+
namespace?: string
|
|
186
|
+
name?: string
|
|
187
|
+
page?: BaizeCommonCommon.Pagination
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export type ListSnapshotTasksResponse = {
|
|
191
|
+
items?: SnapshotTask[]
|
|
192
|
+
page?: BaizeCommonCommon.Pagination
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export type ResetNotebookImageRequest = {
|
|
196
|
+
workspace?: number
|
|
197
|
+
cluster?: string
|
|
198
|
+
namespace?: string
|
|
199
|
+
name?: string
|
|
200
|
+
snapshotTaskName?: string
|
|
168
201
|
}
|
|
169
202
|
|
|
170
203
|
export type NotebookImage = {
|
|
@@ -205,4 +238,10 @@ export class NotebookService {
|
|
|
205
238
|
static GetNotebookImageList(req: NotebookImageListRequest, initReq?: fm.InitReq): Promise<NotebookImageListResponse> {
|
|
206
239
|
return fm.fetchReq<NotebookImageListRequest, NotebookImageListResponse>(`/apis/baize.io/v1alpha1/notebook-images?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
207
240
|
}
|
|
241
|
+
static ListNotebookSnapshotTasks(req: ListSnapshotTasksRequest, initReq?: fm.InitReq): Promise<ListSnapshotTasksResponse> {
|
|
242
|
+
return fm.fetchReq<ListSnapshotTasksRequest, ListSnapshotTasksResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/notebooks/${req["name"]}/snapshottasks?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
243
|
+
}
|
|
244
|
+
static ResetNotebookImage(req: ResetNotebookImageRequest, initReq?: fm.InitReq): Promise<SnapshotTask> {
|
|
245
|
+
return fm.fetchReq<ResetNotebookImageRequest, SnapshotTask>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/notebooks/${req["name"]}/image`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
246
|
+
}
|
|
208
247
|
}
|
|
@@ -134,6 +134,7 @@ export type InferenceServing = {
|
|
|
134
134
|
status?: InferenceServingStatus
|
|
135
135
|
lastUpdated?: GoogleProtobufTimestamp.Timestamp
|
|
136
136
|
authType?: ServingAuthAuthType
|
|
137
|
+
creationTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
export type InferenceServingStatusModelStatus = {
|