///
///
///
/**
* Type Definitions for Gjs (https://gjs.guide/)
*
* These type definitions are automatically generated, do not edit them by hand.
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
*
* The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
*/
declare module 'gi://LibvirtGConfig?version=1.0' {
// Module dependencies
import type libxml2 from 'gi://libxml2?version=2.0';
import type GObject from 'gi://GObject?version=2.0';
import type GLib from 'gi://GLib?version=2.0';
export namespace LibvirtGConfig {
/**
* LibvirtGConfig-1.0
*/
export namespace DomainAudioBackend {
export const $gtype: GObject.GType;
}
enum DomainAudioBackend {
NONE,
ALSA,
COREAUDIO,
JACK,
OSS,
PULSEAUDIO,
SDL,
SPICE,
FILE,
}
export namespace DomainChannelTargetType {
export const $gtype: GObject.GType;
}
enum DomainChannelTargetType {
GUESTFWD,
VIRTIO,
SPICEPORT,
}
export namespace DomainClockOffset {
export const $gtype: GObject.GType;
}
enum DomainClockOffset {
UTC,
LOCALTIME,
TIMEZONE,
VARIABLE,
}
export namespace DomainConsoleTargetType {
export const $gtype: GObject.GType;
}
enum DomainConsoleTargetType {
XEN,
SERIAL,
UML,
VIRTIO,
LXC,
OPENVZ,
}
export namespace DomainControllerUsbModel {
export const $gtype: GObject.GType;
}
enum DomainControllerUsbModel {
PIIX3_UHCI,
PIIX4_UHCI,
EHCI,
ICH9_EHCI1,
ICH9_UHCI1,
ICH9_UHCI2,
ICH9_UHCI3,
VT82C686B_UHCI,
PCI_OHCI,
QEMU_XHCI,
}
export namespace DomainCpuFeaturePolicy {
export const $gtype: GObject.GType;
}
enum DomainCpuFeaturePolicy {
FORCE,
REQUIRE,
OPTIONAL,
DISABLE,
FORBID,
}
export namespace DomainCpuMatchPolicy {
export const $gtype: GObject.GType;
}
enum DomainCpuMatchPolicy {
MINIMUM,
EXACT,
STRICT,
}
export namespace DomainCpuMode {
export const $gtype: GObject.GType;
}
enum DomainCpuMode {
CUSTOM,
HOST_MODEL,
HOST_PASSTHROUGH,
}
export namespace DomainDiskBus {
export const $gtype: GObject.GType;
}
enum DomainDiskBus {
IDE,
FDC,
SCSI,
VIRTIO,
XEN,
USB,
UML,
SATA,
}
export namespace DomainDiskCacheType {
export const $gtype: GObject.GType;
}
enum DomainDiskCacheType {
DEFAULT,
NONE,
WRITETHROUGH,
WRITEBACK,
DIRECTSYNC,
UNSAFE,
}
export namespace DomainDiskDriverDiscard {
export const $gtype: GObject.GType;
}
enum DomainDiskDriverDiscard {
UNMAP,
IGNORE,
}
export namespace DomainDiskDriverErrorPolicy {
export const $gtype: GObject.GType;
}
enum DomainDiskDriverErrorPolicy {
STOP,
REPORT,
IGNORE,
ENOSPACE,
}
export namespace DomainDiskDriverIoPolicy {
export const $gtype: GObject.GType;
}
enum DomainDiskDriverIoPolicy {
THREADS,
NATIVE,
}
export namespace DomainDiskFormat {
export const $gtype: GObject.GType;
}
enum DomainDiskFormat {
RAW,
DIR,
BOCHS,
CLOOP,
COW,
DMG,
ISO,
QCOW,
QCOW2,
QED,
VMDK,
VPC,
FAT,
VHD,
}
export namespace DomainDiskGuestDeviceType {
export const $gtype: GObject.GType;
}
enum DomainDiskGuestDeviceType {
DISK,
FLOPPY,
CDROM,
}
export namespace DomainDiskSnapshotType {
export const $gtype: GObject.GType;
}
enum DomainDiskSnapshotType {
NO,
INTERNAL,
EXTERNAL,
}
export namespace DomainDiskStartupPolicy {
export const $gtype: GObject.GType;
}
enum DomainDiskStartupPolicy {
MANDATORY,
REQUISITE,
OPTIONAL,
}
export namespace DomainDiskType {
export const $gtype: GObject.GType;
}
enum DomainDiskType {
FILE,
BLOCK,
DIR,
NETWORK,
}
export namespace DomainFilesysAccessType {
export const $gtype: GObject.GType;
}
enum DomainFilesysAccessType {
PASSTHROUGH,
MAPPED,
SQUASH,
}
export namespace DomainFilesysDriverType {
export const $gtype: GObject.GType;
}
enum DomainFilesysDriverType {
DEFAULT,
PATH,
HANDLE,
LOOP,
NBD,
PLOOP,
}
export namespace DomainFilesysType {
export const $gtype: GObject.GType;
}
enum DomainFilesysType {
MOUNT,
BLOCK,
FILE,
TEMPLATE,
RAM,
BIND,
}
export namespace DomainGraphicsSpiceImageCompression {
export const $gtype: GObject.GType;
}
enum DomainGraphicsSpiceImageCompression {
AUTO_GLZ,
AUTO_LZ,
QUIC,
GLZ,
LZ,
OFF,
}
export namespace DomainInputBus {
export const $gtype: GObject.GType;
}
enum DomainInputBus {
PS2,
USB,
XEN,
}
export namespace DomainInputDeviceType {
export const $gtype: GObject.GType;
}
enum DomainInputDeviceType {
MOUSE,
TABLET,
KEYBOARD,
}
export namespace DomainInterfaceLinkState {
export const $gtype: GObject.GType;
}
enum DomainInterfaceLinkState {
DEFAULT,
UP,
DOWN,
}
export namespace DomainLifecycleAction {
export const $gtype: GObject.GType;
}
enum DomainLifecycleAction {
DESTROY,
RESTART,
PRESERVE,
RENAME_RESTART,
COREDUMP_DESTROY,
COREDUMP_RESTART,
}
export namespace DomainLifecycleEvent {
export const $gtype: GObject.GType;
}
enum DomainLifecycleEvent {
ON_POWEROFF,
ON_REBOOT,
ON_CRASH,
}
export namespace DomainMemballoonModel {
export const $gtype: GObject.GType;
}
enum DomainMemballoonModel {
NONE,
VIRTIO,
}
export namespace DomainOsBootDevice {
export const $gtype: GObject.GType;
}
enum DomainOsBootDevice {
FD,
HD,
CDROM,
NETWORK,
}
export namespace DomainOsFirmware {
export const $gtype: GObject.GType;
}
enum DomainOsFirmware {
BIOS,
EFI,
}
export namespace DomainOsSmBiosMode {
export const $gtype: GObject.GType;
}
enum DomainOsSmBiosMode {
EMULATE,
HOST,
SYSINFO,
}
export namespace DomainOsType {
export const $gtype: GObject.GType;
}
enum DomainOsType {
HVM,
LINUX,
EXE,
XEN,
UML,
}
export namespace DomainRedirdevBus {
export const $gtype: GObject.GType;
}
enum DomainRedirdevBus {
USB,
}
export namespace DomainSeclabelType {
export const $gtype: GObject.GType;
}
enum DomainSeclabelType {
DYNAMIC,
STATIC,
}
export namespace DomainSnapshotDomainState {
export const $gtype: GObject.GType;
}
enum DomainSnapshotDomainState {
NOSTATE,
RUNNING,
BLOCKED,
PAUSED,
SHUTDOWN,
SHUTOFF,
CRASHED,
PMSUSPENDED,
DISK_SNAPSHOT,
}
export namespace DomainSnapshotMemoryState {
export const $gtype: GObject.GType;
}
enum DomainSnapshotMemoryState {
NONE,
INTERNAL,
EXTERNAL,
}
export namespace DomainSoundModel {
export const $gtype: GObject.GType;
}
enum DomainSoundModel {
SB16,
ES1370,
PCSPK,
AC97,
ICH6,
ICH9,
}
export namespace DomainTimerTickPolicy {
export const $gtype: GObject.GType;
}
enum DomainTimerTickPolicy {
DELAY,
CATCHUP,
MERGE,
DISCARD,
}
export namespace DomainVideoModel {
export const $gtype: GObject.GType;
}
enum DomainVideoModel {
VGA,
CIRRUS,
VMVGA,
XEN,
VBOX,
QXL,
VIRTIO,
BOCHS,
}
export namespace DomainVirtType {
export const $gtype: GObject.GType;
}
enum DomainVirtType {
QEMU,
KQEMU,
KVM,
XEN,
LXC,
UML,
OPENVZ,
VSERVER,
LDOM,
TEST,
VMWARE,
HYPERV,
VBOX,
ONE,
PHYP,
}
export namespace StoragePoolType {
export const $gtype: GObject.GType;
}
enum StoragePoolType {
DIR,
FS,
NETFS,
LOGICAL,
DISK,
ISCSI,
SCSI,
MPATH,
}
function init(argv?: string[] | null): string[] | null;
function init_check(argv?: string[] | null): [boolean, string[] | null];
export namespace StorageVolTargetFeatures {
export const $gtype: GObject.GType;
}
enum StorageVolTargetFeatures {
REFCOUNT,
}
module Capabilities {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class Capabilities extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): Capabilities;
static new_from_xml(xml: string): Capabilities;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
/**
* Gets the list of guest capabilities.
* @returns a newly allocated #GList of #GVirConfigCapabilitiesGuest.
*/
get_guests(): CapabilitiesGuest[];
/**
* Gets the host capabilities.
* @returns a new #GVirConfigCapabilitiesHost.
*/
get_host(): CapabilitiesHost;
}
module CapabilitiesCpu {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class CapabilitiesCpu extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Virtual methods
/**
* Gets the features of this CPU.
*/
vfunc_get_features(): CapabilitiesCpuFeature[];
// Methods
/**
* Adds a new feature to CPU.
* @param feature
*/
add_feature(feature: CapabilitiesCpuFeature): void;
get_arch(): string;
/**
* Gets the features of this CPU.
* @returns a newly allocated #GList of #GVirConfigCapabilitiesCpuFeature.
*/
get_features(): CapabilitiesCpuFeature[];
/**
* Gets the model of the cpu.
* @returns a new #GVirConfigCapabilitiesCpuModel.
*/
get_model(): CapabilitiesCpuModel;
/**
* Gets the topology of the cpu.
* @returns a new #GVirConfigCapabilitiesCpuTopology.
*/
get_topology(): CapabilitiesCpuTopology;
/**
* Sets the topology of the cpu.
* @param topology
*/
set_topology(topology: CapabilitiesCpuTopology): void;
}
module CapabilitiesCpuFeature {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class CapabilitiesCpuFeature extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
get_name(): string;
set_name(name: string): void;
}
module CapabilitiesCpuModel {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class CapabilitiesCpuModel extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): CapabilitiesCpuModel;
static new_from_xml(xml: string): CapabilitiesCpuModel;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_name(): string;
set_name(name: string): void;
}
module CapabilitiesCpuTopology {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class CapabilitiesCpuTopology extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): CapabilitiesCpuTopology;
static new_from_xml(xml: string): CapabilitiesCpuTopology;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_cores(): number;
get_sockets(): number;
get_threads(): number;
set_cores(cores: number): void;
set_sockets(sockets: number): void;
set_threads(threads: number): void;
}
module CapabilitiesGuest {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class CapabilitiesGuest extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Gets the CPU architecture capabilities of the guest.
* @returns a new #GVirConfigCapabilitiesGuestArch.
*/
get_arch(): CapabilitiesGuestArch;
/**
* Gets the CPU features for this guest.
* @returns a newly allocated #GList of #GVirConfigCapabilitiesGuestFeature.
*/
get_features(): CapabilitiesGuestFeature[];
get_os_type(): DomainOsType;
}
module CapabilitiesGuestArch {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class CapabilitiesGuestArch extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Gets the possible domains for this architecture.
* @returns a newly allocated #GList of #GVirConfigCapabilitiesGuestDomain.
*/
get_domains(): CapabilitiesGuestDomain[];
get_emulator(): string;
get_name(): string;
}
module CapabilitiesGuestDomain {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class CapabilitiesGuestDomain extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
get_emulator(): string;
get_virt_type(): DomainVirtType;
}
module CapabilitiesGuestFeature {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class CapabilitiesGuestFeature extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
get_name(): string;
}
module CapabilitiesHost {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class CapabilitiesHost extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Gets the CPU capabilities of the host.
* @returns a new #GVirConfigCapabilitiesCpu.
*/
get_cpu(): CapabilitiesCpu;
/**
* Get the security models listed in `host` capabilities.
* @returns a newly allocated #GList of #GVirConfigCapabilitiesHostSecModel.
*/
get_secmodels(): CapabilitiesHostSecModel[];
get_uuid(): string;
}
module CapabilitiesHostSecModel {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class CapabilitiesHostSecModel extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
get_doi(): string;
get_model(): string;
}
module Domain {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {
current_memory: number;
currentMemory: number;
description: string;
features: string[];
memory: number;
name: string;
title: string;
uuid: string;
vcpu: number;
}
}
class Domain extends Object {
static $gtype: GObject.GType;
// Properties
get current_memory(): number;
set current_memory(val: number);
get currentMemory(): number;
set currentMemory(val: number);
get description(): string;
set description(val: string);
get features(): string[];
set features(val: string[]);
get memory(): number;
set memory(val: number);
get name(): string;
set name(val: string);
get title(): string;
set title(val: string);
get uuid(): string;
set uuid(val: string);
get vcpu(): number;
set vcpu(val: number);
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): Domain;
static new_from_xml(xml: string): Domain;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
add_device(device: DomainDevice): void;
/**
* Gets the clock configuration of `domain`
* @returns A #GVirConfigDomainClock. The returned object should be unreffed with g_object_unref() when no longer needed.
*/
get_clock(): DomainClock;
/**
* Gets the CPU configuration of `domain`
* @returns A #GVirConfigDomainCpu. The returned object should be unreffed with g_object_unref() when no longer needed.
*/
get_cpu(): DomainCpu;
get_current_memory(): number;
get_custom_xml(ns_uri: string): string;
get_description(): string;
/**
* Gets the list of devices attached to `domain`. The returned list should
* be freed with g_list_free(), after its elements have been unreffed with
* g_object_unref().
* @returns a newly allocated #GList of #GVirConfigDomainDevice.
*/
get_devices(): DomainDevice[];
get_features(): string[];
get_memory(): number;
get_name(): string;
/**
* Gets the operating system configuration of `domain`
* @returns A #GVirConfigDomainOs. The returned object should be unreffed with g_object_unref() when no longer needed.
*/
get_os(): DomainOs;
get_title(): string;
get_uuid(): string;
get_vcpus(): number;
get_virt_type(): DomainVirtType;
set_clock(klock?: DomainClock | null): void;
set_cpu(cpu?: DomainCpu | null): void;
/**
* Sets the current amount of RAM allocated to `domain` in kilobytes (i.e.
* blocks of 1024 bytes). This can be set to less than the maximum domain
* memory to allow to balloon the guest memory on the fly. Be aware that
* libvirt will set it automatically if it's not explicitly set, which means
* you may need to set this value in addition to 'memory' if you want to
* change the available domain memory after creation.
* @param memory The current amount of RAM in kilobytes.
*/
set_current_memory(memory: number): void;
set_custom_xml(xml: string, ns: string, ns_uri: string): boolean;
set_custom_xml_ns_children(xml: string, ns: string, ns_uri: string): boolean;
set_description(description?: string | null): void;
set_devices(devices: DomainDevice[]): void;
set_features(features: string[]): void;
set_lifecycle(event: DomainLifecycleEvent | null, action: DomainLifecycleAction | null): void;
/**
* Sets the maximum amount of RAM allocated to `domain` in kilobytes (i.e.
* blocks of 1024 bytes).
* @param memory The maximum amount of RAM in kilobytes.
*/
set_memory(memory: number): void;
set_name(name?: string | null): void;
set_os(os?: DomainOs | null): void;
set_power_management(pm?: DomainPowerManagement | null): void;
set_seclabel(seclabel?: DomainSeclabel | null): void;
/**
* Sets the title of the domain. This is an optional short textual description of the domain. Passing a NULL `title`
* unsets the current domain title.
* @param title title of the domain
*/
set_title(title?: string | null): void;
set_uuid(uuid?: string | null): void;
set_vcpus(vcpu_count: number): void;
set_virt_type(type: DomainVirtType | null): void;
}
module DomainAddress {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
abstract class DomainAddress extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
}
module DomainAddressPci {
// Constructor properties interface
interface ConstructorProps extends DomainAddress.ConstructorProps {}
}
class DomainAddressPci extends DomainAddress {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainAddressPci;
static new_from_xml(xml: string): DomainAddressPci;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_bus(): number;
get_domain(): number;
get_function(): number;
get_multifunction(): boolean;
get_slot(): number;
set_bus(bus: number): void;
set_domain(pci_domain: number): void;
set_function(_function: number): void;
set_multifunction(multifunction: boolean): void;
set_slot(slot: number): void;
}
module DomainAddressUsb {
// Constructor properties interface
interface ConstructorProps extends DomainAddress.ConstructorProps {}
}
class DomainAddressUsb extends DomainAddress {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainAddressUsb;
static new_from_xml(xml: string): DomainAddressUsb;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
set_bus(bus: number): void;
set_port(port: string): void;
}
module DomainAudio {
// Constructor properties interface
interface ConstructorProps extends DomainDevice.ConstructorProps {}
}
class DomainAudio extends DomainDevice {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainAudio;
static new_from_xml(xml: string): DomainAudio;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
set_backend(backend: DomainAudioBackend | null): void;
set_server_name(server_name: string): void;
}
module DomainCapabilities {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class DomainCapabilities extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainCapabilities;
static new_from_xml(xml: string): DomainCapabilities;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
/**
* Gets the `os` associated with the `domain_caps`.
* @returns a new #GVirConfigDomainCapabilitiesOs.
*/
get_os(): DomainCapabilitiesOs;
}
module DomainCapabilitiesOs {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class DomainCapabilitiesOs extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Virtual methods
/**
* Gets the firmwares supported by `os`. The returned list should be freed with
* g_list_free().
*/
vfunc_get_firmwares(): DomainOsFirmware[];
// Methods
/**
* Gets the firmwares supported by `os`. The returned list should be freed with
* g_list_free().
* @returns a newly allocated #GList of #GVirConfigDomainOsFirmware.
*/
get_firmwares(): DomainOsFirmware[];
}
module DomainChannel {
// Constructor properties interface
interface ConstructorProps extends DomainChardev.ConstructorProps {}
}
class DomainChannel extends DomainChardev {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainChannel;
static new_from_xml(xml: string): DomainChannel;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_target_name(): string;
get_target_type(): DomainChannelTargetType;
set_target_name(name: string): void;
set_target_type(type: DomainChannelTargetType | null): void;
}
module DomainChardev {
// Constructor properties interface
interface ConstructorProps extends DomainDevice.ConstructorProps {}
}
abstract class DomainChardev extends DomainDevice {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Gets the source for the chardev
* @returns the chardev source
*/
get_source(): DomainChardevSource;
set_source(source: DomainChardevSource): void;
}
module DomainChardevSource {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
abstract class DomainChardevSource extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
}
module DomainChardevSourcePty {
// Constructor properties interface
interface ConstructorProps extends DomainChardevSource.ConstructorProps {}
}
class DomainChardevSourcePty extends DomainChardevSource {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainChardevSourcePty;
static new_from_xml(xml: string): DomainChardevSourcePty;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_path(): string;
set_path(path: string): void;
}
module DomainChardevSourceSpicePort {
// Constructor properties interface
interface ConstructorProps extends DomainChardevSource.ConstructorProps {}
}
class DomainChardevSourceSpicePort extends DomainChardevSource {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainChardevSourceSpicePort;
static new_from_xml(xml: string): DomainChardevSourceSpicePort;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_channel(): string;
set_channel(channel: string): void;
}
module DomainChardevSourceSpiceVmc {
// Constructor properties interface
interface ConstructorProps extends DomainChardevSource.ConstructorProps {}
}
class DomainChardevSourceSpiceVmc extends DomainChardevSource {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainChardevSourceSpiceVmc;
static new_from_xml(xml: string): DomainChardevSourceSpiceVmc;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
}
module DomainChardevSourceUnix {
// Constructor properties interface
interface ConstructorProps extends DomainChardevSource.ConstructorProps {}
}
class DomainChardevSourceUnix extends DomainChardevSource {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainChardevSourceUnix;
static new_from_xml(xml: string): DomainChardevSourceUnix;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
}
module DomainClock {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class DomainClock extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainClock;
static new_from_xml(xml: string): DomainClock;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
add_timer(timer: DomainTimer): void;
get_offset(): DomainClockOffset;
get_timezone(): string;
get_variable_offset(): number;
set_offset(offset: DomainClockOffset | null): void;
set_timezone(tz: string): void;
set_variable_offset(seconds: number): void;
}
module DomainConsole {
// Constructor properties interface
interface ConstructorProps extends DomainChardev.ConstructorProps {}
}
class DomainConsole extends DomainChardev {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainConsole;
static new_from_xml(xml: string): DomainConsole;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
set_target_type(type: DomainConsoleTargetType | null): void;
}
module DomainController {
// Constructor properties interface
interface ConstructorProps extends DomainDevice.ConstructorProps {}
}
abstract class DomainController extends DomainDevice {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
get_index(): number;
get_ports(): number;
set_address(address?: DomainAddress | null): void;
set_index(index: number): void;
set_ports(ports: number): void;
}
module DomainControllerUsb {
// Constructor properties interface
interface ConstructorProps extends DomainController.ConstructorProps {}
}
/**
* The #GVirConfigDomainControllerUsb struct is an opaque data structure
* which is used to configure USB controllers on a domain. It should only
* be accessed via the following functions.
*/
class DomainControllerUsb extends DomainController {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainControllerUsb;
static new_from_xml(xml: string): DomainControllerUsb;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
/**
* Sets `controller` to be a companion controller of `master`. `controller`
* will be exposed from port `startport` on `master` in the guest.
* After this call, `controller'`s index will be set to `master'`s index.
* @param master the master #GVirConfigDomainControllerUsb
* @param startport the start port number
*/
set_master(master: DomainControllerUsb, startport: number): void;
/**
* Sets the model of `controller` to `model`.
* @param model the USB controller model
*/
set_model(model: DomainControllerUsbModel | null): void;
}
module DomainCpu {
// Constructor properties interface
interface ConstructorProps extends CapabilitiesCpu.ConstructorProps {}
}
class DomainCpu extends CapabilitiesCpu {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainCpu;
static new_from_xml(xml: string): DomainCpu;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_match_policy(): DomainCpuMatchPolicy;
get_mode(): DomainCpuMode;
set_match_policy(policy: DomainCpuMatchPolicy | null): void;
set_mode(mode: DomainCpuMode | null): void;
set_model(model: DomainCpuModel): void;
}
module DomainCpuFeature {
// Constructor properties interface
interface ConstructorProps extends CapabilitiesCpuFeature.ConstructorProps {}
}
class DomainCpuFeature extends CapabilitiesCpuFeature {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainCpuFeature;
static new_from_xml(xml: string): DomainCpuFeature;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_policy(): DomainCpuFeaturePolicy;
set_policy(policy: DomainCpuFeaturePolicy | null): void;
}
module DomainCpuModel {
// Constructor properties interface
interface ConstructorProps extends CapabilitiesCpuModel.ConstructorProps {}
}
class DomainCpuModel extends CapabilitiesCpuModel {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainCpuModel;
static new_from_xml(xml: string): DomainCpuModel;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
}
module DomainDevice {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class DomainDevice extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
get_alias(): string;
}
module DomainDisk {
// Constructor properties interface
interface ConstructorProps extends DomainDevice.ConstructorProps {}
}
class DomainDisk extends DomainDevice {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainDisk;
static new_from_xml(xml: string): DomainDisk;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_disk_type(): DomainDiskType;
/**
* Gets the driver configuration for `disk`.
* @returns A #GVirConfigDomainDiskDriver. The returned object should be unreffed with g_object_unref() when no longer needed.
*/
get_driver(): DomainDiskDriver;
get_driver_cache(): DomainDiskCacheType;
get_driver_format(): DomainDiskFormat;
get_driver_name(): string;
get_driver_type(): string;
get_guest_device_type(): DomainDiskGuestDeviceType;
get_snapshot_type(): DomainDiskSnapshotType;
get_source(): string;
get_startup_policy(): DomainDiskStartupPolicy;
get_target_bus(): DomainDiskBus;
get_target_dev(): string;
/**
* Uses `driver` as the driver configuration for `disk`.
* @param driver a #GVirConfigDomainDiskDriver
*/
set_driver(driver?: DomainDiskDriver | null): void;
set_driver_cache(cache_type: DomainDiskCacheType | null): void;
set_driver_format(format: DomainDiskFormat | null): void;
set_driver_name(driver_name: string): void;
set_driver_type(driver_type: string): void;
set_guest_device_type(type: DomainDiskGuestDeviceType | null): void;
set_readonly(readonly: boolean): void;
set_snapshot_type(type: DomainDiskSnapshotType | null): void;
set_source(source: string): void;
set_startup_policy(policy: DomainDiskStartupPolicy | null): void;
set_target_bus(bus: DomainDiskBus | null): void;
set_target_dev(dev: string): void;
set_type(type: DomainDiskType | null): void;
}
module DomainDiskDriver {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class DomainDiskDriver extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainDiskDriver;
static new_from_xml(xml: string): DomainDiskDriver;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_cache(): DomainDiskCacheType;
get_copy_on_read(): boolean;
get_discard(): DomainDiskDriverDiscard;
get_error_policy(): DomainDiskDriverErrorPolicy;
get_format(): DomainDiskFormat;
get_io_policy(): DomainDiskDriverIoPolicy;
get_name(): string;
set_cache(cache_type: DomainDiskCacheType | null): void;
set_copy_on_read(copy_on_read: boolean): void;
set_discard(discard: DomainDiskDriverDiscard | null): void;
set_error_policy(policy: DomainDiskDriverErrorPolicy | null): void;
set_format(format: DomainDiskFormat | null): void;
set_io_policy(policy: DomainDiskDriverIoPolicy | null): void;
set_name(name: string): void;
}
module DomainFilesys {
// Constructor properties interface
interface ConstructorProps extends DomainDevice.ConstructorProps {}
}
class DomainFilesys extends DomainDevice {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainFilesys;
static new_from_xml(xml: string): DomainFilesys;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
set_access_type(type: DomainFilesysAccessType | null): void;
set_driver_format(format: DomainDiskFormat | null): void;
set_driver_type(type: DomainFilesysDriverType | null): void;
set_ram_usage(bytes: number): void;
set_readonly(readonly: boolean): void;
set_source(source: string): void;
set_target(target: string): void;
set_type(type: DomainFilesysType | null): void;
}
module DomainGraphics {
// Constructor properties interface
interface ConstructorProps extends DomainDevice.ConstructorProps {}
}
abstract class DomainGraphics extends DomainDevice {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
}
module DomainGraphicsDBus {
// Constructor properties interface
interface ConstructorProps extends DomainGraphics.ConstructorProps {}
}
class DomainGraphicsDBus extends DomainGraphics {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainGraphicsDBus;
static new_from_xml(xml: string): DomainGraphicsDBus;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_address(): string;
set_address(address: string): void;
set_gl(gl: boolean): void;
}
module DomainGraphicsDesktop {
// Constructor properties interface
interface ConstructorProps extends DomainGraphics.ConstructorProps {}
}
class DomainGraphicsDesktop extends DomainGraphics {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainGraphicsDesktop;
static new_from_xml(xml: string): DomainGraphicsDesktop;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_display(): string;
get_fullscreen(): boolean;
set_display(disp: string): void;
set_fullscreen(fullscreen: boolean): void;
}
module DomainGraphicsRdp {
// Constructor properties interface
interface ConstructorProps extends DomainGraphics.ConstructorProps {}
}
class DomainGraphicsRdp extends DomainGraphics {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainGraphicsRdp;
static new_from_xml(xml: string): DomainGraphicsRdp;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_multi_user(): boolean;
get_port(): number;
get_replace_user(): boolean;
set_autoport(autoport: boolean): void;
set_multi_user(multi_user: boolean): void;
set_port(port: number): void;
set_replace_user(replace_user: boolean): void;
}
module DomainGraphicsSdl {
// Constructor properties interface
interface ConstructorProps extends DomainGraphics.ConstructorProps {}
}
class DomainGraphicsSdl extends DomainGraphics {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainGraphicsSdl;
static new_from_xml(xml: string): DomainGraphicsSdl;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
set_display(disp: string): void;
set_fullscreen(fullscreen: boolean): void;
set_xauthority(path: string): void;
}
module DomainGraphicsSpice {
// Constructor properties interface
interface ConstructorProps extends DomainGraphics.ConstructorProps {}
}
class DomainGraphicsSpice extends DomainGraphics {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainGraphicsSpice;
static new_from_xml(xml: string): DomainGraphicsSpice;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_image_compression(): DomainGraphicsSpiceImageCompression;
get_port(): number;
set_autoport(autoport: boolean): void;
set_gl(gl: boolean): void;
set_image_compression(compression: DomainGraphicsSpiceImageCompression | null): void;
set_password(password: string): void;
set_port(port: number): void;
set_tls_port(port: number): void;
}
module DomainGraphicsVnc {
// Constructor properties interface
interface ConstructorProps extends DomainGraphics.ConstructorProps {}
}
class DomainGraphicsVnc extends DomainGraphics {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainGraphicsVnc;
static new_from_xml(xml: string): DomainGraphicsVnc;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_port(): number;
get_socket(): string;
set_autoport(autoport: boolean): void;
set_password(password: string): void;
set_port(port: number): void;
set_socket(socket: string): void;
}
module DomainHostdev {
// Constructor properties interface
interface ConstructorProps extends DomainDevice.ConstructorProps {}
}
abstract class DomainHostdev extends DomainDevice {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
get_boot_order(): number;
get_readonly(): boolean;
get_shareable(): boolean;
/**
* If a positive integer is passed as `order,` `hostdev` is marked bootable and
* boot order set to `order,` otherwise `hostdev` is marked to be unbootable.
* @param order the boot order
*/
set_boot_order(order: number): void;
/**
* Set the readonly status of `hostdev` to `readonly`.
* @param readonly the new readonly status
*/
set_readonly(readonly: boolean): void;
/**
* Set whether or not `hostdev` is shared between domains.
* @param shareable the new shareable status
*/
set_shareable(shareable: boolean): void;
}
module DomainHostdevPci {
// Constructor properties interface
interface ConstructorProps extends DomainHostdev.ConstructorProps {}
}
class DomainHostdevPci extends DomainHostdev {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainHostdevPci;
static new_from_xml(xml: string): DomainHostdevPci;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
/**
* Gets the address associated with `hostdev`.
* @returns a new #GVirConfigDomainAddressPci, or NULL if no address is associated with @hostdev. The returned object should be unreffed with g_object_unref() when no longer needed.
*/
get_address(): DomainAddressPci;
get_managed(): boolean;
get_rom_bar(): boolean;
get_rom_file(): string;
set_address(address: DomainAddressPci): void;
set_managed(managed: boolean): void;
set_rom_bar(bar: boolean): void;
set_rom_file(file: string): void;
}
module DomainInput {
// Constructor properties interface
interface ConstructorProps extends DomainDevice.ConstructorProps {}
}
class DomainInput extends DomainDevice {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainInput;
static new_from_xml(xml: string): DomainInput;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_bus(): DomainInputBus;
get_device_type(): DomainInputDeviceType;
set_bus(bus: DomainInputBus | null): void;
set_device_type(type: DomainInputDeviceType | null): void;
}
module DomainInterface {
// Constructor properties interface
interface ConstructorProps extends DomainDevice.ConstructorProps {}
}
abstract class DomainInterface extends DomainDevice {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Gets the filterref associated with the `interface`
* @returns A #GVirConfigDomainInterfaceFilterref. The returned object should be unreffed with g_object_unref() when no longer needed.
*/
get_filterref(): DomainInterfaceFilterref;
get_ifname(): string;
get_link_state(): DomainInterfaceLinkState;
get_mac(): string;
get_model(): string;
set_filterref(filterref?: DomainInterfaceFilterref | null): void;
set_ifname(ifname: string): void;
set_link_state(state: DomainInterfaceLinkState | null): void;
set_mac(mac_address: string): void;
set_model(model: string): void;
}
module DomainInterfaceBridge {
// Constructor properties interface
interface ConstructorProps extends DomainInterface.ConstructorProps {}
}
class DomainInterfaceBridge extends DomainInterface {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainInterfaceBridge;
static new_from_xml(xml: string): DomainInterfaceBridge;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
set_source(brname: string): void;
}
module DomainInterfaceFilterref {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class DomainInterfaceFilterref extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainInterfaceFilterref;
static new_from_xml(xml: string): DomainInterfaceFilterref;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
add_parameter(parameter: DomainInterfaceFilterrefParameter): void;
get_name(): string;
/**
* Gets the list of parameters attached to `filterref`. The returned list should be
* freed with g_list_free(), after its elements have been unreffed with
* g_object_unref().
* @returns a newly allocated #GList of #GVirConfigDomainInterfaceFilterrefParameter.
*/
get_parameters(): DomainInterfaceFilterrefParameter[];
set_name(filter: string): void;
}
module DomainInterfaceFilterrefParameter {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class DomainInterfaceFilterrefParameter extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainInterfaceFilterrefParameter;
static new_from_xml(xml: string): DomainInterfaceFilterrefParameter;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_name(): string;
get_value(): string;
set_name(name: string): void;
set_value(value: string): void;
}
module DomainInterfaceNetwork {
// Constructor properties interface
interface ConstructorProps extends DomainInterface.ConstructorProps {}
}
class DomainInterfaceNetwork extends DomainInterface {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainInterfaceNetwork;
static new_from_xml(xml: string): DomainInterfaceNetwork;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
set_source(source: string): void;
}
module DomainInterfaceUser {
// Constructor properties interface
interface ConstructorProps extends DomainInterface.ConstructorProps {}
}
class DomainInterfaceUser extends DomainInterface {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainInterfaceUser;
static new_from_xml(xml: string): DomainInterfaceUser;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
}
module DomainMemballoon {
// Constructor properties interface
interface ConstructorProps extends DomainDevice.ConstructorProps {}
}
class DomainMemballoon extends DomainDevice {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainMemballoon;
static new_from_xml(xml: string): DomainMemballoon;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
set_model(model: DomainMemballoonModel | null): void;
}
module DomainOs {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class DomainOs extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainOs;
static new_from_xml(xml: string): DomainOs;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
bios_enable_serial(enable: boolean): void;
enable_boot_menu(enable: boolean): void;
enable_firmware_feature(name: string, enable: boolean): void;
get_arch(): string;
/**
* Gets the list of devices attached to `os`. The returned list should be
* freed with g_list_free().
* @returns a newly allocated #GList of #GVirConfigDomainOsBootDevice.
*/
get_boot_devices(): DomainOsBootDevice[];
get_firmware(): DomainOsFirmware;
get_machine(): string;
get_os_type(): DomainOsType;
set_arch(arch: string): void;
set_boot_devices(boot_devices: DomainOsBootDevice[] | null): void;
set_cmdline(cmdline?: string | null): void;
set_firmware(firmware: DomainOsFirmware | null): void;
set_init(init?: string | null): void;
set_kernel(kernel?: string | null): void;
set_loader(loader?: string | null): void;
set_machine(machine: string): void;
set_os_type(type: DomainOsType | null): void;
set_ramdisk(ramdisk?: string | null): void;
set_smbios_mode(mode: DomainOsSmBiosMode | null): void;
}
module DomainParallel {
// Constructor properties interface
interface ConstructorProps extends DomainChardev.ConstructorProps {}
}
class DomainParallel extends DomainChardev {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainParallel;
static new_from_xml(xml: string): DomainParallel;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
}
module DomainPowerManagement {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class DomainPowerManagement extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainPowerManagement;
static new_from_xml(xml: string): DomainPowerManagement;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
set_disk_suspend_enabled(enabled: boolean): void;
set_mem_suspend_enabled(enabled: boolean): void;
}
module DomainRedirdev {
// Constructor properties interface
interface ConstructorProps extends DomainChardev.ConstructorProps {}
}
class DomainRedirdev extends DomainChardev {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainRedirdev;
static new_from_xml(xml: string): DomainRedirdev;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
set_address(address?: DomainAddress | null): void;
set_bus(bus: DomainRedirdevBus | null): void;
}
module DomainSeclabel {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class DomainSeclabel extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainSeclabel;
static new_from_xml(xml: string): DomainSeclabel;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
set_baselabel(label?: string | null): void;
set_label(label?: string | null): void;
set_model(model: string): void;
set_type(type: DomainSeclabelType | null): void;
}
module DomainSerial {
// Constructor properties interface
interface ConstructorProps extends DomainChardev.ConstructorProps {}
}
class DomainSerial extends DomainChardev {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainSerial;
static new_from_xml(xml: string): DomainSerial;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
}
module DomainSmartcard {
// Constructor properties interface
interface ConstructorProps extends DomainDevice.ConstructorProps {}
}
abstract class DomainSmartcard extends DomainDevice {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Static methods
static set_address(redirdev: DomainRedirdev, address?: DomainAddress | null): void;
}
module DomainSmartcardHost {
// Constructor properties interface
interface ConstructorProps extends DomainSmartcard.ConstructorProps {}
}
class DomainSmartcardHost extends DomainSmartcard {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainSmartcardHost;
static new_from_xml(xml: string): DomainSmartcardHost;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
}
module DomainSmartcardHostCertificates {
// Constructor properties interface
interface ConstructorProps extends DomainSmartcard.ConstructorProps {}
}
class DomainSmartcardHostCertificates extends DomainSmartcard {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainSmartcardHostCertificates;
static new_from_xml(xml: string): DomainSmartcardHostCertificates;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
set_certificates(cert1?: string | null, cert2?: string | null, cert3?: string | null): void;
set_database(path?: string | null): void;
}
module DomainSmartcardPassthrough {
// Constructor properties interface
interface ConstructorProps extends DomainSmartcard.ConstructorProps {}
}
class DomainSmartcardPassthrough extends DomainSmartcard {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainSmartcardPassthrough;
static new_from_xml(xml: string): DomainSmartcardPassthrough;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
set_source(source: DomainChardevSource): void;
}
module DomainSnapshot {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class DomainSnapshot extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainSnapshot;
static new_from_xml(xml: string): DomainSnapshot;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
add_disk(disk: DomainSnapshotDisk): void;
get_creation_time(): never;
get_description(): string;
/**
* Gets the list of disks attached to `snapshot`. The returned list should
* be freed with g_list_free(), after its elements have been unreffed with
* g_object_unref().
* @returns a newly allocated #GList of #GVirConfigDomainSnapshotDisk.
*/
get_disks(): DomainSnapshotDisk[];
/**
* Gets the configuration of the domain `snapshot` is a snapshot of.
* @returns A #GVirConfigDomain. The returned object should be unreffed with g_object_unref() when no longer needed.
*/
get_domain(): Domain;
get_memory_file(): string;
get_memory_state(): DomainSnapshotMemoryState;
get_name(): string;
get_parent(): string;
get_state(): DomainSnapshotDomainState;
set_description(description: string): void;
set_disks(disks: DomainSnapshotDisk[]): void;
set_memory_file(filename: string): void;
set_memory_state(state: DomainSnapshotMemoryState | null): void;
set_name(name: string): void;
}
module DomainSnapshotDisk {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class DomainSnapshotDisk extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainSnapshotDisk;
static new_from_xml(xml: string): DomainSnapshotDisk;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_driver_format(): DomainDiskFormat;
get_name(): string;
get_snapshot_type(): DomainDiskSnapshotType;
get_source_file(): string;
set_driver_format(format: DomainDiskFormat | null): void;
set_name(name: string): void;
set_snapshot_type(type: DomainDiskSnapshotType | null): void;
set_source_file(filename: string): void;
}
module DomainSound {
// Constructor properties interface
interface ConstructorProps extends DomainDevice.ConstructorProps {}
}
class DomainSound extends DomainDevice {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainSound;
static new_from_xml(xml: string): DomainSound;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
set_model(model: DomainSoundModel | null): void;
}
module DomainTimer {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
abstract class DomainTimer extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
get_present(): boolean;
get_tick_policy(): DomainTimerTickPolicy;
set_present(present: boolean): void;
set_tick_policy(policy: DomainTimerTickPolicy | null): void;
}
module DomainTimerHpet {
// Constructor properties interface
interface ConstructorProps extends DomainTimer.ConstructorProps {}
}
class DomainTimerHpet extends DomainTimer {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainTimerHpet;
static new_from_xml(xml: string): DomainTimerHpet;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
}
module DomainTimerPit {
// Constructor properties interface
interface ConstructorProps extends DomainTimer.ConstructorProps {}
}
class DomainTimerPit extends DomainTimer {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainTimerPit;
static new_from_xml(xml: string): DomainTimerPit;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
}
module DomainTimerRtc {
// Constructor properties interface
interface ConstructorProps extends DomainTimer.ConstructorProps {}
}
class DomainTimerRtc extends DomainTimer {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainTimerRtc;
static new_from_xml(xml: string): DomainTimerRtc;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
}
module DomainVideo {
// Constructor properties interface
interface ConstructorProps extends DomainDevice.ConstructorProps {}
}
class DomainVideo extends DomainDevice {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): DomainVideo;
static new_from_xml(xml: string): DomainVideo;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
// Methods
get_model(): DomainVideoModel;
set_accel3d(accel3d: boolean): void;
set_heads(head_count: number): void;
set_model(model: DomainVideoModel | null): void;
set_ram(kbytes: number): void;
set_vgamem(kbytes: number): void;
set_vram(kbytes: number): void;
}
module Interface {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class Interface extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): Interface;
static new_from_xml(xml: string): Interface;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
}
module Network {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class Network extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): Network;
static new_from_xml(xml: string): Network;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
}
module NetworkFilter {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class NetworkFilter extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): NetworkFilter;
static new_from_xml(xml: string): NetworkFilter;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
}
module NodeDevice {
// Constructor properties interface
interface ConstructorProps extends Object.ConstructorProps {}
}
class NodeDevice extends Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): NodeDevice;
static new_from_xml(xml: string): NodeDevice;
// Conflicted with LibvirtGConfig.Object.new_from_xml
static new_from_xml(...args: never[]): any;
}
module Object {
// Constructor properties interface
interface ConstructorProps extends GObject.Object.ConstructorProps {
node: any;
schema: string;
}
}
class Object extends GObject.Object {
static $gtype: GObject.GType