@daocloud-proto/virtnest 0.19.0-dev4 → 0.19.0-dev6

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 +22 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/virtnest",
3
- "version":"0.19.0-dev4",
3
+ "version":"0.19.0-dev6",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
package/v1alpha1/vm.pb.ts CHANGED
@@ -56,6 +56,7 @@ export enum VMOperation {
56
56
  }
57
57
 
58
58
  export enum VMStatus {
59
+ all = "all",
59
60
  running = "running",
60
61
  processing = "processing",
61
62
  error = "error",
@@ -149,6 +150,8 @@ export type ListClusterVMsRequest = {
149
150
  sortDir?: SortDir
150
151
  namespace?: string
151
152
  ip?: string
153
+ osFamily?: string
154
+ status?: VMStatus
152
155
  }
153
156
 
154
157
  export type ListClusterVmsResponse = {
@@ -626,6 +629,22 @@ export type ListVMEventsRequest = {
626
629
  cluster?: string
627
630
  namespace?: string
628
631
  name?: string
632
+ level?: EventLevel
633
+ resource?: APIResource
634
+ }
635
+
636
+ export type ListClusterEventKindsRequest = {
637
+ cluster?: string
638
+ }
639
+
640
+ export type ListClusterEventKindsResponse = {
641
+ resources?: APIResource[]
642
+ }
643
+
644
+ export type APIResource = {
645
+ group?: string
646
+ version?: string
647
+ kind?: string
629
648
  }
630
649
 
631
650
  export type ListVMEventsResponse = {
@@ -838,4 +857,7 @@ export class VM {
838
857
  static GetVMNetworkCount(req: GetVMNetworkCountRequest, initReq?: fm.InitReq): Promise<GetVMNetworkCountResponse> {
839
858
  return fm.fetchReq<GetVMNetworkCountRequest, GetVMNetworkCountResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/vm-network-count?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
840
859
  }
860
+ static ListClusterEventKinds(req: ListClusterEventKindsRequest, initReq?: fm.InitReq): Promise<ListClusterEventKindsResponse> {
861
+ return fm.fetchReq<ListClusterEventKindsRequest, ListClusterEventKindsResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/events/kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
862
+ }
841
863
  }