@daocloud-proto/kpanda 0.25.0-dev-42afa8eb → 0.25.0-dev-99a7b461

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,14 @@
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 ListAllClusterGPUInfoResponse = {
7
+ items?: GPUSpec[]
8
+ }
9
+
10
+ export type GPUSpec = {
11
+ modelName?: string
12
+ memory?: string
13
+ uuid?: string
14
+ }
@@ -30,6 +30,11 @@ export type MigSpec = {
30
30
  gpuIProfile?: string
31
31
  }
32
32
 
33
+ export type GPUSummary = {
34
+ node?: string
35
+ vgpuTypes?: string[]
36
+ }
37
+
33
38
  export type ListNodeGPURequest = {
34
39
  cluster?: string
35
40
  node?: string
@@ -47,4 +52,12 @@ export type UpdateNodeGPUModeRequest = {
47
52
 
48
53
  export type UpdateNodeGPUModeResponse = {
49
54
  mode?: GPUModel
55
+ }
56
+
57
+ export type ListClusterGPUSummaryRequest = {
58
+ cluster?: string
59
+ }
60
+
61
+ export type ListClusterGPUSummaryResponese = {
62
+ summary?: GPUSummary[]
50
63
  }
@@ -28,6 +28,7 @@ import * as KpandaIoApiBatchV1alpha1Job from "../batch/v1alpha1/job.pb"
28
28
  import * as KpandaIoApiCloudshellV1alpha1Cloudshell from "../cloudshell/v1alpha1/cloudshell.pb"
29
29
  import * as KpandaIoApiClusterlcmV1alpha1Clusterlcm from "../clusterlcm/v1alpha1/clusterlcm.pb"
30
30
  import * as KpandaIoApiClustersV1alpha1Cluster from "../clusters/v1alpha1/cluster.pb"
31
+ import * as KpandaIoApiClustersV1alpha1Gpu from "../clusters/v1alpha1/gpu.pb"
31
32
  import * as KpandaIoApiClustersettingV1alpha1Clustersetting from "../clustersetting/v1alpha1/clustersetting.pb"
32
33
  import * as KpandaIoApiCoreV1alpha1Configmap from "../core/v1alpha1/configmap.pb"
33
34
  import * as KpandaIoApiCoreV1alpha1Event from "../core/v1alpha1/event.pb"
@@ -342,6 +343,9 @@ export class Cluster {
342
343
  static CreateOpenAPIClusterCertByKubeSystemID(req: KpandaIoApiClustersV1alpha1Cluster.CreateOpenAPIClusterCertRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersV1alpha1Cluster.CreateOpenAPIClusterCertResponse> {
343
344
  return fm.fetchReq<KpandaIoApiClustersV1alpha1Cluster.CreateOpenAPIClusterCertRequest, KpandaIoApiClustersV1alpha1Cluster.CreateOpenAPIClusterCertResponse>(`/apis/kpanda.io/v1alpha1/kubesystemid/${req["kubeSystemID"]}/clustercert`, {...initReq, method: "POST", body: JSON.stringify(req)})
344
345
  }
346
+ static ListAllClusterGPU(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<KpandaIoApiClustersV1alpha1Gpu.ListAllClusterGPUInfoResponse> {
347
+ return fm.fetchReq<GoogleProtobufEmpty.Empty, KpandaIoApiClustersV1alpha1Gpu.ListAllClusterGPUInfoResponse>(`/apis/kpanda.io/v1alpha1/gpus?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
348
+ }
345
349
  }
346
350
  export class insight {
347
351
  static GetPodContainerLog(req: KpandaIoApiInsightV1alpha1Insight.GetPodContainerLogRequest, initReq?: fm.InitReq): Promise<KpandaIoApiInsightV1alpha1Insight.GetPodContainerLogResponse> {
@@ -643,6 +647,9 @@ export class Core {
643
647
  static UpdateNodeGPUMode(req: KpandaIoApiCoreV1alpha1Gpu.UpdateNodeGPUModeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Gpu.UpdateNodeGPUModeResponse> {
644
648
  return fm.fetchReq<KpandaIoApiCoreV1alpha1Gpu.UpdateNodeGPUModeRequest, KpandaIoApiCoreV1alpha1Gpu.UpdateNodeGPUModeResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/nodes/${req["node"]}/gpu-mode`, {...initReq, method: "PUT", body: JSON.stringify(req)})
645
649
  }
650
+ static ListClusterGPUSummary(req: KpandaIoApiCoreV1alpha1Gpu.ListClusterGPUSummaryRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Gpu.ListClusterGPUSummaryResponese> {
651
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Gpu.ListClusterGPUSummaryRequest, KpandaIoApiCoreV1alpha1Gpu.ListClusterGPUSummaryResponese>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/gpusummary?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
652
+ }
646
653
  }
647
654
  export class Networking {
648
655
  static ListClusterIngresses(req: KpandaIoApiNetworkingV1alpha1Ingress.ListClusterIngressesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiNetworkingV1alpha1Ingress.ListClusterIngressesResponse> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.25.0-dev-42afa8eb",
3
+ "version":"v0.25.0-dev-99a7b461",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {