libvirtpy 0.1.0__py3-none-any.whl
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.
- libvirtpy/__init__.py +5 -0
- libvirtpy/client/__init__.py +54 -0
- libvirtpy/client/_bases.py +326 -0
- libvirtpy/client/_runner.py +57 -0
- libvirtpy/client/aio.py +5922 -0
- libvirtpy/client/client.py +5695 -0
- libvirtpy/client/operations/__init__.py +631 -0
- libvirtpy/client/operations/_common.py +495 -0
- libvirtpy/client/operations/checkpoint.py +196 -0
- libvirtpy/client/operations/connection.py +93 -0
- libvirtpy/client/operations/connection_extra.py +256 -0
- libvirtpy/client/operations/domain.py +306 -0
- libvirtpy/client/operations/domain_agent.py +115 -0
- libvirtpy/client/operations/domain_block.py +368 -0
- libvirtpy/client/operations/domain_info.py +400 -0
- libvirtpy/client/operations/domain_lifecycle.py +338 -0
- libvirtpy/client/operations/domain_migration.py +164 -0
- libvirtpy/client/operations/domain_network.py +113 -0
- libvirtpy/client/operations/domain_tuning.py +494 -0
- libvirtpy/client/operations/host.py +246 -0
- libvirtpy/client/operations/host_interface.py +100 -0
- libvirtpy/client/operations/interface_extra.py +45 -0
- libvirtpy/client/operations/network.py +135 -0
- libvirtpy/client/operations/network_info.py +155 -0
- libvirtpy/client/operations/network_port.py +142 -0
- libvirtpy/client/operations/node_device.py +76 -0
- libvirtpy/client/operations/node_device_info.py +189 -0
- libvirtpy/client/operations/nwfilter.py +67 -0
- libvirtpy/client/operations/nwfilter_binding.py +74 -0
- libvirtpy/client/operations/secret.py +93 -0
- libvirtpy/client/operations/secret_extra.py +24 -0
- libvirtpy/client/operations/snapshot.py +100 -0
- libvirtpy/client/operations/snapshot_tree.py +114 -0
- libvirtpy/client/operations/storage.py +267 -0
- libvirtpy/client/operations/storage_info.py +188 -0
- libvirtpy/client/operations/streams.py +201 -0
- libvirtpy/client/references.py +249 -0
- libvirtpy/client/subscribing.py +88 -0
- libvirtpy/client/testing/__init__.py +24 -0
- libvirtpy/client/testing/_common.py +167 -0
- libvirtpy/client/testing/_domains.py +294 -0
- libvirtpy/client/testing/_objects.py +205 -0
- libvirtpy/client/testing/_state.py +246 -0
- libvirtpy/client/testing/_storage.py +171 -0
- libvirtpy/client/testing/async_transport.py +30 -0
- libvirtpy/client/testing/fake.py +81 -0
- libvirtpy/client/transport.py +87 -0
- libvirtpy/client/types.py +59 -0
- libvirtpy/client/wire.py +436 -0
- libvirtpy/client/wire_aio.py +348 -0
- libvirtpy/errors.py +7 -0
- libvirtpy/py.typed +0 -0
- libvirtpy/rpc/__init__.py +1 -0
- libvirtpy/rpc/aio.py +387 -0
- libvirtpy/rpc/cpumap.py +48 -0
- libvirtpy/rpc/errors.py +186 -0
- libvirtpy/rpc/events.py +259 -0
- libvirtpy/rpc/options.py +66 -0
- libvirtpy/rpc/procedure.py +27 -0
- libvirtpy/rpc/protocol/__init__.py +0 -0
- libvirtpy/rpc/protocol/procedures.py +5163 -0
- libvirtpy/rpc/protocol/typed_hints.py +210 -0
- libvirtpy/rpc/protocol/types.py +9299 -0
- libvirtpy/rpc/remote.py +295 -0
- libvirtpy/rpc/remote_aio.py +106 -0
- libvirtpy/rpc/sasl.py +467 -0
- libvirtpy/rpc/session.py +424 -0
- libvirtpy/rpc/sockets.py +251 -0
- libvirtpy/rpc/stream.py +323 -0
- libvirtpy/rpc/subscription.py +451 -0
- libvirtpy/rpc/sync.py +460 -0
- libvirtpy/rpc/typed_params.py +97 -0
- libvirtpy/rpc/uri.py +85 -0
- libvirtpy/rpc/xdr.py +552 -0
- libvirtpy/xml/__init__.py +49 -0
- libvirtpy/xml/_base.py +145 -0
- libvirtpy/xml/_shared/__init__.py +1 -0
- libvirtpy/xml/_shared/metadata.py +67 -0
- libvirtpy/xml/_shared/network.py +108 -0
- libvirtpy/xml/_shared/storage.py +131 -0
- libvirtpy/xml/_shared/sysinfo.py +83 -0
- libvirtpy/xml/_types.py +197 -0
- libvirtpy/xml/_xml_element.py +134 -0
- libvirtpy/xml/backup/__init__.py +25 -0
- libvirtpy/xml/backup/backup.py +89 -0
- libvirtpy/xml/backup/checkpoint.py +48 -0
- libvirtpy/xml/capabilities/__init__.py +43 -0
- libvirtpy/xml/capabilities/domain.py +436 -0
- libvirtpy/xml/capabilities/host.py +413 -0
- libvirtpy/xml/capabilities/storagepool.py +59 -0
- libvirtpy/xml/domain/__init__.py +493 -0
- libvirtpy/xml/domain/blkiotune.py +81 -0
- libvirtpy/xml/domain/clock.py +79 -0
- libvirtpy/xml/domain/cpu.py +265 -0
- libvirtpy/xml/domain/devices/__init__.py +495 -0
- libvirtpy/xml/domain/devices/address.py +152 -0
- libvirtpy/xml/domain/devices/audio.py +204 -0
- libvirtpy/xml/domain/devices/chardev.py +197 -0
- libvirtpy/xml/domain/devices/common.py +75 -0
- libvirtpy/xml/domain/devices/controller.py +262 -0
- libvirtpy/xml/domain/devices/devices.py +79 -0
- libvirtpy/xml/domain/devices/disk.py +471 -0
- libvirtpy/xml/domain/devices/filesystem.py +206 -0
- libvirtpy/xml/domain/devices/graphics.py +245 -0
- libvirtpy/xml/domain/devices/hostdev.py +221 -0
- libvirtpy/xml/domain/devices/input.py +89 -0
- libvirtpy/xml/domain/devices/interface.py +459 -0
- libvirtpy/xml/domain/devices/iommu.py +54 -0
- libvirtpy/xml/domain/devices/memballoon.py +42 -0
- libvirtpy/xml/domain/devices/memory_device.py +101 -0
- libvirtpy/xml/domain/devices/misc.py +169 -0
- libvirtpy/xml/domain/devices/nvram.py +20 -0
- libvirtpy/xml/domain/devices/shmem.py +46 -0
- libvirtpy/xml/domain/devices/sound.py +42 -0
- libvirtpy/xml/domain/devices/tpm.py +103 -0
- libvirtpy/xml/domain/devices/usb.py +86 -0
- libvirtpy/xml/domain/devices/video.py +101 -0
- libvirtpy/xml/domain/domain.py +157 -0
- libvirtpy/xml/domain/features.py +312 -0
- libvirtpy/xml/domain/iothread.py +41 -0
- libvirtpy/xml/domain/launch_security.py +82 -0
- libvirtpy/xml/domain/memory.py +149 -0
- libvirtpy/xml/domain/misc.py +113 -0
- libvirtpy/xml/domain/namespaces.py +96 -0
- libvirtpy/xml/domain/numa.py +140 -0
- libvirtpy/xml/domain/os.py +267 -0
- libvirtpy/xml/domain/qemu.py +102 -0
- libvirtpy/xml/domain/seclabel.py +29 -0
- libvirtpy/xml/domain/storage_source.py +466 -0
- libvirtpy/xml/domain/sysinfo.py +34 -0
- libvirtpy/xml/interface/__init__.py +17 -0
- libvirtpy/xml/interface/interface.py +153 -0
- libvirtpy/xml/network/__init__.py +101 -0
- libvirtpy/xml/network/network.py +311 -0
- libvirtpy/xml/network/port.py +84 -0
- libvirtpy/xml/nodedev/__init__.py +13 -0
- libvirtpy/xml/nodedev/nodedev.py +490 -0
- libvirtpy/xml/nwfilter/__init__.py +81 -0
- libvirtpy/xml/nwfilter/binding.py +51 -0
- libvirtpy/xml/nwfilter/filter.py +92 -0
- libvirtpy/xml/nwfilter/rules.py +534 -0
- libvirtpy/xml/secret/__init__.py +11 -0
- libvirtpy/xml/secret/secret.py +36 -0
- libvirtpy/xml/snapshot/__init__.py +29 -0
- libvirtpy/xml/snapshot/snapshot.py +136 -0
- libvirtpy/xml/storage/__init__.py +75 -0
- libvirtpy/xml/storage/pool.py +219 -0
- libvirtpy/xml/storage/volume.py +102 -0
- libvirtpy/xml/sysinfo.py +40 -0
- libvirtpy-0.1.0.dist-info/METADATA +109 -0
- libvirtpy-0.1.0.dist-info/RECORD +154 -0
- libvirtpy-0.1.0.dist-info/WHEEL +4 -0
- libvirtpy-0.1.0.dist-info/licenses/LICENSE +501 -0
- libvirtpy-0.1.0.dist-info/licenses/NOTICE +23 -0
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"""GENERATED by tools/gen_typed_params.py. Do not edit.
|
|
2
|
+
|
|
3
|
+
Derived from libvirt's headers (LGPL-2.1-or-later).
|
|
4
|
+
|
|
5
|
+
The wire type of every named typed parameter that libvirt's headers document
|
|
6
|
+
(1 int, 2 uint, 3 llong, 4 ullong, 5 double, 6 boolean, 7 string).
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from typing import Final
|
|
10
|
+
|
|
11
|
+
TYPED_PARAMETER_HINTS: Final[dict[str, int]] = {
|
|
12
|
+
".addr": 7,
|
|
13
|
+
".alias": 7,
|
|
14
|
+
".device": 7,
|
|
15
|
+
".disk.count": 1,
|
|
16
|
+
".domain": 7,
|
|
17
|
+
".driverName": 7,
|
|
18
|
+
".driverVersion": 7,
|
|
19
|
+
".fstype": 7,
|
|
20
|
+
".guest_alias": 7,
|
|
21
|
+
".halted": 6,
|
|
22
|
+
".hwaddr": 7,
|
|
23
|
+
".idType": 7,
|
|
24
|
+
".mountpoint": 7,
|
|
25
|
+
".name": 7,
|
|
26
|
+
".partition": 6,
|
|
27
|
+
".path": 7,
|
|
28
|
+
".rd_queue_depth_avg": 5,
|
|
29
|
+
".serial": 7,
|
|
30
|
+
".state": 1,
|
|
31
|
+
".type": 7,
|
|
32
|
+
".vcpus": 7,
|
|
33
|
+
".wr_queue_depth_avg": 5,
|
|
34
|
+
"auto_converge.increment": 1,
|
|
35
|
+
"auto_converge.initial": 1,
|
|
36
|
+
"bandwidth": 4,
|
|
37
|
+
"bandwidth.postcopy": 4,
|
|
38
|
+
"blkdeviotune.disk": 7,
|
|
39
|
+
"blkdeviotune.group_name": 7,
|
|
40
|
+
"blkdeviotune.read_bytes_sec": 4,
|
|
41
|
+
"blkdeviotune.read_bytes_sec_max": 4,
|
|
42
|
+
"blkdeviotune.read_bytes_sec_max_length": 4,
|
|
43
|
+
"blkdeviotune.read_iops_sec": 4,
|
|
44
|
+
"blkdeviotune.read_iops_sec_max": 4,
|
|
45
|
+
"blkdeviotune.read_iops_sec_max_length": 4,
|
|
46
|
+
"blkdeviotune.size_iops_sec": 4,
|
|
47
|
+
"blkdeviotune.total_bytes_sec": 4,
|
|
48
|
+
"blkdeviotune.total_bytes_sec_max": 4,
|
|
49
|
+
"blkdeviotune.total_bytes_sec_max_length": 4,
|
|
50
|
+
"blkdeviotune.total_iops_sec": 4,
|
|
51
|
+
"blkdeviotune.total_iops_sec_max": 4,
|
|
52
|
+
"blkdeviotune.total_iops_sec_max_length": 4,
|
|
53
|
+
"blkdeviotune.write_bytes_sec": 4,
|
|
54
|
+
"blkdeviotune.write_bytes_sec_max": 4,
|
|
55
|
+
"blkdeviotune.write_bytes_sec_max_length": 4,
|
|
56
|
+
"blkdeviotune.write_iops_sec": 4,
|
|
57
|
+
"blkdeviotune.write_iops_sec_max": 4,
|
|
58
|
+
"blkdeviotune.write_iops_sec_max_length": 4,
|
|
59
|
+
"cap": 2,
|
|
60
|
+
"compression.mt.dthreads": 1,
|
|
61
|
+
"compression.mt.level": 1,
|
|
62
|
+
"compression.mt.threads": 1,
|
|
63
|
+
"compression.xbzrle.cache": 4,
|
|
64
|
+
"compression_bytes": 4,
|
|
65
|
+
"compression_cache": 4,
|
|
66
|
+
"compression_cache_misses": 4,
|
|
67
|
+
"compression_overflow": 4,
|
|
68
|
+
"compression_pages": 4,
|
|
69
|
+
"cpu_shares": 4,
|
|
70
|
+
"cpu_time": 4,
|
|
71
|
+
"cputune.cpu_shares": 4,
|
|
72
|
+
"cputune.emulator_period": 4,
|
|
73
|
+
"cputune.emulator_quota": 3,
|
|
74
|
+
"cputune.emulatorpin": 7,
|
|
75
|
+
"cputune.global_period": 4,
|
|
76
|
+
"cputune.global_quota": 3,
|
|
77
|
+
"cputune.iothread_period": 4,
|
|
78
|
+
"cputune.iothread_quota": 3,
|
|
79
|
+
"cputune.vcpu_period": 4,
|
|
80
|
+
"cputune.vcpu_quota": 3,
|
|
81
|
+
"data_processed": 4,
|
|
82
|
+
"data_remaining": 4,
|
|
83
|
+
"data_total": 4,
|
|
84
|
+
"destination_name": 7,
|
|
85
|
+
"destination_xml": 7,
|
|
86
|
+
"device_read_bytes_sec": 7,
|
|
87
|
+
"device_read_iops_sec": 7,
|
|
88
|
+
"device_weight": 7,
|
|
89
|
+
"device_write_bytes_sec": 7,
|
|
90
|
+
"device_write_iops_sec": 7,
|
|
91
|
+
"dirtyrate.calc_mode": 7,
|
|
92
|
+
"dirtyrate.calc_period": 1,
|
|
93
|
+
"dirtyrate.calc_status": 1,
|
|
94
|
+
"disk_bps": 4,
|
|
95
|
+
"disk_processed": 4,
|
|
96
|
+
"disk_remaining": 4,
|
|
97
|
+
"disk_temp_total": 4,
|
|
98
|
+
"disk_temp_used": 4,
|
|
99
|
+
"disk_total": 4,
|
|
100
|
+
"downtime": 4,
|
|
101
|
+
"downtime_net": 4,
|
|
102
|
+
"emulator_period": 4,
|
|
103
|
+
"emulator_quota": 3,
|
|
104
|
+
"errs": 3,
|
|
105
|
+
"flush_operations": 3,
|
|
106
|
+
"flush_total_times": 3,
|
|
107
|
+
"freeWorkers": 2,
|
|
108
|
+
"global_period": 4,
|
|
109
|
+
"global_quota": 3,
|
|
110
|
+
"graphics_uri": 7,
|
|
111
|
+
"group_name": 7,
|
|
112
|
+
"hard_limit": 4,
|
|
113
|
+
"hostname": 7,
|
|
114
|
+
"image_format": 7,
|
|
115
|
+
"inbound.average": 2,
|
|
116
|
+
"inbound.burst": 2,
|
|
117
|
+
"inbound.floor": 2,
|
|
118
|
+
"inbound.peak": 2,
|
|
119
|
+
"iothread_period": 4,
|
|
120
|
+
"iothread_quota": 3,
|
|
121
|
+
"jobQueueDepth": 2,
|
|
122
|
+
"limit": 3,
|
|
123
|
+
"load.15m": 5,
|
|
124
|
+
"load.1m": 5,
|
|
125
|
+
"load.5m": 5,
|
|
126
|
+
"maxWorkers": 2,
|
|
127
|
+
"memory_bps": 4,
|
|
128
|
+
"memory_constant": 4,
|
|
129
|
+
"memory_dirty_rate": 4,
|
|
130
|
+
"memory_iteration": 4,
|
|
131
|
+
"memory_normal": 4,
|
|
132
|
+
"memory_normal_bytes": 4,
|
|
133
|
+
"memory_postcopy_requests": 4,
|
|
134
|
+
"memory_processed": 4,
|
|
135
|
+
"memory_remaining": 4,
|
|
136
|
+
"memory_total": 4,
|
|
137
|
+
"migrate_uri": 7,
|
|
138
|
+
"minWorkers": 2,
|
|
139
|
+
"min_guarantee": 4,
|
|
140
|
+
"nWorkers": 2,
|
|
141
|
+
"nclients": 2,
|
|
142
|
+
"nclients_max": 2,
|
|
143
|
+
"nclients_unauth": 2,
|
|
144
|
+
"nclients_unauth_max": 2,
|
|
145
|
+
"numa_mode": 1,
|
|
146
|
+
"numa_nodeset": 7,
|
|
147
|
+
"os.machine": 7,
|
|
148
|
+
"os.variant": 7,
|
|
149
|
+
"os.version": 7,
|
|
150
|
+
"outbound.average": 2,
|
|
151
|
+
"outbound.burst": 2,
|
|
152
|
+
"outbound.peak": 2,
|
|
153
|
+
"parallel.connections": 1,
|
|
154
|
+
"persistent_xml": 7,
|
|
155
|
+
"prioWorkers": 2,
|
|
156
|
+
"rd_bytes": 3,
|
|
157
|
+
"rd_operations": 3,
|
|
158
|
+
"rd_total_times": 3,
|
|
159
|
+
"read_bytes_sec": 4,
|
|
160
|
+
"read_bytes_sec_max": 4,
|
|
161
|
+
"read_bytes_sec_max_length": 4,
|
|
162
|
+
"read_iops_sec": 4,
|
|
163
|
+
"read_iops_sec_max": 4,
|
|
164
|
+
"read_iops_sec_max_length": 4,
|
|
165
|
+
"readonly": 6,
|
|
166
|
+
"reservation": 3,
|
|
167
|
+
"sasl_user_name": 7,
|
|
168
|
+
"selinux_context": 7,
|
|
169
|
+
"shares": 1,
|
|
170
|
+
"size_iops_sec": 4,
|
|
171
|
+
"sock_addr": 7,
|
|
172
|
+
"soft_limit": 4,
|
|
173
|
+
"state.reason": 1,
|
|
174
|
+
"state.state": 1,
|
|
175
|
+
"success": 6,
|
|
176
|
+
"swap_hard_limit": 4,
|
|
177
|
+
"system_time": 4,
|
|
178
|
+
"time_elapsed": 4,
|
|
179
|
+
"time_elapsed_net": 4,
|
|
180
|
+
"time_remaining": 4,
|
|
181
|
+
"timezone.name": 7,
|
|
182
|
+
"timezone.offset": 1,
|
|
183
|
+
"tls.destination": 7,
|
|
184
|
+
"total_bytes_sec": 4,
|
|
185
|
+
"total_bytes_sec_max": 4,
|
|
186
|
+
"total_bytes_sec_max_length": 4,
|
|
187
|
+
"total_iops_sec": 4,
|
|
188
|
+
"total_iops_sec_max": 4,
|
|
189
|
+
"total_iops_sec_max_length": 4,
|
|
190
|
+
"unix_group_id": 1,
|
|
191
|
+
"unix_group_name": 7,
|
|
192
|
+
"unix_process_id": 1,
|
|
193
|
+
"unix_user_id": 1,
|
|
194
|
+
"unix_user_name": 7,
|
|
195
|
+
"user_time": 4,
|
|
196
|
+
"vcpu_period": 4,
|
|
197
|
+
"vcpu_quota": 3,
|
|
198
|
+
"vcpu_time": 4,
|
|
199
|
+
"vfio_data_transferred": 4,
|
|
200
|
+
"weight": 2,
|
|
201
|
+
"wr_bytes": 3,
|
|
202
|
+
"wr_operations": 3,
|
|
203
|
+
"wr_total_times": 3,
|
|
204
|
+
"write_bytes_sec": 4,
|
|
205
|
+
"write_bytes_sec_max": 4,
|
|
206
|
+
"write_bytes_sec_max_length": 4,
|
|
207
|
+
"write_iops_sec": 4,
|
|
208
|
+
"write_iops_sec_max": 4,
|
|
209
|
+
"write_iops_sec_max_length": 4,
|
|
210
|
+
}
|