@daocloud-proto/hydra 0.15.0-dev-5 → 0.15.0-dev-6

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.
@@ -263,24 +263,6 @@ export type ListWSModelServingResponse = {
263
263
  page?: HydraCommonCommon.Pagination
264
264
  }
265
265
 
266
- export type ListWSModelServingConfigMapsRequest = {
267
- workspace?: number
268
- cluster?: string
269
- namespace?: string
270
- page?: HydraCommonCommon.Pagination
271
- name?: string
272
- }
273
-
274
- export type WSModelServingConfigMap = {
275
- name?: string
276
- namespace?: string
277
- }
278
-
279
- export type ListWSModelServingConfigMapsResponse = {
280
- items?: WSModelServingConfigMap[]
281
- page?: HydraCommonCommon.Pagination
282
- }
283
-
284
266
  export type GetWSModelServingRequest = {
285
267
  workspace?: number
286
268
  id?: string
@@ -384,9 +366,6 @@ export class WSModelServingManagement {
384
366
  static ListWSModelServing(req: ListWSModelServingRequest, initReq?: fm.InitReq): Promise<ListWSModelServingResponse> {
385
367
  return fm.fetchReq<ListWSModelServingRequest, ListWSModelServingResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/model-serving?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
386
368
  }
387
- static ListWSModelServingConfigMaps(req: ListWSModelServingConfigMapsRequest, initReq?: fm.InitReq): Promise<ListWSModelServingConfigMapsResponse> {
388
- return fm.fetchReq<ListWSModelServingConfigMapsRequest, ListWSModelServingConfigMapsResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/configmaps?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
389
- }
390
369
  static GetWSModelServing(req: GetWSModelServingRequest, initReq?: fm.InitReq): Promise<WSModelServing> {
391
370
  return fm.fetchReq<GetWSModelServingRequest, WSModelServing>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["id"]}?${fm.renderURLSearchParams(req, ["workspace", "id"])}`, {...initReq, method: "GET"})
392
371
  }
@@ -69,6 +69,24 @@ export type ListClusterNamespaceResponse = {
69
69
  page?: HydraCommonCommon.Pagination
70
70
  }
71
71
 
72
+ export type ListConfigMapsRequest = {
73
+ workspace?: number
74
+ cluster?: string
75
+ namespace?: string
76
+ page?: HydraCommonCommon.Pagination
77
+ name?: string
78
+ }
79
+
80
+ export type ConfigMap = {
81
+ name?: string
82
+ namespace?: string
83
+ }
84
+
85
+ export type ListConfigMapsResponse = {
86
+ items?: ConfigMap[]
87
+ page?: HydraCommonCommon.Pagination
88
+ }
89
+
72
90
  export class WorkspaceService {
73
91
  static ListWorkspaces(req: ListWorkspaceRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
74
92
  return fm.fetchReq<ListWorkspaceRequest, ListWorkspacesResponse>(`/apis/hydra.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -79,4 +97,7 @@ export class WorkspaceService {
79
97
  static ListClusterNamespaces(req: ListClusterNamespacesRequest, initReq?: fm.InitReq): Promise<ListClusterNamespaceResponse> {
80
98
  return fm.fetchReq<ListClusterNamespacesRequest, ListClusterNamespaceResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/cluster-namespaces?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
81
99
  }
100
+ static ListConfigMaps(req: ListConfigMapsRequest, initReq?: fm.InitReq): Promise<ListConfigMapsResponse> {
101
+ return fm.fetchReq<ListConfigMapsRequest, ListConfigMapsResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/configmaps?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
102
+ }
82
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.15.0-dev-5",
3
+ "version": "v0.15.0-dev-6",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"