@daocloud-proto/virtnest 0.14.0 → 0.15.0-dev2

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/virtnest",
3
- "version":"0.14.0",
3
+ "version":"0.15.0-dev2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -14,6 +14,9 @@ export enum Status {
14
14
  export enum GPUType {
15
15
  Nvidia_GPU = "Nvidia_GPU",
16
16
  Nvidia_vGPU = "Nvidia_vGPU",
17
+ Metax_GPU = "Metax_GPU",
18
+ Unknown_GPU = "Unknown_GPU",
19
+ Unknown_vGPU = "Unknown_vGPU",
17
20
  }
18
21
 
19
22
  export type ClusterInfo = {
package/v1alpha1/vm.pb.ts CHANGED
@@ -38,6 +38,9 @@ export enum ImageSource {
38
38
  export enum GPUType {
39
39
  Nvidia_GPU = "Nvidia_GPU",
40
40
  Nvidia_vGPU = "Nvidia_vGPU",
41
+ Metax_GPU = "Metax_GPU",
42
+ Unknown_GPU = "Unknown_GPU",
43
+ Unknown_vGPU = "Unknown_vGPU",
41
44
  }
42
45
 
43
46
  export enum DiskOperation {
@@ -346,6 +349,7 @@ export type VMSnapshot = {
346
349
  status?: SnapshotStatus
347
350
  restoreTime?: string
348
351
  vmName?: string
352
+ namespace?: string
349
353
  }
350
354
 
351
355
  export type ListVMSnapshotsResponse = {
@@ -572,6 +576,7 @@ export type CreateVMWithVMTemplateRequest = {
572
576
  secret?: string
573
577
  network?: MultusNetwork
574
578
  createPowerOn?: boolean
579
+ gpus?: GPU[]
575
580
  }
576
581
 
577
582
  export type CreateVMWithVMTemplateResponse = {
@@ -782,7 +787,7 @@ export class VM {
782
787
  return fm.fetchReq<ListNetworkInterfacesRequest, ListNetworkInterfacesResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/network-interfaces?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
783
788
  }
784
789
  static ListVMEvents(req: ListVMEventsRequest, initReq?: fm.InitReq): Promise<ListVMEventsResponse> {
785
- return fm.fetchReq<ListVMEventsRequest, ListVMEventsResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/vms/${req["name"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
790
+ return fm.fetchReq<ListVMEventsRequest, ListVMEventsResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/vms/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
786
791
  }
787
792
  static ListClusterNodes(req: ListClusterNodesRequest, initReq?: fm.InitReq): Promise<ListClusterNodesResponse> {
788
793
  return fm.fetchReq<ListClusterNodesRequest, ListClusterNodesResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/nodes?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
@@ -21,6 +21,9 @@ export enum PersistentVolumeAccessMode {
21
21
  export enum GPUType {
22
22
  Nvidia_GPU = "Nvidia_GPU",
23
23
  Nvidia_vGPU = "Nvidia_vGPU",
24
+ Metax_GPU = "Metax_GPU",
25
+ Unknown_GPU = "Unknown_GPU",
26
+ Unknown_vGPU = "Unknown_vGPU",
24
27
  }
25
28
 
26
29
  export enum ImageSource {