@daocloud-proto/hydra 0.18.0-dev-39 → 0.18.0-dev-41

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.
@@ -355,6 +355,15 @@ export type UpdateWSModelServingReplicasRequest = {
355
355
  replicas?: number
356
356
  }
357
357
 
358
+ export type UpdateWSModelServingRuntimeRequest = {
359
+ workspace?: number
360
+ cluster?: string
361
+ namespace?: string
362
+ id?: string
363
+ runtimeConfig?: RuntimeConfig
364
+ resourceConfig?: ResourceConfig
365
+ }
366
+
358
367
  export type ModelServingActionRequest = {
359
368
  id?: string
360
369
  action?: ModelServingActionRequestAction
@@ -456,6 +465,9 @@ export class WSModelServingManagement {
456
465
  static UpdateWSModelServingReplicas(req: UpdateWSModelServingReplicasRequest, initReq?: fm.InitReq): Promise<WSModelServing> {
457
466
  return fm.fetchReq<UpdateWSModelServingReplicasRequest, WSModelServing>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["id"]}/replicas`, {...initReq, method: "PATCH", body: JSON.stringify(req, fm.replacer)})
458
467
  }
468
+ static UpdateWSModelServingRuntime(req: UpdateWSModelServingRuntimeRequest, initReq?: fm.InitReq): Promise<WSModelServing> {
469
+ return fm.fetchReq<UpdateWSModelServingRuntimeRequest, WSModelServing>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["id"]}/runtime-config`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
470
+ }
459
471
  static DoModelWSServingAction(req: WSModelServingActionRequest, initReq?: fm.InitReq): Promise<WSModelServing> {
460
472
  return fm.fetchReq<WSModelServingActionRequest, WSModelServing>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["id"]}/actions`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
461
473
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.18.0-dev-39",
3
+ "version": "v0.18.0-dev-41",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"