@vates/types 1.19.0 → 1.20.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/dist/lib/xen-orchestra-xapi.d.mts +24 -1
- package/dist/xo.d.mts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WrappedXenApiRecord, XenApiHost, XenApiNetwork, XenApiNetworkWrapped, XenApiRecord, XenApiSr, XenApiTask, XenApiVbd, XenApiVdi, XenApiVif, XenApiVm, XenApiVmWrapped, XenApiVtpm } from '../xen-api.mjs';
|
|
2
|
-
import type { OPAQUE_REF_NULL, SUPPORTED_VDI_FORMAT, VBD_MODE, VBD_TYPE, VIF_LOCKING_MODE } from '../common.mjs';
|
|
2
|
+
import type { OPAQUE_REF_NULL, SUPPORTED_VDI_FORMAT, VBD_MODE, VBD_TYPE, VDI_TYPE, VIF_LOCKING_MODE } from '../common.mjs';
|
|
3
3
|
import type { PassThrough, Readable } from 'node:stream';
|
|
4
4
|
import type { XoGpuGroup, XoHost, XoNetwork, XoPif, XoSr, XoUser, XoVdi, XoVgpuType, XoVm, XoVmTemplate, XoVif } from '../xo.mjs';
|
|
5
5
|
export type XcpPatches = {
|
|
@@ -51,6 +51,14 @@ export interface Xapi {
|
|
|
51
51
|
deleteNetwork(id: XoNetwork['id']): Promise<void>;
|
|
52
52
|
deleteVif(vifId: XoVif['id']): Promise<void>;
|
|
53
53
|
exportVmOva(vmRef: XenApiVm['$ref']): Promise<PassThrough>;
|
|
54
|
+
migrateVm(vmId: XoVm['id'], hostXapi: Xapi, hostId: XoHost['id'], opts?: {
|
|
55
|
+
force?: boolean;
|
|
56
|
+
mapVdisSrs?: Record<XoVdi['id'], XoSr['id']>;
|
|
57
|
+
mapVifsNetworks?: Record<XoVif['id'], XoNetwork['id']>;
|
|
58
|
+
migrationNetworkId?: XoNetwork['id'];
|
|
59
|
+
sr?: XoSr['id'];
|
|
60
|
+
bypassAssert?: boolean;
|
|
61
|
+
}): Promise<void>;
|
|
54
62
|
listMissingPatches(host: XoHost['id']): Promise<XcpPatches[] | XsPatches[]>;
|
|
55
63
|
pool_emergencyShutdown(): Promise<void>;
|
|
56
64
|
resumeVm(id: XoVm['id']): Promise<void>;
|
|
@@ -68,6 +76,7 @@ export interface Xapi {
|
|
|
68
76
|
virtual_size?: XoVdi['size'];
|
|
69
77
|
xenstore_data?: Record<string, string>;
|
|
70
78
|
}): Promise<XenApiVdi['$ref']>;
|
|
79
|
+
SR_reclaimSpace(ref: XenApiSr['$ref']): Promise<void>;
|
|
71
80
|
startVm(id: XoVm['id'], opts?: {
|
|
72
81
|
bypassMacAddressesCheck?: boolean;
|
|
73
82
|
force?: boolean;
|
|
@@ -152,6 +161,20 @@ export interface Xapi {
|
|
|
152
161
|
}): Promise<XenApiVbd['$ref']>;
|
|
153
162
|
VBD_destroy(vbdRef: XenApiVbd['$ref']): Promise<void>;
|
|
154
163
|
VBD_unplug(vbdRef: XenApiVbd['$ref']): Promise<void>;
|
|
164
|
+
VDI_create(options: {
|
|
165
|
+
name_description?: XoVdi['name_description'];
|
|
166
|
+
name_label?: XoVdi['name_label'];
|
|
167
|
+
other_config?: XoVdi['other_config'];
|
|
168
|
+
read_only?: boolean;
|
|
169
|
+
sharable?: boolean;
|
|
170
|
+
SR?: XenApiSr['$ref'];
|
|
171
|
+
tags?: XoVdi['tags'];
|
|
172
|
+
type?: VDI_TYPE;
|
|
173
|
+
virtual_size: XoVdi['size'];
|
|
174
|
+
xenstore_data?: Record<string, string>;
|
|
175
|
+
}, extraOptions?: {
|
|
176
|
+
sm_config?: Record<string, string>;
|
|
177
|
+
}): Promise<XenApiVdi['$ref']>;
|
|
155
178
|
VDI_destroy(vdiRef: XenApiVdi['$ref']): Promise<void>;
|
|
156
179
|
VDI_destroyCloudInitConfig(vdiRef: XenApiVdi['$ref'], opts?: {
|
|
157
180
|
timeLimit?: number;
|
package/dist/xo.d.mts
CHANGED
|
@@ -608,6 +608,7 @@ export type XoTask = {
|
|
|
608
608
|
method?: string;
|
|
609
609
|
name?: string;
|
|
610
610
|
objectId?: string;
|
|
611
|
+
objectType?: XapiXoRecord['type'] | 'backup' | 'backup-archive' | 'backup-job' | 'backup-log' | 'backup-repository' | 'group' | 'proxy' | 'restore' | 'restore-log' | 'schedule' | 'server' | 'task' | 'user';
|
|
611
612
|
params?: Record<string, unknown>;
|
|
612
613
|
progress?: number;
|
|
613
614
|
type?: string;
|