@daocloud-proto/virtnest 0.14.0-dev1 → 0.14.0-rc1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/v1alpha1/vm.pb.ts +20 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/virtnest",
3
- "version":"0.14.0-dev1",
3
+ "version":"0.14.0-rc1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
package/v1alpha1/vm.pb.ts CHANGED
@@ -267,6 +267,7 @@ export type GetVMResponse = {
267
267
  secret?: string
268
268
  network?: MultusNetworkInfo
269
269
  gpus?: GPU[]
270
+ migNodeSelector?: string
270
271
  }
271
272
 
272
273
  export type MultusNetworkInfoItem = {
@@ -344,6 +345,7 @@ export type VMSnapshot = {
344
345
  createdAt?: string
345
346
  status?: SnapshotStatus
346
347
  restoreTime?: string
348
+ vmName?: string
347
349
  }
348
350
 
349
351
  export type ListVMSnapshotsResponse = {
@@ -649,6 +651,21 @@ export type ColdMigrationRequest = {
649
651
  export type ColdMigrationResponse = {
650
652
  }
651
653
 
654
+ export type ListClusterSnapshotsRequest = {
655
+ pageSize?: number
656
+ page?: number
657
+ cluster?: string
658
+ search?: string
659
+ sortBy?: SortBy
660
+ sortDir?: SortDir
661
+ namespace?: string
662
+ }
663
+
664
+ export type ListClusterSnapshotsResponse = {
665
+ items?: VMSnapshot[]
666
+ pagination?: Pagination
667
+ }
668
+
652
669
  export class VM {
653
670
  static ListClusterVMs(req: ListClusterVMsRequest, initReq?: fm.InitReq): Promise<ListClusterVmsResponse> {
654
671
  return fm.fetchReq<ListClusterVMsRequest, ListClusterVmsResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/vms?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
@@ -740,4 +757,7 @@ export class VM {
740
757
  static ColdMigration(req: ColdMigrationRequest, initReq?: fm.InitReq): Promise<ColdMigrationResponse> {
741
758
  return fm.fetchReq<ColdMigrationRequest, ColdMigrationResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/vms/${req["name"]}/cold-migration`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
742
759
  }
760
+ static ListClusterSnapshots(req: ListClusterSnapshotsRequest, initReq?: fm.InitReq): Promise<ListClusterSnapshotsResponse> {
761
+ return fm.fetchReq<ListClusterSnapshotsRequest, ListClusterSnapshotsResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/snapshots?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
762
+ }
743
763
  }