@daocloud-proto/hydra 0.16.0-rc1-dev-3 → 0.16.0-rc1-dev-5

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.
@@ -64,6 +64,45 @@ export type GetAnalysisURIResponse = {
64
64
  uri?: string
65
65
  }
66
66
 
67
+ export type NodeGPUInfo = {
68
+ clusterName?: string
69
+ nodeName?: string
70
+ gpuProduct?: string
71
+ gpuMemory?: string
72
+ gpuCount?: number
73
+ }
74
+
75
+ export type ListNodeGPUInfoRequest = {
76
+ cluster?: string
77
+ }
78
+
79
+ export type ListNodeGPUInfoResponse = {
80
+ items?: NodeGPUInfo[]
81
+ }
82
+
83
+ export type ModelGPUInfo = {
84
+ accessModelName?: string
85
+ lwsName?: string
86
+ namespace?: string
87
+ cluster?: string
88
+ nodes?: ModelNodeGPU[]
89
+ }
90
+
91
+ export type ModelNodeGPU = {
92
+ nodeName?: string
93
+ gpuProduct?: string
94
+ gpuMemory?: string
95
+ gpuCount?: number
96
+ }
97
+
98
+ export type ListModelGPUInfoRequest = {
99
+ accessModelName?: string
100
+ }
101
+
102
+ export type ListModelGPUInfoResponse = {
103
+ items?: ModelGPUInfo[]
104
+ }
105
+
67
106
  export class CoreService {
68
107
  static AdminListCluster(req: ListClusterRequest, initReq?: fm.InitReq): Promise<ListClusterResponse> {
69
108
  return fm.fetchReq<ListClusterRequest, ListClusterResponse>(`/apis/admin.hydra.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -80,4 +119,10 @@ export class CoreService {
80
119
  static GetAnalysisURI(req: GetAnalysisURIRequest, initReq?: fm.InitReq): Promise<GetAnalysisURIResponse> {
81
120
  return fm.fetchReq<GetAnalysisURIRequest, GetAnalysisURIResponse>(`/apis/admin.hydra.io/v1alpha1/analysis-uri?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
82
121
  }
122
+ static ListNodeGPUInfo(req: ListNodeGPUInfoRequest, initReq?: fm.InitReq): Promise<ListNodeGPUInfoResponse> {
123
+ return fm.fetchReq<ListNodeGPUInfoRequest, ListNodeGPUInfoResponse>(`/apis/admin.hydra.io/v1alpha1/node-gpu-info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
124
+ }
125
+ static ListModelGPUInfo(req: ListModelGPUInfoRequest, initReq?: fm.InitReq): Promise<ListModelGPUInfoResponse> {
126
+ return fm.fetchReq<ListModelGPUInfoRequest, ListModelGPUInfoResponse>(`/apis/admin.hydra.io/v1alpha1/model-gpu-info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
127
+ }
83
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.16.0-rc1-dev-3",
3
+ "version": "v0.16.0-rc1-dev-5",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"