@daocloud-proto/kpanda 0.40.1 → 0.41.0-dev-d3be924c

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.
@@ -0,0 +1,28 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+ export type DeviceGPU = {
7
+ deviceUUID?: string
8
+ cluster?: string
9
+ serialNumber?: string
10
+ modelName?: string
11
+ vendor?: string
12
+ totalFrameBufferMemory?: string
13
+ usedFrameBufferMemory?: string
14
+ nodeName?: string
15
+ frameBufferMemoryUtilization?: string
16
+ coreUtilization?: string
17
+ }
18
+
19
+ export type ListGPURequest = {
20
+ cluster?: string
21
+ searchNodeName?: string
22
+ searchGPUMode?: string
23
+ searchVendor?: string
24
+ }
25
+
26
+ export type ListGPUResponse = {
27
+ items?: DeviceGPU[]
28
+ }
@@ -43,6 +43,7 @@ import * as KpandaIoApiCoreV1alpha1Resourcequota from "../core/v1alpha1/resource
43
43
  import * as KpandaIoApiCoreV1alpha1Secret from "../core/v1alpha1/secret.pb"
44
44
  import * as KpandaIoApiCoreV1alpha1Service from "../core/v1alpha1/service.pb"
45
45
  import * as KpandaIoApiCoreV1alpha1Serviceaccount from "../core/v1alpha1/serviceaccount.pb"
46
+ import * as KpandaIoApiDevicesV1alpha1Gpu from "../devices/v1alpha1/gpu.pb"
46
47
  import * as KpandaIoApiEtcdbackuprestoreV1alpha1Etcdbackuprestore from "../etcdbackuprestore/v1alpha1/etcdbackuprestore.pb"
47
48
  import * as KpandaIoApiFeaturegatesV1alpha1Featuregates from "../featuregates/v1alpha1/featuregates.pb"
48
49
  import * as KpandaIoApiGhippoV1alpha1Workspace from "../ghippo/v1alpha1/workspace.pb"
@@ -1167,4 +1168,9 @@ export class FeatureGate {
1167
1168
  static ListFeatureGates(req: KpandaIoApiFeaturegatesV1alpha1Featuregates.ListFeatureGatesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiFeaturegatesV1alpha1Featuregates.ListFeatureGatesResponse> {
1168
1169
  return fm.fetchReq<KpandaIoApiFeaturegatesV1alpha1Featuregates.ListFeatureGatesRequest, KpandaIoApiFeaturegatesV1alpha1Featuregates.ListFeatureGatesResponse>(`/apis/kpanda.io/v1alpha1/featuregates?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
1169
1170
  }
1171
+ }
1172
+ export class Devices {
1173
+ static ListGPUDevices(req: KpandaIoApiDevicesV1alpha1Gpu.ListGPURequest, initReq?: fm.InitReq): Promise<KpandaIoApiDevicesV1alpha1Gpu.ListGPUResponse> {
1174
+ return fm.fetchReq<KpandaIoApiDevicesV1alpha1Gpu.ListGPURequest, KpandaIoApiDevicesV1alpha1Gpu.ListGPUResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/gpu-devices?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
1175
+ }
1170
1176
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.40.1",
3
+ "version":"v0.41.0-dev-d3be924c",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {