@daocloud-proto/virtnest 0.1.0-rc1 → 0.1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/v1alpha1/vm.pb.ts +28 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/virtnest",
3
- "version":"0.1.0-rc1",
3
+ "version":"0.1.0-rc2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
package/v1alpha1/vm.pb.ts CHANGED
@@ -355,6 +355,31 @@ export type ExpandVMDiskCapacityRequest = {
355
355
  export type ExpandVMDiskCapacityResponse = {
356
356
  }
357
357
 
358
+ export type CreateMultiStorageVMRequest = {
359
+ cluster?: string
360
+ namespace?: string
361
+ name?: string
362
+ aliasName?: string
363
+ labels?: {[key: string]: string}
364
+ annotations?: {[key: string]: string}
365
+ imageSource?: ImageSource
366
+ imageUrl?: string
367
+ disks?: VMDisks
368
+ cpu?: Item
369
+ memory?: Item
370
+ ssh?: SSH
371
+ osFamily?: OSFamily
372
+ osVersion?: string
373
+ }
374
+
375
+ export type VMDisks = {
376
+ systemVolume?: DiskVolume
377
+ dataVolumes?: DiskVolume[]
378
+ }
379
+
380
+ export type CreateMultiStorageVMVMResponse = {
381
+ }
382
+
358
383
  export class VM {
359
384
  static ListClusterVMs(req: ListClusterVMsRequest, initReq?: fm.InitReq): Promise<ListClusterVmsResponse> {
360
385
  return fm.fetchReq<ListClusterVMsRequest, ListClusterVmsResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/vms?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
@@ -362,6 +387,9 @@ export class VM {
362
387
  static CreateVM(req: CreateVMRequest, initReq?: fm.InitReq): Promise<CreateVMResponse> {
363
388
  return fm.fetchReq<CreateVMRequest, CreateVMResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/vm`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
364
389
  }
390
+ static CreateMultiStorageVM(req: CreateMultiStorageVMRequest, initReq?: fm.InitReq): Promise<CreateMultiStorageVMVMResponse> {
391
+ return fm.fetchReq<CreateMultiStorageVMRequest, CreateMultiStorageVMVMResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/multi-storage-vm`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
392
+ }
365
393
  static CreateCustomResource(req: CreateCustomResourceRequest, initReq?: fm.InitReq): Promise<CreateCustomResourceResponse> {
366
394
  return fm.fetchReq<CreateCustomResourceRequest, CreateCustomResourceResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/custom-resource`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
367
395
  }