@daocloud-proto/virtnest 0.4.0 → 0.5.0-dev2

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.4.0",
3
+ "version":"0.5.0-dev2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -35,27 +35,12 @@ export type ListClusterNamespacesResponse = {
35
35
  items?: string[]
36
36
  }
37
37
 
38
- export type IsInsightAgentInstalledRequest = {
38
+ export type IsVMMonitorReadyRequest = {
39
39
  cluster?: string
40
40
  }
41
41
 
42
- export type IsInsightAgentInstalledResponse = {
43
- exist?: boolean
44
- }
45
-
46
- export type IsServiceMonitorAppliedRequest = {
47
- cluster?: string
48
- }
49
-
50
- export type IsServiceMonitorAppliedResponse = {
51
- exist?: boolean
52
- }
53
-
54
- export type CreateServiceMonitorRequest = {
55
- cluster?: string
56
- }
57
-
58
- export type CreateServiceMonitorResponse = {
42
+ export type IsVMMonitorReadyResponse = {
43
+ ready?: boolean
59
44
  }
60
45
 
61
46
  export class Cluster {
@@ -65,13 +50,7 @@ export class Cluster {
65
50
  static ListClusterNamespaces(req: ListClusterNamespacesRequest, initReq?: fm.InitReq): Promise<ListClusterNamespacesResponse> {
66
51
  return fm.fetchReq<ListClusterNamespacesRequest, ListClusterNamespacesResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
67
52
  }
68
- static IsInsightAgentInstalled(req: IsInsightAgentInstalledRequest, initReq?: fm.InitReq): Promise<IsInsightAgentInstalledResponse> {
69
- return fm.fetchReq<IsInsightAgentInstalledRequest, IsInsightAgentInstalledResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/insight-agent/exist?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
70
- }
71
- static IsServiceMonitorApplied(req: IsServiceMonitorAppliedRequest, initReq?: fm.InitReq): Promise<IsServiceMonitorAppliedResponse> {
72
- return fm.fetchReq<IsServiceMonitorAppliedRequest, IsServiceMonitorAppliedResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/service-monitor/exist?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
73
- }
74
- static CreateServiceMonitor(req: CreateServiceMonitorRequest, initReq?: fm.InitReq): Promise<CreateServiceMonitorResponse> {
75
- return fm.fetchReq<CreateServiceMonitorRequest, CreateServiceMonitorResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/service-monitor`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
53
+ static IsVMMonitorReady(req: IsVMMonitorReadyRequest, initReq?: fm.InitReq): Promise<IsVMMonitorReadyResponse> {
54
+ return fm.fetchReq<IsVMMonitorReadyRequest, IsVMMonitorReadyResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/vm-monitor/ready?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
76
55
  }
77
56
  }
package/v1alpha1/vm.pb.ts CHANGED
@@ -129,6 +129,7 @@ export type MultusNetworkItem = {
129
129
  interface?: string
130
130
  multusConfig?: MultusConfigInfo
131
131
  ipPoolNames?: string[]
132
+ ipPoolNamesV6?: string[]
132
133
  }
133
134
 
134
135
  export type CreateVMRequest = {
@@ -147,7 +148,7 @@ export type CreateVMRequest = {
147
148
  osFamily?: string
148
149
  osVersion?: string
149
150
  secret?: string
150
- networks?: MultusNetwork[]
151
+ network?: MultusNetwork
151
152
  }
152
153
 
153
154
  export type SSH = {
@@ -229,20 +230,24 @@ export type GetVMResponse = {
229
230
  node?: string
230
231
  allowedOperation?: AllowedOperation[]
231
232
  secret?: string
232
- networks?: MultusNetworkInfo[]
233
+ network?: MultusNetworkInfo
233
234
  }
234
235
 
235
- export type MultusNetworkInfo = {
236
- networkMode?: string
236
+ export type MultusNetworkInfoItem = {
237
237
  multusConfig?: MultusConfigInfo
238
238
  interface?: string
239
- ip?: string
239
+ ips?: string[]
240
240
  mac?: string
241
241
  subnet?: string
242
242
  gateway?: string
243
243
  vlanId?: string
244
244
  }
245
245
 
246
+ export type MultusNetworkInfo = {
247
+ networkMode?: string
248
+ items?: MultusNetworkInfoItem[]
249
+ }
250
+
246
251
  export type VMNetwork = {
247
252
  name?: string
248
253
  type?: string
@@ -544,6 +549,7 @@ export type ListNetworkInterfacesRequest = {
544
549
  export type ListNetworkInterfacesResponse = {
545
550
  ipPools?: string[]
546
551
  interfaces?: NetworkInterfaceInfo[]
552
+ ipPoolsV6?: string[]
547
553
  }
548
554
 
549
555
  export class VM {