@daocloud-proto/zestu 0.4.0-dev-42265ff5 → 0.4.0-dev-a71abf56

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/zestu",
3
- "version":"v0.4.0-dev-42265ff5",
3
+ "version":"v0.4.0-dev-a71abf56",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -146,4 +146,29 @@ export type ReportResourceRequest = {
146
146
  }
147
147
 
148
148
  export type ReportResourceResponse = {
149
+ }
150
+
151
+ export type GetNodeResourceRequest = {
152
+ nodeName?: string
153
+ clusterName?: string
154
+ }
155
+
156
+ export type GetNodeResourceResponse = {
157
+ nodeName?: string
158
+ clusterName?: string
159
+ deviceVendor?: string
160
+ deviceModel?: string
161
+ gpuMemory?: string
162
+ deviceQuantity?: RegisterResourceQuantity
163
+ cpuQuantity?: RegisterResourceQuantity
164
+ memoryQuantity?: RegisterResourceQuantity
165
+ storageQuantity?: RegisterResourceQuantity
166
+ gpuDevices?: NvidiaDevices[]
167
+ gpuType?: string
168
+ cpuVendor?: string
169
+ }
170
+
171
+ export type DeleteNodeResourceRequest = {
172
+ nodeName?: string
173
+ clusterName?: string
149
174
  }
@@ -109,6 +109,12 @@ export class Agent {
109
109
  static ReportResource(req: ZestuIoApiResourcesV1alpha1Resources.ReportResourceRequest, initReq?: fm.InitReq): Promise<ZestuIoApiResourcesV1alpha1Resources.ReportResourceResponse> {
110
110
  return fm.fetchReq<ZestuIoApiResourcesV1alpha1Resources.ReportResourceRequest, ZestuIoApiResourcesV1alpha1Resources.ReportResourceResponse>(`/zestu.io.api.v1alpha1.Agent/ReportResource`, {...initReq, method: "POST", body: JSON.stringify(req)})
111
111
  }
112
+ static GetNodeResource(req: ZestuIoApiResourcesV1alpha1Resources.GetNodeResourceRequest, initReq?: fm.InitReq): Promise<ZestuIoApiResourcesV1alpha1Resources.GetNodeResourceResponse> {
113
+ return fm.fetchReq<ZestuIoApiResourcesV1alpha1Resources.GetNodeResourceRequest, ZestuIoApiResourcesV1alpha1Resources.GetNodeResourceResponse>(`/zestu.io.api.v1alpha1.Agent/GetNodeResource`, {...initReq, method: "POST", body: JSON.stringify(req)})
114
+ }
115
+ static DeleteNodeResource(req: ZestuIoApiResourcesV1alpha1Resources.DeleteNodeResourceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
116
+ return fm.fetchReq<ZestuIoApiResourcesV1alpha1Resources.DeleteNodeResourceRequest, GoogleProtobufEmpty.Empty>(`/zestu.io.api.v1alpha1.Agent/DeleteNodeResource`, {...initReq, method: "POST", body: JSON.stringify(req)})
117
+ }
112
118
  }
113
119
  export class Metrics {
114
120
  static QueryMetricsRange(req: ZestuIoApiMetricsV1alpha1Metrics.MetricsRangeRequest, initReq?: fm.InitReq): Promise<ZestuIoApiMetricsV1alpha1Metrics.MetricsRangeResponse> {