@daocloud-proto/virtnest 0.5.0-dev3 → 0.5.0-rc2
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 +25 -0
- package/v1alpha1/vmtemplate.pb.ts +1 -0
package/package.json
CHANGED
package/v1alpha1/vm.pb.ts
CHANGED
|
@@ -526,6 +526,7 @@ export type CreateVMWithVMTemplateRequest = {
|
|
|
526
526
|
osFamily?: string
|
|
527
527
|
osVersion?: string
|
|
528
528
|
secret?: string
|
|
529
|
+
network?: MultusNetwork
|
|
529
530
|
}
|
|
530
531
|
|
|
531
532
|
export type CreateVMWithVMTemplateResponse = {
|
|
@@ -552,6 +553,27 @@ export type ListNetworkInterfacesResponse = {
|
|
|
552
553
|
ipPoolsV6?: string[]
|
|
553
554
|
}
|
|
554
555
|
|
|
556
|
+
export type ListVMEventsRequest = {
|
|
557
|
+
pageSize?: number
|
|
558
|
+
page?: number
|
|
559
|
+
cluster?: string
|
|
560
|
+
namespace?: string
|
|
561
|
+
name?: string
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
export type ListVMEventsResponse = {
|
|
565
|
+
items?: VmEvents[]
|
|
566
|
+
pagination?: Pagination
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
export type VmEvents = {
|
|
570
|
+
level?: string
|
|
571
|
+
object?: string
|
|
572
|
+
name?: string
|
|
573
|
+
detail?: string
|
|
574
|
+
time?: string
|
|
575
|
+
}
|
|
576
|
+
|
|
555
577
|
export class VM {
|
|
556
578
|
static ListClusterVMs(req: ListClusterVMsRequest, initReq?: fm.InitReq): Promise<ListClusterVmsResponse> {
|
|
557
579
|
return fm.fetchReq<ListClusterVMsRequest, ListClusterVmsResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/vms?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
@@ -634,4 +656,7 @@ export class VM {
|
|
|
634
656
|
static ListNetworkInterfaces(req: ListNetworkInterfacesRequest, initReq?: fm.InitReq): Promise<ListNetworkInterfacesResponse> {
|
|
635
657
|
return fm.fetchReq<ListNetworkInterfacesRequest, ListNetworkInterfacesResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/network-interfaces?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
636
658
|
}
|
|
659
|
+
static ListVMEvents(req: ListVMEventsRequest, initReq?: fm.InitReq): Promise<ListVMEventsResponse> {
|
|
660
|
+
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"})
|
|
661
|
+
}
|
|
637
662
|
}
|