@girs/govirt-1.0 1.0.0-3.0.0-beta.12

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 ADDED
@@ -0,0 +1,31 @@
1
+
2
+ # GoVirt-1.0
3
+
4
+ GJS TypeScript type definitions for GoVirt-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gjs) v3.0.0-beta.12.
5
+
6
+ ## Install
7
+
8
+ To use this type definitions, install them with NPM like this:
9
+ ```bash
10
+ npm install @girs/govirt-1.0
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ You can import this package into your project like this:
16
+ ```ts
17
+ import GoVirt from '@girs/govirt-1.0';
18
+ ```
19
+
20
+ Or if you prefer CommonJS, you can also use this:
21
+ ```ts
22
+ const GoVirt = require('@girs/govirt-1.0');
23
+ ```
24
+
25
+ If you use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules), you can also import this module like you would do this in JavaScript:
26
+
27
+ ```ts
28
+ import GoVirt from 'gi://GoVirt?version=1.0';
29
+ ```
30
+
31
+ Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
package/govirt-1.0.cjs ADDED
@@ -0,0 +1,9 @@
1
+
2
+
3
+ imports.gi.versions.GoVirt = '1.0'
4
+ const GoVirt = imports.gi.GoVirt;
5
+
6
+ module.exports = GoVirt;
7
+
8
+
9
+
@@ -0,0 +1,404 @@
1
+
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-gjs
7
+ */
8
+ /**
9
+ * GoVirt-1.0
10
+ */
11
+
12
+ import type Rest from '@girs/rest-0.7';
13
+ import type Soup from '@girs/soup-2.4';
14
+ import type Gio from '@girs/gio-2.0';
15
+ import type GObject from '@girs/gobject-2.0';
16
+ import type GLib from '@girs/glib-2.0';
17
+
18
+ export enum ProxyError {
19
+ PARSING_FAILED,
20
+ ACTION_FAILED,
21
+ FAULT,
22
+ }
23
+ export enum RestCallError {
24
+ XML,
25
+ }
26
+ export enum VmDisplayType {
27
+ SPICE,
28
+ VNC,
29
+ }
30
+ export enum VmState {
31
+ DOWN,
32
+ UP,
33
+ REBOOTING,
34
+ }
35
+ export function proxy_error_quark(): GLib.Quark
36
+ export function rest_call_error_quark(): GLib.Quark
37
+ export module Proxy {
38
+
39
+ // Constructor properties interface
40
+
41
+ export interface ConstructorProperties extends Rest.Proxy.ConstructorProperties {
42
+
43
+ // Own constructor properties of GoVirt-1.0.GoVirt.Proxy
44
+
45
+ admin?: boolean | null
46
+ ca_cert?: any[] | null
47
+ }
48
+
49
+ }
50
+
51
+ export interface Proxy {
52
+
53
+ // Own properties of GoVirt-1.0.GoVirt.Proxy
54
+
55
+ admin: boolean
56
+ ca_cert: any[]
57
+
58
+ // Own fields of GoVirt-1.0.GoVirt.Proxy
59
+
60
+ parent: Rest.Proxy & GObject.Object
61
+ priv: ProxyPrivate
62
+
63
+ // Owm methods of GoVirt-1.0.GoVirt.Proxy
64
+
65
+ fetch_ca_certificate(): boolean
66
+ fetch_ca_certificate_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
67
+ fetch_ca_certificate_finish(result: Gio.AsyncResult): Uint8Array
68
+ fetch_vms(): boolean
69
+ fetch_vms_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
70
+ fetch_vms_finish(result: Gio.AsyncResult): Vm[]
71
+ /**
72
+ * Gets the list of remote VMs from the proxy object.
73
+ * This method does not initiate any network activity, the remote VM list
74
+ * must have been fetched with ovirt_proxy_fetch_vms() or
75
+ * ovirt_proxy_fetch_vms_async() before calling this function.
76
+ * @returns the list of #OvirtVm associated with #OvirtProxy. The returned list should not be freed nor modified, and can become invalid any time a #OvirtProxy call completes.
77
+ */
78
+ get_vms(): Vm[]
79
+ /**
80
+ * Looks up a virtual machine whose name is `name`. If it cannot be found,
81
+ * NULL is returned. This method does not initiate any network activity,
82
+ * the remote VM list must have been fetched with ovirt_proxy_fetch_vms()
83
+ * or ovirt_proxy_fetch_vms_async() before calling this function.
84
+ * @param vm_name name of the virtual machine to lookup
85
+ * @returns a #OvirtVm whose name is @name or NULL
86
+ */
87
+ lookup_vm(vm_name: string | null): Vm
88
+
89
+ // Class property signals of GoVirt-1.0.GoVirt.Proxy
90
+
91
+ connect(sigName: "notify::admin", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
92
+ connect_after(sigName: "notify::admin", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
93
+ emit(sigName: "notify::admin", ...args: any[]): void
94
+ connect(sigName: "notify::ca-cert", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
95
+ connect_after(sigName: "notify::ca-cert", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
96
+ emit(sigName: "notify::ca-cert", ...args: any[]): void
97
+ connect(sigName: "notify::binding-required", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
98
+ connect_after(sigName: "notify::binding-required", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
99
+ emit(sigName: "notify::binding-required", ...args: any[]): void
100
+ connect(sigName: "notify::disable-cookies", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
101
+ connect_after(sigName: "notify::disable-cookies", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
102
+ emit(sigName: "notify::disable-cookies", ...args: any[]): void
103
+ connect(sigName: "notify::password", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
104
+ connect_after(sigName: "notify::password", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
105
+ emit(sigName: "notify::password", ...args: any[]): void
106
+ connect(sigName: "notify::ssl-ca-file", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
107
+ connect_after(sigName: "notify::ssl-ca-file", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
108
+ emit(sigName: "notify::ssl-ca-file", ...args: any[]): void
109
+ connect(sigName: "notify::ssl-strict", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
110
+ connect_after(sigName: "notify::ssl-strict", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
111
+ emit(sigName: "notify::ssl-strict", ...args: any[]): void
112
+ connect(sigName: "notify::url-format", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
113
+ connect_after(sigName: "notify::url-format", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
114
+ emit(sigName: "notify::url-format", ...args: any[]): void
115
+ connect(sigName: "notify::user-agent", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
116
+ connect_after(sigName: "notify::user-agent", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
117
+ emit(sigName: "notify::user-agent", ...args: any[]): void
118
+ connect(sigName: "notify::username", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
119
+ connect_after(sigName: "notify::username", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
120
+ emit(sigName: "notify::username", ...args: any[]): void
121
+ connect(sigName: string, callback: (...args: any[]) => void): number
122
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
123
+ emit(sigName: string, ...args: any[]): void
124
+ disconnect(id: number): void
125
+ }
126
+
127
+ export class Proxy extends Rest.Proxy {
128
+
129
+ // Own properties of GoVirt-1.0.GoVirt.Proxy
130
+
131
+ static name: string
132
+ static $gtype: GObject.GType<Proxy>
133
+
134
+ // Constructors of GoVirt-1.0.GoVirt.Proxy
135
+
136
+ constructor(config?: Proxy.ConstructorProperties)
137
+ constructor(uri: string | null)
138
+ static new(uri: string | null): Proxy
139
+
140
+ // Overloads of new
141
+
142
+ /**
143
+ * Create a new #RestProxy for the specified endpoint `url_format,` using the
144
+ * "GET" method.
145
+ *
146
+ * Set `binding_required` to %TRUE if the URL contains string formatting
147
+ * operations (for example "http://foo.com/%<!-- -->s". These must be expanded
148
+ * using rest_proxy_bind() before invoking the proxy.
149
+ * @constructor
150
+ * @param url_format the endpoint URL
151
+ * @param binding_required whether the URL needs to be bound before calling
152
+ * @returns A new #RestProxy.
153
+ */
154
+ static new(url_format: string | null, binding_required: boolean): Rest.Proxy
155
+ _init(config?: Proxy.ConstructorProperties): void
156
+ }
157
+
158
+ export module Vm {
159
+
160
+ // Constructor properties interface
161
+
162
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
163
+
164
+ // Own constructor properties of GoVirt-1.0.GoVirt.Vm
165
+
166
+ display?: VmDisplay | null
167
+ href?: string | null
168
+ name?: string | null
169
+ state?: VmState | null
170
+ uuid?: string | null
171
+ }
172
+
173
+ }
174
+
175
+ export interface Vm {
176
+
177
+ // Own properties of GoVirt-1.0.GoVirt.Vm
178
+
179
+ display: VmDisplay
180
+ href: string
181
+ name: string
182
+ state: VmState
183
+ uuid: string
184
+
185
+ // Own fields of GoVirt-1.0.GoVirt.Vm
186
+
187
+ parent: GObject.Object
188
+ priv: VmPrivate
189
+
190
+ // Owm methods of GoVirt-1.0.GoVirt.Vm
191
+
192
+ get_ticket(proxy: Proxy): boolean
193
+ get_ticket_async(proxy: Proxy, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
194
+ get_ticket_finish(result: Gio.AsyncResult): boolean
195
+ start(proxy: Proxy): boolean
196
+ start_async(proxy: Proxy, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
197
+ start_finish(result: Gio.AsyncResult): boolean
198
+ stop(proxy: Proxy): boolean
199
+ stop_async(proxy: Proxy, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
200
+ stop_finish(result: Gio.AsyncResult): boolean
201
+
202
+ // Class property signals of GoVirt-1.0.GoVirt.Vm
203
+
204
+ connect(sigName: "notify::display", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
205
+ connect_after(sigName: "notify::display", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
206
+ emit(sigName: "notify::display", ...args: any[]): void
207
+ connect(sigName: "notify::href", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
208
+ connect_after(sigName: "notify::href", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
209
+ emit(sigName: "notify::href", ...args: any[]): void
210
+ connect(sigName: "notify::name", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
211
+ connect_after(sigName: "notify::name", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
212
+ emit(sigName: "notify::name", ...args: any[]): void
213
+ connect(sigName: "notify::state", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
214
+ connect_after(sigName: "notify::state", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
215
+ emit(sigName: "notify::state", ...args: any[]): void
216
+ connect(sigName: "notify::uuid", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
217
+ connect_after(sigName: "notify::uuid", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
218
+ emit(sigName: "notify::uuid", ...args: any[]): void
219
+ connect(sigName: string, callback: (...args: any[]) => void): number
220
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
221
+ emit(sigName: string, ...args: any[]): void
222
+ disconnect(id: number): void
223
+ }
224
+
225
+ export class Vm extends GObject.Object {
226
+
227
+ // Own properties of GoVirt-1.0.GoVirt.Vm
228
+
229
+ static name: string
230
+ static $gtype: GObject.GType<Vm>
231
+
232
+ // Constructors of GoVirt-1.0.GoVirt.Vm
233
+
234
+ constructor(config?: Vm.ConstructorProperties)
235
+ constructor()
236
+ static new(): Vm
237
+ _init(config?: Vm.ConstructorProperties): void
238
+ }
239
+
240
+ export module VmDisplay {
241
+
242
+ // Constructor properties interface
243
+
244
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
245
+
246
+ // Own constructor properties of GoVirt-1.0.GoVirt.VmDisplay
247
+
248
+ address?: string | null
249
+ expiry?: number | null
250
+ monitor_count?: number | null
251
+ port?: number | null
252
+ secure_port?: number | null
253
+ ticket?: string | null
254
+ type?: VmDisplayType | null
255
+ }
256
+
257
+ }
258
+
259
+ export interface VmDisplay {
260
+
261
+ // Own properties of GoVirt-1.0.GoVirt.VmDisplay
262
+
263
+ address: string
264
+ expiry: number
265
+ monitor_count: number
266
+ port: number
267
+ secure_port: number
268
+ ticket: string
269
+ type: VmDisplayType
270
+
271
+ // Own fields of GoVirt-1.0.GoVirt.VmDisplay
272
+
273
+ parent: GObject.Object
274
+ priv: VmDisplayPrivate
275
+
276
+ // Class property signals of GoVirt-1.0.GoVirt.VmDisplay
277
+
278
+ connect(sigName: "notify::address", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
279
+ connect_after(sigName: "notify::address", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
280
+ emit(sigName: "notify::address", ...args: any[]): void
281
+ connect(sigName: "notify::expiry", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
282
+ connect_after(sigName: "notify::expiry", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
283
+ emit(sigName: "notify::expiry", ...args: any[]): void
284
+ connect(sigName: "notify::monitor-count", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
285
+ connect_after(sigName: "notify::monitor-count", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
286
+ emit(sigName: "notify::monitor-count", ...args: any[]): void
287
+ connect(sigName: "notify::port", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
288
+ connect_after(sigName: "notify::port", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
289
+ emit(sigName: "notify::port", ...args: any[]): void
290
+ connect(sigName: "notify::secure-port", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
291
+ connect_after(sigName: "notify::secure-port", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
292
+ emit(sigName: "notify::secure-port", ...args: any[]): void
293
+ connect(sigName: "notify::ticket", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
294
+ connect_after(sigName: "notify::ticket", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
295
+ emit(sigName: "notify::ticket", ...args: any[]): void
296
+ connect(sigName: "notify::type", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
297
+ connect_after(sigName: "notify::type", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
298
+ emit(sigName: "notify::type", ...args: any[]): void
299
+ connect(sigName: string, callback: (...args: any[]) => void): number
300
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
301
+ emit(sigName: string, ...args: any[]): void
302
+ disconnect(id: number): void
303
+ }
304
+
305
+ export class VmDisplay extends GObject.Object {
306
+
307
+ // Own properties of GoVirt-1.0.GoVirt.VmDisplay
308
+
309
+ static name: string
310
+ static $gtype: GObject.GType<VmDisplay>
311
+
312
+ // Constructors of GoVirt-1.0.GoVirt.VmDisplay
313
+
314
+ constructor(config?: VmDisplay.ConstructorProperties)
315
+ constructor()
316
+ static new(): VmDisplay
317
+ _init(config?: VmDisplay.ConstructorProperties): void
318
+ }
319
+
320
+ export interface ProxyClass {
321
+
322
+ // Own fields of GoVirt-1.0.GoVirt.ProxyClass
323
+
324
+ parent_class: Rest.ProxyClass
325
+ }
326
+
327
+ export abstract class ProxyClass {
328
+
329
+ // Own properties of GoVirt-1.0.GoVirt.ProxyClass
330
+
331
+ static name: string
332
+ }
333
+
334
+ export interface ProxyPrivate {
335
+ }
336
+
337
+ export class ProxyPrivate {
338
+
339
+ // Own properties of GoVirt-1.0.GoVirt.ProxyPrivate
340
+
341
+ static name: string
342
+ }
343
+
344
+ export interface VmClass {
345
+
346
+ // Own fields of GoVirt-1.0.GoVirt.VmClass
347
+
348
+ parent_class: GObject.ObjectClass
349
+ padding: any[]
350
+ }
351
+
352
+ export abstract class VmClass {
353
+
354
+ // Own properties of GoVirt-1.0.GoVirt.VmClass
355
+
356
+ static name: string
357
+ }
358
+
359
+ export interface VmDisplayClass {
360
+
361
+ // Own fields of GoVirt-1.0.GoVirt.VmDisplayClass
362
+
363
+ parent_class: GObject.ObjectClass
364
+ padding: any[]
365
+ }
366
+
367
+ export abstract class VmDisplayClass {
368
+
369
+ // Own properties of GoVirt-1.0.GoVirt.VmDisplayClass
370
+
371
+ static name: string
372
+ }
373
+
374
+ export interface VmDisplayPrivate {
375
+ }
376
+
377
+ export class VmDisplayPrivate {
378
+
379
+ // Own properties of GoVirt-1.0.GoVirt.VmDisplayPrivate
380
+
381
+ static name: string
382
+ }
383
+
384
+ export interface VmPrivate {
385
+ }
386
+
387
+ export class VmPrivate {
388
+
389
+ // Own properties of GoVirt-1.0.GoVirt.VmPrivate
390
+
391
+ static name: string
392
+ }
393
+
394
+ /**
395
+ * Name of the imported GIR library
396
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
397
+ */
398
+ export const __name__: string
399
+ /**
400
+ * Version of the imported GIR library
401
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
402
+ */
403
+ export const __version__: string
404
+ // END
@@ -0,0 +1,409 @@
1
+
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-gjs
7
+ */
8
+ /**
9
+ * GoVirt-1.0
10
+ */
11
+
12
+ import type Rest from '@girs/rest-0.7';
13
+ import type Soup from '@girs/soup-2.4';
14
+ import type Gio from '@girs/gio-2.0';
15
+ import type GObject from '@girs/gobject-2.0';
16
+ import type GLib from '@girs/glib-2.0';
17
+
18
+ export namespace GoVirt {
19
+
20
+ enum ProxyError {
21
+ PARSING_FAILED,
22
+ ACTION_FAILED,
23
+ FAULT,
24
+ }
25
+ enum RestCallError {
26
+ XML,
27
+ }
28
+ enum VmDisplayType {
29
+ SPICE,
30
+ VNC,
31
+ }
32
+ enum VmState {
33
+ DOWN,
34
+ UP,
35
+ REBOOTING,
36
+ }
37
+ function proxy_error_quark(): GLib.Quark
38
+ function rest_call_error_quark(): GLib.Quark
39
+ module Proxy {
40
+
41
+ // Constructor properties interface
42
+
43
+ interface ConstructorProperties extends Rest.Proxy.ConstructorProperties {
44
+
45
+ // Own constructor properties of GoVirt-1.0.GoVirt.Proxy
46
+
47
+ admin?: boolean | null
48
+ ca_cert?: any[] | null
49
+ }
50
+
51
+ }
52
+
53
+ interface Proxy {
54
+
55
+ // Own properties of GoVirt-1.0.GoVirt.Proxy
56
+
57
+ admin: boolean
58
+ ca_cert: any[]
59
+
60
+ // Own fields of GoVirt-1.0.GoVirt.Proxy
61
+
62
+ parent: Rest.Proxy & GObject.Object
63
+ priv: ProxyPrivate
64
+
65
+ // Owm methods of GoVirt-1.0.GoVirt.Proxy
66
+
67
+ fetch_ca_certificate(): boolean
68
+ fetch_ca_certificate_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
69
+ fetch_ca_certificate_finish(result: Gio.AsyncResult): Uint8Array
70
+ fetch_vms(): boolean
71
+ fetch_vms_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
72
+ fetch_vms_finish(result: Gio.AsyncResult): Vm[]
73
+ /**
74
+ * Gets the list of remote VMs from the proxy object.
75
+ * This method does not initiate any network activity, the remote VM list
76
+ * must have been fetched with ovirt_proxy_fetch_vms() or
77
+ * ovirt_proxy_fetch_vms_async() before calling this function.
78
+ * @returns the list of #OvirtVm associated with #OvirtProxy. The returned list should not be freed nor modified, and can become invalid any time a #OvirtProxy call completes.
79
+ */
80
+ get_vms(): Vm[]
81
+ /**
82
+ * Looks up a virtual machine whose name is `name`. If it cannot be found,
83
+ * NULL is returned. This method does not initiate any network activity,
84
+ * the remote VM list must have been fetched with ovirt_proxy_fetch_vms()
85
+ * or ovirt_proxy_fetch_vms_async() before calling this function.
86
+ * @param vm_name name of the virtual machine to lookup
87
+ * @returns a #OvirtVm whose name is @name or NULL
88
+ */
89
+ lookup_vm(vm_name: string | null): Vm
90
+
91
+ // Class property signals of GoVirt-1.0.GoVirt.Proxy
92
+
93
+ connect(sigName: "notify::admin", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
94
+ connect_after(sigName: "notify::admin", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
95
+ emit(sigName: "notify::admin", ...args: any[]): void
96
+ connect(sigName: "notify::ca-cert", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
97
+ connect_after(sigName: "notify::ca-cert", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
98
+ emit(sigName: "notify::ca-cert", ...args: any[]): void
99
+ connect(sigName: "notify::binding-required", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
100
+ connect_after(sigName: "notify::binding-required", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
101
+ emit(sigName: "notify::binding-required", ...args: any[]): void
102
+ connect(sigName: "notify::disable-cookies", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
103
+ connect_after(sigName: "notify::disable-cookies", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
104
+ emit(sigName: "notify::disable-cookies", ...args: any[]): void
105
+ connect(sigName: "notify::password", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
106
+ connect_after(sigName: "notify::password", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
107
+ emit(sigName: "notify::password", ...args: any[]): void
108
+ connect(sigName: "notify::ssl-ca-file", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
109
+ connect_after(sigName: "notify::ssl-ca-file", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
110
+ emit(sigName: "notify::ssl-ca-file", ...args: any[]): void
111
+ connect(sigName: "notify::ssl-strict", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
112
+ connect_after(sigName: "notify::ssl-strict", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
113
+ emit(sigName: "notify::ssl-strict", ...args: any[]): void
114
+ connect(sigName: "notify::url-format", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
115
+ connect_after(sigName: "notify::url-format", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
116
+ emit(sigName: "notify::url-format", ...args: any[]): void
117
+ connect(sigName: "notify::user-agent", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
118
+ connect_after(sigName: "notify::user-agent", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
119
+ emit(sigName: "notify::user-agent", ...args: any[]): void
120
+ connect(sigName: "notify::username", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
121
+ connect_after(sigName: "notify::username", callback: (($obj: Proxy, pspec: GObject.ParamSpec) => void)): number
122
+ emit(sigName: "notify::username", ...args: any[]): void
123
+ connect(sigName: string, callback: (...args: any[]) => void): number
124
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
125
+ emit(sigName: string, ...args: any[]): void
126
+ disconnect(id: number): void
127
+ }
128
+
129
+ class Proxy extends Rest.Proxy {
130
+
131
+ // Own properties of GoVirt-1.0.GoVirt.Proxy
132
+
133
+ static name: string
134
+ static $gtype: GObject.GType<Proxy>
135
+
136
+ // Constructors of GoVirt-1.0.GoVirt.Proxy
137
+
138
+ constructor(config?: Proxy.ConstructorProperties)
139
+ constructor(uri: string | null)
140
+ static new(uri: string | null): Proxy
141
+
142
+ // Overloads of new
143
+
144
+ /**
145
+ * Create a new #RestProxy for the specified endpoint `url_format,` using the
146
+ * "GET" method.
147
+ *
148
+ * Set `binding_required` to %TRUE if the URL contains string formatting
149
+ * operations (for example "http://foo.com/%<!-- -->s". These must be expanded
150
+ * using rest_proxy_bind() before invoking the proxy.
151
+ * @constructor
152
+ * @param url_format the endpoint URL
153
+ * @param binding_required whether the URL needs to be bound before calling
154
+ * @returns A new #RestProxy.
155
+ */
156
+ static new(url_format: string | null, binding_required: boolean): Rest.Proxy
157
+ _init(config?: Proxy.ConstructorProperties): void
158
+ }
159
+
160
+ module Vm {
161
+
162
+ // Constructor properties interface
163
+
164
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
165
+
166
+ // Own constructor properties of GoVirt-1.0.GoVirt.Vm
167
+
168
+ display?: VmDisplay | null
169
+ href?: string | null
170
+ name?: string | null
171
+ state?: VmState | null
172
+ uuid?: string | null
173
+ }
174
+
175
+ }
176
+
177
+ interface Vm {
178
+
179
+ // Own properties of GoVirt-1.0.GoVirt.Vm
180
+
181
+ display: VmDisplay
182
+ href: string
183
+ name: string
184
+ state: VmState
185
+ uuid: string
186
+
187
+ // Own fields of GoVirt-1.0.GoVirt.Vm
188
+
189
+ parent: GObject.Object
190
+ priv: VmPrivate
191
+
192
+ // Owm methods of GoVirt-1.0.GoVirt.Vm
193
+
194
+ get_ticket(proxy: Proxy): boolean
195
+ get_ticket_async(proxy: Proxy, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
196
+ get_ticket_finish(result: Gio.AsyncResult): boolean
197
+ start(proxy: Proxy): boolean
198
+ start_async(proxy: Proxy, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
199
+ start_finish(result: Gio.AsyncResult): boolean
200
+ stop(proxy: Proxy): boolean
201
+ stop_async(proxy: Proxy, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
202
+ stop_finish(result: Gio.AsyncResult): boolean
203
+
204
+ // Class property signals of GoVirt-1.0.GoVirt.Vm
205
+
206
+ connect(sigName: "notify::display", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
207
+ connect_after(sigName: "notify::display", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
208
+ emit(sigName: "notify::display", ...args: any[]): void
209
+ connect(sigName: "notify::href", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
210
+ connect_after(sigName: "notify::href", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
211
+ emit(sigName: "notify::href", ...args: any[]): void
212
+ connect(sigName: "notify::name", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
213
+ connect_after(sigName: "notify::name", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
214
+ emit(sigName: "notify::name", ...args: any[]): void
215
+ connect(sigName: "notify::state", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
216
+ connect_after(sigName: "notify::state", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
217
+ emit(sigName: "notify::state", ...args: any[]): void
218
+ connect(sigName: "notify::uuid", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
219
+ connect_after(sigName: "notify::uuid", callback: (($obj: Vm, pspec: GObject.ParamSpec) => void)): number
220
+ emit(sigName: "notify::uuid", ...args: any[]): void
221
+ connect(sigName: string, callback: (...args: any[]) => void): number
222
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
223
+ emit(sigName: string, ...args: any[]): void
224
+ disconnect(id: number): void
225
+ }
226
+
227
+ class Vm extends GObject.Object {
228
+
229
+ // Own properties of GoVirt-1.0.GoVirt.Vm
230
+
231
+ static name: string
232
+ static $gtype: GObject.GType<Vm>
233
+
234
+ // Constructors of GoVirt-1.0.GoVirt.Vm
235
+
236
+ constructor(config?: Vm.ConstructorProperties)
237
+ constructor()
238
+ static new(): Vm
239
+ _init(config?: Vm.ConstructorProperties): void
240
+ }
241
+
242
+ module VmDisplay {
243
+
244
+ // Constructor properties interface
245
+
246
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
247
+
248
+ // Own constructor properties of GoVirt-1.0.GoVirt.VmDisplay
249
+
250
+ address?: string | null
251
+ expiry?: number | null
252
+ monitor_count?: number | null
253
+ port?: number | null
254
+ secure_port?: number | null
255
+ ticket?: string | null
256
+ type?: VmDisplayType | null
257
+ }
258
+
259
+ }
260
+
261
+ interface VmDisplay {
262
+
263
+ // Own properties of GoVirt-1.0.GoVirt.VmDisplay
264
+
265
+ address: string
266
+ expiry: number
267
+ monitor_count: number
268
+ port: number
269
+ secure_port: number
270
+ ticket: string
271
+ type: VmDisplayType
272
+
273
+ // Own fields of GoVirt-1.0.GoVirt.VmDisplay
274
+
275
+ parent: GObject.Object
276
+ priv: VmDisplayPrivate
277
+
278
+ // Class property signals of GoVirt-1.0.GoVirt.VmDisplay
279
+
280
+ connect(sigName: "notify::address", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
281
+ connect_after(sigName: "notify::address", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
282
+ emit(sigName: "notify::address", ...args: any[]): void
283
+ connect(sigName: "notify::expiry", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
284
+ connect_after(sigName: "notify::expiry", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
285
+ emit(sigName: "notify::expiry", ...args: any[]): void
286
+ connect(sigName: "notify::monitor-count", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
287
+ connect_after(sigName: "notify::monitor-count", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
288
+ emit(sigName: "notify::monitor-count", ...args: any[]): void
289
+ connect(sigName: "notify::port", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
290
+ connect_after(sigName: "notify::port", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
291
+ emit(sigName: "notify::port", ...args: any[]): void
292
+ connect(sigName: "notify::secure-port", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
293
+ connect_after(sigName: "notify::secure-port", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
294
+ emit(sigName: "notify::secure-port", ...args: any[]): void
295
+ connect(sigName: "notify::ticket", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
296
+ connect_after(sigName: "notify::ticket", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
297
+ emit(sigName: "notify::ticket", ...args: any[]): void
298
+ connect(sigName: "notify::type", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
299
+ connect_after(sigName: "notify::type", callback: (($obj: VmDisplay, pspec: GObject.ParamSpec) => void)): number
300
+ emit(sigName: "notify::type", ...args: any[]): void
301
+ connect(sigName: string, callback: (...args: any[]) => void): number
302
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
303
+ emit(sigName: string, ...args: any[]): void
304
+ disconnect(id: number): void
305
+ }
306
+
307
+ class VmDisplay extends GObject.Object {
308
+
309
+ // Own properties of GoVirt-1.0.GoVirt.VmDisplay
310
+
311
+ static name: string
312
+ static $gtype: GObject.GType<VmDisplay>
313
+
314
+ // Constructors of GoVirt-1.0.GoVirt.VmDisplay
315
+
316
+ constructor(config?: VmDisplay.ConstructorProperties)
317
+ constructor()
318
+ static new(): VmDisplay
319
+ _init(config?: VmDisplay.ConstructorProperties): void
320
+ }
321
+
322
+ interface ProxyClass {
323
+
324
+ // Own fields of GoVirt-1.0.GoVirt.ProxyClass
325
+
326
+ parent_class: Rest.ProxyClass
327
+ }
328
+
329
+ abstract class ProxyClass {
330
+
331
+ // Own properties of GoVirt-1.0.GoVirt.ProxyClass
332
+
333
+ static name: string
334
+ }
335
+
336
+ interface ProxyPrivate {
337
+ }
338
+
339
+ class ProxyPrivate {
340
+
341
+ // Own properties of GoVirt-1.0.GoVirt.ProxyPrivate
342
+
343
+ static name: string
344
+ }
345
+
346
+ interface VmClass {
347
+
348
+ // Own fields of GoVirt-1.0.GoVirt.VmClass
349
+
350
+ parent_class: GObject.ObjectClass
351
+ padding: any[]
352
+ }
353
+
354
+ abstract class VmClass {
355
+
356
+ // Own properties of GoVirt-1.0.GoVirt.VmClass
357
+
358
+ static name: string
359
+ }
360
+
361
+ interface VmDisplayClass {
362
+
363
+ // Own fields of GoVirt-1.0.GoVirt.VmDisplayClass
364
+
365
+ parent_class: GObject.ObjectClass
366
+ padding: any[]
367
+ }
368
+
369
+ abstract class VmDisplayClass {
370
+
371
+ // Own properties of GoVirt-1.0.GoVirt.VmDisplayClass
372
+
373
+ static name: string
374
+ }
375
+
376
+ interface VmDisplayPrivate {
377
+ }
378
+
379
+ class VmDisplayPrivate {
380
+
381
+ // Own properties of GoVirt-1.0.GoVirt.VmDisplayPrivate
382
+
383
+ static name: string
384
+ }
385
+
386
+ interface VmPrivate {
387
+ }
388
+
389
+ class VmPrivate {
390
+
391
+ // Own properties of GoVirt-1.0.GoVirt.VmPrivate
392
+
393
+ static name: string
394
+ }
395
+
396
+ /**
397
+ * Name of the imported GIR library
398
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
399
+ */
400
+ const __name__: string
401
+ /**
402
+ * Version of the imported GIR library
403
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
404
+ */
405
+ const __version__: string
406
+ }
407
+
408
+ export default GoVirt;
409
+ // END
package/govirt-1.0.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+
3
+ // @ts-expect-error
4
+ import GoVirt from 'gi://GoVirt?version=1.0';
5
+ export { GoVirt };
6
+ export default GoVirt;
7
+
8
+
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@girs/govirt-1.0",
3
+ "version": "1.0.0-3.0.0-beta.12",
4
+ "description": "GJS TypeScript type definitions for GoVirt-1.0, generated from library version 1.0.0",
5
+ "type": "module",
6
+ "module": "govirt-1.0.js",
7
+ "main": "govirt-1.0.js",
8
+ "typedoc": {
9
+ "entryPoint": "./govirt-1.0.d.ts",
10
+ "readmeFile": "./README.md",
11
+ "displayName": "GoVirt-1.0",
12
+ "tsconfig": "./tsconfig.doc.json"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "import": {
17
+ "types": "./govirt-1.0.d.ts",
18
+ "default": "./govirt-1.0.js"
19
+ },
20
+ "require": {
21
+ "types": "./govirt-1.0.d.cts",
22
+ "default": "./govirt-1.0.cjs"
23
+ }
24
+ }
25
+ },
26
+ "scripts": {
27
+ "test": "yarn test:esm && yarn test:cjs",
28
+ "test:esm": "tsc --noEmit govirt-1.0.d.ts",
29
+ "test:cjs": "tsc --noEmit govirt-1.0.d.cts"
30
+ },
31
+ "dependencies": {
32
+ "@girs/gio-2.0": "^2.75.1-3.0.0-beta.12",
33
+ "@girs/glib-2.0": "^2.75.1-3.0.0-beta.12",
34
+ "@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12",
35
+ "@girs/rest-0.7": "^0.7.0-3.0.0-beta.12",
36
+ "@girs/soup-2.4": "^2.74.3-3.0.0-beta.12"
37
+ },
38
+ "devDependencies": {
39
+ "typescript": "^*"
40
+ },
41
+ "keywords": [
42
+ "Gir",
43
+ "TypeScript",
44
+ "GoVirt-1.0"
45
+ ],
46
+ "author": "ts-for-gir",
47
+ "license": "Apache-2.0",
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
51
+ },
52
+ "bugs": {
53
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
54
+ },
55
+ "homepage": "https://github.com/gjsify/ts-for-gir#readme"
56
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ // General settings for code interpretation
4
+ "target": "ESNext",
5
+ "module": "ESNext",
6
+ "experimentalDecorators": true,
7
+ "moduleResolution": "node",
8
+ "noEmit": true,
9
+ "noEmitOnError": false,
10
+ "baseUrl": "./",
11
+ "rootDir": ".",
12
+ // General settings for code generation
13
+ "removeComments": false,
14
+ "inlineSourceMap": false,
15
+ "inlineSources": false,
16
+ "newLine": "LF"
17
+ },
18
+ "include": ["./govirt-1.0.d.ts"]
19
+ }