@daocloud-proto/virtnest 0.9.0 → 0.10.0-dev1

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 +24 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/virtnest",
3
- "version":"0.9.0",
3
+ "version":"0.10.0-dev1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
package/v1alpha1/vm.pb.ts CHANGED
@@ -91,6 +91,13 @@ export enum EventLevel {
91
91
  Warning = "Warning",
92
92
  }
93
93
 
94
+ export enum NodePhase {
95
+ PhaseUnspecified = "PhaseUnspecified",
96
+ PhaseReady = "PhaseReady",
97
+ PhaseNotReady = "PhaseNotReady",
98
+ PhaseUnknown = "PhaseUnknown",
99
+ }
100
+
94
101
  export type Pagination = {
95
102
  page?: number
96
103
  pageSize?: number
@@ -514,6 +521,7 @@ export type LiveMigrateVMRequest = {
514
521
  cluster?: string
515
522
  namespace?: string
516
523
  name?: string
524
+ targetNode?: string
517
525
  }
518
526
 
519
527
  export type LiveMigrateVMResponse = {
@@ -603,6 +611,19 @@ export type Object = {
603
611
  kind?: string
604
612
  }
605
613
 
614
+ export type ListClusterNodesRequest = {
615
+ cluster?: string
616
+ }
617
+
618
+ export type ListClusterNodesResponse = {
619
+ items?: Node[]
620
+ }
621
+
622
+ export type Node = {
623
+ name?: string
624
+ phase?: NodePhase
625
+ }
626
+
606
627
  export class VM {
607
628
  static ListClusterVMs(req: ListClusterVMsRequest, initReq?: fm.InitReq): Promise<ListClusterVmsResponse> {
608
629
  return fm.fetchReq<ListClusterVMsRequest, ListClusterVmsResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/vms?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
@@ -688,4 +709,7 @@ export class VM {
688
709
  static ListVMEvents(req: ListVMEventsRequest, initReq?: fm.InitReq): Promise<ListVMEventsResponse> {
689
710
  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"})
690
711
  }
712
+ static ListClusterNodes(req: ListClusterNodesRequest, initReq?: fm.InitReq): Promise<ListClusterNodesResponse> {
713
+ return fm.fetchReq<ListClusterNodesRequest, ListClusterNodesResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/nodes?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
714
+ }
691
715
  }