@daocloud-proto/virtnest 0.19.0-rc3 → 0.20.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 +23 -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",
|
|
@@ -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 = {
|
|
@@ -177,6 +180,7 @@ export type CreateVMRequest = {
|
|
|
177
180
|
annotations?: {[key: string]: string}
|
|
178
181
|
imageSource?: ImageSource
|
|
179
182
|
imageUrl?: string
|
|
183
|
+
imagePullMethod?: string
|
|
180
184
|
disks?: VMDisks
|
|
181
185
|
cpu?: number
|
|
182
186
|
memory?: string
|
|
@@ -625,6 +629,22 @@ export type ListVMEventsRequest = {
|
|
|
625
629
|
cluster?: string
|
|
626
630
|
namespace?: string
|
|
627
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
|
|
628
648
|
}
|
|
629
649
|
|
|
630
650
|
export type ListVMEventsResponse = {
|
|
@@ -837,4 +857,7 @@ export class VM {
|
|
|
837
857
|
static GetVMNetworkCount(req: GetVMNetworkCountRequest, initReq?: fm.InitReq): Promise<GetVMNetworkCountResponse> {
|
|
838
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"})
|
|
839
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
|
+
}
|
|
840
863
|
}
|