@girs/libvirtgobject-1.0 1.0.0-3.3.0 → 1.0.0-4.0.0-beta.2
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/README.md +1 -2
- package/libvirtgobject-1.0-ambient.d.ts +3 -3
- package/libvirtgobject-1.0.d.ts +1526 -2451
- package/libvirtgobject-1.0.js +0 -4
- package/package.json +15 -19
- package/libvirtgobject-1.0.cjs +0 -11
- package/libvirtgobject-1.0.d.cts +0 -2655
package/libvirtgobject-1.0.d.ts
CHANGED
|
@@ -1,2660 +1,1735 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
3
|
+
*
|
|
4
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
5
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
6
|
+
*/
|
|
1
7
|
|
|
2
|
-
|
|
3
|
-
* Type Definitions for Gjs (https://gjs.guide/)
|
|
4
|
-
*
|
|
5
|
-
* These type definitions are automatically generated, do not edit them by hand.
|
|
6
|
-
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import './libvirtgobject-1.0-ambient.d.ts';
|
|
10
|
-
import './libvirtgobject-1.0-import.d.ts';
|
|
11
|
-
/**
|
|
12
|
-
* LibvirtGObject-1.0
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import type LibvirtGLib from '@girs/libvirtglib-1.0';
|
|
16
|
-
import type GLib from '@girs/glib-2.0';
|
|
17
|
-
import type LibvirtGConfig from '@girs/libvirtgconfig-1.0';
|
|
18
|
-
import type libxml2 from '@girs/libxml2-2.0';
|
|
19
|
-
import type GObject from '@girs/gobject-2.0';
|
|
20
|
-
import type Gio from '@girs/gio-2.0';
|
|
21
|
-
|
|
22
|
-
export namespace LibvirtGObject {
|
|
23
|
-
|
|
24
|
-
enum DomainDeleteFlags {
|
|
25
|
-
/**
|
|
26
|
-
* No flags
|
|
27
|
-
*/
|
|
28
|
-
NONE,
|
|
29
|
-
/**
|
|
30
|
-
* Also remove associated saved state (if present).
|
|
31
|
-
*/
|
|
32
|
-
SAVED_STATE,
|
|
33
|
-
/**
|
|
34
|
-
* If last use of domain, then also
|
|
35
|
-
* remove any snapshot metadata.
|
|
36
|
-
*/
|
|
37
|
-
SNAPSHOTS_METADATA,
|
|
38
|
-
REMOVE_NVRAM,
|
|
39
|
-
KEEP_NVRAM,
|
|
40
|
-
}
|
|
41
|
-
enum DomainRebootFlags {
|
|
42
|
-
/**
|
|
43
|
-
* No flags, hypervisor choice
|
|
44
|
-
*/
|
|
45
|
-
NONE,
|
|
46
|
-
/**
|
|
47
|
-
* Send ACPI event
|
|
48
|
-
*/
|
|
49
|
-
ACPI_POWER_BTN,
|
|
50
|
-
/**
|
|
51
|
-
* Use guest agent
|
|
52
|
-
*/
|
|
53
|
-
GUEST_AGENT,
|
|
54
|
-
}
|
|
55
|
-
enum DomainShutdownFlags {
|
|
56
|
-
/**
|
|
57
|
-
* No flags, hypervisor choice
|
|
58
|
-
*/
|
|
59
|
-
NONE,
|
|
60
|
-
/**
|
|
61
|
-
* Send ACPI event
|
|
62
|
-
*/
|
|
63
|
-
ACPI_POWER_BTN,
|
|
64
|
-
/**
|
|
65
|
-
* Use guest agent
|
|
66
|
-
*/
|
|
67
|
-
GUEST_AGENT,
|
|
68
|
-
}
|
|
69
|
-
enum DomainSnapshotCreateFlags {
|
|
70
|
-
/**
|
|
71
|
-
* No flags
|
|
72
|
-
*/
|
|
73
|
-
NONE,
|
|
74
|
-
/**
|
|
75
|
-
* Restore or alter metadata
|
|
76
|
-
*/
|
|
77
|
-
REDEFINE,
|
|
78
|
-
/**
|
|
79
|
-
* With redefine, make snapshot current
|
|
80
|
-
*/
|
|
81
|
-
CURRENT,
|
|
82
|
-
/**
|
|
83
|
-
* Make snapshot without remembering it
|
|
84
|
-
*/
|
|
85
|
-
NO_METADATA,
|
|
86
|
-
/**
|
|
87
|
-
* Stop running guest after snapshot
|
|
88
|
-
*/
|
|
89
|
-
HALT,
|
|
90
|
-
/**
|
|
91
|
-
* Disk snapshot, not system checkpoint
|
|
92
|
-
*/
|
|
93
|
-
DISK_ONLY,
|
|
94
|
-
/**
|
|
95
|
-
* Reuse any existing external files
|
|
96
|
-
*/
|
|
97
|
-
REUSE_EXT,
|
|
98
|
-
/**
|
|
99
|
-
* Use guest agent to quiesce all mounter
|
|
100
|
-
* file systems within the domain
|
|
101
|
-
*/
|
|
102
|
-
QUIESCE,
|
|
103
|
-
/**
|
|
104
|
-
* Atomically avoid partial changes
|
|
105
|
-
*/
|
|
106
|
-
ATOMIC,
|
|
107
|
-
}
|
|
108
|
-
enum DomainSnapshotDeleteFlags {
|
|
109
|
-
/**
|
|
110
|
-
* Also delete children
|
|
111
|
-
*/
|
|
112
|
-
CHILDREN,
|
|
113
|
-
/**
|
|
114
|
-
* Delete just metadata
|
|
115
|
-
*/
|
|
116
|
-
METADATA_ONLY,
|
|
117
|
-
/**
|
|
118
|
-
* Delete just children
|
|
119
|
-
*/
|
|
120
|
-
CHILDREN_ONLY,
|
|
121
|
-
}
|
|
122
|
-
enum DomainSnapshotListFlags {
|
|
123
|
-
/**
|
|
124
|
-
* List all snapshots
|
|
125
|
-
*/
|
|
126
|
-
ALL,
|
|
127
|
-
/**
|
|
128
|
-
* List all descendants, not just
|
|
129
|
-
* children, when listing a snapshot.
|
|
130
|
-
* For historical reasons, groups do not use contiguous bits.
|
|
131
|
-
*/
|
|
132
|
-
DESCENDANTS,
|
|
133
|
-
/**
|
|
134
|
-
* Filter by snapshots with no parents, when listing a domain
|
|
135
|
-
*/
|
|
136
|
-
ROOTS,
|
|
137
|
-
/**
|
|
138
|
-
* Filter by snapshots which have metadata
|
|
139
|
-
*/
|
|
140
|
-
METADATA,
|
|
141
|
-
/**
|
|
142
|
-
* Filter by snapshots with no children
|
|
143
|
-
*/
|
|
144
|
-
LEAVES,
|
|
145
|
-
/**
|
|
146
|
-
* Filter by snapshots that have children
|
|
147
|
-
*/
|
|
148
|
-
NO_LEAVES,
|
|
149
|
-
/**
|
|
150
|
-
* Filter by snapshots with no metadata
|
|
151
|
-
*/
|
|
152
|
-
NO_METADATA,
|
|
153
|
-
/**
|
|
154
|
-
* Filter by snapshots taken while guest was shut off
|
|
155
|
-
*/
|
|
156
|
-
INACTIVE,
|
|
157
|
-
/**
|
|
158
|
-
* Filter by snapshots taken while guest was active, and with memory state
|
|
159
|
-
*/
|
|
160
|
-
ACTIVE,
|
|
161
|
-
/**
|
|
162
|
-
* Filter by snapshots taken while guest was active, but without memory state
|
|
163
|
-
*/
|
|
164
|
-
DISK_ONLY,
|
|
165
|
-
/**
|
|
166
|
-
* Filter by snapshots stored internal to disk images
|
|
167
|
-
*/
|
|
168
|
-
INTERNAL,
|
|
169
|
-
/**
|
|
170
|
-
* Filter by snapshots that use files external to disk images
|
|
171
|
-
*/
|
|
172
|
-
EXTERNAL,
|
|
173
|
-
}
|
|
174
|
-
enum DomainSnapshotRevertFlags {
|
|
175
|
-
/**
|
|
176
|
-
* Run after revert
|
|
177
|
-
*/
|
|
178
|
-
RUNNING,
|
|
179
|
-
/**
|
|
180
|
-
* Pause after revert
|
|
181
|
-
*/
|
|
182
|
-
PAUSED,
|
|
183
|
-
/**
|
|
184
|
-
* Allow risky reverts
|
|
185
|
-
*/
|
|
186
|
-
FORCE,
|
|
187
|
-
}
|
|
188
|
-
enum DomainState {
|
|
189
|
-
NONE,
|
|
190
|
-
RUNNING,
|
|
191
|
-
BLOCKED,
|
|
192
|
-
PAUSED,
|
|
193
|
-
SHUTDOWN,
|
|
194
|
-
SHUTOFF,
|
|
195
|
-
CRASHED,
|
|
196
|
-
PMSUSPENDED,
|
|
197
|
-
}
|
|
198
|
-
enum DomainUpdateDeviceFlags {
|
|
199
|
-
/**
|
|
200
|
-
* Update current domain state
|
|
201
|
-
*/
|
|
202
|
-
CURRENT,
|
|
203
|
-
/**
|
|
204
|
-
* Update state for only active domains
|
|
205
|
-
*/
|
|
206
|
-
LIVE,
|
|
207
|
-
/**
|
|
208
|
-
* Update state for persistent state only
|
|
209
|
-
*/
|
|
210
|
-
CONFIG,
|
|
211
|
-
}
|
|
212
|
-
enum DomainXMLFlags {
|
|
213
|
-
/**
|
|
214
|
-
* No flags
|
|
215
|
-
*/
|
|
216
|
-
NONE,
|
|
217
|
-
/**
|
|
218
|
-
* Dump security sensitive information too
|
|
219
|
-
*/
|
|
220
|
-
SECURE,
|
|
221
|
-
/**
|
|
222
|
-
* Dump inactive domain information
|
|
223
|
-
*/
|
|
224
|
-
INACTIVE,
|
|
225
|
-
/**
|
|
226
|
-
* Update guest CPU requirements according to host CPU
|
|
227
|
-
*/
|
|
228
|
-
UPDATE_CPU,
|
|
229
|
-
}
|
|
230
|
-
enum IPAddrType {
|
|
231
|
-
/**
|
|
232
|
-
* IPv4 Address.
|
|
233
|
-
*/
|
|
234
|
-
IPV4,
|
|
235
|
-
/**
|
|
236
|
-
* IPv6 Address.
|
|
237
|
-
*/
|
|
238
|
-
IPV6,
|
|
239
|
-
}
|
|
240
|
-
enum StoragePoolState {
|
|
241
|
-
INACTIVE,
|
|
242
|
-
BUILDING,
|
|
243
|
-
RUNNING,
|
|
244
|
-
DEGRADED,
|
|
245
|
-
INACCESSIBLE,
|
|
246
|
-
}
|
|
247
|
-
enum StorageVolResizeFlags {
|
|
248
|
-
/**
|
|
249
|
-
* No flags
|
|
250
|
-
*/
|
|
251
|
-
NONE,
|
|
252
|
-
/**
|
|
253
|
-
* force allocation of new size
|
|
254
|
-
*/
|
|
255
|
-
ALLOCATE,
|
|
256
|
-
/**
|
|
257
|
-
* size is relative to current
|
|
258
|
-
*/
|
|
259
|
-
DELTA,
|
|
260
|
-
/**
|
|
261
|
-
* allow decrease in capacity. This combined
|
|
262
|
-
* with #GVIR_STORAGE_VOL_RESIZE_DELTA, implies a negative delta.
|
|
263
|
-
*/
|
|
264
|
-
SHRINK,
|
|
265
|
-
}
|
|
266
|
-
enum StorageVolType {
|
|
267
|
-
FILE,
|
|
268
|
-
BLOCK,
|
|
269
|
-
DIR,
|
|
270
|
-
}
|
|
271
|
-
enum DomainStartFlags {
|
|
272
|
-
NONE,
|
|
273
|
-
PAUSED,
|
|
274
|
-
AUTODESTROY,
|
|
275
|
-
BYPASS_CACHE,
|
|
276
|
-
FORCE_BOOT,
|
|
277
|
-
}
|
|
278
|
-
enum StreamIOCondition {
|
|
279
|
-
READABLE,
|
|
280
|
-
WRITABLE,
|
|
281
|
-
HANGUP,
|
|
282
|
-
ERROR,
|
|
283
|
-
}
|
|
284
|
-
function init_object(argv: string[] | null): /* argv */ string[] | null
|
|
285
|
-
function init_object_check(argv: string[] | null): [ /* returnType */ boolean, /* argv */ string[] | null ]
|
|
286
|
-
interface StreamIOFunc {
|
|
287
|
-
(stream: Stream, cond: StreamIOCondition, opaque: any | null): boolean
|
|
288
|
-
}
|
|
289
|
-
interface StreamSinkFunc {
|
|
290
|
-
(stream: Stream): number
|
|
291
|
-
}
|
|
292
|
-
interface StreamSourceFunc {
|
|
293
|
-
(stream: Stream): number
|
|
294
|
-
}
|
|
295
|
-
module Connection {
|
|
296
|
-
|
|
297
|
-
// Signal callback interfaces
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Signal callback interface for `connection-closed`
|
|
301
|
-
*/
|
|
302
|
-
interface ConnectionClosedSignalCallback {
|
|
303
|
-
($obj: Connection): void
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* Signal callback interface for `connection-opened`
|
|
308
|
-
*/
|
|
309
|
-
interface ConnectionOpenedSignalCallback {
|
|
310
|
-
($obj: Connection): void
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Signal callback interface for `domain-added`
|
|
315
|
-
*/
|
|
316
|
-
interface DomainAddedSignalCallback {
|
|
317
|
-
($obj: Connection, object: Domain): void
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* Signal callback interface for `domain-removed`
|
|
322
|
-
*/
|
|
323
|
-
interface DomainRemovedSignalCallback {
|
|
324
|
-
($obj: Connection, object: Domain): void
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
// Constructor properties interface
|
|
329
|
-
|
|
330
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
331
|
-
|
|
332
|
-
// Own constructor properties of LibvirtGObject-1.0.LibvirtGObject.Connection
|
|
333
|
-
|
|
334
|
-
handle?: any | null
|
|
335
|
-
uri?: string | null
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
interface Connection {
|
|
341
|
-
|
|
342
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.Connection
|
|
343
|
-
|
|
344
|
-
readonly handle: any
|
|
345
|
-
readonly uri: string | null
|
|
346
|
-
|
|
347
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.Connection
|
|
348
|
-
|
|
349
|
-
parent: GObject.Object
|
|
350
|
-
priv: ConnectionPrivate
|
|
351
|
-
|
|
352
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.Connection
|
|
353
|
-
|
|
354
|
-
close(): void
|
|
355
|
-
/**
|
|
356
|
-
* Create the configuration file for a new persistent domain.
|
|
357
|
-
* The returned domain will initially be in the shutoff state.
|
|
358
|
-
* @param conf the configuration for the new domain
|
|
359
|
-
* @returns the newly created domain, or NULL if an error occurred. The returned object should be unreffed with g_object_unref() when no longer needed.
|
|
360
|
-
*/
|
|
361
|
-
create_domain(conf: LibvirtGConfig.Domain): Domain
|
|
362
|
-
create_storage_pool(conf: LibvirtGConfig.StoragePool, flags: number): StoragePool
|
|
363
|
-
/**
|
|
364
|
-
* Use this method to fetch all domains managed by connection
|
|
365
|
-
* `conn`. Use e.g. #gvir_connection_find_domain_by_id or
|
|
366
|
-
* #gvir_connection_get_domain afterwards to query the fetched
|
|
367
|
-
* domains.
|
|
368
|
-
* @param cancellable cancellation object
|
|
369
|
-
*/
|
|
370
|
-
fetch_domains(cancellable: Gio.Cancellable | null): boolean
|
|
371
|
-
fetch_domains_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
372
|
-
|
|
373
|
-
// Overloads of fetch_domains_async
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* Promisified version of {@link fetch_domains_async}
|
|
377
|
-
*
|
|
378
|
-
*
|
|
379
|
-
* @param cancellable cancellation object
|
|
380
|
-
* @returns A Promise of the result of {@link fetch_domains_async}
|
|
381
|
-
*/
|
|
382
|
-
fetch_domains_async(cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
383
|
-
fetch_domains_finish(result: Gio.AsyncResult): boolean
|
|
384
|
-
/**
|
|
385
|
-
* Use this method to fetch information on all network interfaces
|
|
386
|
-
* managed by connection `conn` on host machine. Use
|
|
387
|
-
* #gvir_connection_get_interfaces or #gvir_connection_get_interface afterwards
|
|
388
|
-
* to query the fetched interfaces.
|
|
389
|
-
* @param cancellable cancellation object
|
|
390
|
-
* @returns %TRUE on success, %FALSE otherwise and @err is set.
|
|
391
|
-
*/
|
|
392
|
-
fetch_interfaces(cancellable: Gio.Cancellable | null): boolean
|
|
393
|
-
fetch_interfaces_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
394
|
-
|
|
395
|
-
// Overloads of fetch_interfaces_async
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* Promisified version of {@link fetch_interfaces_async}
|
|
399
|
-
*
|
|
400
|
-
*
|
|
401
|
-
* @param cancellable cancellation object
|
|
402
|
-
* @returns A Promise of the result of {@link fetch_interfaces_async}
|
|
403
|
-
*/
|
|
404
|
-
fetch_interfaces_async(cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
405
|
-
fetch_interfaces_finish(result: Gio.AsyncResult): boolean
|
|
406
|
-
/**
|
|
407
|
-
* Use this method to fetch all networks managed by connection
|
|
408
|
-
* `conn`. Use e.g. #gvir_connection_find_network_by_name or
|
|
409
|
-
* #gvir_connection_get_networks afterwards to query the fetched
|
|
410
|
-
* domains.
|
|
411
|
-
* @param cancellable cancellation object
|
|
412
|
-
*/
|
|
413
|
-
fetch_networks(cancellable: Gio.Cancellable | null): boolean
|
|
414
|
-
fetch_networks_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
415
|
-
|
|
416
|
-
// Overloads of fetch_networks_async
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* Promisified version of {@link fetch_networks_async}
|
|
420
|
-
*
|
|
421
|
-
*
|
|
422
|
-
* @param cancellable cancellation object
|
|
423
|
-
* @returns A Promise of the result of {@link fetch_networks_async}
|
|
424
|
-
*/
|
|
425
|
-
fetch_networks_async(cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
426
|
-
fetch_networks_finish(result: Gio.AsyncResult): boolean
|
|
427
|
-
/**
|
|
428
|
-
* Use this method to fetch all storage pools managed by connection
|
|
429
|
-
* `conn`. Use e.g. #gvir_connection_find_storage_pool_by_name or
|
|
430
|
-
* #gvir_connection_get_storage_pools afterwards to query the fetched
|
|
431
|
-
* pools.
|
|
432
|
-
* @param cancellable cancellation object
|
|
433
|
-
*/
|
|
434
|
-
fetch_storage_pools(cancellable: Gio.Cancellable | null): boolean
|
|
435
|
-
fetch_storage_pools_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
436
|
-
|
|
437
|
-
// Overloads of fetch_storage_pools_async
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* Promisified version of {@link fetch_storage_pools_async}
|
|
441
|
-
*
|
|
442
|
-
*
|
|
443
|
-
* @param cancellable cancellation object
|
|
444
|
-
* @returns A Promise of the result of {@link fetch_storage_pools_async}
|
|
445
|
-
*/
|
|
446
|
-
fetch_storage_pools_async(cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
447
|
-
fetch_storage_pools_finish(result: Gio.AsyncResult): boolean
|
|
448
|
-
find_domain_by_id(id: number): Domain
|
|
449
|
-
find_domain_by_name(name: string): Domain
|
|
450
|
-
/**
|
|
451
|
-
* Get a particular interface which has MAC address `mac`.
|
|
452
|
-
* @param macaddr MAC address to lookup
|
|
453
|
-
* @returns A new reference to a #GVirInterface, or NULL if no interface exists with MAC address @mac. The returned object must be unreffed using g_object_unref() once used.
|
|
454
|
-
*/
|
|
455
|
-
find_interface_by_mac(macaddr: string): Interface
|
|
456
|
-
/**
|
|
457
|
-
* Get a particular network which has name `name`.
|
|
458
|
-
* @param name name of the network to search for
|
|
459
|
-
* @returns A new reference to a #GVirNetwork, or NULL if no network exists with name @name. The returned object must be unreffed using g_object_unref() once used.
|
|
460
|
-
*/
|
|
461
|
-
find_network_by_name(name: string): Network
|
|
462
|
-
find_storage_pool_by_name(name: string): StoragePool
|
|
463
|
-
get_capabilities(): LibvirtGConfig.Capabilities
|
|
464
|
-
get_capabilities_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
465
|
-
|
|
466
|
-
// Overloads of get_capabilities_async
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Promisified version of {@link get_capabilities_async}
|
|
470
|
-
*
|
|
471
|
-
*
|
|
472
|
-
* @param cancellable cancellation object
|
|
473
|
-
* @returns A Promise of: a #GVirConfigCapabilities or NULL. The returned object should be unreffed with g_object_unref() when no longer needed.
|
|
474
|
-
*/
|
|
475
|
-
get_capabilities_async(cancellable: Gio.Cancellable | null): globalThis.Promise<LibvirtGConfig.Capabilities>
|
|
476
|
-
get_capabilities_finish(result: Gio.AsyncResult): LibvirtGConfig.Capabilities
|
|
477
|
-
get_domain(uuid: string): Domain
|
|
478
|
-
get_domain_capabilities(emulatorbin: string | null, arch: string | null, machine: string | null, virttype: string | null, flags: number): LibvirtGConfig.DomainCapabilities
|
|
479
|
-
get_domain_capabilities_async(emulatorbin: string | null, arch: string | null, machine: string | null, virttype: string | null, flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
480
|
-
|
|
481
|
-
// Overloads of get_domain_capabilities_async
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* Promisified version of {@link get_domain_capabilities_async}
|
|
485
|
-
*
|
|
486
|
-
*
|
|
487
|
-
* @param emulatorbin path to emulator
|
|
488
|
-
* @param arch domain architecture
|
|
489
|
-
* @param machine machine type
|
|
490
|
-
* @param virttype virtualization type
|
|
491
|
-
* @param flags extra flags; not used yet, so callers should always pass 0
|
|
492
|
-
* @param cancellable cancellation object
|
|
493
|
-
* @returns A Promise of: a #GVirConfigDomainCapabilities or NULL. The returned object should be unreffed with g_object_unref() when no longer needed.
|
|
494
|
-
*/
|
|
495
|
-
get_domain_capabilities_async(emulatorbin: string | null, arch: string | null, machine: string | null, virttype: string | null, flags: number, cancellable: Gio.Cancellable | null): globalThis.Promise<LibvirtGConfig.DomainCapabilities>
|
|
496
|
-
get_domain_capabilities_finish(result: Gio.AsyncResult): LibvirtGConfig.DomainCapabilities
|
|
497
|
-
/**
|
|
498
|
-
* Gets a list of the domains available through `conn`.
|
|
499
|
-
* @returns List of #GVirDomain. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().
|
|
500
|
-
*/
|
|
501
|
-
get_domains(): Domain[]
|
|
502
|
-
/**
|
|
503
|
-
* Get name of current hypervisor used.
|
|
504
|
-
* @returns new string that should be freed when no longer needed, or NULL upon error.
|
|
505
|
-
*/
|
|
506
|
-
get_hypervisor_name(): string | null
|
|
507
|
-
/**
|
|
508
|
-
* Get a particular interface which has name `name`.
|
|
509
|
-
* @param name interface name to lookup
|
|
510
|
-
* @returns A new reference to a #GVirInterface, or NULL if no interface exists with name @name. The returned object must be unreffed using g_object_unref() once used.
|
|
511
|
-
*/
|
|
512
|
-
get_interface(name: string): Interface
|
|
513
|
-
/**
|
|
514
|
-
* Get a list of all the network interfaces managed by connection `conn` on
|
|
515
|
-
* host machine.
|
|
516
|
-
* @returns List of #GVirInterface. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().
|
|
517
|
-
*/
|
|
518
|
-
get_interfaces(): Interface[]
|
|
519
|
-
/**
|
|
520
|
-
* Get a particular network which has UUID `uuid`.
|
|
521
|
-
* @param uuid UUID of the network to lookup
|
|
522
|
-
* @returns A new reference to a #GVirNetwork, or NULL if no network exists with UUID @uuid. The returned object must be unreffed using g_object_unref() once used.
|
|
523
|
-
*/
|
|
524
|
-
get_network(uuid: string): Network
|
|
525
|
-
/**
|
|
526
|
-
* Get a list of all the network networks available through `conn`.
|
|
527
|
-
* @returns List of #GVirNetwork. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().
|
|
528
|
-
*/
|
|
529
|
-
get_networks(): Network[]
|
|
530
|
-
get_node_info(): NodeInfo
|
|
531
|
-
get_storage_pool(uuid: string): StoragePool
|
|
532
|
-
/**
|
|
533
|
-
* Gets a list of the storage pools available through `conn`.
|
|
534
|
-
* @returns List of #GVirStoragePool. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().
|
|
535
|
-
*/
|
|
536
|
-
get_storage_pools(): StoragePool[]
|
|
537
|
-
get_stream(flags: number): Stream
|
|
538
|
-
get_uri(): string
|
|
539
|
-
/**
|
|
540
|
-
* Get version of current hypervisor used.
|
|
541
|
-
* @returns version on success, 0 otherwise and @err set.
|
|
542
|
-
*/
|
|
543
|
-
get_version(): number
|
|
544
|
-
is_open(): boolean
|
|
545
|
-
is_read_only(): boolean
|
|
546
|
-
open(cancellable: Gio.Cancellable | null): boolean
|
|
547
|
-
open_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
548
|
-
|
|
549
|
-
// Overloads of open_async
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* Promisified version of {@link open_async}
|
|
553
|
-
*
|
|
554
|
-
*
|
|
555
|
-
* @param cancellable cancellation object
|
|
556
|
-
* @returns A Promise of the result of {@link open_async}
|
|
557
|
-
*/
|
|
558
|
-
open_async(cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
559
|
-
open_finish(result: Gio.AsyncResult): boolean
|
|
560
|
-
open_read_only(cancellable: Gio.Cancellable | null): boolean
|
|
561
|
-
open_read_only_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
562
|
-
|
|
563
|
-
// Overloads of open_read_only_async
|
|
564
|
-
|
|
565
|
-
/**
|
|
566
|
-
* Promisified version of {@link open_read_only_async}
|
|
567
|
-
*
|
|
568
|
-
*
|
|
569
|
-
* @param cancellable cancellation object
|
|
570
|
-
* @returns A Promise of the result of {@link open_read_only_async}
|
|
571
|
-
*/
|
|
572
|
-
open_read_only_async(cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
573
|
-
open_read_only_finish(result: Gio.AsyncResult): boolean
|
|
574
|
-
/**
|
|
575
|
-
* Restores the domain saved with #gvir_domain_save_to_file
|
|
576
|
-
* @param filename path to input file
|
|
577
|
-
* @param custom_conf configuration for domain or NULL
|
|
578
|
-
* @param flags the flags
|
|
579
|
-
* @returns TRUE on success, FALSE otherwise
|
|
580
|
-
*/
|
|
581
|
-
restore_domain_from_file(filename: string | null, custom_conf: LibvirtGConfig.Domain | null, flags: number): boolean
|
|
582
|
-
/**
|
|
583
|
-
* Asynchronous variant of #gvir_connection_restore_domain_from_file
|
|
584
|
-
* @param filename path to input file
|
|
585
|
-
* @param custom_conf configuration for domain
|
|
586
|
-
* @param flags the flags
|
|
587
|
-
* @param cancellable cancellation object
|
|
588
|
-
* @param callback completion callback
|
|
589
|
-
*/
|
|
590
|
-
restore_domain_from_file_async(filename: string | null, custom_conf: LibvirtGConfig.Domain | null, flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
591
|
-
|
|
592
|
-
// Overloads of restore_domain_from_file_async
|
|
593
|
-
|
|
594
|
-
/**
|
|
595
|
-
* Promisified version of {@link restore_domain_from_file_async}
|
|
596
|
-
*
|
|
597
|
-
* Asynchronous variant of #gvir_connection_restore_domain_from_file
|
|
598
|
-
* @param filename path to input file
|
|
599
|
-
* @param custom_conf configuration for domain
|
|
600
|
-
* @param flags the flags
|
|
601
|
-
* @param cancellable cancellation object
|
|
602
|
-
* @returns A Promise of: TRUE if domain was restored successfully, FALSE otherwise.
|
|
603
|
-
*/
|
|
604
|
-
restore_domain_from_file_async(filename: string | null, custom_conf: LibvirtGConfig.Domain | null, flags: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
605
|
-
/**
|
|
606
|
-
* Finishes the operation started by #gvir_restore_domain_from_file_async.
|
|
607
|
-
* @param result async method result
|
|
608
|
-
* @returns TRUE if domain was restored successfully, FALSE otherwise.
|
|
609
|
-
*/
|
|
610
|
-
restore_domain_from_file_finish(result: Gio.AsyncResult): boolean
|
|
611
|
-
/**
|
|
612
|
-
* Start a new transient domain without persistent configuration.
|
|
613
|
-
* The returned domain will initially be running.
|
|
614
|
-
* @param conf the configuration for the new domain
|
|
615
|
-
* @param flags
|
|
616
|
-
* @returns the newly created domain, or NULL if an error occurred. The returned object should be unreffed with g_object_unref() when no longer needed.
|
|
617
|
-
*/
|
|
618
|
-
start_domain(conf: LibvirtGConfig.Domain, flags: number): Domain
|
|
619
|
-
|
|
620
|
-
// Own virtual methods of LibvirtGObject-1.0.LibvirtGObject.Connection
|
|
621
|
-
|
|
622
|
-
vfunc_connection_closed(): void
|
|
623
|
-
vfunc_connection_opened(): void
|
|
624
|
-
vfunc_domain_added(dom: Domain): void
|
|
625
|
-
vfunc_domain_removed(dom: Domain): void
|
|
626
|
-
|
|
627
|
-
// Own signals of LibvirtGObject-1.0.LibvirtGObject.Connection
|
|
628
|
-
|
|
629
|
-
connect(sigName: "connection-closed", callback: Connection.ConnectionClosedSignalCallback): number
|
|
630
|
-
connect_after(sigName: "connection-closed", callback: Connection.ConnectionClosedSignalCallback): number
|
|
631
|
-
emit(sigName: "connection-closed", ...args: any[]): void
|
|
632
|
-
connect(sigName: "connection-opened", callback: Connection.ConnectionOpenedSignalCallback): number
|
|
633
|
-
connect_after(sigName: "connection-opened", callback: Connection.ConnectionOpenedSignalCallback): number
|
|
634
|
-
emit(sigName: "connection-opened", ...args: any[]): void
|
|
635
|
-
connect(sigName: "domain-added", callback: Connection.DomainAddedSignalCallback): number
|
|
636
|
-
connect_after(sigName: "domain-added", callback: Connection.DomainAddedSignalCallback): number
|
|
637
|
-
emit(sigName: "domain-added", object: Domain, ...args: any[]): void
|
|
638
|
-
connect(sigName: "domain-removed", callback: Connection.DomainRemovedSignalCallback): number
|
|
639
|
-
connect_after(sigName: "domain-removed", callback: Connection.DomainRemovedSignalCallback): number
|
|
640
|
-
emit(sigName: "domain-removed", object: Domain, ...args: any[]): void
|
|
641
|
-
|
|
642
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.Connection
|
|
643
|
-
|
|
644
|
-
connect(sigName: "notify::handle", callback: (($obj: Connection, pspec: GObject.ParamSpec) => void)): number
|
|
645
|
-
connect_after(sigName: "notify::handle", callback: (($obj: Connection, pspec: GObject.ParamSpec) => void)): number
|
|
646
|
-
emit(sigName: "notify::handle", ...args: any[]): void
|
|
647
|
-
connect(sigName: "notify::uri", callback: (($obj: Connection, pspec: GObject.ParamSpec) => void)): number
|
|
648
|
-
connect_after(sigName: "notify::uri", callback: (($obj: Connection, pspec: GObject.ParamSpec) => void)): number
|
|
649
|
-
emit(sigName: "notify::uri", ...args: any[]): void
|
|
650
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
651
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
652
|
-
emit(sigName: string, ...args: any[]): void
|
|
653
|
-
disconnect(id: number): void
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
class Connection extends GObject.Object {
|
|
657
|
-
|
|
658
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.Connection
|
|
659
|
-
|
|
660
|
-
static name: string
|
|
661
|
-
static $gtype: GObject.GType<Connection>
|
|
662
|
-
|
|
663
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.Connection
|
|
664
|
-
|
|
665
|
-
constructor(config?: Connection.ConstructorProperties)
|
|
666
|
-
constructor(uri: string)
|
|
667
|
-
static new(uri: string): Connection
|
|
668
|
-
_init(config?: Connection.ConstructorProperties): void
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
module Domain {
|
|
672
|
-
|
|
673
|
-
// Signal callback interfaces
|
|
674
|
-
|
|
675
|
-
/**
|
|
676
|
-
* Signal callback interface for `pmsuspended`
|
|
677
|
-
*/
|
|
678
|
-
interface PmsuspendedSignalCallback {
|
|
679
|
-
($obj: Domain): void
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* Signal callback interface for `resumed`
|
|
684
|
-
*/
|
|
685
|
-
interface ResumedSignalCallback {
|
|
686
|
-
($obj: Domain): void
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* Signal callback interface for `started`
|
|
691
|
-
*/
|
|
692
|
-
interface StartedSignalCallback {
|
|
693
|
-
($obj: Domain): void
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* Signal callback interface for `stopped`
|
|
698
|
-
*/
|
|
699
|
-
interface StoppedSignalCallback {
|
|
700
|
-
($obj: Domain): void
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
/**
|
|
704
|
-
* Signal callback interface for `suspended`
|
|
705
|
-
*/
|
|
706
|
-
interface SuspendedSignalCallback {
|
|
707
|
-
($obj: Domain): void
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
/**
|
|
711
|
-
* Signal callback interface for `updated`
|
|
712
|
-
*/
|
|
713
|
-
interface UpdatedSignalCallback {
|
|
714
|
-
($obj: Domain): void
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
// Constructor properties interface
|
|
719
|
-
|
|
720
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
721
|
-
|
|
722
|
-
// Own constructor properties of LibvirtGObject-1.0.LibvirtGObject.Domain
|
|
723
|
-
|
|
724
|
-
handle?: any | null
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
interface Domain {
|
|
730
|
-
|
|
731
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.Domain
|
|
732
|
-
|
|
733
|
-
readonly handle: any
|
|
734
|
-
readonly persistent: boolean
|
|
735
|
-
|
|
736
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.Domain
|
|
737
|
-
|
|
738
|
-
parent: GObject.Object
|
|
739
|
-
priv: DomainPrivate
|
|
740
|
-
|
|
741
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.Domain
|
|
742
|
-
|
|
743
|
-
create_snapshot(custom_conf: LibvirtGConfig.DomainSnapshot | null, flags: number): DomainSnapshot
|
|
744
|
-
create_snapshot_async(custom_conf: LibvirtGConfig.DomainSnapshot | null, flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
745
|
-
|
|
746
|
-
// Overloads of create_snapshot_async
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* Promisified version of {@link create_snapshot_async}
|
|
750
|
-
*
|
|
751
|
-
*
|
|
752
|
-
* @param custom_conf Configuration of snapshot or %NULL
|
|
753
|
-
* @param flags Bitwise-OR of #GVirDomainSnapshotCreateFlags
|
|
754
|
-
* @param cancellable cancellation object
|
|
755
|
-
* @returns A Promise of: The created snapshot
|
|
756
|
-
*/
|
|
757
|
-
create_snapshot_async(custom_conf: LibvirtGConfig.DomainSnapshot | null, flags: number, cancellable: Gio.Cancellable | null): globalThis.Promise<DomainSnapshot>
|
|
758
|
-
create_snapshot_finish(result: Gio.AsyncResult): DomainSnapshot
|
|
759
|
-
delete(flags: number): boolean
|
|
760
|
-
fetch_snapshots(list_flags: number, cancellable: Gio.Cancellable | null): boolean
|
|
761
|
-
fetch_snapshots_async(list_flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
762
|
-
|
|
763
|
-
// Overloads of fetch_snapshots_async
|
|
764
|
-
|
|
765
|
-
/**
|
|
766
|
-
* Promisified version of {@link fetch_snapshots_async}
|
|
767
|
-
*
|
|
768
|
-
*
|
|
769
|
-
* @param list_flags bitwise-OR of #GVirDomainSnapshotListFlags
|
|
770
|
-
* @param cancellable cancellation object
|
|
771
|
-
* @returns A Promise of: TRUE on success, FALSE otherwise.
|
|
772
|
-
*/
|
|
773
|
-
fetch_snapshots_async(list_flags: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
774
|
-
fetch_snapshots_finish(res: Gio.AsyncResult): boolean
|
|
775
|
-
get_config(flags: number): LibvirtGConfig.Domain
|
|
776
|
-
/**
|
|
777
|
-
* Gets the list of devices attached to `domain`. The returned list should
|
|
778
|
-
* be freed with g_list_free(), after its elements have been unreffed with
|
|
779
|
-
* g_object_unref().
|
|
780
|
-
* @returns a newly allocated #GList of #GVirDomainDevice.
|
|
781
|
-
*/
|
|
782
|
-
get_devices(): DomainDevice[]
|
|
783
|
-
get_has_current_snapshot(flags: number): [ /* returnType */ boolean, /* has_current_snapshot */ boolean ]
|
|
784
|
-
get_id(): number
|
|
785
|
-
get_info(): DomainInfo
|
|
786
|
-
/**
|
|
787
|
-
* Asynchronous variant of #gvir_domain_get_info.
|
|
788
|
-
* @param cancellable cancellation object
|
|
789
|
-
* @param callback completion callback
|
|
790
|
-
*/
|
|
791
|
-
get_info_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
792
|
-
|
|
793
|
-
// Overloads of get_info_async
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
* Promisified version of {@link get_info_async}
|
|
797
|
-
*
|
|
798
|
-
* Asynchronous variant of #gvir_domain_get_info.
|
|
799
|
-
* @param cancellable cancellation object
|
|
800
|
-
* @returns A Promise of: the info. The returned object should be unreffed with g_object_unref() when no longer needed.
|
|
801
|
-
*/
|
|
802
|
-
get_info_async(cancellable: Gio.Cancellable | null): globalThis.Promise<DomainInfo>
|
|
803
|
-
/**
|
|
804
|
-
* Finishes the operation started by #gvir_domain_get_info_async.
|
|
805
|
-
* @param result async method result
|
|
806
|
-
* @returns the info. The returned object should be unreffed with g_object_unref() when no longer needed.
|
|
807
|
-
*/
|
|
808
|
-
get_info_finish(result: Gio.AsyncResult): DomainInfo
|
|
809
|
-
get_name(): string
|
|
810
|
-
get_persistent(): boolean
|
|
811
|
-
get_saved(): boolean
|
|
812
|
-
get_snapshots(): DomainSnapshot[]
|
|
813
|
-
get_uuid(): string
|
|
814
|
-
/**
|
|
815
|
-
* Open a text console for the domain `dom,` connecting it to the
|
|
816
|
-
* stream `stream`. If `devname` is NULL, the default console will
|
|
817
|
-
* be opened, otherwise `devname` can be used to specify a non-default
|
|
818
|
-
* console device.
|
|
819
|
-
* @param stream stream to use as output
|
|
820
|
-
* @param devname the device name
|
|
821
|
-
* @param flags extra flags, currently unused
|
|
822
|
-
* @returns TRUE if the console was opened, FALSE otherwise.
|
|
823
|
-
*/
|
|
824
|
-
open_console(stream: Stream, devname: string | null, flags: number): boolean
|
|
825
|
-
/**
|
|
826
|
-
* Open a connection to the local graphics display, connecting it to the
|
|
827
|
-
* socket pair file descriptor passed in as `fd`.
|
|
828
|
-
* @param idx the graphics index
|
|
829
|
-
* @param fd pre-opened socket pair
|
|
830
|
-
* @param flags extra flags, currently unused
|
|
831
|
-
* @returns TRUE if the graphics connection was opened, FALSE otherwise.
|
|
832
|
-
*/
|
|
833
|
-
open_graphics(idx: number, fd: number, flags: number): boolean
|
|
834
|
-
/**
|
|
835
|
-
* This will create a socket pair connected to the graphics backend of `dom`. One
|
|
836
|
-
* end of the socket will be returned on success, and the other end is handed to
|
|
837
|
-
* the hypervisor. If `dom` has multiple graphics backends configured, then `idx`
|
|
838
|
-
* will determine which one is opened, starting from `idx` 0.
|
|
839
|
-
* @param idx the graphics index
|
|
840
|
-
* @param flags extra flags, currently unused
|
|
841
|
-
* @returns An fd on success, -1 on failure.
|
|
842
|
-
*/
|
|
843
|
-
open_graphics_fd(idx: number, flags: number): number
|
|
844
|
-
reboot(flags: number): boolean
|
|
845
|
-
resume(): boolean
|
|
846
|
-
/**
|
|
847
|
-
* Asynchronous variant of #gvir_domain_resume.
|
|
848
|
-
* @param cancellable cancellation object
|
|
849
|
-
* @param callback completion callback
|
|
850
|
-
*/
|
|
851
|
-
resume_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
852
|
-
|
|
853
|
-
// Overloads of resume_async
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* Promisified version of {@link resume_async}
|
|
857
|
-
*
|
|
858
|
-
* Asynchronous variant of #gvir_domain_resume.
|
|
859
|
-
* @param cancellable cancellation object
|
|
860
|
-
* @returns A Promise of the result of {@link resume_async}
|
|
861
|
-
*/
|
|
862
|
-
resume_async(cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
863
|
-
resume_finish(result: Gio.AsyncResult): boolean
|
|
864
|
-
/**
|
|
865
|
-
* Saves the state of the domain on disk and stops it. Use #gvir_domain_start
|
|
866
|
-
* to restore the saved state of the domain. A saved domain can be restored
|
|
867
|
-
* even after shutdown/reboot of host machine.
|
|
868
|
-
* @param flags extra flags, currently unused
|
|
869
|
-
* @returns TRUE if domain was saved successfully, FALSE otherwise.
|
|
870
|
-
*/
|
|
871
|
-
save(flags: number): boolean
|
|
872
|
-
/**
|
|
873
|
-
* Asynchronous variant of #gvir_domain_save.
|
|
874
|
-
* @param flags extra flags, currently unused
|
|
875
|
-
* @param cancellable cancellation object
|
|
876
|
-
* @param callback completion callback
|
|
877
|
-
*/
|
|
878
|
-
save_async(flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
879
|
-
|
|
880
|
-
// Overloads of save_async
|
|
881
|
-
|
|
882
|
-
/**
|
|
883
|
-
* Promisified version of {@link save_async}
|
|
884
|
-
*
|
|
885
|
-
* Asynchronous variant of #gvir_domain_save.
|
|
886
|
-
* @param flags extra flags, currently unused
|
|
887
|
-
* @param cancellable cancellation object
|
|
888
|
-
* @returns A Promise of: TRUE if domain was saved successfully, FALSE otherwise.
|
|
889
|
-
*/
|
|
890
|
-
save_async(flags: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
891
|
-
/**
|
|
892
|
-
* Finishes the operation started by #gvir_domain_save_async.
|
|
893
|
-
* @param result async method result
|
|
894
|
-
* @returns TRUE if domain was saved successfully, FALSE otherwise.
|
|
895
|
-
*/
|
|
896
|
-
save_finish(result: Gio.AsyncResult): boolean
|
|
897
|
-
save_to_file(filename: string | null, custom_conf: LibvirtGConfig.Domain | null, flags: number): boolean
|
|
898
|
-
/**
|
|
899
|
-
* Asynchronous variant of #gvir_domain_save_to_file
|
|
900
|
-
* @param filename path to output file
|
|
901
|
-
* @param custom_conf configuration for domain or NULL
|
|
902
|
-
* @param flags the flags
|
|
903
|
-
* @param cancellable cancellation object
|
|
904
|
-
* @param callback completion callback
|
|
905
|
-
*/
|
|
906
|
-
save_to_file_async(filename: string | null, custom_conf: LibvirtGConfig.Domain | null, flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
907
|
-
|
|
908
|
-
// Overloads of save_to_file_async
|
|
909
|
-
|
|
910
|
-
/**
|
|
911
|
-
* Promisified version of {@link save_to_file_async}
|
|
912
|
-
*
|
|
913
|
-
* Asynchronous variant of #gvir_domain_save_to_file
|
|
914
|
-
* @param filename path to output file
|
|
915
|
-
* @param custom_conf configuration for domain or NULL
|
|
916
|
-
* @param flags the flags
|
|
917
|
-
* @param cancellable cancellation object
|
|
918
|
-
* @returns A Promise of: TRUE if domain was saved successfully, FALSE otherwise.
|
|
919
|
-
*/
|
|
920
|
-
save_to_file_async(filename: string | null, custom_conf: LibvirtGConfig.Domain | null, flags: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
921
|
-
/**
|
|
922
|
-
* Finishes the operation started by #gvir_domain_save_to_file_async.
|
|
923
|
-
* @param result async method result
|
|
924
|
-
* @returns TRUE if domain was saved successfully, FALSE otherwise.
|
|
925
|
-
*/
|
|
926
|
-
save_to_file_finish(result: Gio.AsyncResult): boolean
|
|
927
|
-
screenshot(stream: Stream, monitor_id: number, flags: number): string | null
|
|
928
|
-
/**
|
|
929
|
-
* Resets configuration of an existing domain.
|
|
930
|
-
*
|
|
931
|
-
* Note: If domain is already running, the new configuration will not take
|
|
932
|
-
* affect until domain reboots.
|
|
933
|
-
* @param conf the new configuration for the domain
|
|
934
|
-
* @returns TRUE on success, FALSE if an error occurred.
|
|
935
|
-
*/
|
|
936
|
-
set_config(conf: LibvirtGConfig.Domain): boolean
|
|
937
|
-
/**
|
|
938
|
-
* This function tries to set guest time to the given value. The passed
|
|
939
|
-
* time must in UTC.
|
|
940
|
-
*
|
|
941
|
-
* If `date_time` is %NULL, the time is reset using the domain's RTC.
|
|
942
|
-
*
|
|
943
|
-
* Please note that some hypervisors may require guest agent to be configured
|
|
944
|
-
* and running in order for this function to work.
|
|
945
|
-
* @param date_time the time to set as #GDateTime.
|
|
946
|
-
* @param flags Unused, pass 0.
|
|
947
|
-
* @returns %TRUE on success, %FALSE otherwise.
|
|
948
|
-
*/
|
|
949
|
-
set_time(date_time: GLib.DateTime | null, flags: number): boolean
|
|
950
|
-
/**
|
|
951
|
-
* Asynchronous variant of #gvir_domain_set_time.
|
|
952
|
-
* @param date_time the time to set as #GDateTime.
|
|
953
|
-
* @param flags bitwise-OR of #GVirDomainSetTimeFlags.
|
|
954
|
-
* @param cancellable cancellation object
|
|
955
|
-
* @param callback completion callback
|
|
956
|
-
*/
|
|
957
|
-
set_time_async(date_time: GLib.DateTime | null, flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
958
|
-
|
|
959
|
-
// Overloads of set_time_async
|
|
960
|
-
|
|
961
|
-
/**
|
|
962
|
-
* Promisified version of {@link set_time_async}
|
|
963
|
-
*
|
|
964
|
-
* Asynchronous variant of #gvir_domain_set_time.
|
|
965
|
-
* @param date_time the time to set as #GDateTime.
|
|
966
|
-
* @param flags bitwise-OR of #GVirDomainSetTimeFlags.
|
|
967
|
-
* @param cancellable cancellation object
|
|
968
|
-
* @returns A Promise of: %TRUE on success, %FALSE otherwise.
|
|
969
|
-
*/
|
|
970
|
-
set_time_async(date_time: GLib.DateTime | null, flags: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
971
|
-
/**
|
|
972
|
-
* Finishes the operation started by #gvir_domain_set_time_async.
|
|
973
|
-
* @param result async method result
|
|
974
|
-
* @returns %TRUE on success, %FALSE otherwise.
|
|
975
|
-
*/
|
|
976
|
-
set_time_finish(result: Gio.AsyncResult): boolean
|
|
977
|
-
shutdown(flags: number): boolean
|
|
978
|
-
start(flags: number): boolean
|
|
979
|
-
/**
|
|
980
|
-
* Asynchronous variant of #gvir_domain_start.
|
|
981
|
-
* @param flags the flags
|
|
982
|
-
* @param cancellable cancellation object
|
|
983
|
-
* @param callback completion callback
|
|
984
|
-
*/
|
|
985
|
-
start_async(flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
986
|
-
|
|
987
|
-
// Overloads of start_async
|
|
988
|
-
|
|
989
|
-
/**
|
|
990
|
-
* Promisified version of {@link start_async}
|
|
991
|
-
*
|
|
992
|
-
* Asynchronous variant of #gvir_domain_start.
|
|
993
|
-
* @param flags the flags
|
|
994
|
-
* @param cancellable cancellation object
|
|
995
|
-
* @returns A Promise of the result of {@link start_async}
|
|
996
|
-
*/
|
|
997
|
-
start_async(flags: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
998
|
-
start_finish(result: Gio.AsyncResult): boolean
|
|
999
|
-
stop(flags: number): boolean
|
|
1000
|
-
/**
|
|
1001
|
-
* Suspends an active domain, the process is frozen without further access to
|
|
1002
|
-
* CPU resources and I/O but the memory used by the domain at the hypervisor
|
|
1003
|
-
* level will stay allocated. Use gvir_domain_resume() to reactivate the domain.
|
|
1004
|
-
* @returns TRUE if domain was suspended successfully, FALSE otherwise.
|
|
1005
|
-
*/
|
|
1006
|
-
suspend(): boolean
|
|
1007
|
-
/**
|
|
1008
|
-
* Update the configuration of a device.
|
|
1009
|
-
* @param device A modified device config
|
|
1010
|
-
* @param flags bitwise-OR of #GVirDomainUpdateDeviceFlags
|
|
1011
|
-
* @returns TRUE if device was updated successfully, FALSE otherwise.
|
|
1012
|
-
*/
|
|
1013
|
-
update_device(device: LibvirtGConfig.DomainDevice, flags: number): boolean
|
|
1014
|
-
wakeup(flags: number): boolean
|
|
1015
|
-
/**
|
|
1016
|
-
* Asynchronous variant of #gvir_domain_wakeup.
|
|
1017
|
-
* @param flags placeholder for flags, pass 0
|
|
1018
|
-
* @param cancellable cancellation object
|
|
1019
|
-
* @param callback completion callback
|
|
1020
|
-
*/
|
|
1021
|
-
wakeup_async(flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1022
|
-
|
|
1023
|
-
// Overloads of wakeup_async
|
|
1024
|
-
|
|
1025
|
-
/**
|
|
1026
|
-
* Promisified version of {@link wakeup_async}
|
|
1027
|
-
*
|
|
1028
|
-
* Asynchronous variant of #gvir_domain_wakeup.
|
|
1029
|
-
* @param flags placeholder for flags, pass 0
|
|
1030
|
-
* @param cancellable cancellation object
|
|
1031
|
-
* @returns A Promise of the result of {@link wakeup_async}
|
|
1032
|
-
*/
|
|
1033
|
-
wakeup_async(flags: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
1034
|
-
wakeup_finish(result: Gio.AsyncResult): boolean
|
|
1035
|
-
|
|
1036
|
-
// Own virtual methods of LibvirtGObject-1.0.LibvirtGObject.Domain
|
|
1037
|
-
|
|
1038
|
-
vfunc_pmsuspended(): void
|
|
1039
|
-
vfunc_resumed(): void
|
|
1040
|
-
vfunc_started(): void
|
|
1041
|
-
vfunc_stopped(): void
|
|
1042
|
-
vfunc_suspended(): void
|
|
1043
|
-
vfunc_updated(): void
|
|
1044
|
-
|
|
1045
|
-
// Own signals of LibvirtGObject-1.0.LibvirtGObject.Domain
|
|
1046
|
-
|
|
1047
|
-
connect(sigName: "pmsuspended", callback: Domain.PmsuspendedSignalCallback): number
|
|
1048
|
-
connect_after(sigName: "pmsuspended", callback: Domain.PmsuspendedSignalCallback): number
|
|
1049
|
-
emit(sigName: "pmsuspended", ...args: any[]): void
|
|
1050
|
-
connect(sigName: "resumed", callback: Domain.ResumedSignalCallback): number
|
|
1051
|
-
connect_after(sigName: "resumed", callback: Domain.ResumedSignalCallback): number
|
|
1052
|
-
emit(sigName: "resumed", ...args: any[]): void
|
|
1053
|
-
connect(sigName: "started", callback: Domain.StartedSignalCallback): number
|
|
1054
|
-
connect_after(sigName: "started", callback: Domain.StartedSignalCallback): number
|
|
1055
|
-
emit(sigName: "started", ...args: any[]): void
|
|
1056
|
-
connect(sigName: "stopped", callback: Domain.StoppedSignalCallback): number
|
|
1057
|
-
connect_after(sigName: "stopped", callback: Domain.StoppedSignalCallback): number
|
|
1058
|
-
emit(sigName: "stopped", ...args: any[]): void
|
|
1059
|
-
connect(sigName: "suspended", callback: Domain.SuspendedSignalCallback): number
|
|
1060
|
-
connect_after(sigName: "suspended", callback: Domain.SuspendedSignalCallback): number
|
|
1061
|
-
emit(sigName: "suspended", ...args: any[]): void
|
|
1062
|
-
connect(sigName: "updated", callback: Domain.UpdatedSignalCallback): number
|
|
1063
|
-
connect_after(sigName: "updated", callback: Domain.UpdatedSignalCallback): number
|
|
1064
|
-
emit(sigName: "updated", ...args: any[]): void
|
|
1065
|
-
|
|
1066
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.Domain
|
|
1067
|
-
|
|
1068
|
-
connect(sigName: "notify::handle", callback: (($obj: Domain, pspec: GObject.ParamSpec) => void)): number
|
|
1069
|
-
connect_after(sigName: "notify::handle", callback: (($obj: Domain, pspec: GObject.ParamSpec) => void)): number
|
|
1070
|
-
emit(sigName: "notify::handle", ...args: any[]): void
|
|
1071
|
-
connect(sigName: "notify::persistent", callback: (($obj: Domain, pspec: GObject.ParamSpec) => void)): number
|
|
1072
|
-
connect_after(sigName: "notify::persistent", callback: (($obj: Domain, pspec: GObject.ParamSpec) => void)): number
|
|
1073
|
-
emit(sigName: "notify::persistent", ...args: any[]): void
|
|
1074
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1075
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1076
|
-
emit(sigName: string, ...args: any[]): void
|
|
1077
|
-
disconnect(id: number): void
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
class Domain extends GObject.Object {
|
|
1081
|
-
|
|
1082
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.Domain
|
|
1083
|
-
|
|
1084
|
-
static name: string
|
|
1085
|
-
static $gtype: GObject.GType<Domain>
|
|
1086
|
-
|
|
1087
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.Domain
|
|
1088
|
-
|
|
1089
|
-
constructor(config?: Domain.ConstructorProperties)
|
|
1090
|
-
_init(config?: Domain.ConstructorProperties): void
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
module DomainDevice {
|
|
1094
|
-
|
|
1095
|
-
// Constructor properties interface
|
|
1096
|
-
|
|
1097
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1098
|
-
|
|
1099
|
-
// Own constructor properties of LibvirtGObject-1.0.LibvirtGObject.DomainDevice
|
|
1100
|
-
|
|
1101
|
-
config?: LibvirtGConfig.DomainDevice | null
|
|
1102
|
-
domain?: Domain | null
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
interface DomainDevice {
|
|
1108
|
-
|
|
1109
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.DomainDevice
|
|
1110
|
-
|
|
1111
|
-
readonly config: LibvirtGConfig.DomainDevice
|
|
1112
|
-
readonly domain: Domain
|
|
1113
|
-
|
|
1114
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.DomainDevice
|
|
1115
|
-
|
|
1116
|
-
parent: GObject.Object
|
|
1117
|
-
priv: DomainDevicePrivate
|
|
1118
|
-
|
|
1119
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.DomainDevice
|
|
1120
|
-
|
|
1121
|
-
get_config(): LibvirtGConfig.DomainDevice
|
|
1122
|
-
get_domain(): Domain
|
|
1123
|
-
|
|
1124
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.DomainDevice
|
|
1125
|
-
|
|
1126
|
-
connect(sigName: "notify::config", callback: (($obj: DomainDevice, pspec: GObject.ParamSpec) => void)): number
|
|
1127
|
-
connect_after(sigName: "notify::config", callback: (($obj: DomainDevice, pspec: GObject.ParamSpec) => void)): number
|
|
1128
|
-
emit(sigName: "notify::config", ...args: any[]): void
|
|
1129
|
-
connect(sigName: "notify::domain", callback: (($obj: DomainDevice, pspec: GObject.ParamSpec) => void)): number
|
|
1130
|
-
connect_after(sigName: "notify::domain", callback: (($obj: DomainDevice, pspec: GObject.ParamSpec) => void)): number
|
|
1131
|
-
emit(sigName: "notify::domain", ...args: any[]): void
|
|
1132
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1133
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1134
|
-
emit(sigName: string, ...args: any[]): void
|
|
1135
|
-
disconnect(id: number): void
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
class DomainDevice extends GObject.Object {
|
|
1139
|
-
|
|
1140
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.DomainDevice
|
|
1141
|
-
|
|
1142
|
-
static name: string
|
|
1143
|
-
static $gtype: GObject.GType<DomainDevice>
|
|
1144
|
-
|
|
1145
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.DomainDevice
|
|
1146
|
-
|
|
1147
|
-
constructor(config?: DomainDevice.ConstructorProperties)
|
|
1148
|
-
_init(config?: DomainDevice.ConstructorProperties): void
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
module DomainDisk {
|
|
1152
|
-
|
|
1153
|
-
// Constructor properties interface
|
|
1154
|
-
|
|
1155
|
-
interface ConstructorProperties extends DomainDevice.ConstructorProperties {
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
interface DomainDisk {
|
|
1161
|
-
|
|
1162
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.DomainDisk
|
|
1163
|
-
|
|
1164
|
-
parent: DomainDevice & GObject.Object
|
|
1165
|
-
priv: any
|
|
1166
|
-
|
|
1167
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.DomainDisk
|
|
1168
|
-
|
|
1169
|
-
/**
|
|
1170
|
-
* This function returns network disk stats. Individual fields
|
|
1171
|
-
* within the stats structure may be returned as -1, which indicates
|
|
1172
|
-
* that the hypervisor does not support that particular statistic.
|
|
1173
|
-
* @returns the stats or %NULL in case of error.The returned object should be unreffed with g_object_unref() when no longer needed.
|
|
1174
|
-
*/
|
|
1175
|
-
get_stats(): DomainDiskStats
|
|
1176
|
-
/**
|
|
1177
|
-
* This function resize the disk of a running domain.
|
|
1178
|
-
* @param size new size of the block image in kilobytes
|
|
1179
|
-
* @param flags flags, currently unused. Pass '0'.
|
|
1180
|
-
* @returns TRUE if size was successfully changed, FALSE otherwise.
|
|
1181
|
-
*/
|
|
1182
|
-
resize(size: number, flags: number): boolean
|
|
1183
|
-
|
|
1184
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.DomainDisk
|
|
1185
|
-
|
|
1186
|
-
connect(sigName: "notify::config", callback: (($obj: DomainDisk, pspec: GObject.ParamSpec) => void)): number
|
|
1187
|
-
connect_after(sigName: "notify::config", callback: (($obj: DomainDisk, pspec: GObject.ParamSpec) => void)): number
|
|
1188
|
-
emit(sigName: "notify::config", ...args: any[]): void
|
|
1189
|
-
connect(sigName: "notify::domain", callback: (($obj: DomainDisk, pspec: GObject.ParamSpec) => void)): number
|
|
1190
|
-
connect_after(sigName: "notify::domain", callback: (($obj: DomainDisk, pspec: GObject.ParamSpec) => void)): number
|
|
1191
|
-
emit(sigName: "notify::domain", ...args: any[]): void
|
|
1192
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1193
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1194
|
-
emit(sigName: string, ...args: any[]): void
|
|
1195
|
-
disconnect(id: number): void
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
class DomainDisk extends DomainDevice {
|
|
1199
|
-
|
|
1200
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.DomainDisk
|
|
1201
|
-
|
|
1202
|
-
static name: string
|
|
1203
|
-
static $gtype: GObject.GType<DomainDisk>
|
|
1204
|
-
|
|
1205
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.DomainDisk
|
|
1206
|
-
|
|
1207
|
-
constructor(config?: DomainDisk.ConstructorProperties)
|
|
1208
|
-
_init(config?: DomainDisk.ConstructorProperties): void
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
module DomainInterface {
|
|
1212
|
-
|
|
1213
|
-
// Constructor properties interface
|
|
1214
|
-
|
|
1215
|
-
interface ConstructorProperties extends DomainDevice.ConstructorProperties {
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
interface DomainInterface {
|
|
1221
|
-
|
|
1222
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.DomainInterface
|
|
1223
|
-
|
|
1224
|
-
parent: DomainDevice & GObject.Object
|
|
1225
|
-
priv: any
|
|
1226
|
-
|
|
1227
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.DomainInterface
|
|
1228
|
-
|
|
1229
|
-
/**
|
|
1230
|
-
* This function returns network interface stats. Individual fields
|
|
1231
|
-
* within the stats structure may be returned as -1, which indicates
|
|
1232
|
-
* that the hypervisor does not support that particular statistic.
|
|
1233
|
-
* @returns the stats or %NULL in case of error. The returned object should be unreffed with g_object_unref() when no longer needed.
|
|
1234
|
-
*/
|
|
1235
|
-
get_stats(): DomainInterfaceStats
|
|
1236
|
-
|
|
1237
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.DomainInterface
|
|
1238
|
-
|
|
1239
|
-
connect(sigName: "notify::config", callback: (($obj: DomainInterface, pspec: GObject.ParamSpec) => void)): number
|
|
1240
|
-
connect_after(sigName: "notify::config", callback: (($obj: DomainInterface, pspec: GObject.ParamSpec) => void)): number
|
|
1241
|
-
emit(sigName: "notify::config", ...args: any[]): void
|
|
1242
|
-
connect(sigName: "notify::domain", callback: (($obj: DomainInterface, pspec: GObject.ParamSpec) => void)): number
|
|
1243
|
-
connect_after(sigName: "notify::domain", callback: (($obj: DomainInterface, pspec: GObject.ParamSpec) => void)): number
|
|
1244
|
-
emit(sigName: "notify::domain", ...args: any[]): void
|
|
1245
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1246
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1247
|
-
emit(sigName: string, ...args: any[]): void
|
|
1248
|
-
disconnect(id: number): void
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
class DomainInterface extends DomainDevice {
|
|
1252
|
-
|
|
1253
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.DomainInterface
|
|
1254
|
-
|
|
1255
|
-
static name: string
|
|
1256
|
-
static $gtype: GObject.GType<DomainInterface>
|
|
1257
|
-
|
|
1258
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.DomainInterface
|
|
1259
|
-
|
|
1260
|
-
constructor(config?: DomainInterface.ConstructorProperties)
|
|
1261
|
-
_init(config?: DomainInterface.ConstructorProperties): void
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
module DomainSnapshot {
|
|
1265
|
-
|
|
1266
|
-
// Constructor properties interface
|
|
1267
|
-
|
|
1268
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1269
|
-
|
|
1270
|
-
// Own constructor properties of LibvirtGObject-1.0.LibvirtGObject.DomainSnapshot
|
|
1271
|
-
|
|
1272
|
-
handle?: any | null
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
interface DomainSnapshot {
|
|
1278
|
-
|
|
1279
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.DomainSnapshot
|
|
1280
|
-
|
|
1281
|
-
readonly handle: any
|
|
1282
|
-
|
|
1283
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.DomainSnapshot
|
|
1284
|
-
|
|
1285
|
-
parent: GObject.Object
|
|
1286
|
-
priv: DomainSnapshotPrivate
|
|
1287
|
-
|
|
1288
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.DomainSnapshot
|
|
1289
|
-
|
|
1290
|
-
delete(flags: number): boolean
|
|
1291
|
-
delete_async(flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1292
|
-
|
|
1293
|
-
// Overloads of delete_async
|
|
1294
|
-
|
|
1295
|
-
/**
|
|
1296
|
-
* Promisified version of {@link delete_async}
|
|
1297
|
-
*
|
|
1298
|
-
*
|
|
1299
|
-
* @param flags Bitwise-OR of #GVirDomainSnapshotDeleteFlags
|
|
1300
|
-
* @param cancellable cancellation object
|
|
1301
|
-
* @returns A Promise of: %TRUE on success, %FALSE otherwise.
|
|
1302
|
-
*/
|
|
1303
|
-
delete_async(flags: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
1304
|
-
delete_finish(res: Gio.AsyncResult): boolean
|
|
1305
|
-
get_config(flags: number): LibvirtGConfig.DomainSnapshot
|
|
1306
|
-
get_is_current(flags: number): [ /* returnType */ boolean, /* is_current */ boolean ]
|
|
1307
|
-
get_name(): string
|
|
1308
|
-
revert_to(flags: number): boolean
|
|
1309
|
-
revert_to_async(flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1310
|
-
|
|
1311
|
-
// Overloads of revert_to_async
|
|
1312
|
-
|
|
1313
|
-
/**
|
|
1314
|
-
* Promisified version of {@link revert_to_async}
|
|
1315
|
-
*
|
|
1316
|
-
*
|
|
1317
|
-
* @param flags Bitwise OR of #GVirDomainSnapshotRevertFlags
|
|
1318
|
-
* @param cancellable cancellation object
|
|
1319
|
-
* @returns A Promise of: %TRUE on success, %FALSE otherwise.
|
|
1320
|
-
*/
|
|
1321
|
-
revert_to_async(flags: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
1322
|
-
revert_to_finish(result: Gio.AsyncResult): boolean
|
|
1323
|
-
/**
|
|
1324
|
-
* Updates the given snapshot's configuration according to the
|
|
1325
|
-
* given GVirConfigDomainSnapshot.
|
|
1326
|
-
* @param conf The new config object
|
|
1327
|
-
* @returns %TRUE if no error was reported, %FALSE otherwise.
|
|
1328
|
-
*/
|
|
1329
|
-
set_config(conf: LibvirtGConfig.DomainSnapshot): boolean
|
|
1330
|
-
|
|
1331
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.DomainSnapshot
|
|
1332
|
-
|
|
1333
|
-
connect(sigName: "notify::handle", callback: (($obj: DomainSnapshot, pspec: GObject.ParamSpec) => void)): number
|
|
1334
|
-
connect_after(sigName: "notify::handle", callback: (($obj: DomainSnapshot, pspec: GObject.ParamSpec) => void)): number
|
|
1335
|
-
emit(sigName: "notify::handle", ...args: any[]): void
|
|
1336
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1337
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1338
|
-
emit(sigName: string, ...args: any[]): void
|
|
1339
|
-
disconnect(id: number): void
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
class DomainSnapshot extends GObject.Object {
|
|
1343
|
-
|
|
1344
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.DomainSnapshot
|
|
1345
|
-
|
|
1346
|
-
static name: string
|
|
1347
|
-
static $gtype: GObject.GType<DomainSnapshot>
|
|
1348
|
-
|
|
1349
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.DomainSnapshot
|
|
1350
|
-
|
|
1351
|
-
constructor(config?: DomainSnapshot.ConstructorProperties)
|
|
1352
|
-
_init(config?: DomainSnapshot.ConstructorProperties): void
|
|
1353
|
-
}
|
|
1354
|
-
|
|
1355
|
-
module Interface {
|
|
1356
|
-
|
|
1357
|
-
// Constructor properties interface
|
|
1358
|
-
|
|
1359
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1360
|
-
|
|
1361
|
-
// Own constructor properties of LibvirtGObject-1.0.LibvirtGObject.Interface
|
|
1362
|
-
|
|
1363
|
-
handle?: any | null
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
interface Interface {
|
|
1369
|
-
|
|
1370
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.Interface
|
|
1371
|
-
|
|
1372
|
-
readonly handle: any
|
|
1373
|
-
|
|
1374
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.Interface
|
|
1375
|
-
|
|
1376
|
-
parent: GObject.Object
|
|
1377
|
-
priv: InterfacePrivate
|
|
1378
|
-
|
|
1379
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.Interface
|
|
1380
|
-
|
|
1381
|
-
get_config(flags: number): LibvirtGConfig.Interface
|
|
1382
|
-
get_mac(): string
|
|
1383
|
-
get_name(): string
|
|
1384
|
-
|
|
1385
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.Interface
|
|
1386
|
-
|
|
1387
|
-
connect(sigName: "notify::handle", callback: (($obj: Interface, pspec: GObject.ParamSpec) => void)): number
|
|
1388
|
-
connect_after(sigName: "notify::handle", callback: (($obj: Interface, pspec: GObject.ParamSpec) => void)): number
|
|
1389
|
-
emit(sigName: "notify::handle", ...args: any[]): void
|
|
1390
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1391
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1392
|
-
emit(sigName: string, ...args: any[]): void
|
|
1393
|
-
disconnect(id: number): void
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
class Interface extends GObject.Object {
|
|
1397
|
-
|
|
1398
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.Interface
|
|
1399
|
-
|
|
1400
|
-
static name: string
|
|
1401
|
-
static $gtype: GObject.GType<Interface>
|
|
1402
|
-
|
|
1403
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.Interface
|
|
1404
|
-
|
|
1405
|
-
constructor(config?: Interface.ConstructorProperties)
|
|
1406
|
-
_init(config?: Interface.ConstructorProperties): void
|
|
1407
|
-
}
|
|
1408
|
-
|
|
1409
|
-
module Manager {
|
|
1410
|
-
|
|
1411
|
-
// Signal callback interfaces
|
|
1412
|
-
|
|
1413
|
-
/**
|
|
1414
|
-
* Signal callback interface for `connection-added`
|
|
1415
|
-
*/
|
|
1416
|
-
interface ConnectionAddedSignalCallback {
|
|
1417
|
-
($obj: Manager, object: Connection): void
|
|
1418
|
-
}
|
|
1419
|
-
|
|
1420
|
-
/**
|
|
1421
|
-
* Signal callback interface for `connection-removed`
|
|
1422
|
-
*/
|
|
1423
|
-
interface ConnectionRemovedSignalCallback {
|
|
1424
|
-
($obj: Manager, object: Connection): void
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
// Constructor properties interface
|
|
1429
|
-
|
|
1430
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
interface Manager {
|
|
1436
|
-
|
|
1437
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.Manager
|
|
1438
|
-
|
|
1439
|
-
parent: GObject.Object
|
|
1440
|
-
priv: ManagerPrivate
|
|
1441
|
-
|
|
1442
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.Manager
|
|
1443
|
-
|
|
1444
|
-
add_connection(conn: Connection): void
|
|
1445
|
-
find_connection_by_uri(uri: string): Connection | null
|
|
1446
|
-
get_connections(): Connection[]
|
|
1447
|
-
remove_connection(conn: Connection): void
|
|
1448
|
-
|
|
1449
|
-
// Own virtual methods of LibvirtGObject-1.0.LibvirtGObject.Manager
|
|
1450
|
-
|
|
1451
|
-
vfunc_connection_added(conn: Connection): void
|
|
1452
|
-
vfunc_connection_removed(conn: Connection): void
|
|
1453
|
-
|
|
1454
|
-
// Own signals of LibvirtGObject-1.0.LibvirtGObject.Manager
|
|
1455
|
-
|
|
1456
|
-
connect(sigName: "connection-added", callback: Manager.ConnectionAddedSignalCallback): number
|
|
1457
|
-
connect_after(sigName: "connection-added", callback: Manager.ConnectionAddedSignalCallback): number
|
|
1458
|
-
emit(sigName: "connection-added", object: Connection, ...args: any[]): void
|
|
1459
|
-
connect(sigName: "connection-removed", callback: Manager.ConnectionRemovedSignalCallback): number
|
|
1460
|
-
connect_after(sigName: "connection-removed", callback: Manager.ConnectionRemovedSignalCallback): number
|
|
1461
|
-
emit(sigName: "connection-removed", object: Connection, ...args: any[]): void
|
|
1462
|
-
|
|
1463
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.Manager
|
|
1464
|
-
|
|
1465
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1466
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1467
|
-
emit(sigName: string, ...args: any[]): void
|
|
1468
|
-
disconnect(id: number): void
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
class Manager extends GObject.Object {
|
|
1472
|
-
|
|
1473
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.Manager
|
|
1474
|
-
|
|
1475
|
-
static name: string
|
|
1476
|
-
static $gtype: GObject.GType<Manager>
|
|
1477
|
-
|
|
1478
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.Manager
|
|
1479
|
-
|
|
1480
|
-
constructor(config?: Manager.ConstructorProperties)
|
|
1481
|
-
constructor()
|
|
1482
|
-
static new(): Manager
|
|
1483
|
-
_init(config?: Manager.ConstructorProperties): void
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
module Network {
|
|
1487
|
-
|
|
1488
|
-
// Constructor properties interface
|
|
1489
|
-
|
|
1490
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1491
|
-
|
|
1492
|
-
// Own constructor properties of LibvirtGObject-1.0.LibvirtGObject.Network
|
|
1493
|
-
|
|
1494
|
-
handle?: any | null
|
|
1495
|
-
}
|
|
1496
|
-
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
interface Network {
|
|
1500
|
-
|
|
1501
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.Network
|
|
1502
|
-
|
|
1503
|
-
readonly handle: any
|
|
1504
|
-
|
|
1505
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.Network
|
|
1506
|
-
|
|
1507
|
-
parent: GObject.Object
|
|
1508
|
-
priv: NetworkPrivate
|
|
1509
|
-
|
|
1510
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.Network
|
|
1511
|
-
|
|
1512
|
-
get_config(flags: number): LibvirtGConfig.Network
|
|
1513
|
-
/**
|
|
1514
|
-
* This function fetches leases info of guests in the specified network. If the
|
|
1515
|
-
* optional parameter `mac` is specified, the returned list will contain only
|
|
1516
|
-
* lease info about a specific guest interface with `mac`. There can be multiple
|
|
1517
|
-
* leases for a single `mac` because this API supports DHCPv6 too.
|
|
1518
|
-
* @param mac The optional ASCII formatted MAC address of an interface
|
|
1519
|
-
* @param flags placeholder for flags, must be 0
|
|
1520
|
-
* @returns the list of network leases. Each object in the returned list should be unreffed with g_object_unref() and the list itself using g_list_free, when no longer needed.
|
|
1521
|
-
*/
|
|
1522
|
-
get_dhcp_leases(mac: string | null, flags: number): NetworkDHCPLease[]
|
|
1523
|
-
get_name(): string
|
|
1524
|
-
get_uuid(): string
|
|
1525
|
-
|
|
1526
|
-
// Own virtual methods of LibvirtGObject-1.0.LibvirtGObject.Network
|
|
1527
|
-
|
|
1528
|
-
vfunc_started(): void
|
|
1529
|
-
vfunc_stopped(): void
|
|
1530
|
-
|
|
1531
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.Network
|
|
1532
|
-
|
|
1533
|
-
connect(sigName: "notify::handle", callback: (($obj: Network, pspec: GObject.ParamSpec) => void)): number
|
|
1534
|
-
connect_after(sigName: "notify::handle", callback: (($obj: Network, pspec: GObject.ParamSpec) => void)): number
|
|
1535
|
-
emit(sigName: "notify::handle", ...args: any[]): void
|
|
1536
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1537
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1538
|
-
emit(sigName: string, ...args: any[]): void
|
|
1539
|
-
disconnect(id: number): void
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
|
-
class Network extends GObject.Object {
|
|
1543
|
-
|
|
1544
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.Network
|
|
1545
|
-
|
|
1546
|
-
static name: string
|
|
1547
|
-
static $gtype: GObject.GType<Network>
|
|
1548
|
-
|
|
1549
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.Network
|
|
1550
|
-
|
|
1551
|
-
constructor(config?: Network.ConstructorProperties)
|
|
1552
|
-
_init(config?: Network.ConstructorProperties): void
|
|
1553
|
-
}
|
|
1554
|
-
|
|
1555
|
-
module NetworkDHCPLease {
|
|
1556
|
-
|
|
1557
|
-
// Constructor properties interface
|
|
1558
|
-
|
|
1559
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1560
|
-
|
|
1561
|
-
// Own constructor properties of LibvirtGObject-1.0.LibvirtGObject.NetworkDHCPLease
|
|
1562
|
-
|
|
1563
|
-
handle?: any | null
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
|
-
}
|
|
1567
|
-
|
|
1568
|
-
interface NetworkDHCPLease {
|
|
1569
|
-
|
|
1570
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.NetworkDHCPLease
|
|
1571
|
-
|
|
1572
|
-
readonly handle: any
|
|
1573
|
-
|
|
1574
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.NetworkDHCPLease
|
|
1575
|
-
|
|
1576
|
-
parent: GObject.Object
|
|
1577
|
-
priv: NetworkDHCPLeasePrivate
|
|
1578
|
-
|
|
1579
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.NetworkDHCPLease
|
|
1580
|
-
|
|
1581
|
-
get_client_id(): string
|
|
1582
|
-
get_expiry_time(): number
|
|
1583
|
-
get_hostname(): string
|
|
1584
|
-
get_iaid(): string
|
|
1585
|
-
get_iface(): string
|
|
1586
|
-
get_ip(): string
|
|
1587
|
-
get_ip_type(): number
|
|
1588
|
-
get_mac(): string
|
|
1589
|
-
get_prefix(): number
|
|
1590
|
-
|
|
1591
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.NetworkDHCPLease
|
|
1592
|
-
|
|
1593
|
-
connect(sigName: "notify::handle", callback: (($obj: NetworkDHCPLease, pspec: GObject.ParamSpec) => void)): number
|
|
1594
|
-
connect_after(sigName: "notify::handle", callback: (($obj: NetworkDHCPLease, pspec: GObject.ParamSpec) => void)): number
|
|
1595
|
-
emit(sigName: "notify::handle", ...args: any[]): void
|
|
1596
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1597
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1598
|
-
emit(sigName: string, ...args: any[]): void
|
|
1599
|
-
disconnect(id: number): void
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
class NetworkDHCPLease extends GObject.Object {
|
|
1603
|
-
|
|
1604
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.NetworkDHCPLease
|
|
1605
|
-
|
|
1606
|
-
static name: string
|
|
1607
|
-
static $gtype: GObject.GType<NetworkDHCPLease>
|
|
1608
|
-
|
|
1609
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.NetworkDHCPLease
|
|
1610
|
-
|
|
1611
|
-
constructor(config?: NetworkDHCPLease.ConstructorProperties)
|
|
1612
|
-
_init(config?: NetworkDHCPLease.ConstructorProperties): void
|
|
1613
|
-
}
|
|
1614
|
-
|
|
1615
|
-
module NetworkFilter {
|
|
1616
|
-
|
|
1617
|
-
// Constructor properties interface
|
|
1618
|
-
|
|
1619
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1620
|
-
|
|
1621
|
-
// Own constructor properties of LibvirtGObject-1.0.LibvirtGObject.NetworkFilter
|
|
1622
|
-
|
|
1623
|
-
handle?: any | null
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
|
-
interface NetworkFilter {
|
|
1629
|
-
|
|
1630
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.NetworkFilter
|
|
1631
|
-
|
|
1632
|
-
readonly handle: any
|
|
1633
|
-
|
|
1634
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.NetworkFilter
|
|
1635
|
-
|
|
1636
|
-
parent: GObject.Object
|
|
1637
|
-
priv: NetworkFilterPrivate
|
|
1638
|
-
|
|
1639
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.NetworkFilter
|
|
1640
|
-
|
|
1641
|
-
get_config(flags: number): LibvirtGConfig.NetworkFilter
|
|
1642
|
-
get_name(): string
|
|
1643
|
-
get_uuid(): string
|
|
1644
|
-
|
|
1645
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.NetworkFilter
|
|
1646
|
-
|
|
1647
|
-
connect(sigName: "notify::handle", callback: (($obj: NetworkFilter, pspec: GObject.ParamSpec) => void)): number
|
|
1648
|
-
connect_after(sigName: "notify::handle", callback: (($obj: NetworkFilter, pspec: GObject.ParamSpec) => void)): number
|
|
1649
|
-
emit(sigName: "notify::handle", ...args: any[]): void
|
|
1650
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1651
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1652
|
-
emit(sigName: string, ...args: any[]): void
|
|
1653
|
-
disconnect(id: number): void
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
class NetworkFilter extends GObject.Object {
|
|
1657
|
-
|
|
1658
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.NetworkFilter
|
|
1659
|
-
|
|
1660
|
-
static name: string
|
|
1661
|
-
static $gtype: GObject.GType<NetworkFilter>
|
|
1662
|
-
|
|
1663
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.NetworkFilter
|
|
1664
|
-
|
|
1665
|
-
constructor(config?: NetworkFilter.ConstructorProperties)
|
|
1666
|
-
_init(config?: NetworkFilter.ConstructorProperties): void
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
module NodeDevice {
|
|
1670
|
-
|
|
1671
|
-
// Constructor properties interface
|
|
1672
|
-
|
|
1673
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1674
|
-
|
|
1675
|
-
// Own constructor properties of LibvirtGObject-1.0.LibvirtGObject.NodeDevice
|
|
1676
|
-
|
|
1677
|
-
handle?: any | null
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
interface NodeDevice {
|
|
1683
|
-
|
|
1684
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.NodeDevice
|
|
1685
|
-
|
|
1686
|
-
readonly handle: any
|
|
1687
|
-
|
|
1688
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.NodeDevice
|
|
1689
|
-
|
|
1690
|
-
parent: GObject.Object
|
|
1691
|
-
priv: NodeDevicePrivate
|
|
1692
|
-
|
|
1693
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.NodeDevice
|
|
1694
|
-
|
|
1695
|
-
get_config(flags: number): LibvirtGConfig.NodeDevice
|
|
1696
|
-
get_name(): string
|
|
1697
|
-
|
|
1698
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.NodeDevice
|
|
1699
|
-
|
|
1700
|
-
connect(sigName: "notify::handle", callback: (($obj: NodeDevice, pspec: GObject.ParamSpec) => void)): number
|
|
1701
|
-
connect_after(sigName: "notify::handle", callback: (($obj: NodeDevice, pspec: GObject.ParamSpec) => void)): number
|
|
1702
|
-
emit(sigName: "notify::handle", ...args: any[]): void
|
|
1703
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1704
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1705
|
-
emit(sigName: string, ...args: any[]): void
|
|
1706
|
-
disconnect(id: number): void
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
class NodeDevice extends GObject.Object {
|
|
1710
|
-
|
|
1711
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.NodeDevice
|
|
1712
|
-
|
|
1713
|
-
static name: string
|
|
1714
|
-
static $gtype: GObject.GType<NodeDevice>
|
|
1715
|
-
|
|
1716
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.NodeDevice
|
|
1717
|
-
|
|
1718
|
-
constructor(config?: NodeDevice.ConstructorProperties)
|
|
1719
|
-
_init(config?: NodeDevice.ConstructorProperties): void
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
module Secret {
|
|
1723
|
-
|
|
1724
|
-
// Constructor properties interface
|
|
1725
|
-
|
|
1726
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1727
|
-
|
|
1728
|
-
// Own constructor properties of LibvirtGObject-1.0.LibvirtGObject.Secret
|
|
1729
|
-
|
|
1730
|
-
handle?: any | null
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
|
-
interface Secret {
|
|
1736
|
-
|
|
1737
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.Secret
|
|
1738
|
-
|
|
1739
|
-
readonly handle: any
|
|
1740
|
-
|
|
1741
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.Secret
|
|
1742
|
-
|
|
1743
|
-
parent: GObject.Object
|
|
1744
|
-
priv: SecretPrivate
|
|
1745
|
-
|
|
1746
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.Secret
|
|
1747
|
-
|
|
1748
|
-
get_config(flags: number): LibvirtGConfig.Secret
|
|
1749
|
-
get_name(): string
|
|
1750
|
-
get_uuid(): string
|
|
1751
|
-
|
|
1752
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.Secret
|
|
1753
|
-
|
|
1754
|
-
connect(sigName: "notify::handle", callback: (($obj: Secret, pspec: GObject.ParamSpec) => void)): number
|
|
1755
|
-
connect_after(sigName: "notify::handle", callback: (($obj: Secret, pspec: GObject.ParamSpec) => void)): number
|
|
1756
|
-
emit(sigName: "notify::handle", ...args: any[]): void
|
|
1757
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1758
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1759
|
-
emit(sigName: string, ...args: any[]): void
|
|
1760
|
-
disconnect(id: number): void
|
|
1761
|
-
}
|
|
1762
|
-
|
|
1763
|
-
class Secret extends GObject.Object {
|
|
1764
|
-
|
|
1765
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.Secret
|
|
1766
|
-
|
|
1767
|
-
static name: string
|
|
1768
|
-
static $gtype: GObject.GType<Secret>
|
|
1769
|
-
|
|
1770
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.Secret
|
|
1771
|
-
|
|
1772
|
-
constructor(config?: Secret.ConstructorProperties)
|
|
1773
|
-
_init(config?: Secret.ConstructorProperties): void
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
module StoragePool {
|
|
1777
|
-
|
|
1778
|
-
// Constructor properties interface
|
|
1779
|
-
|
|
1780
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1781
|
-
|
|
1782
|
-
// Own constructor properties of LibvirtGObject-1.0.LibvirtGObject.StoragePool
|
|
1783
|
-
|
|
1784
|
-
handle?: any | null
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
}
|
|
1788
|
-
|
|
1789
|
-
interface StoragePool {
|
|
1790
|
-
|
|
1791
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.StoragePool
|
|
1792
|
-
|
|
1793
|
-
readonly handle: any
|
|
1794
|
-
|
|
1795
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.StoragePool
|
|
1796
|
-
|
|
1797
|
-
parent: GObject.Object
|
|
1798
|
-
priv: StoragePoolPrivate
|
|
1799
|
-
|
|
1800
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.StoragePool
|
|
1801
|
-
|
|
1802
|
-
build(flags: number): boolean
|
|
1803
|
-
build_async(flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1804
|
-
|
|
1805
|
-
// Overloads of build_async
|
|
1806
|
-
|
|
1807
|
-
/**
|
|
1808
|
-
* Promisified version of {@link build_async}
|
|
1809
|
-
*
|
|
1810
|
-
*
|
|
1811
|
-
* @param flags the flags
|
|
1812
|
-
* @param cancellable cancellation object
|
|
1813
|
-
* @returns A Promise of: #True on success, #False otherwise.
|
|
1814
|
-
*/
|
|
1815
|
-
build_async(flags: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
1816
|
-
build_finish(result: Gio.AsyncResult): boolean
|
|
1817
|
-
create_volume(conf: LibvirtGConfig.StorageVol): StorageVol
|
|
1818
|
-
delete(flags: number): boolean
|
|
1819
|
-
delete_async(flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1820
|
-
|
|
1821
|
-
// Overloads of delete_async
|
|
1822
|
-
|
|
1823
|
-
/**
|
|
1824
|
-
* Promisified version of {@link delete_async}
|
|
1825
|
-
*
|
|
1826
|
-
*
|
|
1827
|
-
* @param flags the flags
|
|
1828
|
-
* @param cancellable cancellation object
|
|
1829
|
-
* @returns A Promise of: #True on success, #False otherwise.
|
|
1830
|
-
*/
|
|
1831
|
-
delete_async(flags: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
1832
|
-
delete_finish(result: Gio.AsyncResult): boolean
|
|
1833
|
-
get_active(): boolean
|
|
1834
|
-
get_autostart(): boolean
|
|
1835
|
-
get_config(flags: number): LibvirtGConfig.StoragePool
|
|
1836
|
-
get_info(): StoragePoolInfo
|
|
1837
|
-
get_name(): string
|
|
1838
|
-
get_persistent(): boolean
|
|
1839
|
-
get_uuid(): string
|
|
1840
|
-
get_volume(name: string): StorageVol
|
|
1841
|
-
get_volumes(): StorageVol[]
|
|
1842
|
-
refresh(cancellable: Gio.Cancellable | null): boolean
|
|
1843
|
-
refresh_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1844
|
-
|
|
1845
|
-
// Overloads of refresh_async
|
|
1846
|
-
|
|
1847
|
-
/**
|
|
1848
|
-
* Promisified version of {@link refresh_async}
|
|
1849
|
-
*
|
|
1850
|
-
*
|
|
1851
|
-
* @param cancellable cancellation object
|
|
1852
|
-
* @returns A Promise of the result of {@link refresh_async}
|
|
1853
|
-
*/
|
|
1854
|
-
refresh_async(cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
1855
|
-
refresh_finish(result: Gio.AsyncResult): boolean
|
|
1856
|
-
/**
|
|
1857
|
-
* Sets whether or not storage pool `pool` is started automatically on boot.
|
|
1858
|
-
* @param autostart Whether or not to autostart
|
|
1859
|
-
* @returns #TRUE on success, #FALSE otherwise.
|
|
1860
|
-
*/
|
|
1861
|
-
set_autostart(autostart: boolean): boolean
|
|
1862
|
-
start(flags: number): boolean
|
|
1863
|
-
start_async(flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1864
|
-
|
|
1865
|
-
// Overloads of start_async
|
|
1866
|
-
|
|
1867
|
-
/**
|
|
1868
|
-
* Promisified version of {@link start_async}
|
|
1869
|
-
*
|
|
1870
|
-
*
|
|
1871
|
-
* @param flags the flags
|
|
1872
|
-
* @param cancellable cancellation object
|
|
1873
|
-
* @returns A Promise of: #True on success, #False otherwise.
|
|
1874
|
-
*/
|
|
1875
|
-
start_async(flags: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
1876
|
-
start_finish(result: Gio.AsyncResult): boolean
|
|
1877
|
-
stop(): boolean
|
|
1878
|
-
stop_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1879
|
-
|
|
1880
|
-
// Overloads of stop_async
|
|
1881
|
-
|
|
1882
|
-
/**
|
|
1883
|
-
* Promisified version of {@link stop_async}
|
|
1884
|
-
*
|
|
1885
|
-
*
|
|
1886
|
-
* @param cancellable cancellation object
|
|
1887
|
-
* @returns A Promise of: #True on success, #False otherwise.
|
|
1888
|
-
*/
|
|
1889
|
-
stop_async(cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
1890
|
-
stop_finish(result: Gio.AsyncResult): boolean
|
|
1891
|
-
undefine(): boolean
|
|
1892
|
-
undefine_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1893
|
-
|
|
1894
|
-
// Overloads of undefine_async
|
|
1895
|
-
|
|
1896
|
-
/**
|
|
1897
|
-
* Promisified version of {@link undefine_async}
|
|
1898
|
-
*
|
|
1899
|
-
*
|
|
1900
|
-
* @param cancellable cancellation object
|
|
1901
|
-
* @returns A Promise of: #True on success, #False otherwise.
|
|
1902
|
-
*/
|
|
1903
|
-
undefine_async(cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
1904
|
-
undefine_finish(result: Gio.AsyncResult): boolean
|
|
1905
|
-
|
|
1906
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.StoragePool
|
|
1907
|
-
|
|
1908
|
-
connect(sigName: "notify::handle", callback: (($obj: StoragePool, pspec: GObject.ParamSpec) => void)): number
|
|
1909
|
-
connect_after(sigName: "notify::handle", callback: (($obj: StoragePool, pspec: GObject.ParamSpec) => void)): number
|
|
1910
|
-
emit(sigName: "notify::handle", ...args: any[]): void
|
|
1911
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1912
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1913
|
-
emit(sigName: string, ...args: any[]): void
|
|
1914
|
-
disconnect(id: number): void
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
class StoragePool extends GObject.Object {
|
|
1918
|
-
|
|
1919
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.StoragePool
|
|
1920
|
-
|
|
1921
|
-
static name: string
|
|
1922
|
-
static $gtype: GObject.GType<StoragePool>
|
|
1923
|
-
|
|
1924
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.StoragePool
|
|
1925
|
-
|
|
1926
|
-
constructor(config?: StoragePool.ConstructorProperties)
|
|
1927
|
-
_init(config?: StoragePool.ConstructorProperties): void
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
|
-
module StorageVol {
|
|
1931
|
-
|
|
1932
|
-
// Constructor properties interface
|
|
8
|
+
import './libvirtgobject-1.0-ambient.d.ts';
|
|
1933
9
|
|
|
1934
|
-
|
|
10
|
+
/**
|
|
11
|
+
* LibvirtGObject-1.0
|
|
12
|
+
*/
|
|
1935
13
|
|
|
1936
|
-
|
|
14
|
+
import type LibvirtGLib from '@girs/libvirtglib-1.0';
|
|
15
|
+
import type GLib from '@girs/glib-2.0';
|
|
16
|
+
import type LibvirtGConfig from '@girs/libvirtgconfig-1.0';
|
|
17
|
+
import type libxml2 from '@girs/libxml2-2.0';
|
|
18
|
+
import type GObject from '@girs/gobject-2.0';
|
|
19
|
+
import type Gio from '@girs/gio-2.0';
|
|
20
|
+
import type GModule from '@girs/gmodule-2.0';
|
|
1937
21
|
|
|
1938
|
-
|
|
1939
|
-
|
|
22
|
+
export namespace LibvirtGObject {
|
|
23
|
+
enum DomainDeleteFlags {
|
|
24
|
+
/**
|
|
25
|
+
* No flags
|
|
26
|
+
*/
|
|
27
|
+
NONE,
|
|
28
|
+
/**
|
|
29
|
+
* Also remove associated saved state (if present).
|
|
30
|
+
*/
|
|
31
|
+
SAVED_STATE,
|
|
32
|
+
/**
|
|
33
|
+
* If last use of domain, then also
|
|
34
|
+
* remove any snapshot metadata.
|
|
35
|
+
*/
|
|
36
|
+
SNAPSHOTS_METADATA,
|
|
37
|
+
REMOVE_NVRAM,
|
|
38
|
+
KEEP_NVRAM,
|
|
1940
39
|
}
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
priv: StorageVolPrivate
|
|
1955
|
-
|
|
1956
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.StorageVol
|
|
1957
|
-
|
|
1958
|
-
/**
|
|
1959
|
-
* Deletes the storage volume `vol`.
|
|
1960
|
-
* @param flags the flags
|
|
1961
|
-
* @returns %TRUE on success, %FALSE otherwise
|
|
1962
|
-
*/
|
|
1963
|
-
delete(flags: number): boolean
|
|
1964
|
-
download(stream: Stream, offset: number, length: number, flags: number): boolean
|
|
1965
|
-
get_config(flags: number): LibvirtGConfig.StorageVol
|
|
1966
|
-
get_info(): StorageVolInfo
|
|
1967
|
-
get_name(): string
|
|
1968
|
-
get_path(): string
|
|
1969
|
-
/**
|
|
1970
|
-
* Changes the capacity of the storage volume `vol` to `capacity`.
|
|
1971
|
-
* @param capacity the new capacity of the volume
|
|
1972
|
-
* @param flags the flags
|
|
1973
|
-
* @returns #TRUE success, #FALSE otherwise
|
|
1974
|
-
*/
|
|
1975
|
-
resize(capacity: number, flags: StorageVolResizeFlags): boolean
|
|
1976
|
-
upload(stream: Stream, offset: number, length: number, flags: number): boolean
|
|
1977
|
-
|
|
1978
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.StorageVol
|
|
1979
|
-
|
|
1980
|
-
connect(sigName: "notify::handle", callback: (($obj: StorageVol, pspec: GObject.ParamSpec) => void)): number
|
|
1981
|
-
connect_after(sigName: "notify::handle", callback: (($obj: StorageVol, pspec: GObject.ParamSpec) => void)): number
|
|
1982
|
-
emit(sigName: "notify::handle", ...args: any[]): void
|
|
1983
|
-
connect(sigName: "notify::pool", callback: (($obj: StorageVol, pspec: GObject.ParamSpec) => void)): number
|
|
1984
|
-
connect_after(sigName: "notify::pool", callback: (($obj: StorageVol, pspec: GObject.ParamSpec) => void)): number
|
|
1985
|
-
emit(sigName: "notify::pool", ...args: any[]): void
|
|
1986
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1987
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1988
|
-
emit(sigName: string, ...args: any[]): void
|
|
1989
|
-
disconnect(id: number): void
|
|
1990
|
-
}
|
|
1991
|
-
|
|
1992
|
-
class StorageVol extends GObject.Object {
|
|
1993
|
-
|
|
1994
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.StorageVol
|
|
1995
|
-
|
|
1996
|
-
static name: string
|
|
1997
|
-
static $gtype: GObject.GType<StorageVol>
|
|
1998
|
-
|
|
1999
|
-
// Constructors of LibvirtGObject-1.0.LibvirtGObject.StorageVol
|
|
2000
|
-
|
|
2001
|
-
constructor(config?: StorageVol.ConstructorProperties)
|
|
2002
|
-
_init(config?: StorageVol.ConstructorProperties): void
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
module Stream {
|
|
2006
|
-
|
|
2007
|
-
// Constructor properties interface
|
|
2008
|
-
|
|
2009
|
-
interface ConstructorProperties extends Gio.IOStream.ConstructorProperties {
|
|
2010
|
-
|
|
2011
|
-
// Own constructor properties of LibvirtGObject-1.0.LibvirtGObject.Stream
|
|
2012
|
-
|
|
2013
|
-
handle?: any | null
|
|
40
|
+
enum DomainRebootFlags {
|
|
41
|
+
/**
|
|
42
|
+
* No flags, hypervisor choice
|
|
43
|
+
*/
|
|
44
|
+
NONE,
|
|
45
|
+
/**
|
|
46
|
+
* Send ACPI event
|
|
47
|
+
*/
|
|
48
|
+
ACPI_POWER_BTN,
|
|
49
|
+
/**
|
|
50
|
+
* Use guest agent
|
|
51
|
+
*/
|
|
52
|
+
GUEST_AGENT,
|
|
2014
53
|
}
|
|
54
|
+
enum DomainShutdownFlags {
|
|
55
|
+
/**
|
|
56
|
+
* No flags, hypervisor choice
|
|
57
|
+
*/
|
|
58
|
+
NONE,
|
|
59
|
+
/**
|
|
60
|
+
* Send ACPI event
|
|
61
|
+
*/
|
|
62
|
+
ACPI_POWER_BTN,
|
|
63
|
+
/**
|
|
64
|
+
* Use guest agent
|
|
65
|
+
*/
|
|
66
|
+
GUEST_AGENT,
|
|
67
|
+
}
|
|
68
|
+
enum DomainSnapshotCreateFlags {
|
|
69
|
+
/**
|
|
70
|
+
* No flags
|
|
71
|
+
*/
|
|
72
|
+
NONE,
|
|
73
|
+
/**
|
|
74
|
+
* Restore or alter metadata
|
|
75
|
+
*/
|
|
76
|
+
REDEFINE,
|
|
77
|
+
/**
|
|
78
|
+
* With redefine, make snapshot current
|
|
79
|
+
*/
|
|
80
|
+
CURRENT,
|
|
81
|
+
/**
|
|
82
|
+
* Make snapshot without remembering it
|
|
83
|
+
*/
|
|
84
|
+
NO_METADATA,
|
|
85
|
+
/**
|
|
86
|
+
* Stop running guest after snapshot
|
|
87
|
+
*/
|
|
88
|
+
HALT,
|
|
89
|
+
/**
|
|
90
|
+
* Disk snapshot, not system checkpoint
|
|
91
|
+
*/
|
|
92
|
+
DISK_ONLY,
|
|
93
|
+
/**
|
|
94
|
+
* Reuse any existing external files
|
|
95
|
+
*/
|
|
96
|
+
REUSE_EXT,
|
|
97
|
+
/**
|
|
98
|
+
* Use guest agent to quiesce all mounter
|
|
99
|
+
* file systems within the domain
|
|
100
|
+
*/
|
|
101
|
+
QUIESCE,
|
|
102
|
+
/**
|
|
103
|
+
* Atomically avoid partial changes
|
|
104
|
+
*/
|
|
105
|
+
ATOMIC,
|
|
106
|
+
}
|
|
107
|
+
enum DomainSnapshotDeleteFlags {
|
|
108
|
+
/**
|
|
109
|
+
* Also delete children
|
|
110
|
+
*/
|
|
111
|
+
CHILDREN,
|
|
112
|
+
/**
|
|
113
|
+
* Delete just metadata
|
|
114
|
+
*/
|
|
115
|
+
METADATA_ONLY,
|
|
116
|
+
/**
|
|
117
|
+
* Delete just children
|
|
118
|
+
*/
|
|
119
|
+
CHILDREN_ONLY,
|
|
120
|
+
}
|
|
121
|
+
enum DomainSnapshotListFlags {
|
|
122
|
+
/**
|
|
123
|
+
* List all snapshots
|
|
124
|
+
*/
|
|
125
|
+
ALL,
|
|
126
|
+
/**
|
|
127
|
+
* List all descendants, not just
|
|
128
|
+
* children, when listing a snapshot.
|
|
129
|
+
* For historical reasons, groups do not use contiguous bits.
|
|
130
|
+
*/
|
|
131
|
+
DESCENDANTS,
|
|
132
|
+
/**
|
|
133
|
+
* Filter by snapshots with no parents, when listing a domain
|
|
134
|
+
*/
|
|
135
|
+
ROOTS,
|
|
136
|
+
/**
|
|
137
|
+
* Filter by snapshots which have metadata
|
|
138
|
+
*/
|
|
139
|
+
METADATA,
|
|
140
|
+
/**
|
|
141
|
+
* Filter by snapshots with no children
|
|
142
|
+
*/
|
|
143
|
+
LEAVES,
|
|
144
|
+
/**
|
|
145
|
+
* Filter by snapshots that have children
|
|
146
|
+
*/
|
|
147
|
+
NO_LEAVES,
|
|
148
|
+
/**
|
|
149
|
+
* Filter by snapshots with no metadata
|
|
150
|
+
*/
|
|
151
|
+
NO_METADATA,
|
|
152
|
+
/**
|
|
153
|
+
* Filter by snapshots taken while guest was shut off
|
|
154
|
+
*/
|
|
155
|
+
INACTIVE,
|
|
156
|
+
/**
|
|
157
|
+
* Filter by snapshots taken while guest was active, and with memory state
|
|
158
|
+
*/
|
|
159
|
+
ACTIVE,
|
|
160
|
+
/**
|
|
161
|
+
* Filter by snapshots taken while guest was active, but without memory state
|
|
162
|
+
*/
|
|
163
|
+
DISK_ONLY,
|
|
164
|
+
/**
|
|
165
|
+
* Filter by snapshots stored internal to disk images
|
|
166
|
+
*/
|
|
167
|
+
INTERNAL,
|
|
168
|
+
/**
|
|
169
|
+
* Filter by snapshots that use files external to disk images
|
|
170
|
+
*/
|
|
171
|
+
EXTERNAL,
|
|
172
|
+
}
|
|
173
|
+
enum DomainSnapshotRevertFlags {
|
|
174
|
+
/**
|
|
175
|
+
* Run after revert
|
|
176
|
+
*/
|
|
177
|
+
RUNNING,
|
|
178
|
+
/**
|
|
179
|
+
* Pause after revert
|
|
180
|
+
*/
|
|
181
|
+
PAUSED,
|
|
182
|
+
/**
|
|
183
|
+
* Allow risky reverts
|
|
184
|
+
*/
|
|
185
|
+
FORCE,
|
|
186
|
+
}
|
|
187
|
+
enum DomainState {
|
|
188
|
+
NONE,
|
|
189
|
+
RUNNING,
|
|
190
|
+
BLOCKED,
|
|
191
|
+
PAUSED,
|
|
192
|
+
SHUTDOWN,
|
|
193
|
+
SHUTOFF,
|
|
194
|
+
CRASHED,
|
|
195
|
+
PMSUSPENDED,
|
|
196
|
+
}
|
|
197
|
+
enum DomainUpdateDeviceFlags {
|
|
198
|
+
/**
|
|
199
|
+
* Update current domain state
|
|
200
|
+
*/
|
|
201
|
+
CURRENT,
|
|
202
|
+
/**
|
|
203
|
+
* Update state for only active domains
|
|
204
|
+
*/
|
|
205
|
+
LIVE,
|
|
206
|
+
/**
|
|
207
|
+
* Update state for persistent state only
|
|
208
|
+
*/
|
|
209
|
+
CONFIG,
|
|
210
|
+
}
|
|
211
|
+
enum DomainXMLFlags {
|
|
212
|
+
/**
|
|
213
|
+
* No flags
|
|
214
|
+
*/
|
|
215
|
+
NONE,
|
|
216
|
+
/**
|
|
217
|
+
* Dump security sensitive information too
|
|
218
|
+
*/
|
|
219
|
+
SECURE,
|
|
220
|
+
/**
|
|
221
|
+
* Dump inactive domain information
|
|
222
|
+
*/
|
|
223
|
+
INACTIVE,
|
|
224
|
+
/**
|
|
225
|
+
* Update guest CPU requirements according to host CPU
|
|
226
|
+
*/
|
|
227
|
+
UPDATE_CPU,
|
|
228
|
+
}
|
|
229
|
+
enum IPAddrType {
|
|
230
|
+
/**
|
|
231
|
+
* IPv4 Address.
|
|
232
|
+
*/
|
|
233
|
+
IPV4,
|
|
234
|
+
/**
|
|
235
|
+
* IPv6 Address.
|
|
236
|
+
*/
|
|
237
|
+
IPV6,
|
|
238
|
+
}
|
|
239
|
+
enum StoragePoolState {
|
|
240
|
+
INACTIVE,
|
|
241
|
+
BUILDING,
|
|
242
|
+
RUNNING,
|
|
243
|
+
DEGRADED,
|
|
244
|
+
INACCESSIBLE,
|
|
245
|
+
}
|
|
246
|
+
enum StorageVolResizeFlags {
|
|
247
|
+
/**
|
|
248
|
+
* No flags
|
|
249
|
+
*/
|
|
250
|
+
NONE,
|
|
251
|
+
/**
|
|
252
|
+
* force allocation of new size
|
|
253
|
+
*/
|
|
254
|
+
ALLOCATE,
|
|
255
|
+
/**
|
|
256
|
+
* size is relative to current
|
|
257
|
+
*/
|
|
258
|
+
DELTA,
|
|
259
|
+
/**
|
|
260
|
+
* allow decrease in capacity. This combined
|
|
261
|
+
* with #GVIR_STORAGE_VOL_RESIZE_DELTA, implies a negative delta.
|
|
262
|
+
*/
|
|
263
|
+
SHRINK,
|
|
264
|
+
}
|
|
265
|
+
enum StorageVolType {
|
|
266
|
+
FILE,
|
|
267
|
+
BLOCK,
|
|
268
|
+
DIR,
|
|
269
|
+
}
|
|
270
|
+
function init_object(argv?: string[] | null): string[] | null;
|
|
271
|
+
function init_object_check(argv?: string[] | null): [boolean, string[] | null];
|
|
272
|
+
interface StreamIOFunc {
|
|
273
|
+
(stream: Stream, cond: StreamIOCondition, opaque?: any | null): boolean;
|
|
274
|
+
}
|
|
275
|
+
interface StreamSinkFunc {
|
|
276
|
+
(stream: Stream): number;
|
|
277
|
+
}
|
|
278
|
+
interface StreamSourceFunc {
|
|
279
|
+
(stream: Stream): number;
|
|
280
|
+
}
|
|
281
|
+
type ConnectionHandle = object | null;
|
|
282
|
+
type DomainHandle = object | null;
|
|
283
|
+
type DomainSnapshotHandle = object | null;
|
|
284
|
+
type InterfaceHandle = object | null;
|
|
285
|
+
type NetworkFilterHandle = object | null;
|
|
286
|
+
type NetworkHandle = object | null;
|
|
287
|
+
type NodeDeviceHandle = object | null;
|
|
288
|
+
type SecretHandle = object | null;
|
|
289
|
+
type StoragePoolHandle = object | null;
|
|
290
|
+
type StorageVolHandle = object | null;
|
|
291
|
+
type StreamHandle = object | null;
|
|
292
|
+
enum DomainStartFlags {
|
|
293
|
+
NONE,
|
|
294
|
+
PAUSED,
|
|
295
|
+
AUTODESTROY,
|
|
296
|
+
BYPASS_CACHE,
|
|
297
|
+
FORCE_BOOT,
|
|
298
|
+
}
|
|
299
|
+
enum StreamIOCondition {
|
|
300
|
+
READABLE,
|
|
301
|
+
WRITABLE,
|
|
302
|
+
HANGUP,
|
|
303
|
+
ERROR,
|
|
304
|
+
}
|
|
305
|
+
module Connection {
|
|
306
|
+
// Signal callback interfaces
|
|
2015
307
|
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.Stream
|
|
2021
|
-
|
|
2022
|
-
readonly handle: any
|
|
2023
|
-
|
|
2024
|
-
// Own fields of LibvirtGObject-1.0.LibvirtGObject.Stream
|
|
2025
|
-
|
|
2026
|
-
parent_instance: Gio.IOStream & GObject.Object
|
|
2027
|
-
priv: StreamPrivate
|
|
2028
|
-
|
|
2029
|
-
// Owm methods of LibvirtGObject-1.0.LibvirtGObject.Stream
|
|
2030
|
-
|
|
2031
|
-
/**
|
|
2032
|
-
* Adds a watch for `stream` to the mainloop
|
|
2033
|
-
* @param priority the priority of the #GVirStream source
|
|
2034
|
-
* @param cond the conditions to watch for (bitfield of #GVirStreamIOCondition)
|
|
2035
|
-
* @param func the function to call when the condition is satisfied
|
|
2036
|
-
* @returns the event source id
|
|
2037
|
-
*/
|
|
2038
|
-
add_watch(priority: number, cond: StreamIOCondition, func: StreamIOFunc): number
|
|
2039
|
-
/**
|
|
2040
|
-
* Receive data (up to `size` bytes) from a stream.
|
|
2041
|
-
* On error -1 is returned and `error` is set accordingly.
|
|
2042
|
-
*
|
|
2043
|
-
* gvir_stream_receive() can return any number of bytes, up to
|
|
2044
|
-
* `size`. If more than `size` bytes have been received, the additional
|
|
2045
|
-
* data will be returned in future calls to gvir_stream_receive().
|
|
2046
|
-
*
|
|
2047
|
-
* If there is no data available, a %G_IO_ERROR_WOULD_BLOCK error will be
|
|
2048
|
-
* returned.
|
|
2049
|
-
* @param buffer a buffer to read data into (which should be at least `size` bytes long).
|
|
2050
|
-
* @param cancellable a %GCancellable or %NULL
|
|
2051
|
-
* @returns Number of bytes read, or 0 if the end of stream reached, or -1 on error.
|
|
2052
|
-
*/
|
|
2053
|
-
receive(buffer: Uint8Array, cancellable: Gio.Cancellable | null): number
|
|
2054
|
-
/**
|
|
2055
|
-
* Receive the entire data stream, sending the data to the
|
|
2056
|
-
* requested data sink. This is simply a convenient alternative
|
|
2057
|
-
* to virStreamRecv, for apps that do blocking-I/o.
|
|
2058
|
-
* @param cancellable cancellation notifier
|
|
2059
|
-
* @param func the callback for writing data to application
|
|
2060
|
-
* @returns the number of bytes consumed or -1 upon error
|
|
2061
|
-
*/
|
|
2062
|
-
receive_all(cancellable: Gio.Cancellable | null, func: StreamSinkFunc): number
|
|
2063
|
-
/**
|
|
2064
|
-
* Send data (up to `size` bytes) from a stream.
|
|
2065
|
-
* On error -1 is returned and `error` is set accordingly.
|
|
2066
|
-
*
|
|
2067
|
-
* gvir_stream_send() can return any number of bytes, up to
|
|
2068
|
-
* `size`. If more than `size` bytes have been sendd, the additional
|
|
2069
|
-
* data will be returned in future calls to gvir_stream_send().
|
|
2070
|
-
*
|
|
2071
|
-
* If there is no data available, a %G_IO_ERROR_WOULD_BLOCK error will be
|
|
2072
|
-
* returned.
|
|
2073
|
-
* @param buffer a buffer to write data from (which should be at least `size` bytes long).
|
|
2074
|
-
* @param size the number of bytes you want to write to the stream
|
|
2075
|
-
* @param cancellable a %GCancellable or %NULL
|
|
2076
|
-
* @returns Number of bytes written.
|
|
2077
|
-
*/
|
|
2078
|
-
send(buffer: string, size: number, cancellable: Gio.Cancellable | null): number
|
|
2079
|
-
/**
|
|
2080
|
-
* Send the entire data stream, sending the data to the
|
|
2081
|
-
* requested data source. This is simply a convenient alternative
|
|
2082
|
-
* to virStreamRecv, for apps that do blocking-I/o.
|
|
2083
|
-
* @param cancellable cancellation notifier
|
|
2084
|
-
* @param func the callback for writing data to application
|
|
2085
|
-
* @returns the number of bytes consumed or -1 upon error
|
|
2086
|
-
*/
|
|
2087
|
-
send_all(cancellable: Gio.Cancellable | null, func: StreamSourceFunc): number
|
|
2088
|
-
|
|
2089
|
-
// Class property signals of LibvirtGObject-1.0.LibvirtGObject.Stream
|
|
2090
|
-
|
|
2091
|
-
connect(sigName: "notify::handle", callback: (($obj: Stream, pspec: GObject.ParamSpec) => void)): number
|
|
2092
|
-
connect_after(sigName: "notify::handle", callback: (($obj: Stream, pspec: GObject.ParamSpec) => void)): number
|
|
2093
|
-
emit(sigName: "notify::handle", ...args: any[]): void
|
|
2094
|
-
connect(sigName: "notify::closed", callback: (($obj: Stream, pspec: GObject.ParamSpec) => void)): number
|
|
2095
|
-
connect_after(sigName: "notify::closed", callback: (($obj: Stream, pspec: GObject.ParamSpec) => void)): number
|
|
2096
|
-
emit(sigName: "notify::closed", ...args: any[]): void
|
|
2097
|
-
connect(sigName: "notify::input-stream", callback: (($obj: Stream, pspec: GObject.ParamSpec) => void)): number
|
|
2098
|
-
connect_after(sigName: "notify::input-stream", callback: (($obj: Stream, pspec: GObject.ParamSpec) => void)): number
|
|
2099
|
-
emit(sigName: "notify::input-stream", ...args: any[]): void
|
|
2100
|
-
connect(sigName: "notify::output-stream", callback: (($obj: Stream, pspec: GObject.ParamSpec) => void)): number
|
|
2101
|
-
connect_after(sigName: "notify::output-stream", callback: (($obj: Stream, pspec: GObject.ParamSpec) => void)): number
|
|
2102
|
-
emit(sigName: "notify::output-stream", ...args: any[]): void
|
|
2103
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2104
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2105
|
-
emit(sigName: string, ...args: any[]): void
|
|
2106
|
-
disconnect(id: number): void
|
|
2107
|
-
}
|
|
2108
|
-
|
|
2109
|
-
class Stream extends Gio.IOStream {
|
|
2110
|
-
|
|
2111
|
-
// Own properties of LibvirtGObject-1.0.LibvirtGObject.Stream
|
|
2112
|
-
|
|
2113
|
-
static name: string
|
|
2114
|
-
static $gtype: GObject.GType<Stream>
|
|
308
|
+
interface ConnectionClosed {
|
|
309
|
+
(): void;
|
|
310
|
+
}
|
|
2115
311
|
|
|
2116
|
-
|
|
312
|
+
interface ConnectionOpened {
|
|
313
|
+
(): void;
|
|
314
|
+
}
|
|
2117
315
|
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
}
|
|
316
|
+
interface DomainAdded {
|
|
317
|
+
(object: Domain): void;
|
|
318
|
+
}
|
|
2121
319
|
|
|
2122
|
-
interface
|
|
320
|
+
interface DomainRemoved {
|
|
321
|
+
(object: Domain): void;
|
|
322
|
+
}
|
|
2123
323
|
|
|
2124
|
-
|
|
324
|
+
// Constructor properties interface
|
|
2125
325
|
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
padding: any[]
|
|
2132
|
-
}
|
|
326
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
327
|
+
handle: ConnectionHandle;
|
|
328
|
+
uri: string;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
2133
331
|
|
|
2134
|
-
|
|
332
|
+
class Connection extends GObject.Object {
|
|
333
|
+
static $gtype: GObject.GType<Connection>;
|
|
334
|
+
|
|
335
|
+
// Own properties of LibvirtGObject.Connection
|
|
336
|
+
|
|
337
|
+
get handle(): ConnectionHandle;
|
|
338
|
+
get uri(): string;
|
|
339
|
+
|
|
340
|
+
// Constructors of LibvirtGObject.Connection
|
|
341
|
+
|
|
342
|
+
constructor(properties?: Partial<Connection.ConstructorProps>, ...args: any[]);
|
|
343
|
+
|
|
344
|
+
_init(...args: any[]): void;
|
|
345
|
+
|
|
346
|
+
static ['new'](uri: string): Connection;
|
|
347
|
+
|
|
348
|
+
// Own signals of LibvirtGObject.Connection
|
|
349
|
+
|
|
350
|
+
connect(id: string, callback: (...args: any[]) => any): number;
|
|
351
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
352
|
+
emit(id: string, ...args: any[]): void;
|
|
353
|
+
connect(signal: 'connection-closed', callback: (_source: this) => void): number;
|
|
354
|
+
connect_after(signal: 'connection-closed', callback: (_source: this) => void): number;
|
|
355
|
+
emit(signal: 'connection-closed'): void;
|
|
356
|
+
connect(signal: 'connection-opened', callback: (_source: this) => void): number;
|
|
357
|
+
connect_after(signal: 'connection-opened', callback: (_source: this) => void): number;
|
|
358
|
+
emit(signal: 'connection-opened'): void;
|
|
359
|
+
connect(signal: 'domain-added', callback: (_source: this, object: Domain) => void): number;
|
|
360
|
+
connect_after(signal: 'domain-added', callback: (_source: this, object: Domain) => void): number;
|
|
361
|
+
emit(signal: 'domain-added', object: Domain): void;
|
|
362
|
+
connect(signal: 'domain-removed', callback: (_source: this, object: Domain) => void): number;
|
|
363
|
+
connect_after(signal: 'domain-removed', callback: (_source: this, object: Domain) => void): number;
|
|
364
|
+
emit(signal: 'domain-removed', object: Domain): void;
|
|
365
|
+
|
|
366
|
+
// Own virtual methods of LibvirtGObject.Connection
|
|
367
|
+
|
|
368
|
+
vfunc_connection_closed(): void;
|
|
369
|
+
vfunc_connection_opened(): void;
|
|
370
|
+
vfunc_domain_added(dom: Domain): void;
|
|
371
|
+
vfunc_domain_removed(dom: Domain): void;
|
|
372
|
+
|
|
373
|
+
// Own methods of LibvirtGObject.Connection
|
|
374
|
+
|
|
375
|
+
close(): void;
|
|
376
|
+
/**
|
|
377
|
+
* Create the configuration file for a new persistent domain.
|
|
378
|
+
* The returned domain will initially be in the shutoff state.
|
|
379
|
+
* @param conf the configuration for the new domain
|
|
380
|
+
* @returns the newly created domain, or NULL if an error occurred. The returned object should be unreffed with g_object_unref() when no longer needed.
|
|
381
|
+
*/
|
|
382
|
+
create_domain(conf: LibvirtGConfig.Domain): Domain;
|
|
383
|
+
create_storage_pool(conf: LibvirtGConfig.StoragePool, flags: number): StoragePool;
|
|
384
|
+
/**
|
|
385
|
+
* Use this method to fetch all domains managed by connection
|
|
386
|
+
* `conn`. Use e.g. #gvir_connection_find_domain_by_id or
|
|
387
|
+
* #gvir_connection_get_domain afterwards to query the fetched
|
|
388
|
+
* domains.
|
|
389
|
+
* @param cancellable cancellation object
|
|
390
|
+
*/
|
|
391
|
+
fetch_domains(cancellable?: Gio.Cancellable | null): boolean;
|
|
392
|
+
fetch_domains_async(cancellable?: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): void;
|
|
393
|
+
fetch_domains_finish(result: Gio.AsyncResult): boolean;
|
|
394
|
+
/**
|
|
395
|
+
* Use this method to fetch information on all network interfaces
|
|
396
|
+
* managed by connection `conn` on host machine. Use
|
|
397
|
+
* #gvir_connection_get_interfaces or #gvir_connection_get_interface afterwards
|
|
398
|
+
* to query the fetched interfaces.
|
|
399
|
+
* @param cancellable cancellation object
|
|
400
|
+
* @returns %TRUE on success, %FALSE otherwise and @err is set.
|
|
401
|
+
*/
|
|
402
|
+
fetch_interfaces(cancellable?: Gio.Cancellable | null): boolean;
|
|
403
|
+
fetch_interfaces_async(
|
|
404
|
+
cancellable?: Gio.Cancellable | null,
|
|
405
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
406
|
+
): void;
|
|
407
|
+
fetch_interfaces_finish(result: Gio.AsyncResult): boolean;
|
|
408
|
+
/**
|
|
409
|
+
* Use this method to fetch all networks managed by connection
|
|
410
|
+
* `conn`. Use e.g. #gvir_connection_find_network_by_name or
|
|
411
|
+
* #gvir_connection_get_networks afterwards to query the fetched
|
|
412
|
+
* domains.
|
|
413
|
+
* @param cancellable cancellation object
|
|
414
|
+
*/
|
|
415
|
+
fetch_networks(cancellable?: Gio.Cancellable | null): boolean;
|
|
416
|
+
fetch_networks_async(
|
|
417
|
+
cancellable?: Gio.Cancellable | null,
|
|
418
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
419
|
+
): void;
|
|
420
|
+
fetch_networks_finish(result: Gio.AsyncResult): boolean;
|
|
421
|
+
/**
|
|
422
|
+
* Use this method to fetch all storage pools managed by connection
|
|
423
|
+
* `conn`. Use e.g. #gvir_connection_find_storage_pool_by_name or
|
|
424
|
+
* #gvir_connection_get_storage_pools afterwards to query the fetched
|
|
425
|
+
* pools.
|
|
426
|
+
* @param cancellable cancellation object
|
|
427
|
+
*/
|
|
428
|
+
fetch_storage_pools(cancellable?: Gio.Cancellable | null): boolean;
|
|
429
|
+
fetch_storage_pools_async(
|
|
430
|
+
cancellable?: Gio.Cancellable | null,
|
|
431
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
432
|
+
): void;
|
|
433
|
+
fetch_storage_pools_finish(result: Gio.AsyncResult): boolean;
|
|
434
|
+
find_domain_by_id(id: number): Domain;
|
|
435
|
+
find_domain_by_name(name: string): Domain;
|
|
436
|
+
/**
|
|
437
|
+
* Get a particular interface which has MAC address `mac`.
|
|
438
|
+
* @param macaddr MAC address to lookup
|
|
439
|
+
* @returns A new reference to a #GVirInterface, or NULL if no interface exists with MAC address @mac. The returned object must be unreffed using g_object_unref() once used.
|
|
440
|
+
*/
|
|
441
|
+
find_interface_by_mac(macaddr: string): Interface;
|
|
442
|
+
/**
|
|
443
|
+
* Get a particular network which has name `name`.
|
|
444
|
+
* @param name name of the network to search for
|
|
445
|
+
* @returns A new reference to a #GVirNetwork, or NULL if no network exists with name @name. The returned object must be unreffed using g_object_unref() once used.
|
|
446
|
+
*/
|
|
447
|
+
find_network_by_name(name: string): Network;
|
|
448
|
+
find_storage_pool_by_name(name: string): StoragePool;
|
|
449
|
+
get_capabilities(): LibvirtGConfig.Capabilities;
|
|
450
|
+
get_capabilities_async(
|
|
451
|
+
cancellable?: Gio.Cancellable | null,
|
|
452
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
453
|
+
): void;
|
|
454
|
+
get_capabilities_finish(result: Gio.AsyncResult): LibvirtGConfig.Capabilities;
|
|
455
|
+
get_domain(uuid: string): Domain;
|
|
456
|
+
get_domain_capabilities(
|
|
457
|
+
emulatorbin: string | null,
|
|
458
|
+
arch: string | null,
|
|
459
|
+
machine: string | null,
|
|
460
|
+
virttype: string | null,
|
|
461
|
+
flags: number,
|
|
462
|
+
): LibvirtGConfig.DomainCapabilities;
|
|
463
|
+
get_domain_capabilities_async(
|
|
464
|
+
emulatorbin: string | null,
|
|
465
|
+
arch: string | null,
|
|
466
|
+
machine: string | null,
|
|
467
|
+
virttype: string | null,
|
|
468
|
+
flags: number,
|
|
469
|
+
cancellable?: Gio.Cancellable | null,
|
|
470
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
471
|
+
): void;
|
|
472
|
+
get_domain_capabilities_finish(result: Gio.AsyncResult): LibvirtGConfig.DomainCapabilities;
|
|
473
|
+
/**
|
|
474
|
+
* Gets a list of the domains available through `conn`.
|
|
475
|
+
* @returns List of #GVirDomain. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().
|
|
476
|
+
*/
|
|
477
|
+
get_domains(): Domain[];
|
|
478
|
+
/**
|
|
479
|
+
* Get name of current hypervisor used.
|
|
480
|
+
* @returns new string that should be freed when no longer needed, or NULL upon error.
|
|
481
|
+
*/
|
|
482
|
+
get_hypervisor_name(): string;
|
|
483
|
+
/**
|
|
484
|
+
* Get a particular interface which has name `name`.
|
|
485
|
+
* @param name interface name to lookup
|
|
486
|
+
* @returns A new reference to a #GVirInterface, or NULL if no interface exists with name @name. The returned object must be unreffed using g_object_unref() once used.
|
|
487
|
+
*/
|
|
488
|
+
get_interface(name: string): Interface;
|
|
489
|
+
/**
|
|
490
|
+
* Get a list of all the network interfaces managed by connection `conn` on
|
|
491
|
+
* host machine.
|
|
492
|
+
* @returns List of #GVirInterface. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().
|
|
493
|
+
*/
|
|
494
|
+
get_interfaces(): Interface[];
|
|
495
|
+
/**
|
|
496
|
+
* Get a particular network which has UUID `uuid`.
|
|
497
|
+
* @param uuid UUID of the network to lookup
|
|
498
|
+
* @returns A new reference to a #GVirNetwork, or NULL if no network exists with UUID @uuid. The returned object must be unreffed using g_object_unref() once used.
|
|
499
|
+
*/
|
|
500
|
+
get_network(uuid: string): Network;
|
|
501
|
+
/**
|
|
502
|
+
* Get a list of all the network networks available through `conn`.
|
|
503
|
+
* @returns List of #GVirNetwork. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().
|
|
504
|
+
*/
|
|
505
|
+
get_networks(): Network[];
|
|
506
|
+
get_node_info(): NodeInfo;
|
|
507
|
+
get_storage_pool(uuid: string): StoragePool;
|
|
508
|
+
/**
|
|
509
|
+
* Gets a list of the storage pools available through `conn`.
|
|
510
|
+
* @returns List of #GVirStoragePool. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().
|
|
511
|
+
*/
|
|
512
|
+
get_storage_pools(): StoragePool[];
|
|
513
|
+
get_stream(flags: number): Stream;
|
|
514
|
+
get_uri(): string;
|
|
515
|
+
/**
|
|
516
|
+
* Get version of current hypervisor used.
|
|
517
|
+
* @returns version on success, 0 otherwise and @err set.
|
|
518
|
+
*/
|
|
519
|
+
get_version(): number;
|
|
520
|
+
is_open(): boolean;
|
|
521
|
+
is_read_only(): boolean;
|
|
522
|
+
open(cancellable?: Gio.Cancellable | null): boolean;
|
|
523
|
+
open_async(cancellable?: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): void;
|
|
524
|
+
open_finish(result: Gio.AsyncResult): boolean;
|
|
525
|
+
open_read_only(cancellable?: Gio.Cancellable | null): boolean;
|
|
526
|
+
open_read_only_async(
|
|
527
|
+
cancellable?: Gio.Cancellable | null,
|
|
528
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
529
|
+
): void;
|
|
530
|
+
open_read_only_finish(result: Gio.AsyncResult): boolean;
|
|
531
|
+
/**
|
|
532
|
+
* Restores the domain saved with #gvir_domain_save_to_file
|
|
533
|
+
* @param filename path to input file
|
|
534
|
+
* @param custom_conf configuration for domain or NULL
|
|
535
|
+
* @param flags the flags
|
|
536
|
+
* @returns TRUE on success, FALSE otherwise
|
|
537
|
+
*/
|
|
538
|
+
restore_domain_from_file(filename: string, custom_conf: LibvirtGConfig.Domain | null, flags: number): boolean;
|
|
539
|
+
/**
|
|
540
|
+
* Asynchronous variant of #gvir_connection_restore_domain_from_file
|
|
541
|
+
* @param filename path to input file
|
|
542
|
+
* @param custom_conf configuration for domain
|
|
543
|
+
* @param flags the flags
|
|
544
|
+
* @param cancellable cancellation object
|
|
545
|
+
* @param callback completion callback
|
|
546
|
+
*/
|
|
547
|
+
restore_domain_from_file_async(
|
|
548
|
+
filename: string,
|
|
549
|
+
custom_conf: LibvirtGConfig.Domain | null,
|
|
550
|
+
flags: number,
|
|
551
|
+
cancellable?: Gio.Cancellable | null,
|
|
552
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
553
|
+
): void;
|
|
554
|
+
/**
|
|
555
|
+
* Finishes the operation started by #gvir_restore_domain_from_file_async.
|
|
556
|
+
* @param result async method result
|
|
557
|
+
* @returns TRUE if domain was restored successfully, FALSE otherwise.
|
|
558
|
+
*/
|
|
559
|
+
restore_domain_from_file_finish(result: Gio.AsyncResult): boolean;
|
|
560
|
+
/**
|
|
561
|
+
* Start a new transient domain without persistent configuration.
|
|
562
|
+
* The returned domain will initially be running.
|
|
563
|
+
* @param conf the configuration for the new domain
|
|
564
|
+
* @param flags
|
|
565
|
+
* @returns the newly created domain, or NULL if an error occurred. The returned object should be unreffed with g_object_unref() when no longer needed.
|
|
566
|
+
*/
|
|
567
|
+
start_domain(conf: LibvirtGConfig.Domain, flags: number): Domain;
|
|
568
|
+
}
|
|
2135
569
|
|
|
2136
|
-
|
|
570
|
+
module Domain {
|
|
571
|
+
// Signal callback interfaces
|
|
2137
572
|
|
|
2138
|
-
|
|
2139
|
-
|
|
573
|
+
interface Pmsuspended {
|
|
574
|
+
(): void;
|
|
575
|
+
}
|
|
2140
576
|
|
|
2141
|
-
interface
|
|
2142
|
-
|
|
577
|
+
interface Resumed {
|
|
578
|
+
(): void;
|
|
579
|
+
}
|
|
2143
580
|
|
|
2144
|
-
|
|
581
|
+
interface Started {
|
|
582
|
+
(): void;
|
|
583
|
+
}
|
|
2145
584
|
|
|
2146
|
-
|
|
585
|
+
interface Stopped {
|
|
586
|
+
(): void;
|
|
587
|
+
}
|
|
2147
588
|
|
|
2148
|
-
|
|
2149
|
-
|
|
589
|
+
interface Suspended {
|
|
590
|
+
(): void;
|
|
591
|
+
}
|
|
2150
592
|
|
|
2151
|
-
interface
|
|
593
|
+
interface Updated {
|
|
594
|
+
(): void;
|
|
595
|
+
}
|
|
2152
596
|
|
|
2153
|
-
|
|
597
|
+
// Constructor properties interface
|
|
2154
598
|
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
suspended: (dom: Domain) => void
|
|
2161
|
-
pmsuspended: (dom: Domain) => void
|
|
2162
|
-
padding: any[]
|
|
2163
|
-
}
|
|
599
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
600
|
+
handle: DomainHandle;
|
|
601
|
+
persistent: boolean;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
2164
604
|
|
|
2165
|
-
|
|
605
|
+
class Domain extends GObject.Object {
|
|
606
|
+
static $gtype: GObject.GType<Domain>;
|
|
607
|
+
|
|
608
|
+
// Own properties of LibvirtGObject.Domain
|
|
609
|
+
|
|
610
|
+
get handle(): DomainHandle;
|
|
611
|
+
get persistent(): boolean;
|
|
612
|
+
|
|
613
|
+
// Constructors of LibvirtGObject.Domain
|
|
614
|
+
|
|
615
|
+
constructor(properties?: Partial<Domain.ConstructorProps>, ...args: any[]);
|
|
616
|
+
|
|
617
|
+
_init(...args: any[]): void;
|
|
618
|
+
|
|
619
|
+
// Own signals of LibvirtGObject.Domain
|
|
620
|
+
|
|
621
|
+
connect(id: string, callback: (...args: any[]) => any): number;
|
|
622
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
623
|
+
emit(id: string, ...args: any[]): void;
|
|
624
|
+
connect(signal: 'pmsuspended', callback: (_source: this) => void): number;
|
|
625
|
+
connect_after(signal: 'pmsuspended', callback: (_source: this) => void): number;
|
|
626
|
+
emit(signal: 'pmsuspended'): void;
|
|
627
|
+
connect(signal: 'resumed', callback: (_source: this) => void): number;
|
|
628
|
+
connect_after(signal: 'resumed', callback: (_source: this) => void): number;
|
|
629
|
+
emit(signal: 'resumed'): void;
|
|
630
|
+
connect(signal: 'started', callback: (_source: this) => void): number;
|
|
631
|
+
connect_after(signal: 'started', callback: (_source: this) => void): number;
|
|
632
|
+
emit(signal: 'started'): void;
|
|
633
|
+
connect(signal: 'stopped', callback: (_source: this) => void): number;
|
|
634
|
+
connect_after(signal: 'stopped', callback: (_source: this) => void): number;
|
|
635
|
+
emit(signal: 'stopped'): void;
|
|
636
|
+
connect(signal: 'suspended', callback: (_source: this) => void): number;
|
|
637
|
+
connect_after(signal: 'suspended', callback: (_source: this) => void): number;
|
|
638
|
+
emit(signal: 'suspended'): void;
|
|
639
|
+
connect(signal: 'updated', callback: (_source: this) => void): number;
|
|
640
|
+
connect_after(signal: 'updated', callback: (_source: this) => void): number;
|
|
641
|
+
emit(signal: 'updated'): void;
|
|
642
|
+
|
|
643
|
+
// Own virtual methods of LibvirtGObject.Domain
|
|
644
|
+
|
|
645
|
+
vfunc_pmsuspended(): void;
|
|
646
|
+
vfunc_resumed(): void;
|
|
647
|
+
vfunc_started(): void;
|
|
648
|
+
vfunc_stopped(): void;
|
|
649
|
+
vfunc_suspended(): void;
|
|
650
|
+
vfunc_updated(): void;
|
|
651
|
+
|
|
652
|
+
// Own methods of LibvirtGObject.Domain
|
|
653
|
+
|
|
654
|
+
create_snapshot(custom_conf: LibvirtGConfig.DomainSnapshot | null, flags: number): DomainSnapshot;
|
|
655
|
+
create_snapshot_async(
|
|
656
|
+
custom_conf: LibvirtGConfig.DomainSnapshot | null,
|
|
657
|
+
flags: number,
|
|
658
|
+
cancellable?: Gio.Cancellable | null,
|
|
659
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
660
|
+
): void;
|
|
661
|
+
create_snapshot_finish(result: Gio.AsyncResult): DomainSnapshot;
|
|
662
|
+
['delete'](flags: number): boolean;
|
|
663
|
+
fetch_snapshots(list_flags: number, cancellable?: Gio.Cancellable | null): boolean;
|
|
664
|
+
fetch_snapshots_async(
|
|
665
|
+
list_flags: number,
|
|
666
|
+
cancellable?: Gio.Cancellable | null,
|
|
667
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
668
|
+
): void;
|
|
669
|
+
fetch_snapshots_finish(res: Gio.AsyncResult): boolean;
|
|
670
|
+
get_config(flags: number): LibvirtGConfig.Domain;
|
|
671
|
+
/**
|
|
672
|
+
* Gets the list of devices attached to `domain`. The returned list should
|
|
673
|
+
* be freed with g_list_free(), after its elements have been unreffed with
|
|
674
|
+
* g_object_unref().
|
|
675
|
+
* @returns a newly allocated #GList of #GVirDomainDevice.
|
|
676
|
+
*/
|
|
677
|
+
get_devices(): DomainDevice[];
|
|
678
|
+
get_has_current_snapshot(flags: number): [boolean, boolean];
|
|
679
|
+
get_id(): number;
|
|
680
|
+
get_info(): DomainInfo;
|
|
681
|
+
/**
|
|
682
|
+
* Asynchronous variant of #gvir_domain_get_info.
|
|
683
|
+
* @param cancellable cancellation object
|
|
684
|
+
* @param callback completion callback
|
|
685
|
+
*/
|
|
686
|
+
get_info_async(cancellable?: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): void;
|
|
687
|
+
/**
|
|
688
|
+
* Finishes the operation started by #gvir_domain_get_info_async.
|
|
689
|
+
* @param result async method result
|
|
690
|
+
* @returns the info. The returned object should be unreffed with g_object_unref() when no longer needed.
|
|
691
|
+
*/
|
|
692
|
+
get_info_finish(result: Gio.AsyncResult): DomainInfo;
|
|
693
|
+
get_name(): string;
|
|
694
|
+
get_persistent(): boolean;
|
|
695
|
+
get_saved(): boolean;
|
|
696
|
+
get_snapshots(): DomainSnapshot[];
|
|
697
|
+
get_uuid(): string;
|
|
698
|
+
/**
|
|
699
|
+
* Open a text console for the domain `dom,` connecting it to the
|
|
700
|
+
* stream `stream`. If `devname` is NULL, the default console will
|
|
701
|
+
* be opened, otherwise `devname` can be used to specify a non-default
|
|
702
|
+
* console device.
|
|
703
|
+
* @param stream stream to use as output
|
|
704
|
+
* @param devname the device name
|
|
705
|
+
* @param flags extra flags, currently unused
|
|
706
|
+
* @returns TRUE if the console was opened, FALSE otherwise.
|
|
707
|
+
*/
|
|
708
|
+
open_console(stream: Stream, devname: string | null, flags: number): boolean;
|
|
709
|
+
/**
|
|
710
|
+
* Open a connection to the local graphics display, connecting it to the
|
|
711
|
+
* socket pair file descriptor passed in as `fd`.
|
|
712
|
+
* @param idx the graphics index
|
|
713
|
+
* @param fd pre-opened socket pair
|
|
714
|
+
* @param flags extra flags, currently unused
|
|
715
|
+
* @returns TRUE if the graphics connection was opened, FALSE otherwise.
|
|
716
|
+
*/
|
|
717
|
+
open_graphics(idx: number, fd: number, flags: number): boolean;
|
|
718
|
+
/**
|
|
719
|
+
* This will create a socket pair connected to the graphics backend of `dom`. One
|
|
720
|
+
* end of the socket will be returned on success, and the other end is handed to
|
|
721
|
+
* the hypervisor. If `dom` has multiple graphics backends configured, then `idx`
|
|
722
|
+
* will determine which one is opened, starting from `idx` 0.
|
|
723
|
+
* @param idx the graphics index
|
|
724
|
+
* @param flags extra flags, currently unused
|
|
725
|
+
* @returns An fd on success, -1 on failure.
|
|
726
|
+
*/
|
|
727
|
+
open_graphics_fd(idx: number, flags: number): number;
|
|
728
|
+
reboot(flags: number): boolean;
|
|
729
|
+
resume(): boolean;
|
|
730
|
+
/**
|
|
731
|
+
* Asynchronous variant of #gvir_domain_resume.
|
|
732
|
+
* @param cancellable cancellation object
|
|
733
|
+
* @param callback completion callback
|
|
734
|
+
*/
|
|
735
|
+
resume_async(cancellable?: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): void;
|
|
736
|
+
resume_finish(result: Gio.AsyncResult): boolean;
|
|
737
|
+
/**
|
|
738
|
+
* Saves the state of the domain on disk and stops it. Use #gvir_domain_start
|
|
739
|
+
* to restore the saved state of the domain. A saved domain can be restored
|
|
740
|
+
* even after shutdown/reboot of host machine.
|
|
741
|
+
* @param flags extra flags, currently unused
|
|
742
|
+
* @returns TRUE if domain was saved successfully, FALSE otherwise.
|
|
743
|
+
*/
|
|
744
|
+
save(flags: number): boolean;
|
|
745
|
+
/**
|
|
746
|
+
* Asynchronous variant of #gvir_domain_save.
|
|
747
|
+
* @param flags extra flags, currently unused
|
|
748
|
+
* @param cancellable cancellation object
|
|
749
|
+
* @param callback completion callback
|
|
750
|
+
*/
|
|
751
|
+
save_async(
|
|
752
|
+
flags: number,
|
|
753
|
+
cancellable?: Gio.Cancellable | null,
|
|
754
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
755
|
+
): void;
|
|
756
|
+
/**
|
|
757
|
+
* Finishes the operation started by #gvir_domain_save_async.
|
|
758
|
+
* @param result async method result
|
|
759
|
+
* @returns TRUE if domain was saved successfully, FALSE otherwise.
|
|
760
|
+
*/
|
|
761
|
+
save_finish(result: Gio.AsyncResult): boolean;
|
|
762
|
+
save_to_file(filename: string, custom_conf: LibvirtGConfig.Domain | null, flags: number): boolean;
|
|
763
|
+
/**
|
|
764
|
+
* Asynchronous variant of #gvir_domain_save_to_file
|
|
765
|
+
* @param filename path to output file
|
|
766
|
+
* @param custom_conf configuration for domain or NULL
|
|
767
|
+
* @param flags the flags
|
|
768
|
+
* @param cancellable cancellation object
|
|
769
|
+
* @param callback completion callback
|
|
770
|
+
*/
|
|
771
|
+
save_to_file_async(
|
|
772
|
+
filename: string,
|
|
773
|
+
custom_conf: LibvirtGConfig.Domain | null,
|
|
774
|
+
flags: number,
|
|
775
|
+
cancellable?: Gio.Cancellable | null,
|
|
776
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
777
|
+
): void;
|
|
778
|
+
/**
|
|
779
|
+
* Finishes the operation started by #gvir_domain_save_to_file_async.
|
|
780
|
+
* @param result async method result
|
|
781
|
+
* @returns TRUE if domain was saved successfully, FALSE otherwise.
|
|
782
|
+
*/
|
|
783
|
+
save_to_file_finish(result: Gio.AsyncResult): boolean;
|
|
784
|
+
screenshot(stream: Stream, monitor_id: number, flags: number): string;
|
|
785
|
+
/**
|
|
786
|
+
* Resets configuration of an existing domain.
|
|
787
|
+
*
|
|
788
|
+
* Note: If domain is already running, the new configuration will not take
|
|
789
|
+
* affect until domain reboots.
|
|
790
|
+
* @param conf the new configuration for the domain
|
|
791
|
+
* @returns TRUE on success, FALSE if an error occurred.
|
|
792
|
+
*/
|
|
793
|
+
set_config(conf: LibvirtGConfig.Domain): boolean;
|
|
794
|
+
/**
|
|
795
|
+
* This function tries to set guest time to the given value. The passed
|
|
796
|
+
* time must in UTC.
|
|
797
|
+
*
|
|
798
|
+
* If `date_time` is %NULL, the time is reset using the domain's RTC.
|
|
799
|
+
*
|
|
800
|
+
* Please note that some hypervisors may require guest agent to be configured
|
|
801
|
+
* and running in order for this function to work.
|
|
802
|
+
* @param date_time the time to set as #GDateTime.
|
|
803
|
+
* @param flags Unused, pass 0.
|
|
804
|
+
* @returns %TRUE on success, %FALSE otherwise.
|
|
805
|
+
*/
|
|
806
|
+
set_time(date_time: GLib.DateTime | null, flags: number): boolean;
|
|
807
|
+
/**
|
|
808
|
+
* Asynchronous variant of #gvir_domain_set_time.
|
|
809
|
+
* @param date_time the time to set as #GDateTime.
|
|
810
|
+
* @param flags bitwise-OR of #GVirDomainSetTimeFlags.
|
|
811
|
+
* @param cancellable cancellation object
|
|
812
|
+
* @param callback completion callback
|
|
813
|
+
*/
|
|
814
|
+
set_time_async(
|
|
815
|
+
date_time: GLib.DateTime | null,
|
|
816
|
+
flags: number,
|
|
817
|
+
cancellable?: Gio.Cancellable | null,
|
|
818
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
819
|
+
): void;
|
|
820
|
+
/**
|
|
821
|
+
* Finishes the operation started by #gvir_domain_set_time_async.
|
|
822
|
+
* @param result async method result
|
|
823
|
+
* @returns %TRUE on success, %FALSE otherwise.
|
|
824
|
+
*/
|
|
825
|
+
set_time_finish(result: Gio.AsyncResult): boolean;
|
|
826
|
+
shutdown(flags: number): boolean;
|
|
827
|
+
start(flags: number): boolean;
|
|
828
|
+
/**
|
|
829
|
+
* Asynchronous variant of #gvir_domain_start.
|
|
830
|
+
* @param flags the flags
|
|
831
|
+
* @param cancellable cancellation object
|
|
832
|
+
* @param callback completion callback
|
|
833
|
+
*/
|
|
834
|
+
start_async(
|
|
835
|
+
flags: number,
|
|
836
|
+
cancellable?: Gio.Cancellable | null,
|
|
837
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
838
|
+
): void;
|
|
839
|
+
start_finish(result: Gio.AsyncResult): boolean;
|
|
840
|
+
stop(flags: number): boolean;
|
|
841
|
+
/**
|
|
842
|
+
* Suspends an active domain, the process is frozen without further access to
|
|
843
|
+
* CPU resources and I/O but the memory used by the domain at the hypervisor
|
|
844
|
+
* level will stay allocated. Use gvir_domain_resume() to reactivate the domain.
|
|
845
|
+
* @returns TRUE if domain was suspended successfully, FALSE otherwise.
|
|
846
|
+
*/
|
|
847
|
+
suspend(): boolean;
|
|
848
|
+
/**
|
|
849
|
+
* Update the configuration of a device.
|
|
850
|
+
* @param device A modified device config
|
|
851
|
+
* @param flags bitwise-OR of #GVirDomainUpdateDeviceFlags
|
|
852
|
+
* @returns TRUE if device was updated successfully, FALSE otherwise.
|
|
853
|
+
*/
|
|
854
|
+
update_device(device: LibvirtGConfig.DomainDevice, flags: number): boolean;
|
|
855
|
+
wakeup(flags: number): boolean;
|
|
856
|
+
/**
|
|
857
|
+
* Asynchronous variant of #gvir_domain_wakeup.
|
|
858
|
+
* @param flags placeholder for flags, pass 0
|
|
859
|
+
* @param cancellable cancellation object
|
|
860
|
+
* @param callback completion callback
|
|
861
|
+
*/
|
|
862
|
+
wakeup_async(
|
|
863
|
+
flags: number,
|
|
864
|
+
cancellable?: Gio.Cancellable | null,
|
|
865
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
866
|
+
): void;
|
|
867
|
+
wakeup_finish(result: Gio.AsyncResult): boolean;
|
|
868
|
+
}
|
|
2166
869
|
|
|
2167
|
-
|
|
870
|
+
module DomainDevice {
|
|
871
|
+
// Constructor properties interface
|
|
2168
872
|
|
|
2169
|
-
|
|
2170
|
-
|
|
873
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
874
|
+
config: LibvirtGConfig.DomainDevice;
|
|
875
|
+
domain: Domain;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
2171
878
|
|
|
2172
|
-
|
|
879
|
+
abstract class DomainDevice extends GObject.Object {
|
|
880
|
+
static $gtype: GObject.GType<DomainDevice>;
|
|
2173
881
|
|
|
2174
|
-
|
|
882
|
+
// Own properties of LibvirtGObject.DomainDevice
|
|
2175
883
|
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
}
|
|
884
|
+
get config(): LibvirtGConfig.DomainDevice;
|
|
885
|
+
get domain(): Domain;
|
|
2179
886
|
|
|
2180
|
-
|
|
887
|
+
// Constructors of LibvirtGObject.DomainDevice
|
|
2181
888
|
|
|
2182
|
-
|
|
889
|
+
constructor(properties?: Partial<DomainDevice.ConstructorProps>, ...args: any[]);
|
|
2183
890
|
|
|
2184
|
-
|
|
2185
|
-
}
|
|
891
|
+
_init(...args: any[]): void;
|
|
2186
892
|
|
|
2187
|
-
|
|
2188
|
-
}
|
|
893
|
+
// Own methods of LibvirtGObject.DomainDevice
|
|
2189
894
|
|
|
2190
|
-
|
|
895
|
+
get_config(): LibvirtGConfig.DomainDevice;
|
|
896
|
+
get_domain(): Domain;
|
|
897
|
+
}
|
|
2191
898
|
|
|
2192
|
-
|
|
899
|
+
module DomainDisk {
|
|
900
|
+
// Constructor properties interface
|
|
2193
901
|
|
|
2194
|
-
|
|
2195
|
-
}
|
|
902
|
+
interface ConstructorProps extends DomainDevice.ConstructorProps {}
|
|
903
|
+
}
|
|
2196
904
|
|
|
2197
|
-
|
|
905
|
+
class DomainDisk extends DomainDevice {
|
|
906
|
+
static $gtype: GObject.GType<DomainDisk>;
|
|
2198
907
|
|
|
2199
|
-
|
|
908
|
+
// Constructors of LibvirtGObject.DomainDisk
|
|
2200
909
|
|
|
2201
|
-
|
|
2202
|
-
padding: any[]
|
|
2203
|
-
}
|
|
910
|
+
constructor(properties?: Partial<DomainDisk.ConstructorProps>, ...args: any[]);
|
|
2204
911
|
|
|
2205
|
-
|
|
912
|
+
_init(...args: any[]): void;
|
|
2206
913
|
|
|
2207
|
-
|
|
914
|
+
// Own methods of LibvirtGObject.DomainDisk
|
|
2208
915
|
|
|
2209
|
-
|
|
2210
|
-
|
|
916
|
+
/**
|
|
917
|
+
* This function returns network disk stats. Individual fields
|
|
918
|
+
* within the stats structure may be returned as -1, which indicates
|
|
919
|
+
* that the hypervisor does not support that particular statistic.
|
|
920
|
+
* @returns the stats or %NULL in case of error.The returned object should be unreffed with g_object_unref() when no longer needed.
|
|
921
|
+
*/
|
|
922
|
+
get_stats(): DomainDiskStats;
|
|
923
|
+
/**
|
|
924
|
+
* This function resize the disk of a running domain.
|
|
925
|
+
* @param size new size of the block image in kilobytes
|
|
926
|
+
* @param flags flags, currently unused. Pass '0'.
|
|
927
|
+
* @returns TRUE if size was successfully changed, FALSE otherwise.
|
|
928
|
+
*/
|
|
929
|
+
resize(size: number, flags: number): boolean;
|
|
930
|
+
}
|
|
2211
931
|
|
|
2212
|
-
|
|
2213
|
-
|
|
932
|
+
module DomainInterface {
|
|
933
|
+
// Constructor properties interface
|
|
2214
934
|
|
|
2215
|
-
|
|
935
|
+
interface ConstructorProps extends DomainDevice.ConstructorProps {}
|
|
936
|
+
}
|
|
2216
937
|
|
|
2217
|
-
|
|
938
|
+
class DomainInterface extends DomainDevice {
|
|
939
|
+
static $gtype: GObject.GType<DomainInterface>;
|
|
2218
940
|
|
|
2219
|
-
|
|
2220
|
-
}
|
|
941
|
+
// Constructors of LibvirtGObject.DomainInterface
|
|
2221
942
|
|
|
2222
|
-
|
|
943
|
+
constructor(properties?: Partial<DomainInterface.ConstructorProps>, ...args: any[]);
|
|
2223
944
|
|
|
2224
|
-
|
|
945
|
+
_init(...args: any[]): void;
|
|
2225
946
|
|
|
2226
|
-
|
|
2227
|
-
rd_bytes: number
|
|
2228
|
-
wr_req: number
|
|
2229
|
-
wr_bytes: number
|
|
2230
|
-
errs: number
|
|
2231
|
-
}
|
|
947
|
+
// Own methods of LibvirtGObject.DomainInterface
|
|
2232
948
|
|
|
2233
|
-
|
|
949
|
+
/**
|
|
950
|
+
* This function returns network interface stats. Individual fields
|
|
951
|
+
* within the stats structure may be returned as -1, which indicates
|
|
952
|
+
* that the hypervisor does not support that particular statistic.
|
|
953
|
+
* @returns the stats or %NULL in case of error. The returned object should be unreffed with g_object_unref() when no longer needed.
|
|
954
|
+
*/
|
|
955
|
+
get_stats(): DomainInterfaceStats;
|
|
956
|
+
}
|
|
2234
957
|
|
|
2235
|
-
|
|
958
|
+
module DomainSnapshot {
|
|
959
|
+
// Constructor properties interface
|
|
2236
960
|
|
|
2237
|
-
|
|
2238
|
-
|
|
961
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
962
|
+
handle: DomainSnapshotHandle;
|
|
963
|
+
}
|
|
964
|
+
}
|
|
2239
965
|
|
|
2240
|
-
|
|
966
|
+
class DomainSnapshot extends GObject.Object {
|
|
967
|
+
static $gtype: GObject.GType<DomainSnapshot>;
|
|
968
|
+
|
|
969
|
+
// Own properties of LibvirtGObject.DomainSnapshot
|
|
970
|
+
|
|
971
|
+
get handle(): DomainSnapshotHandle;
|
|
972
|
+
|
|
973
|
+
// Constructors of LibvirtGObject.DomainSnapshot
|
|
974
|
+
|
|
975
|
+
constructor(properties?: Partial<DomainSnapshot.ConstructorProps>, ...args: any[]);
|
|
976
|
+
|
|
977
|
+
_init(...args: any[]): void;
|
|
978
|
+
|
|
979
|
+
// Own methods of LibvirtGObject.DomainSnapshot
|
|
980
|
+
|
|
981
|
+
['delete'](flags: number): boolean;
|
|
982
|
+
delete_async(
|
|
983
|
+
flags: number,
|
|
984
|
+
cancellable?: Gio.Cancellable | null,
|
|
985
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
986
|
+
): void;
|
|
987
|
+
delete_finish(res: Gio.AsyncResult): boolean;
|
|
988
|
+
get_config(flags: number): LibvirtGConfig.DomainSnapshot;
|
|
989
|
+
get_is_current(flags: number): [boolean, boolean];
|
|
990
|
+
get_name(): string;
|
|
991
|
+
revert_to(flags: number): boolean;
|
|
992
|
+
revert_to_async(
|
|
993
|
+
flags: number,
|
|
994
|
+
cancellable?: Gio.Cancellable | null,
|
|
995
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
996
|
+
): void;
|
|
997
|
+
revert_to_finish(result: Gio.AsyncResult): boolean;
|
|
998
|
+
/**
|
|
999
|
+
* Updates the given snapshot's configuration according to the
|
|
1000
|
+
* given GVirConfigDomainSnapshot.
|
|
1001
|
+
* @param conf The new config object
|
|
1002
|
+
* @returns %TRUE if no error was reported, %FALSE otherwise.
|
|
1003
|
+
*/
|
|
1004
|
+
set_config(conf: LibvirtGConfig.DomainSnapshot): boolean;
|
|
1005
|
+
}
|
|
2241
1006
|
|
|
2242
|
-
|
|
1007
|
+
module Interface {
|
|
1008
|
+
// Constructor properties interface
|
|
2243
1009
|
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
cpuTime: number
|
|
2249
|
-
}
|
|
1010
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1011
|
+
handle: InterfaceHandle;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
2250
1014
|
|
|
2251
|
-
class
|
|
1015
|
+
class Interface extends GObject.Object {
|
|
1016
|
+
static $gtype: GObject.GType<Interface>;
|
|
2252
1017
|
|
|
2253
|
-
|
|
1018
|
+
// Own properties of LibvirtGObject.Interface
|
|
2254
1019
|
|
|
2255
|
-
|
|
2256
|
-
}
|
|
1020
|
+
get handle(): InterfaceHandle;
|
|
2257
1021
|
|
|
2258
|
-
|
|
1022
|
+
// Constructors of LibvirtGObject.Interface
|
|
2259
1023
|
|
|
2260
|
-
|
|
1024
|
+
constructor(properties?: Partial<Interface.ConstructorProps>, ...args: any[]);
|
|
2261
1025
|
|
|
2262
|
-
|
|
2263
|
-
padding: any[]
|
|
2264
|
-
}
|
|
1026
|
+
_init(...args: any[]): void;
|
|
2265
1027
|
|
|
2266
|
-
|
|
1028
|
+
// Own methods of LibvirtGObject.Interface
|
|
2267
1029
|
|
|
2268
|
-
|
|
1030
|
+
get_config(flags: number): LibvirtGConfig.Interface;
|
|
1031
|
+
get_mac(): string;
|
|
1032
|
+
get_name(): string;
|
|
1033
|
+
}
|
|
2269
1034
|
|
|
2270
|
-
|
|
2271
|
-
|
|
1035
|
+
module Manager {
|
|
1036
|
+
// Signal callback interfaces
|
|
2272
1037
|
|
|
2273
|
-
interface
|
|
2274
|
-
|
|
1038
|
+
interface ConnectionAdded {
|
|
1039
|
+
(object: Connection): void;
|
|
1040
|
+
}
|
|
2275
1041
|
|
|
2276
|
-
|
|
1042
|
+
interface ConnectionRemoved {
|
|
1043
|
+
(object: Connection): void;
|
|
1044
|
+
}
|
|
2277
1045
|
|
|
2278
|
-
|
|
1046
|
+
// Constructor properties interface
|
|
2279
1047
|
|
|
2280
|
-
|
|
2281
|
-
}
|
|
1048
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
1049
|
+
}
|
|
2282
1050
|
|
|
2283
|
-
|
|
1051
|
+
class Manager extends GObject.Object {
|
|
1052
|
+
static $gtype: GObject.GType<Manager>;
|
|
2284
1053
|
|
|
2285
|
-
|
|
1054
|
+
// Constructors of LibvirtGObject.Manager
|
|
2286
1055
|
|
|
2287
|
-
|
|
2288
|
-
rx_packets: number
|
|
2289
|
-
rx_errs: number
|
|
2290
|
-
rx_drop: number
|
|
2291
|
-
tx_bytes: number
|
|
2292
|
-
tx_packets: number
|
|
2293
|
-
tx_errs: number
|
|
2294
|
-
tx_drop: number
|
|
2295
|
-
}
|
|
1056
|
+
constructor(properties?: Partial<Manager.ConstructorProps>, ...args: any[]);
|
|
2296
1057
|
|
|
2297
|
-
|
|
1058
|
+
_init(...args: any[]): void;
|
|
2298
1059
|
|
|
2299
|
-
|
|
1060
|
+
static ['new'](): Manager;
|
|
2300
1061
|
|
|
2301
|
-
|
|
2302
|
-
}
|
|
1062
|
+
// Own signals of LibvirtGObject.Manager
|
|
2303
1063
|
|
|
2304
|
-
|
|
2305
|
-
|
|
1064
|
+
connect(id: string, callback: (...args: any[]) => any): number;
|
|
1065
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
1066
|
+
emit(id: string, ...args: any[]): void;
|
|
1067
|
+
connect(signal: 'connection-added', callback: (_source: this, object: Connection) => void): number;
|
|
1068
|
+
connect_after(signal: 'connection-added', callback: (_source: this, object: Connection) => void): number;
|
|
1069
|
+
emit(signal: 'connection-added', object: Connection): void;
|
|
1070
|
+
connect(signal: 'connection-removed', callback: (_source: this, object: Connection) => void): number;
|
|
1071
|
+
connect_after(signal: 'connection-removed', callback: (_source: this, object: Connection) => void): number;
|
|
1072
|
+
emit(signal: 'connection-removed', object: Connection): void;
|
|
2306
1073
|
|
|
2307
|
-
|
|
1074
|
+
// Own virtual methods of LibvirtGObject.Manager
|
|
2308
1075
|
|
|
2309
|
-
|
|
1076
|
+
vfunc_connection_added(conn: Connection): void;
|
|
1077
|
+
vfunc_connection_removed(conn: Connection): void;
|
|
2310
1078
|
|
|
2311
|
-
|
|
2312
|
-
}
|
|
1079
|
+
// Own methods of LibvirtGObject.Manager
|
|
2313
1080
|
|
|
2314
|
-
|
|
1081
|
+
add_connection(conn: Connection): void;
|
|
1082
|
+
find_connection_by_uri(uri: string): Connection | null;
|
|
1083
|
+
get_connections(): Connection[];
|
|
1084
|
+
remove_connection(conn: Connection): void;
|
|
1085
|
+
}
|
|
2315
1086
|
|
|
2316
|
-
|
|
1087
|
+
module Network {
|
|
1088
|
+
// Constructor properties interface
|
|
2317
1089
|
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
}
|
|
1090
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1091
|
+
handle: NetworkHandle;
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
2321
1094
|
|
|
2322
|
-
|
|
1095
|
+
class Network extends GObject.Object {
|
|
1096
|
+
static $gtype: GObject.GType<Network>;
|
|
2323
1097
|
|
|
2324
|
-
|
|
1098
|
+
// Own properties of LibvirtGObject.Network
|
|
2325
1099
|
|
|
2326
|
-
|
|
2327
|
-
}
|
|
1100
|
+
get handle(): NetworkHandle;
|
|
2328
1101
|
|
|
2329
|
-
|
|
2330
|
-
}
|
|
1102
|
+
// Constructors of LibvirtGObject.Network
|
|
2331
1103
|
|
|
2332
|
-
|
|
1104
|
+
constructor(properties?: Partial<Network.ConstructorProps>, ...args: any[]);
|
|
2333
1105
|
|
|
2334
|
-
|
|
1106
|
+
_init(...args: any[]): void;
|
|
2335
1107
|
|
|
2336
|
-
|
|
2337
|
-
}
|
|
1108
|
+
// Own virtual methods of LibvirtGObject.Network
|
|
2338
1109
|
|
|
2339
|
-
|
|
1110
|
+
vfunc_started(): void;
|
|
1111
|
+
vfunc_stopped(): void;
|
|
2340
1112
|
|
|
2341
|
-
|
|
1113
|
+
// Own methods of LibvirtGObject.Network
|
|
2342
1114
|
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
1115
|
+
get_config(flags: number): LibvirtGConfig.Network;
|
|
1116
|
+
/**
|
|
1117
|
+
* This function fetches leases info of guests in the specified network. If the
|
|
1118
|
+
* optional parameter `mac` is specified, the returned list will contain only
|
|
1119
|
+
* lease info about a specific guest interface with `mac`. There can be multiple
|
|
1120
|
+
* leases for a single `mac` because this API supports DHCPv6 too.
|
|
1121
|
+
* @param mac The optional ASCII formatted MAC address of an interface
|
|
1122
|
+
* @param flags placeholder for flags, must be 0
|
|
1123
|
+
* @returns the list of network leases. Each object in the returned list should be unreffed with g_object_unref() and the list itself using g_list_free, when no longer needed.
|
|
1124
|
+
*/
|
|
1125
|
+
get_dhcp_leases(mac: string | null, flags: number): NetworkDHCPLease[];
|
|
1126
|
+
get_name(): string;
|
|
1127
|
+
get_uuid(): string;
|
|
1128
|
+
}
|
|
2346
1129
|
|
|
2347
|
-
|
|
1130
|
+
module NetworkDHCPLease {
|
|
1131
|
+
// Constructor properties interface
|
|
2348
1132
|
|
|
2349
|
-
|
|
1133
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1134
|
+
handle: any;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
2350
1137
|
|
|
2351
|
-
|
|
2352
|
-
|
|
1138
|
+
class NetworkDHCPLease extends GObject.Object {
|
|
1139
|
+
static $gtype: GObject.GType<NetworkDHCPLease>;
|
|
2353
1140
|
|
|
2354
|
-
|
|
2355
|
-
}
|
|
1141
|
+
// Own properties of LibvirtGObject.NetworkDHCPLease
|
|
2356
1142
|
|
|
2357
|
-
|
|
1143
|
+
get handle(): any;
|
|
2358
1144
|
|
|
2359
|
-
|
|
1145
|
+
// Constructors of LibvirtGObject.NetworkDHCPLease
|
|
2360
1146
|
|
|
2361
|
-
|
|
2362
|
-
}
|
|
1147
|
+
constructor(properties?: Partial<NetworkDHCPLease.ConstructorProps>, ...args: any[]);
|
|
2363
1148
|
|
|
2364
|
-
|
|
1149
|
+
_init(...args: any[]): void;
|
|
2365
1150
|
|
|
2366
|
-
|
|
1151
|
+
// Own methods of LibvirtGObject.NetworkDHCPLease
|
|
2367
1152
|
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
1153
|
+
get_client_id(): string;
|
|
1154
|
+
get_expiry_time(): number;
|
|
1155
|
+
get_hostname(): string;
|
|
1156
|
+
get_iaid(): string;
|
|
1157
|
+
get_iface(): string;
|
|
1158
|
+
get_ip(): string;
|
|
1159
|
+
get_ip_type(): number;
|
|
1160
|
+
get_mac(): string;
|
|
1161
|
+
get_prefix(): number;
|
|
1162
|
+
}
|
|
2373
1163
|
|
|
2374
|
-
|
|
1164
|
+
module NetworkFilter {
|
|
1165
|
+
// Constructor properties interface
|
|
2375
1166
|
|
|
2376
|
-
|
|
1167
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1168
|
+
handle: NetworkFilterHandle;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
2377
1171
|
|
|
2378
|
-
|
|
2379
|
-
|
|
1172
|
+
class NetworkFilter extends GObject.Object {
|
|
1173
|
+
static $gtype: GObject.GType<NetworkFilter>;
|
|
2380
1174
|
|
|
2381
|
-
|
|
2382
|
-
}
|
|
1175
|
+
// Own properties of LibvirtGObject.NetworkFilter
|
|
2383
1176
|
|
|
2384
|
-
|
|
1177
|
+
get handle(): NetworkFilterHandle;
|
|
2385
1178
|
|
|
2386
|
-
|
|
1179
|
+
// Constructors of LibvirtGObject.NetworkFilter
|
|
2387
1180
|
|
|
2388
|
-
|
|
2389
|
-
}
|
|
1181
|
+
constructor(properties?: Partial<NetworkFilter.ConstructorProps>, ...args: any[]);
|
|
2390
1182
|
|
|
2391
|
-
|
|
1183
|
+
_init(...args: any[]): void;
|
|
2392
1184
|
|
|
2393
|
-
|
|
1185
|
+
// Own methods of LibvirtGObject.NetworkFilter
|
|
2394
1186
|
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
}
|
|
1187
|
+
get_config(flags: number): LibvirtGConfig.NetworkFilter;
|
|
1188
|
+
get_name(): string;
|
|
1189
|
+
get_uuid(): string;
|
|
1190
|
+
}
|
|
2400
1191
|
|
|
2401
|
-
|
|
1192
|
+
module NodeDevice {
|
|
1193
|
+
// Constructor properties interface
|
|
2402
1194
|
|
|
2403
|
-
|
|
1195
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1196
|
+
handle: NodeDeviceHandle;
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
2404
1199
|
|
|
2405
|
-
|
|
2406
|
-
|
|
1200
|
+
class NodeDevice extends GObject.Object {
|
|
1201
|
+
static $gtype: GObject.GType<NodeDevice>;
|
|
2407
1202
|
|
|
2408
|
-
|
|
1203
|
+
// Own properties of LibvirtGObject.NodeDevice
|
|
2409
1204
|
|
|
2410
|
-
|
|
1205
|
+
get handle(): NodeDeviceHandle;
|
|
2411
1206
|
|
|
2412
|
-
|
|
2413
|
-
padding: any[]
|
|
2414
|
-
}
|
|
1207
|
+
// Constructors of LibvirtGObject.NodeDevice
|
|
2415
1208
|
|
|
2416
|
-
|
|
1209
|
+
constructor(properties?: Partial<NodeDevice.ConstructorProps>, ...args: any[]);
|
|
2417
1210
|
|
|
2418
|
-
|
|
1211
|
+
_init(...args: any[]): void;
|
|
2419
1212
|
|
|
2420
|
-
|
|
2421
|
-
}
|
|
1213
|
+
// Own methods of LibvirtGObject.NodeDevice
|
|
2422
1214
|
|
|
2423
|
-
|
|
2424
|
-
|
|
1215
|
+
get_config(flags: number): LibvirtGConfig.NodeDevice;
|
|
1216
|
+
get_name(): string;
|
|
1217
|
+
}
|
|
2425
1218
|
|
|
2426
|
-
|
|
1219
|
+
module Secret {
|
|
1220
|
+
// Constructor properties interface
|
|
2427
1221
|
|
|
2428
|
-
|
|
1222
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1223
|
+
handle: SecretHandle;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
2429
1226
|
|
|
2430
|
-
|
|
2431
|
-
|
|
1227
|
+
class Secret extends GObject.Object {
|
|
1228
|
+
static $gtype: GObject.GType<Secret>;
|
|
2432
1229
|
|
|
2433
|
-
|
|
1230
|
+
// Own properties of LibvirtGObject.Secret
|
|
2434
1231
|
|
|
2435
|
-
|
|
1232
|
+
get handle(): SecretHandle;
|
|
2436
1233
|
|
|
2437
|
-
|
|
2438
|
-
padding: any[]
|
|
2439
|
-
}
|
|
1234
|
+
// Constructors of LibvirtGObject.Secret
|
|
2440
1235
|
|
|
2441
|
-
|
|
1236
|
+
constructor(properties?: Partial<Secret.ConstructorProps>, ...args: any[]);
|
|
2442
1237
|
|
|
2443
|
-
|
|
1238
|
+
_init(...args: any[]): void;
|
|
2444
1239
|
|
|
2445
|
-
|
|
2446
|
-
}
|
|
1240
|
+
// Own methods of LibvirtGObject.Secret
|
|
2447
1241
|
|
|
2448
|
-
|
|
2449
|
-
|
|
1242
|
+
get_config(flags: number): LibvirtGConfig.Secret;
|
|
1243
|
+
get_name(): string;
|
|
1244
|
+
get_uuid(): string;
|
|
1245
|
+
}
|
|
2450
1246
|
|
|
2451
|
-
|
|
1247
|
+
module StoragePool {
|
|
1248
|
+
// Constructor properties interface
|
|
2452
1249
|
|
|
2453
|
-
|
|
1250
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1251
|
+
handle: StoragePoolHandle;
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
2454
1254
|
|
|
2455
|
-
|
|
2456
|
-
|
|
1255
|
+
class StoragePool extends GObject.Object {
|
|
1256
|
+
static $gtype: GObject.GType<StoragePool>;
|
|
1257
|
+
|
|
1258
|
+
// Own properties of LibvirtGObject.StoragePool
|
|
1259
|
+
|
|
1260
|
+
get handle(): StoragePoolHandle;
|
|
1261
|
+
|
|
1262
|
+
// Constructors of LibvirtGObject.StoragePool
|
|
1263
|
+
|
|
1264
|
+
constructor(properties?: Partial<StoragePool.ConstructorProps>, ...args: any[]);
|
|
1265
|
+
|
|
1266
|
+
_init(...args: any[]): void;
|
|
1267
|
+
|
|
1268
|
+
// Own methods of LibvirtGObject.StoragePool
|
|
1269
|
+
|
|
1270
|
+
build(flags: number): boolean;
|
|
1271
|
+
build_async(
|
|
1272
|
+
flags: number,
|
|
1273
|
+
cancellable?: Gio.Cancellable | null,
|
|
1274
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
1275
|
+
): void;
|
|
1276
|
+
build_finish(result: Gio.AsyncResult): boolean;
|
|
1277
|
+
create_volume(conf: LibvirtGConfig.StorageVol): StorageVol;
|
|
1278
|
+
['delete'](flags: number): boolean;
|
|
1279
|
+
delete_async(
|
|
1280
|
+
flags: number,
|
|
1281
|
+
cancellable?: Gio.Cancellable | null,
|
|
1282
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
1283
|
+
): void;
|
|
1284
|
+
delete_finish(result: Gio.AsyncResult): boolean;
|
|
1285
|
+
get_active(): boolean;
|
|
1286
|
+
get_autostart(): boolean;
|
|
1287
|
+
get_config(flags: number): LibvirtGConfig.StoragePool;
|
|
1288
|
+
get_info(): StoragePoolInfo;
|
|
1289
|
+
get_name(): string;
|
|
1290
|
+
get_persistent(): boolean;
|
|
1291
|
+
get_uuid(): string;
|
|
1292
|
+
get_volume(name: string): StorageVol;
|
|
1293
|
+
get_volumes(): StorageVol[];
|
|
1294
|
+
refresh(cancellable?: Gio.Cancellable | null): boolean;
|
|
1295
|
+
refresh_async(cancellable?: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): void;
|
|
1296
|
+
refresh_finish(result: Gio.AsyncResult): boolean;
|
|
1297
|
+
/**
|
|
1298
|
+
* Sets whether or not storage pool `pool` is started automatically on boot.
|
|
1299
|
+
* @param autostart Whether or not to autostart
|
|
1300
|
+
* @returns #TRUE on success, #FALSE otherwise.
|
|
1301
|
+
*/
|
|
1302
|
+
set_autostart(autostart: boolean): boolean;
|
|
1303
|
+
start(flags: number): boolean;
|
|
1304
|
+
start_async(
|
|
1305
|
+
flags: number,
|
|
1306
|
+
cancellable?: Gio.Cancellable | null,
|
|
1307
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
1308
|
+
): void;
|
|
1309
|
+
start_finish(result: Gio.AsyncResult): boolean;
|
|
1310
|
+
stop(): boolean;
|
|
1311
|
+
stop_async(cancellable?: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): void;
|
|
1312
|
+
stop_finish(result: Gio.AsyncResult): boolean;
|
|
1313
|
+
undefine(): boolean;
|
|
1314
|
+
undefine_async(cancellable?: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): void;
|
|
1315
|
+
undefine_finish(result: Gio.AsyncResult): boolean;
|
|
1316
|
+
}
|
|
2457
1317
|
|
|
2458
|
-
|
|
2459
|
-
|
|
1318
|
+
module StorageVol {
|
|
1319
|
+
// Constructor properties interface
|
|
2460
1320
|
|
|
2461
|
-
|
|
1321
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1322
|
+
handle: StorageVolHandle;
|
|
1323
|
+
pool: StoragePool;
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
2462
1326
|
|
|
2463
|
-
|
|
1327
|
+
class StorageVol extends GObject.Object {
|
|
1328
|
+
static $gtype: GObject.GType<StorageVol>;
|
|
1329
|
+
|
|
1330
|
+
// Own properties of LibvirtGObject.StorageVol
|
|
1331
|
+
|
|
1332
|
+
get handle(): StorageVolHandle;
|
|
1333
|
+
get pool(): StoragePool;
|
|
1334
|
+
|
|
1335
|
+
// Constructors of LibvirtGObject.StorageVol
|
|
1336
|
+
|
|
1337
|
+
constructor(properties?: Partial<StorageVol.ConstructorProps>, ...args: any[]);
|
|
1338
|
+
|
|
1339
|
+
_init(...args: any[]): void;
|
|
1340
|
+
|
|
1341
|
+
// Own methods of LibvirtGObject.StorageVol
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
* Deletes the storage volume `vol`.
|
|
1345
|
+
* @param flags the flags
|
|
1346
|
+
* @returns %TRUE on success, %FALSE otherwise
|
|
1347
|
+
*/
|
|
1348
|
+
['delete'](flags: number): boolean;
|
|
1349
|
+
download(stream: Stream, offset: number, length: number, flags: number): boolean;
|
|
1350
|
+
get_config(flags: number): LibvirtGConfig.StorageVol;
|
|
1351
|
+
get_info(): StorageVolInfo;
|
|
1352
|
+
get_name(): string;
|
|
1353
|
+
get_path(): string;
|
|
1354
|
+
/**
|
|
1355
|
+
* Changes the capacity of the storage volume `vol` to `capacity`.
|
|
1356
|
+
* @param capacity the new capacity of the volume
|
|
1357
|
+
* @param flags the flags
|
|
1358
|
+
* @returns #TRUE success, #FALSE otherwise
|
|
1359
|
+
*/
|
|
1360
|
+
resize(capacity: number, flags: StorageVolResizeFlags): boolean;
|
|
1361
|
+
upload(stream: Stream, offset: number, length: number, flags: number): boolean;
|
|
1362
|
+
}
|
|
2464
1363
|
|
|
2465
|
-
|
|
2466
|
-
|
|
1364
|
+
module Stream {
|
|
1365
|
+
// Constructor properties interface
|
|
2467
1366
|
|
|
2468
|
-
interface
|
|
1367
|
+
interface ConstructorProps extends Gio.IOStream.ConstructorProps {
|
|
1368
|
+
handle: StreamHandle;
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
2469
1371
|
|
|
2470
|
-
|
|
1372
|
+
class Stream extends Gio.IOStream {
|
|
1373
|
+
static $gtype: GObject.GType<Stream>;
|
|
1374
|
+
|
|
1375
|
+
// Own properties of LibvirtGObject.Stream
|
|
1376
|
+
|
|
1377
|
+
get handle(): StreamHandle;
|
|
1378
|
+
|
|
1379
|
+
// Constructors of LibvirtGObject.Stream
|
|
1380
|
+
|
|
1381
|
+
constructor(properties?: Partial<Stream.ConstructorProps>, ...args: any[]);
|
|
1382
|
+
|
|
1383
|
+
_init(...args: any[]): void;
|
|
1384
|
+
|
|
1385
|
+
// Own methods of LibvirtGObject.Stream
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* Adds a watch for `stream` to the mainloop
|
|
1389
|
+
* @param priority the priority of the #GVirStream source
|
|
1390
|
+
* @param cond the conditions to watch for (bitfield of #GVirStreamIOCondition)
|
|
1391
|
+
* @param func the function to call when the condition is satisfied
|
|
1392
|
+
* @returns the event source id
|
|
1393
|
+
*/
|
|
1394
|
+
add_watch(priority: number, cond: StreamIOCondition, func: StreamIOFunc): number;
|
|
1395
|
+
/**
|
|
1396
|
+
* Receive data (up to `size` bytes) from a stream.
|
|
1397
|
+
* On error -1 is returned and `error` is set accordingly.
|
|
1398
|
+
*
|
|
1399
|
+
* gvir_stream_receive() can return any number of bytes, up to
|
|
1400
|
+
* `size`. If more than `size` bytes have been received, the additional
|
|
1401
|
+
* data will be returned in future calls to gvir_stream_receive().
|
|
1402
|
+
*
|
|
1403
|
+
* If there is no data available, a %G_IO_ERROR_WOULD_BLOCK error will be
|
|
1404
|
+
* returned.
|
|
1405
|
+
* @param buffer a buffer to read data into (which should be at least @size bytes long).
|
|
1406
|
+
* @param cancellable a %GCancellable or %NULL
|
|
1407
|
+
* @returns Number of bytes read, or 0 if the end of stream reached, or -1 on error.
|
|
1408
|
+
*/
|
|
1409
|
+
receive(buffer: Uint8Array | string, cancellable?: Gio.Cancellable | null): number;
|
|
1410
|
+
/**
|
|
1411
|
+
* Receive the entire data stream, sending the data to the
|
|
1412
|
+
* requested data sink. This is simply a convenient alternative
|
|
1413
|
+
* to virStreamRecv, for apps that do blocking-I/o.
|
|
1414
|
+
* @param cancellable cancellation notifier
|
|
1415
|
+
* @param func the callback for writing data to application
|
|
1416
|
+
* @returns the number of bytes consumed or -1 upon error
|
|
1417
|
+
*/
|
|
1418
|
+
receive_all(cancellable: Gio.Cancellable | null, func: StreamSinkFunc): number;
|
|
1419
|
+
/**
|
|
1420
|
+
* Send data (up to `size` bytes) from a stream.
|
|
1421
|
+
* On error -1 is returned and `error` is set accordingly.
|
|
1422
|
+
*
|
|
1423
|
+
* gvir_stream_send() can return any number of bytes, up to
|
|
1424
|
+
* `size`. If more than `size` bytes have been sendd, the additional
|
|
1425
|
+
* data will be returned in future calls to gvir_stream_send().
|
|
1426
|
+
*
|
|
1427
|
+
* If there is no data available, a %G_IO_ERROR_WOULD_BLOCK error will be
|
|
1428
|
+
* returned.
|
|
1429
|
+
* @param buffer a buffer to write data from (which should be at least @size bytes long).
|
|
1430
|
+
* @param size the number of bytes you want to write to the stream
|
|
1431
|
+
* @param cancellable a %GCancellable or %NULL
|
|
1432
|
+
* @returns Number of bytes written.
|
|
1433
|
+
*/
|
|
1434
|
+
send(buffer: string, size: number, cancellable?: Gio.Cancellable | null): number;
|
|
1435
|
+
/**
|
|
1436
|
+
* Send the entire data stream, sending the data to the
|
|
1437
|
+
* requested data source. This is simply a convenient alternative
|
|
1438
|
+
* to virStreamRecv, for apps that do blocking-I/o.
|
|
1439
|
+
* @param cancellable cancellation notifier
|
|
1440
|
+
* @param func the callback for writing data to application
|
|
1441
|
+
* @returns the number of bytes consumed or -1 upon error
|
|
1442
|
+
*/
|
|
1443
|
+
send_all(cancellable: Gio.Cancellable | null, func: StreamSourceFunc): number;
|
|
1444
|
+
}
|
|
2471
1445
|
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
1446
|
+
type ConnectionClass = typeof Connection;
|
|
1447
|
+
abstract class ConnectionPrivate {
|
|
1448
|
+
static $gtype: GObject.GType<ConnectionPrivate>;
|
|
2475
1449
|
|
|
2476
|
-
|
|
1450
|
+
// Constructors of LibvirtGObject.ConnectionPrivate
|
|
2477
1451
|
|
|
2478
|
-
|
|
1452
|
+
_init(...args: any[]): void;
|
|
1453
|
+
}
|
|
2479
1454
|
|
|
2480
|
-
|
|
2481
|
-
|
|
1455
|
+
type DomainClass = typeof Domain;
|
|
1456
|
+
type DomainDeviceClass = typeof DomainDevice;
|
|
1457
|
+
abstract class DomainDevicePrivate {
|
|
1458
|
+
static $gtype: GObject.GType<DomainDevicePrivate>;
|
|
2482
1459
|
|
|
2483
|
-
|
|
2484
|
-
}
|
|
1460
|
+
// Constructors of LibvirtGObject.DomainDevicePrivate
|
|
2485
1461
|
|
|
2486
|
-
|
|
1462
|
+
_init(...args: any[]): void;
|
|
1463
|
+
}
|
|
2487
1464
|
|
|
2488
|
-
|
|
1465
|
+
type DomainDiskClass = typeof DomainDisk;
|
|
1466
|
+
abstract class DomainDiskPrivate {
|
|
1467
|
+
static $gtype: GObject.GType<DomainDiskPrivate>;
|
|
2489
1468
|
|
|
2490
|
-
|
|
2491
|
-
}
|
|
1469
|
+
// Constructors of LibvirtGObject.DomainDiskPrivate
|
|
2492
1470
|
|
|
2493
|
-
|
|
1471
|
+
_init(...args: any[]): void;
|
|
1472
|
+
}
|
|
2494
1473
|
|
|
2495
|
-
|
|
1474
|
+
class DomainDiskStats {
|
|
1475
|
+
static $gtype: GObject.GType<DomainDiskStats>;
|
|
1476
|
+
|
|
1477
|
+
// Own fields of LibvirtGObject.DomainDiskStats
|
|
1478
|
+
|
|
1479
|
+
rd_req: number;
|
|
1480
|
+
rd_bytes: number;
|
|
1481
|
+
wr_req: number;
|
|
1482
|
+
wr_bytes: number;
|
|
1483
|
+
errs: number;
|
|
1484
|
+
|
|
1485
|
+
// Constructors of LibvirtGObject.DomainDiskStats
|
|
1486
|
+
|
|
1487
|
+
constructor(
|
|
1488
|
+
properties?: Partial<{
|
|
1489
|
+
rd_req: number;
|
|
1490
|
+
rd_bytes: number;
|
|
1491
|
+
wr_req: number;
|
|
1492
|
+
wr_bytes: number;
|
|
1493
|
+
errs: number;
|
|
1494
|
+
}>,
|
|
1495
|
+
);
|
|
1496
|
+
_init(...args: any[]): void;
|
|
1497
|
+
}
|
|
2496
1498
|
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
cpus: number
|
|
2500
|
-
mhz: number
|
|
2501
|
-
nodes: number
|
|
2502
|
-
sockets: number
|
|
2503
|
-
cores: number
|
|
2504
|
-
threads: number
|
|
2505
|
-
}
|
|
1499
|
+
class DomainInfo {
|
|
1500
|
+
static $gtype: GObject.GType<DomainInfo>;
|
|
2506
1501
|
|
|
2507
|
-
|
|
1502
|
+
// Own fields of LibvirtGObject.DomainInfo
|
|
2508
1503
|
|
|
2509
|
-
|
|
1504
|
+
state: DomainState;
|
|
1505
|
+
maxMem: number;
|
|
1506
|
+
memory: number;
|
|
1507
|
+
nrVirtCpu: number;
|
|
1508
|
+
cpuTime: number;
|
|
2510
1509
|
|
|
2511
|
-
|
|
2512
|
-
}
|
|
1510
|
+
// Constructors of LibvirtGObject.DomainInfo
|
|
2513
1511
|
|
|
2514
|
-
|
|
1512
|
+
_init(...args: any[]): void;
|
|
1513
|
+
}
|
|
2515
1514
|
|
|
2516
|
-
|
|
1515
|
+
type DomainInterfaceClass = typeof DomainInterface;
|
|
1516
|
+
abstract class DomainInterfacePrivate {
|
|
1517
|
+
static $gtype: GObject.GType<DomainInterfacePrivate>;
|
|
2517
1518
|
|
|
2518
|
-
|
|
2519
|
-
padding: any[]
|
|
2520
|
-
}
|
|
1519
|
+
// Constructors of LibvirtGObject.DomainInterfacePrivate
|
|
2521
1520
|
|
|
2522
|
-
|
|
1521
|
+
_init(...args: any[]): void;
|
|
1522
|
+
}
|
|
2523
1523
|
|
|
2524
|
-
|
|
1524
|
+
class DomainInterfaceStats {
|
|
1525
|
+
static $gtype: GObject.GType<DomainInterfaceStats>;
|
|
1526
|
+
|
|
1527
|
+
// Own fields of LibvirtGObject.DomainInterfaceStats
|
|
1528
|
+
|
|
1529
|
+
rx_bytes: number;
|
|
1530
|
+
rx_packets: number;
|
|
1531
|
+
rx_errs: number;
|
|
1532
|
+
rx_drop: number;
|
|
1533
|
+
tx_bytes: number;
|
|
1534
|
+
tx_packets: number;
|
|
1535
|
+
tx_errs: number;
|
|
1536
|
+
tx_drop: number;
|
|
1537
|
+
|
|
1538
|
+
// Constructors of LibvirtGObject.DomainInterfaceStats
|
|
1539
|
+
|
|
1540
|
+
constructor(
|
|
1541
|
+
properties?: Partial<{
|
|
1542
|
+
rx_bytes: number;
|
|
1543
|
+
rx_packets: number;
|
|
1544
|
+
rx_errs: number;
|
|
1545
|
+
rx_drop: number;
|
|
1546
|
+
tx_bytes: number;
|
|
1547
|
+
tx_packets: number;
|
|
1548
|
+
tx_errs: number;
|
|
1549
|
+
tx_drop: number;
|
|
1550
|
+
}>,
|
|
1551
|
+
);
|
|
1552
|
+
_init(...args: any[]): void;
|
|
1553
|
+
}
|
|
2525
1554
|
|
|
2526
|
-
|
|
2527
|
-
|
|
1555
|
+
abstract class DomainPrivate {
|
|
1556
|
+
static $gtype: GObject.GType<DomainPrivate>;
|
|
2528
1557
|
|
|
2529
|
-
|
|
2530
|
-
}
|
|
1558
|
+
// Constructors of LibvirtGObject.DomainPrivate
|
|
2531
1559
|
|
|
2532
|
-
|
|
1560
|
+
_init(...args: any[]): void;
|
|
1561
|
+
}
|
|
2533
1562
|
|
|
2534
|
-
|
|
1563
|
+
type DomainSnapshotClass = typeof DomainSnapshot;
|
|
1564
|
+
abstract class DomainSnapshotPrivate {
|
|
1565
|
+
static $gtype: GObject.GType<DomainSnapshotPrivate>;
|
|
2535
1566
|
|
|
2536
|
-
|
|
2537
|
-
}
|
|
1567
|
+
// Constructors of LibvirtGObject.DomainSnapshotPrivate
|
|
2538
1568
|
|
|
2539
|
-
|
|
1569
|
+
_init(...args: any[]): void;
|
|
1570
|
+
}
|
|
2540
1571
|
|
|
2541
|
-
|
|
1572
|
+
type InterfaceClass = typeof Interface;
|
|
1573
|
+
abstract class InterfacePrivate {
|
|
1574
|
+
static $gtype: GObject.GType<InterfacePrivate>;
|
|
2542
1575
|
|
|
2543
|
-
|
|
2544
|
-
padding: any[]
|
|
2545
|
-
}
|
|
1576
|
+
// Constructors of LibvirtGObject.InterfacePrivate
|
|
2546
1577
|
|
|
2547
|
-
|
|
1578
|
+
_init(...args: any[]): void;
|
|
1579
|
+
}
|
|
2548
1580
|
|
|
2549
|
-
|
|
1581
|
+
type ManagerClass = typeof Manager;
|
|
1582
|
+
abstract class ManagerPrivate {
|
|
1583
|
+
static $gtype: GObject.GType<ManagerPrivate>;
|
|
2550
1584
|
|
|
2551
|
-
|
|
2552
|
-
}
|
|
1585
|
+
// Constructors of LibvirtGObject.ManagerPrivate
|
|
2553
1586
|
|
|
2554
|
-
|
|
1587
|
+
_init(...args: any[]): void;
|
|
1588
|
+
}
|
|
2555
1589
|
|
|
2556
|
-
|
|
1590
|
+
type NetworkClass = typeof Network;
|
|
1591
|
+
type NetworkDHCPLeaseClass = typeof NetworkDHCPLease;
|
|
1592
|
+
abstract class NetworkDHCPLeasePrivate {
|
|
1593
|
+
static $gtype: GObject.GType<NetworkDHCPLeasePrivate>;
|
|
2557
1594
|
|
|
2558
|
-
|
|
2559
|
-
capacity: number
|
|
2560
|
-
allocation: number
|
|
2561
|
-
available: number
|
|
2562
|
-
}
|
|
1595
|
+
// Constructors of LibvirtGObject.NetworkDHCPLeasePrivate
|
|
2563
1596
|
|
|
2564
|
-
|
|
1597
|
+
_init(...args: any[]): void;
|
|
1598
|
+
}
|
|
2565
1599
|
|
|
2566
|
-
|
|
1600
|
+
type NetworkFilterClass = typeof NetworkFilter;
|
|
1601
|
+
abstract class NetworkFilterPrivate {
|
|
1602
|
+
static $gtype: GObject.GType<NetworkFilterPrivate>;
|
|
2567
1603
|
|
|
2568
|
-
|
|
2569
|
-
}
|
|
1604
|
+
// Constructors of LibvirtGObject.NetworkFilterPrivate
|
|
2570
1605
|
|
|
2571
|
-
|
|
2572
|
-
}
|
|
1606
|
+
_init(...args: any[]): void;
|
|
1607
|
+
}
|
|
2573
1608
|
|
|
2574
|
-
class
|
|
1609
|
+
abstract class NetworkPrivate {
|
|
1610
|
+
static $gtype: GObject.GType<NetworkPrivate>;
|
|
2575
1611
|
|
|
2576
|
-
|
|
1612
|
+
// Constructors of LibvirtGObject.NetworkPrivate
|
|
2577
1613
|
|
|
2578
|
-
|
|
2579
|
-
}
|
|
1614
|
+
_init(...args: any[]): void;
|
|
1615
|
+
}
|
|
2580
1616
|
|
|
2581
|
-
|
|
1617
|
+
type NodeDeviceClass = typeof NodeDevice;
|
|
1618
|
+
abstract class NodeDevicePrivate {
|
|
1619
|
+
static $gtype: GObject.GType<NodeDevicePrivate>;
|
|
2582
1620
|
|
|
2583
|
-
|
|
1621
|
+
// Constructors of LibvirtGObject.NodeDevicePrivate
|
|
2584
1622
|
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
}
|
|
1623
|
+
_init(...args: any[]): void;
|
|
1624
|
+
}
|
|
2588
1625
|
|
|
2589
|
-
|
|
1626
|
+
class NodeInfo {
|
|
1627
|
+
static $gtype: GObject.GType<NodeInfo>;
|
|
1628
|
+
|
|
1629
|
+
// Own fields of LibvirtGObject.NodeInfo
|
|
1630
|
+
|
|
1631
|
+
model: number[];
|
|
1632
|
+
memory: number;
|
|
1633
|
+
cpus: number;
|
|
1634
|
+
mhz: number;
|
|
1635
|
+
nodes: number;
|
|
1636
|
+
sockets: number;
|
|
1637
|
+
cores: number;
|
|
1638
|
+
threads: number;
|
|
1639
|
+
|
|
1640
|
+
// Constructors of LibvirtGObject.NodeInfo
|
|
1641
|
+
|
|
1642
|
+
constructor(
|
|
1643
|
+
properties?: Partial<{
|
|
1644
|
+
model: number[];
|
|
1645
|
+
memory: number;
|
|
1646
|
+
cpus: number;
|
|
1647
|
+
mhz: number;
|
|
1648
|
+
nodes: number;
|
|
1649
|
+
sockets: number;
|
|
1650
|
+
cores: number;
|
|
1651
|
+
threads: number;
|
|
1652
|
+
}>,
|
|
1653
|
+
);
|
|
1654
|
+
_init(...args: any[]): void;
|
|
1655
|
+
}
|
|
2590
1656
|
|
|
2591
|
-
|
|
1657
|
+
type SecretClass = typeof Secret;
|
|
1658
|
+
abstract class SecretPrivate {
|
|
1659
|
+
static $gtype: GObject.GType<SecretPrivate>;
|
|
2592
1660
|
|
|
2593
|
-
|
|
2594
|
-
}
|
|
1661
|
+
// Constructors of LibvirtGObject.SecretPrivate
|
|
2595
1662
|
|
|
2596
|
-
|
|
1663
|
+
_init(...args: any[]): void;
|
|
1664
|
+
}
|
|
2597
1665
|
|
|
2598
|
-
|
|
1666
|
+
type StoragePoolClass = typeof StoragePool;
|
|
1667
|
+
class StoragePoolInfo {
|
|
1668
|
+
static $gtype: GObject.GType<StoragePoolInfo>;
|
|
2599
1669
|
|
|
2600
|
-
|
|
2601
|
-
capacity: number
|
|
2602
|
-
allocation: number
|
|
2603
|
-
}
|
|
1670
|
+
// Own fields of LibvirtGObject.StoragePoolInfo
|
|
2604
1671
|
|
|
2605
|
-
|
|
1672
|
+
state: StoragePoolState;
|
|
1673
|
+
capacity: number;
|
|
1674
|
+
allocation: number;
|
|
1675
|
+
available: number;
|
|
2606
1676
|
|
|
2607
|
-
|
|
1677
|
+
// Constructors of LibvirtGObject.StoragePoolInfo
|
|
2608
1678
|
|
|
2609
|
-
|
|
2610
|
-
}
|
|
1679
|
+
_init(...args: any[]): void;
|
|
1680
|
+
}
|
|
2611
1681
|
|
|
2612
|
-
|
|
2613
|
-
|
|
1682
|
+
abstract class StoragePoolPrivate {
|
|
1683
|
+
static $gtype: GObject.GType<StoragePoolPrivate>;
|
|
2614
1684
|
|
|
2615
|
-
|
|
1685
|
+
// Constructors of LibvirtGObject.StoragePoolPrivate
|
|
2616
1686
|
|
|
2617
|
-
|
|
1687
|
+
_init(...args: any[]): void;
|
|
1688
|
+
}
|
|
2618
1689
|
|
|
2619
|
-
|
|
2620
|
-
|
|
1690
|
+
type StorageVolClass = typeof StorageVol;
|
|
1691
|
+
class StorageVolInfo {
|
|
1692
|
+
static $gtype: GObject.GType<StorageVolInfo>;
|
|
2621
1693
|
|
|
2622
|
-
|
|
1694
|
+
// Own fields of LibvirtGObject.StorageVolInfo
|
|
2623
1695
|
|
|
2624
|
-
|
|
1696
|
+
type: StorageVolType;
|
|
1697
|
+
capacity: number;
|
|
1698
|
+
allocation: number;
|
|
2625
1699
|
|
|
2626
|
-
|
|
2627
|
-
padding: any[]
|
|
2628
|
-
}
|
|
1700
|
+
// Constructors of LibvirtGObject.StorageVolInfo
|
|
2629
1701
|
|
|
2630
|
-
|
|
1702
|
+
_init(...args: any[]): void;
|
|
1703
|
+
}
|
|
2631
1704
|
|
|
2632
|
-
|
|
1705
|
+
abstract class StorageVolPrivate {
|
|
1706
|
+
static $gtype: GObject.GType<StorageVolPrivate>;
|
|
2633
1707
|
|
|
2634
|
-
|
|
2635
|
-
}
|
|
1708
|
+
// Constructors of LibvirtGObject.StorageVolPrivate
|
|
2636
1709
|
|
|
2637
|
-
|
|
2638
|
-
}
|
|
1710
|
+
_init(...args: any[]): void;
|
|
1711
|
+
}
|
|
2639
1712
|
|
|
2640
|
-
|
|
1713
|
+
type StreamClass = typeof Stream;
|
|
1714
|
+
abstract class StreamPrivate {
|
|
1715
|
+
static $gtype: GObject.GType<StreamPrivate>;
|
|
2641
1716
|
|
|
2642
|
-
|
|
1717
|
+
// Constructors of LibvirtGObject.StreamPrivate
|
|
2643
1718
|
|
|
2644
|
-
|
|
2645
|
-
}
|
|
1719
|
+
_init(...args: any[]): void;
|
|
1720
|
+
}
|
|
2646
1721
|
|
|
2647
|
-
/**
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
const __name__: string
|
|
2652
|
-
/**
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
const __version__: string
|
|
1722
|
+
/**
|
|
1723
|
+
* Name of the imported GIR library
|
|
1724
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
1725
|
+
*/
|
|
1726
|
+
const __name__: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* Version of the imported GIR library
|
|
1729
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
1730
|
+
*/
|
|
1731
|
+
const __version__: string;
|
|
2657
1732
|
}
|
|
2658
1733
|
|
|
2659
1734
|
export default LibvirtGObject;
|
|
2660
|
-
// END
|
|
1735
|
+
// END
|