@daocloud-proto/virtnest 0.14.0-dev2 → 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.
- package/package.json +1 -1
- package/v1alpha1/vm.pb.ts +19 -0
package/package.json
CHANGED
package/v1alpha1/vm.pb.ts
CHANGED
|
@@ -345,6 +345,7 @@ export type VMSnapshot = {
|
|
|
345
345
|
createdAt?: string
|
|
346
346
|
status?: SnapshotStatus
|
|
347
347
|
restoreTime?: string
|
|
348
|
+
vmName?: string
|
|
348
349
|
}
|
|
349
350
|
|
|
350
351
|
export type ListVMSnapshotsResponse = {
|
|
@@ -650,6 +651,21 @@ export type ColdMigrationRequest = {
|
|
|
650
651
|
export type ColdMigrationResponse = {
|
|
651
652
|
}
|
|
652
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
|
+
|
|
653
669
|
export class VM {
|
|
654
670
|
static ListClusterVMs(req: ListClusterVMsRequest, initReq?: fm.InitReq): Promise<ListClusterVmsResponse> {
|
|
655
671
|
return fm.fetchReq<ListClusterVMsRequest, ListClusterVmsResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/vms?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
@@ -741,4 +757,7 @@ export class VM {
|
|
|
741
757
|
static ColdMigration(req: ColdMigrationRequest, initReq?: fm.InitReq): Promise<ColdMigrationResponse> {
|
|
742
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)})
|
|
743
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
|
+
}
|
|
744
763
|
}
|