@daocloud-proto/hydra 0.5.0-dev-14 → 0.5.0-dev-16

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.
@@ -114,6 +114,16 @@ export type BatchCreateModelsResponse = {
114
114
  items?: Model[]
115
115
  }
116
116
 
117
+ export type AddDeployTemplatesRequest = {
118
+ modelId?: string
119
+ deployTemplates?: HydraManagement_apiModelV1alpha1Model.DeployTemplate[]
120
+ }
121
+
122
+ export type UpdateDeployTemplatesRequest = {
123
+ modelId?: string
124
+ deployTemplates?: HydraManagement_apiModelV1alpha1Model.DeployTemplate[]
125
+ }
126
+
117
127
  export class AdminModelManagement {
118
128
  static CreateModel(req: CreateModelRequest, initReq?: fm.InitReq): Promise<Model> {
119
129
  return fm.fetchReq<CreateModelRequest, Model>(`/apis/admin.hydra.io/v1alpha1/models`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -142,4 +152,10 @@ export class AdminModelManagement {
142
152
  static UnpublishModel(req: SingleModelRequest, initReq?: fm.InitReq): Promise<Model> {
143
153
  return fm.fetchReq<SingleModelRequest, Model>(`/apis/admin.hydra.io/v1alpha1/models/${req["modelId"]}:unpublish`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
144
154
  }
155
+ static AddDeployTemplates(req: AddDeployTemplatesRequest, initReq?: fm.InitReq): Promise<Model> {
156
+ return fm.fetchReq<AddDeployTemplatesRequest, Model>(`/apis/admin.hydra.io/v1alpha1/models/${req["modelId"]}/deploy_templates`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
157
+ }
158
+ static UpdateDeployTemplates(req: UpdateDeployTemplatesRequest, initReq?: fm.InitReq): Promise<Model> {
159
+ return fm.fetchReq<UpdateDeployTemplatesRequest, Model>(`/apis/admin.hydra.io/v1alpha1/models/${req["modelId"]}/deploy_templates`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
160
+ }
145
161
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.5.0-dev-14",
3
+ "version": "v0.5.0-dev-16",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"