feat(@xen-orchestra/rest-api): expose delete network

This commit is contained in:
mathieuRA
2025-06-05 17:55:53 +02:00
committed by Florent BEAUCHAMP
parent 94db22f7b0
commit 815dad114c
3 changed files with 16 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ import type {
VTPM_OPERATIONS,
VUSB_OPERATIONS,
} from './common.mjs'
import type { XoPif } from './xo.mjs'
import type { XoNetwork, XoPif } from './xo.mjs'
// types automatically generated by the @ByScripts script.
// https://github.com/vatesfr/xen-orchestra/tree/wip-xapi-types-generator/%40xen-orchestra/xapi-generator
@@ -105,6 +105,7 @@ type WrapperXenApi<T, Type extends string, Fn = { (): void }> = T & {
vlan: number
}
): Promise<XenApiNetworkWrapped>
deleteNetwork(id: XoNetwork['id']): Promise<void>
}
}