@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/virtnest",
3
- "version":"0.5.0-dev3",
3
+ "version":"0.5.0-rc2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
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
  }
@@ -74,6 +74,7 @@ export type GetVMTemplateResponse = {
74
74
  systemDiskCapacity?: string
75
75
  imageSource?: ImageSource
76
76
  osVersion?: string
77
+ network?: string
77
78
  }
78
79
 
79
80
  export type CreateVMTemplateByVMRequest = {