@daocloud-proto/virtnest 0.1.0-rc2 → 0.1.0
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 +0 -28
package/package.json
CHANGED
package/v1alpha1/vm.pb.ts
CHANGED
|
@@ -355,31 +355,6 @@ 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
|
-
|
|
383
358
|
export class VM {
|
|
384
359
|
static ListClusterVMs(req: ListClusterVMsRequest, initReq?: fm.InitReq): Promise<ListClusterVmsResponse> {
|
|
385
360
|
return fm.fetchReq<ListClusterVMsRequest, ListClusterVmsResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/vms?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
@@ -387,9 +362,6 @@ export class VM {
|
|
|
387
362
|
static CreateVM(req: CreateVMRequest, initReq?: fm.InitReq): Promise<CreateVMResponse> {
|
|
388
363
|
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)})
|
|
389
364
|
}
|
|
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
|
-
}
|
|
393
365
|
static CreateCustomResource(req: CreateCustomResourceRequest, initReq?: fm.InitReq): Promise<CreateCustomResourceResponse> {
|
|
394
366
|
return fm.fetchReq<CreateCustomResourceRequest, CreateCustomResourceResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/custom-resource`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
395
367
|
}
|