@daocloud-proto/virtnest 0.19.0-dev5 → 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.
- package/package.json +1 -1
- package/v1alpha1/vm.pb.ts +20 -0
package/package.json
CHANGED
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",
|
|
@@ -628,6 +629,22 @@ export type ListVMEventsRequest = {
|
|
|
628
629
|
cluster?: string
|
|
629
630
|
namespace?: string
|
|
630
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
|
|
631
648
|
}
|
|
632
649
|
|
|
633
650
|
export type ListVMEventsResponse = {
|
|
@@ -840,4 +857,7 @@ export class VM {
|
|
|
840
857
|
static GetVMNetworkCount(req: GetVMNetworkCountRequest, initReq?: fm.InitReq): Promise<GetVMNetworkCountResponse> {
|
|
841
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"})
|
|
842
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
|
+
}
|
|
843
863
|
}
|