ovirt-engine-sdk 4.4.0 → 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,6 +34,8 @@ module OvirtSDK4
34
34
  object.allow_partial_import = value if not value.nil?
35
35
  value = reader.get_attribute('async')
36
36
  object.async = value if not value.nil?
37
+ value = reader.get_attribute('auto_pinning_policy')
38
+ object.auto_pinning_policy = value if not value.nil?
37
39
  value = reader.get_attribute('check_connectivity')
38
40
  object.check_connectivity = value if not value.nil?
39
41
  value = reader.get_attribute('clone')
@@ -48,6 +50,8 @@ module OvirtSDK4
48
50
  object.commit_on_success = value if not value.nil?
49
51
  value = reader.get_attribute('connectivity_timeout')
50
52
  object.connectivity_timeout = value if not value.nil?
53
+ value = reader.get_attribute('correlation_id')
54
+ object.correlation_id = value if not value.nil?
51
55
  value = reader.get_attribute('deploy_hosted_engine')
52
56
  object.deploy_hosted_engine = value if not value.nil?
53
57
  value = reader.get_attribute('description')
@@ -66,6 +70,8 @@ module OvirtSDK4
66
70
  object.filter = value if not value.nil?
67
71
  value = reader.get_attribute('fix_layout')
68
72
  object.fix_layout = value if not value.nil?
73
+ value = reader.get_attribute('follow')
74
+ object.follow = value if not value.nil?
69
75
  value = reader.get_attribute('force')
70
76
  object.force = value if not value.nil?
71
77
  value = reader.get_attribute('id')
@@ -84,6 +90,8 @@ module OvirtSDK4
84
90
  object.migrate_vms_in_affinity_closure = value if not value.nil?
85
91
  value = reader.get_attribute('name')
86
92
  object.name = value if not value.nil?
93
+ value = reader.get_attribute('optimize_cpu_settings')
94
+ object.optimize_cpu_settings = value if not value.nil?
87
95
  value = reader.get_attribute('pause')
88
96
  object.pause = value if not value.nil?
89
97
  value = reader.get_attribute('reason')
@@ -114,6 +122,8 @@ module OvirtSDK4
114
122
  object.undeploy_hosted_engine = value if not value.nil?
115
123
  value = reader.get_attribute('upgrade_action')
116
124
  object.upgrade_action = value if not value.nil?
125
+ value = reader.get_attribute('upgrade_percent_complete')
126
+ object.upgrade_percent_complete = value if not value.nil?
117
127
  value = reader.get_attribute('use_cloud_init')
118
128
  object.use_cloud_init = value if not value.nil?
119
129
  value = reader.get_attribute('use_ignition')
@@ -143,6 +153,8 @@ module OvirtSDK4
143
153
  object.attachment = DiskAttachmentReader.read_one(reader)
144
154
  when 'authorized_key'
145
155
  object.authorized_key = AuthorizedKeyReader.read_one(reader)
156
+ when 'auto_pinning_policy'
157
+ object.auto_pinning_policy = Reader.read_enum(AutoPinningPolicy, reader)
146
158
  when 'bricks'
147
159
  object.bricks = GlusterBrickReader.read_many(reader)
148
160
  when 'certificates'
@@ -165,6 +177,8 @@ module OvirtSDK4
165
177
  object.connection = StorageConnectionReader.read_one(reader)
166
178
  when 'connectivity_timeout'
167
179
  object.connectivity_timeout = Reader.read_integer(reader)
180
+ when 'correlation_id'
181
+ object.correlation_id = Reader.read_string(reader)
168
182
  when 'data_center'
169
183
  object.data_center = DataCenterReader.read_one(reader)
170
184
  when 'deploy_hosted_engine'
@@ -197,6 +211,8 @@ module OvirtSDK4
197
211
  object.filter = Reader.read_boolean(reader)
198
212
  when 'fix_layout'
199
213
  object.fix_layout = Reader.read_boolean(reader)
214
+ when 'follow'
215
+ object.follow = Reader.read_string(reader)
200
216
  when 'force'
201
217
  object.force = Reader.read_boolean(reader)
202
218
  when 'grace_period'
@@ -237,6 +253,8 @@ module OvirtSDK4
237
253
  object.modified_network_attachments = NetworkAttachmentReader.read_many(reader)
238
254
  when 'name'
239
255
  object.name = Reader.read_string(reader)
256
+ when 'optimize_cpu_settings'
257
+ object.optimize_cpu_settings = Reader.read_boolean(reader)
240
258
  when 'option'
241
259
  object.option = OptionReader.read_one(reader)
242
260
  when 'pause'
@@ -301,6 +319,8 @@ module OvirtSDK4
301
319
  object.undeploy_hosted_engine = Reader.read_boolean(reader)
302
320
  when 'upgrade_action'
303
321
  object.upgrade_action = Reader.read_enum(ClusterUpgradeAction, reader)
322
+ when 'upgrade_percent_complete'
323
+ object.upgrade_percent_complete = Reader.read_integer(reader)
304
324
  when 'use_cloud_init'
305
325
  object.use_cloud_init = Reader.read_boolean(reader)
306
326
  when 'use_ignition'
@@ -366,6 +386,8 @@ module OvirtSDK4
366
386
 
367
387
  # Process the attributes:
368
388
  object.href = reader.get_attribute('href')
389
+ value = reader.get_attribute('broken')
390
+ object.broken = value if not value.nil?
369
391
  value = reader.get_attribute('comment')
370
392
  object.comment = value if not value.nil?
371
393
  value = reader.get_attribute('description')
@@ -389,6 +411,8 @@ module OvirtSDK4
389
411
  # Process the inner elements:
390
412
  while reader.forward do
391
413
  case reader.node_name
414
+ when 'broken'
415
+ object.broken = Reader.read_boolean(reader)
392
416
  when 'comment'
393
417
  object.comment = Reader.read_string(reader)
394
418
  when 'description'
@@ -1230,6 +1254,8 @@ module OvirtSDK4
1230
1254
  object.from_checkpoint_id = value if not value.nil?
1231
1255
  value = reader.get_attribute('id')
1232
1256
  object.id = value if not value.nil?
1257
+ value = reader.get_attribute('modification_date')
1258
+ object.modification_date = value if not value.nil?
1233
1259
  value = reader.get_attribute('name')
1234
1260
  object.name = value if not value.nil?
1235
1261
  value = reader.get_attribute('phase')
@@ -1255,6 +1281,8 @@ module OvirtSDK4
1255
1281
  object.from_checkpoint_id = Reader.read_string(reader)
1256
1282
  when 'id'
1257
1283
  object.id = Reader.read_string(reader)
1284
+ when 'modification_date'
1285
+ object.modification_date = Reader.read_date(reader)
1258
1286
  when 'name'
1259
1287
  object.name = Reader.read_string(reader)
1260
1288
  when 'phase'
@@ -1263,6 +1291,10 @@ module OvirtSDK4
1263
1291
  object.to_checkpoint_id = Reader.read_string(reader)
1264
1292
  when 'disks'
1265
1293
  object.disks = DiskReader.read_many(reader)
1294
+ when 'host'
1295
+ object.host = HostReader.read_one(reader)
1296
+ when 'snapshot'
1297
+ object.snapshot = SnapshotReader.read_one(reader)
1266
1298
  when 'vm'
1267
1299
  object.vm = VmReader.read_one(reader)
1268
1300
  when 'link'
@@ -2041,6 +2073,115 @@ module OvirtSDK4
2041
2073
 
2042
2074
  end
2043
2075
 
2076
+ class CheckpointReader < Reader
2077
+
2078
+ def self.read_one(reader)
2079
+ # Do nothing if there aren't more tags:
2080
+ return nil unless reader.forward
2081
+
2082
+ # Create the object:
2083
+ object = Checkpoint.new
2084
+
2085
+ # Process the attributes:
2086
+ object.href = reader.get_attribute('href')
2087
+ value = reader.get_attribute('comment')
2088
+ object.comment = value if not value.nil?
2089
+ value = reader.get_attribute('creation_date')
2090
+ object.creation_date = value if not value.nil?
2091
+ value = reader.get_attribute('description')
2092
+ object.description = value if not value.nil?
2093
+ value = reader.get_attribute('id')
2094
+ object.id = value if not value.nil?
2095
+ value = reader.get_attribute('name')
2096
+ object.name = value if not value.nil?
2097
+ value = reader.get_attribute('parent_id')
2098
+ object.parent_id = value if not value.nil?
2099
+ value = reader.get_attribute('state')
2100
+ object.state = value if not value.nil?
2101
+
2102
+ # Discard the start tag:
2103
+ empty = reader.empty_element?
2104
+ reader.read
2105
+ return object if empty
2106
+
2107
+ # Process the inner elements:
2108
+ while reader.forward do
2109
+ case reader.node_name
2110
+ when 'comment'
2111
+ object.comment = Reader.read_string(reader)
2112
+ when 'creation_date'
2113
+ object.creation_date = Reader.read_date(reader)
2114
+ when 'description'
2115
+ object.description = Reader.read_string(reader)
2116
+ when 'id'
2117
+ object.id = Reader.read_string(reader)
2118
+ when 'name'
2119
+ object.name = Reader.read_string(reader)
2120
+ when 'parent_id'
2121
+ object.parent_id = Reader.read_string(reader)
2122
+ when 'state'
2123
+ object.state = Reader.read_enum(CheckpointState, reader)
2124
+ when 'disks'
2125
+ object.disks = DiskReader.read_many(reader)
2126
+ when 'vm'
2127
+ object.vm = VmReader.read_one(reader)
2128
+ when 'link'
2129
+ read_link(reader, object)
2130
+ else
2131
+ reader.next_element
2132
+ end
2133
+ end
2134
+
2135
+ # Discard the end tag:
2136
+ reader.read
2137
+
2138
+ return object
2139
+ end
2140
+
2141
+
2142
+ def self.read_many(reader)
2143
+ # Do nothing if there aren't more tags:
2144
+ list = List.new
2145
+ return list unless reader.forward
2146
+
2147
+ # Process the attributes:
2148
+ list.href = reader.get_attribute('href')
2149
+
2150
+ # Discard the start tag:
2151
+ empty = reader.empty_element?
2152
+ reader.read
2153
+ return list if empty
2154
+
2155
+ # Process the inner elements:
2156
+ while reader.forward do
2157
+ list << read_one(reader)
2158
+ end
2159
+
2160
+ # Discard the end tag:
2161
+ reader.read
2162
+
2163
+ return list
2164
+ end
2165
+
2166
+ def self.read_link(reader, object)
2167
+ # Process the attributes:
2168
+ rel = reader.get_attribute('rel')
2169
+ href = reader.get_attribute('href')
2170
+ if rel && href
2171
+ list = List.new
2172
+ list.href = href
2173
+ case rel
2174
+ when 'disks'
2175
+ object.disks = list
2176
+ end
2177
+ end
2178
+
2179
+ # Discard the rest of the element:
2180
+ reader.next_element
2181
+ end
2182
+
2183
+ end
2184
+
2044
2185
  class CloudInitReader < Reader
2045
2186
 
2046
2187
  def self.read_one(reader)
@@ -2136,6 +2277,8 @@ module OvirtSDK4
2136
2277
  object.comment = value if not value.nil?
2137
2278
  value = reader.get_attribute('description')
2138
2279
  object.description = value if not value.nil?
2280
+ value = reader.get_attribute('fips_mode')
2281
+ object.fips_mode = value if not value.nil?
2139
2282
  value = reader.get_attribute('firewall_type')
2140
2283
  object.firewall_type = value if not value.nil?
2141
2284
  value = reader.get_attribute('gluster_service')
@@ -2164,8 +2307,16 @@ module OvirtSDK4
2164
2307
  object.trusted_service = value if not value.nil?
2165
2308
  value = reader.get_attribute('tunnel_migration')
2166
2309
  object.tunnel_migration = value if not value.nil?
2310
+ value = reader.get_attribute('upgrade_correlation_id')
2311
+ object.upgrade_correlation_id = value if not value.nil?
2312
+ value = reader.get_attribute('upgrade_in_progress')
2313
+ object.upgrade_in_progress = value if not value.nil?
2314
+ value = reader.get_attribute('upgrade_percent_complete')
2315
+ object.upgrade_percent_complete = value if not value.nil?
2167
2316
  value = reader.get_attribute('virt_service')
2168
2317
  object.virt_service = value if not value.nil?
2318
+ value = reader.get_attribute('vnc_encryption')
2319
+ object.vnc_encryption = value if not value.nil?
2169
2320
 
2170
2321
  # Discard the start tag:
2171
2322
  empty = reader.empty_element?
@@ -2193,6 +2344,8 @@ module OvirtSDK4
2193
2344
  object.error_handling = ErrorHandlingReader.read_one(reader)
2194
2345
  when 'fencing_policy'
2195
2346
  object.fencing_policy = FencingPolicyReader.read_one(reader)
2347
+ when 'fips_mode'
2348
+ object.fips_mode = Reader.read_enum(FipsMode, reader)
2196
2349
  when 'firewall_type'
2197
2350
  object.firewall_type = Reader.read_enum(FirewallType, reader)
2198
2351
  when 'gluster_service'
@@ -2233,10 +2386,18 @@ module OvirtSDK4
2233
2386
  object.trusted_service = Reader.read_boolean(reader)
2234
2387
  when 'tunnel_migration'
2235
2388
  object.tunnel_migration = Reader.read_boolean(reader)
2389
+ when 'upgrade_correlation_id'
2390
+ object.upgrade_correlation_id = Reader.read_string(reader)
2391
+ when 'upgrade_in_progress'
2392
+ object.upgrade_in_progress = Reader.read_boolean(reader)
2393
+ when 'upgrade_percent_complete'
2394
+ object.upgrade_percent_complete = Reader.read_integer(reader)
2236
2395
  when 'version'
2237
2396
  object.version = VersionReader.read_one(reader)
2238
2397
  when 'virt_service'
2239
2398
  object.virt_service = Reader.read_boolean(reader)
2399
+ when 'vnc_encryption'
2400
+ object.vnc_encryption = Reader.read_boolean(reader)
2240
2401
  when 'affinity_groups'
2241
2402
  object.affinity_groups = AffinityGroupReader.read_many(reader)
2242
2403
  when 'cpu_profiles'
@@ -3423,6 +3584,8 @@ module OvirtSDK4
3423
3584
  object.alias_ = value if not value.nil?
3424
3585
  value = reader.get_attribute('backup')
3425
3586
  object.backup = value if not value.nil?
3587
+ value = reader.get_attribute('backup_mode')
3588
+ object.backup_mode = value if not value.nil?
3426
3589
  value = reader.get_attribute('bootable')
3427
3590
  object.bootable = value if not value.nil?
3428
3591
  value = reader.get_attribute('comment')
@@ -3431,6 +3594,8 @@ module OvirtSDK4
3431
3594
  object.content_type = value if not value.nil?
3432
3595
  value = reader.get_attribute('description')
3433
3596
  object.description = value if not value.nil?
3597
+ value = reader.get_attribute('external_disk')
3598
+ object.external_disk = value if not value.nil?
3434
3599
  value = reader.get_attribute('format')
3435
3600
  object.format = value if not value.nil?
3436
3601
  value = reader.get_attribute('id')
@@ -3486,6 +3651,8 @@ module OvirtSDK4
3486
3651
  object.alias_ = Reader.read_string(reader)
3487
3652
  when 'backup'
3488
3653
  object.backup = Reader.read_enum(DiskBackup, reader)
3654
+ when 'backup_mode'
3655
+ object.backup_mode = Reader.read_enum(DiskBackupMode, reader)
3489
3656
  when 'bootable'
3490
3657
  object.bootable = Reader.read_boolean(reader)
3491
3658
  when 'comment'
@@ -3494,6 +3661,8 @@ module OvirtSDK4
3494
3661
  object.content_type = Reader.read_enum(DiskContentType, reader)
3495
3662
  when 'description'
3496
3663
  object.description = Reader.read_string(reader)
3664
+ when 'external_disk'
3665
+ object.external_disk = Reader.read_string(reader)
3497
3666
  when 'format'
3498
3667
  object.format = Reader.read_enum(DiskFormat, reader)
3499
3668
  when 'id'
@@ -3536,6 +3705,8 @@ module OvirtSDK4
3536
3705
  object.wipe_after_delete = Reader.read_boolean(reader)
3537
3706
  when 'disk_profile'
3538
3707
  object.disk_profile = DiskProfileReader.read_one(reader)
3708
+ when 'disk_snapshots'
3709
+ object.disk_snapshots = DiskSnapshotReader.read_many(reader)
3539
3710
  when 'instance_type'
3540
3711
  object.instance_type = InstanceTypeReader.read_one(reader)
3541
3712
  when 'openstack_volume_type'
@@ -3604,6 +3775,8 @@ module OvirtSDK4
3604
3775
  list = List.new
3605
3776
  list.href = href
3606
3777
  case rel
3778
+ when 'disksnapshots'
3779
+ object.disk_snapshots = list
3607
3780
  when 'permissions'
3608
3781
  object.permissions = list
3609
3782
  when 'statistics'
@@ -3847,6 +4020,8 @@ module OvirtSDK4
3847
4020
  object.alias_ = value if not value.nil?
3848
4021
  value = reader.get_attribute('backup')
3849
4022
  object.backup = value if not value.nil?
4023
+ value = reader.get_attribute('backup_mode')
4024
+ object.backup_mode = value if not value.nil?
3850
4025
  value = reader.get_attribute('bootable')
3851
4026
  object.bootable = value if not value.nil?
3852
4027
  value = reader.get_attribute('comment')
@@ -3855,6 +4030,8 @@ module OvirtSDK4
3855
4030
  object.content_type = value if not value.nil?
3856
4031
  value = reader.get_attribute('description')
3857
4032
  object.description = value if not value.nil?
4033
+ value = reader.get_attribute('external_disk')
4034
+ object.external_disk = value if not value.nil?
3858
4035
  value = reader.get_attribute('format')
3859
4036
  object.format = value if not value.nil?
3860
4037
  value = reader.get_attribute('id')
@@ -3910,6 +4087,8 @@ module OvirtSDK4
3910
4087
  object.alias_ = Reader.read_string(reader)
3911
4088
  when 'backup'
3912
4089
  object.backup = Reader.read_enum(DiskBackup, reader)
4090
+ when 'backup_mode'
4091
+ object.backup_mode = Reader.read_enum(DiskBackupMode, reader)
3913
4092
  when 'bootable'
3914
4093
  object.bootable = Reader.read_boolean(reader)
3915
4094
  when 'comment'
@@ -3918,6 +4097,8 @@ module OvirtSDK4
3918
4097
  object.content_type = Reader.read_enum(DiskContentType, reader)
3919
4098
  when 'description'
3920
4099
  object.description = Reader.read_string(reader)
4100
+ when 'external_disk'
4101
+ object.external_disk = Reader.read_string(reader)
3921
4102
  when 'format'
3922
4103
  object.format = Reader.read_enum(DiskFormat, reader)
3923
4104
  when 'id'
@@ -3962,10 +4143,14 @@ module OvirtSDK4
3962
4143
  object.disk = DiskReader.read_one(reader)
3963
4144
  when 'disk_profile'
3964
4145
  object.disk_profile = DiskProfileReader.read_one(reader)
4146
+ when 'disk_snapshots'
4147
+ object.disk_snapshots = DiskSnapshotReader.read_many(reader)
3965
4148
  when 'instance_type'
3966
4149
  object.instance_type = InstanceTypeReader.read_one(reader)
3967
4150
  when 'openstack_volume_type'
3968
4151
  object.openstack_volume_type = OpenStackVolumeTypeReader.read_one(reader)
4152
+ when 'parent'
4153
+ object.parent = DiskSnapshotReader.read_one(reader)
3969
4154
  when 'permissions'
3970
4155
  object.permissions = PermissionReader.read_many(reader)
3971
4156
  when 'quota'
@@ -4030,6 +4215,8 @@ module OvirtSDK4
4030
4215
  list = List.new
4031
4216
  list.href = href
4032
4217
  case rel
4218
+ when 'disksnapshots'
4219
+ object.disk_snapshots = list
4033
4220
  when 'permissions'
4034
4221
  object.permissions = list
4035
4222
  when 'statistics'
@@ -4066,6 +4253,8 @@ module OvirtSDK4
4066
4253
  object.copy_paste_enabled = value if not value.nil?
4067
4254
  value = reader.get_attribute('disconnect_action')
4068
4255
  object.disconnect_action = value if not value.nil?
4256
+ value = reader.get_attribute('disconnect_action_delay')
4257
+ object.disconnect_action_delay = value if not value.nil?
4069
4258
  value = reader.get_attribute('file_transfer_enabled')
4070
4259
  object.file_transfer_enabled = value if not value.nil?
4071
4260
  value = reader.get_attribute('keyboard_layout')
@@ -4103,6 +4292,8 @@ module OvirtSDK4
4103
4292
  object.copy_paste_enabled = Reader.read_boolean(reader)
4104
4293
  when 'disconnect_action'
4105
4294
  object.disconnect_action = Reader.read_string(reader)
4295
+ when 'disconnect_action_delay'
4296
+ object.disconnect_action_delay = Reader.read_integer(reader)
4106
4297
  when 'file_transfer_enabled'
4107
4298
  object.file_transfer_enabled = Reader.read_boolean(reader)
4108
4299
  when 'keyboard_layout'
@@ -4382,6 +4573,68 @@ module OvirtSDK4
4382
4573
 
4383
4574
  end
4384
4575
 
4576
+ class DynamicCpuReader < Reader
4577
+
4578
+ def self.read_one(reader)
4579
+ # Do nothing if there aren't more tags:
4580
+ return nil unless reader.forward
4581
+
4582
+ # Create the object:
4583
+ object = DynamicCpu.new
4584
+
4585
+ # Process the attributes:
4586
+ object.href = reader.get_attribute('href')
4587
+
4588
+ # Discard the start tag:
4589
+ empty = reader.empty_element?
4590
+ reader.read
4591
+ return object if empty
4592
+
4593
+ # Process the inner elements:
4594
+ while reader.forward do
4595
+ case reader.node_name
4596
+ when 'cpu_tune'
4597
+ object.cpu_tune = CpuTuneReader.read_one(reader)
4598
+ when 'topology'
4599
+ object.topology = CpuTopologyReader.read_one(reader)
4600
+ else
4601
+ reader.next_element
4602
+ end
4603
+ end
4604
+
4605
+ # Discard the end tag:
4606
+ reader.read
4607
+
4608
+ return object
4609
+ end
4610
+
4611
+
4612
+ def self.read_many(reader)
4613
+ # Do nothing if there aren't more tags:
4614
+ list = List.new
4615
+ return list unless reader.forward
4616
+
4617
+ # Process the attributes:
4618
+ list.href = reader.get_attribute('href')
4619
+
4620
+ # Discard the start tag:
4621
+ empty = reader.empty_element?
4622
+ reader.read
4623
+ return list if empty
4624
+
4625
+ # Process the inner elements:
4626
+ while reader.forward do
4627
+ list << read_one(reader)
4628
+ end
4629
+
4630
+ # Discard the end tag:
4631
+ reader.read
4632
+
4633
+ return list
4634
+ end
4635
+
4636
+ end
4637
+
4385
4638
  class EntityProfileDetailReader < Reader
4386
4639
 
4387
4640
  def self.read_one(reader)
@@ -5379,6 +5632,84 @@ module OvirtSDK4
5379
5632
 
5380
5633
  end
5381
5634
 
5635
+ class ExternalTemplateImportReader < Reader
5636
+
5637
+ def self.read_one(reader)
5638
+ # Do nothing if there aren't more tags:
5639
+ return nil unless reader.forward
5640
+
5641
+ # Create the object:
5642
+ object = ExternalTemplateImport.new
5643
+
5644
+ # Process the attributes:
5645
+ object.href = reader.get_attribute('href')
5646
+ value = reader.get_attribute('clone')
5647
+ object.clone = value if not value.nil?
5648
+ value = reader.get_attribute('url')
5649
+ object.url = value if not value.nil?
5650
+
5651
+ # Discard the start tag:
5652
+ empty = reader.empty_element?
5653
+ reader.read
5654
+ return object if empty
5655
+
5656
+ # Process the inner elements:
5657
+ while reader.forward do
5658
+ case reader.node_name
5659
+ when 'clone'
5660
+ object.clone = Reader.read_boolean(reader)
5661
+ when 'url'
5662
+ object.url = Reader.read_string(reader)
5663
+ when 'cluster'
5664
+ object.cluster = ClusterReader.read_one(reader)
5665
+ when 'cpu_profile'
5666
+ object.cpu_profile = CpuProfileReader.read_one(reader)
5667
+ when 'host'
5668
+ object.host = HostReader.read_one(reader)
5669
+ when 'quota'
5670
+ object.quota = QuotaReader.read_one(reader)
5671
+ when 'storage_domain'
5672
+ object.storage_domain = StorageDomainReader.read_one(reader)
5673
+ when 'template'
5674
+ object.template = TemplateReader.read_one(reader)
5675
+ else
5676
+ reader.next_element
5677
+ end
5678
+ end
5679
+
5680
+ # Discard the end tag:
5681
+ reader.read
5682
+
5683
+ return object
5684
+ end
5685
+
5686
+
5687
+ def self.read_many(reader)
5688
+ # Do nothing if there aren't more tags:
5689
+ list = List.new
5690
+ return list unless reader.forward
5691
+
5692
+ # Process the attributes:
5693
+ list.href = reader.get_attribute('href')
5694
+
5695
+ # Discard the start tag:
5696
+ empty = reader.empty_element?
5697
+ reader.read
5698
+ return list if empty
5699
+
5700
+ # Process the inner elements:
5701
+ while reader.forward do
5702
+ list << read_one(reader)
5703
+ end
5704
+
5705
+ # Discard the end tag:
5706
+ reader.read
5707
+
5708
+ return list
5709
+ end
5710
+
5711
+ end
5712
+
5382
5713
  class ExternalVmImportReader < Reader
5383
5714
 
5384
5715
  def self.read_one(reader)
@@ -7498,10 +7829,14 @@ module OvirtSDK4
7498
7829
  object.numa_supported = value if not value.nil?
7499
7830
  value = reader.get_attribute('override_iptables')
7500
7831
  object.override_iptables = value if not value.nil?
7832
+ value = reader.get_attribute('ovn_configured')
7833
+ object.ovn_configured = value if not value.nil?
7501
7834
  value = reader.get_attribute('port')
7502
7835
  object.port = value if not value.nil?
7503
7836
  value = reader.get_attribute('protocol')
7504
7837
  object.protocol = value if not value.nil?
7838
+ value = reader.get_attribute('reinstallation_required')
7839
+ object.reinstallation_required = value if not value.nil?
7505
7840
  value = reader.get_attribute('root_password')
7506
7841
  object.root_password = value if not value.nil?
7507
7842
  value = reader.get_attribute('status')
@@ -7569,12 +7904,16 @@ module OvirtSDK4
7569
7904
  object.os = OperatingSystemReader.read_one(reader)
7570
7905
  when 'override_iptables'
7571
7906
  object.override_iptables = Reader.read_boolean(reader)
7907
+ when 'ovn_configured'
7908
+ object.ovn_configured = Reader.read_boolean(reader)
7572
7909
  when 'port'
7573
7910
  object.port = Reader.read_integer(reader)
7574
7911
  when 'power_management'
7575
7912
  object.power_management = PowerManagementReader.read_one(reader)
7576
7913
  when 'protocol'
7577
7914
  object.protocol = Reader.read_enum(HostProtocol, reader)
7915
+ when 'reinstallation_required'
7916
+ object.reinstallation_required = Reader.read_boolean(reader)
7578
7917
  when 'root_password'
7579
7918
  object.root_password = Reader.read_string(reader)
7580
7919
  when 'se_linux'
@@ -7605,6 +7944,8 @@ module OvirtSDK4
7605
7944
  object.agents = AgentReader.read_many(reader)
7606
7945
  when 'cluster'
7607
7946
  object.cluster = ClusterReader.read_one(reader)
7947
+ when 'cpu_units'
7948
+ object.cpu_units = HostCpuUnitReader.read_many(reader)
7608
7949
  when 'devices'
7609
7950
  object.devices = HostDeviceReader.read_many(reader)
7610
7951
  when 'external_host_provider'
@@ -7679,36 +8020,149 @@ module OvirtSDK4
7679
8020
  list = List.new
7680
8021
  list.href = href
7681
8022
  case rel
7682
- when 'affinitylabels'
7683
- object.affinity_labels = list
7684
- when 'agents'
7685
- object.agents = list
7686
- when 'devices'
7687
- object.devices = list
7688
- when 'externalnetworkproviderconfigurations'
7689
- object.external_network_provider_configurations = list
7690
- when 'hooks'
7691
- object.hooks = list
7692
- when 'katelloerrata'
7693
- object.katello_errata = list
7694
- when 'networkattachments'
7695
- object.network_attachments = list
7696
- when 'nics'
7697
- object.nics = list
7698
- when 'numanodes'
7699
- object.numa_nodes = list
7700
- when 'permissions'
7701
- object.permissions = list
7702
- when 'statistics'
7703
- object.statistics = list
7704
- when 'storageconnectionextensions'
7705
- object.storage_connection_extensions = list
7706
- when 'storages'
7707
- object.storages = list
7708
- when 'tags'
7709
- object.tags = list
7710
- when 'unmanagednetworks'
7711
- object.unmanaged_networks = list
8023
+ when 'affinitylabels'
8024
+ object.affinity_labels = list
8025
+ when 'agents'
8026
+ object.agents = list
8027
+ when 'cpuunits'
8028
+ object.cpu_units = list
8029
+ when 'devices'
8030
+ object.devices = list
8031
+ when 'externalnetworkproviderconfigurations'
8032
+ object.external_network_provider_configurations = list
8033
+ when 'hooks'
8034
+ object.hooks = list
8035
+ when 'katelloerrata'
8036
+ object.katello_errata = list
8037
+ when 'networkattachments'
8038
+ object.network_attachments = list
8039
+ when 'nics'
8040
+ object.nics = list
8041
+ when 'numanodes'
8042
+ object.numa_nodes = list
8043
+ when 'permissions'
8044
+ object.permissions = list
8045
+ when 'statistics'
8046
+ object.statistics = list
8047
+ when 'storageconnectionextensions'
8048
+ object.storage_connection_extensions = list
8049
+ when 'storages'
8050
+ object.storages = list
8051
+ when 'tags'
8052
+ object.tags = list
8053
+ when 'unmanagednetworks'
8054
+ object.unmanaged_networks = list
8055
+ end
8056
+ end
8057
+
8058
+ # Discard the rest of the element:
8059
+ reader.next_element
8060
+ end
8061
+
8062
+ end
8063
+
8064
+ class HostCpuUnitReader < Reader
8065
+
8066
+ def self.read_one(reader)
8067
+ # Do nothing if there aren't more tags:
8068
+ return nil unless reader.forward
8069
+
8070
+ # Create the object:
8071
+ object = HostCpuUnit.new
8072
+
8073
+ # Process the attributes:
8074
+ object.href = reader.get_attribute('href')
8075
+ value = reader.get_attribute('comment')
8076
+ object.comment = value if not value.nil?
8077
+ value = reader.get_attribute('core_id')
8078
+ object.core_id = value if not value.nil?
8079
+ value = reader.get_attribute('cpu_id')
8080
+ object.cpu_id = value if not value.nil?
8081
+ value = reader.get_attribute('description')
8082
+ object.description = value if not value.nil?
8083
+ value = reader.get_attribute('id')
8084
+ object.id = value if not value.nil?
8085
+ value = reader.get_attribute('name')
8086
+ object.name = value if not value.nil?
8087
+ value = reader.get_attribute('runs_vdsm')
8088
+ object.runs_vdsm = value if not value.nil?
8089
+ value = reader.get_attribute('socket_id')
8090
+ object.socket_id = value if not value.nil?
8091
+
8092
+ # Discard the start tag:
8093
+ empty = reader.empty_element?
8094
+ reader.read
8095
+ return object if empty
8096
+
8097
+ # Process the inner elements:
8098
+ while reader.forward do
8099
+ case reader.node_name
8100
+ when 'comment'
8101
+ object.comment = Reader.read_string(reader)
8102
+ when 'core_id'
8103
+ object.core_id = Reader.read_integer(reader)
8104
+ when 'cpu_id'
8105
+ object.cpu_id = Reader.read_integer(reader)
8106
+ when 'description'
8107
+ object.description = Reader.read_string(reader)
8108
+ when 'id'
8109
+ object.id = Reader.read_string(reader)
8110
+ when 'name'
8111
+ object.name = Reader.read_string(reader)
8112
+ when 'runs_vdsm'
8113
+ object.runs_vdsm = Reader.read_boolean(reader)
8114
+ when 'socket_id'
8115
+ object.socket_id = Reader.read_integer(reader)
8116
+ when 'vms'
8117
+ object.vms = VmReader.read_many(reader)
8118
+ when 'link'
8119
+ read_link(reader, object)
8120
+ else
8121
+ reader.next_element
8122
+ end
8123
+ end
8124
+
8125
+ # Discard the end tag:
8126
+ reader.read
8127
+
8128
+ return object
8129
+ end
8130
+
8131
+
8132
+ def self.read_many(reader)
8133
+ # Do nothing if there aren't more tags:
8134
+ list = List.new
8135
+ return list unless reader.forward
8136
+
8137
+ # Process the attributes:
8138
+ list.href = reader.get_attribute('href')
8139
+
8140
+ # Discard the start tag:
8141
+ empty = reader.empty_element?
8142
+ reader.read
8143
+ return list if empty
8144
+
8145
+ # Process the inner elements:
8146
+ while reader.forward do
8147
+ list << read_one(reader)
8148
+ end
8149
+
8150
+ # Discard the end tag:
8151
+ reader.read
8152
+
8153
+ return list
8154
+ end
8155
+
8156
+ def self.read_link(reader, object)
8157
+ # Process the attributes:
8158
+ rel = reader.get_attribute('rel')
8159
+ href = reader.get_attribute('href')
8160
+ if rel && href
8161
+ list = List.new
8162
+ list.href = href
8163
+ case rel
8164
+ when 'vms'
8165
+ object.vms = list
7712
8166
  end
7713
8167
  end
7714
8168
 
@@ -8612,8 +9066,10 @@ module OvirtSDK4
8612
9066
  object.phase = value if not value.nil?
8613
9067
  value = reader.get_attribute('proxy_url')
8614
9068
  object.proxy_url = value if not value.nil?
8615
- value = reader.get_attribute('signed_ticket')
8616
- object.signed_ticket = value if not value.nil?
9069
+ value = reader.get_attribute('shallow')
9070
+ object.shallow = value if not value.nil?
9071
+ value = reader.get_attribute('timeout_policy')
9072
+ object.timeout_policy = value if not value.nil?
8617
9073
  value = reader.get_attribute('transfer_url')
8618
9074
  object.transfer_url = value if not value.nil?
8619
9075
  value = reader.get_attribute('transferred')
@@ -8647,8 +9103,10 @@ module OvirtSDK4
8647
9103
  object.phase = Reader.read_enum(ImageTransferPhase, reader)
8648
9104
  when 'proxy_url'
8649
9105
  object.proxy_url = Reader.read_string(reader)
8650
- when 'signed_ticket'
8651
- object.signed_ticket = Reader.read_string(reader)
9106
+ when 'shallow'
9107
+ object.shallow = Reader.read_boolean(reader)
9108
+ when 'timeout_policy'
9109
+ object.timeout_policy = Reader.read_enum(ImageTransferTimeoutPolicy, reader)
8652
9110
  when 'transfer_url'
8653
9111
  object.transfer_url = Reader.read_string(reader)
8654
9112
  when 'transferred'
@@ -8852,8 +9310,12 @@ module OvirtSDK4
8852
9310
 
8853
9311
  # Process the attributes:
8854
9312
  object.href = reader.get_attribute('href')
9313
+ value = reader.get_attribute('auto_pinning_policy')
9314
+ object.auto_pinning_policy = value if not value.nil?
8855
9315
  value = reader.get_attribute('comment')
8856
9316
  object.comment = value if not value.nil?
9317
+ value = reader.get_attribute('cpu_pinning_policy')
9318
+ object.cpu_pinning_policy = value if not value.nil?
8857
9319
  value = reader.get_attribute('cpu_shares')
8858
9320
  object.cpu_shares = value if not value.nil?
8859
9321
  value = reader.get_attribute('creation_time')
@@ -8888,10 +9350,16 @@ module OvirtSDK4
8888
9350
  object.status = value if not value.nil?
8889
9351
  value = reader.get_attribute('storage_error_resume_behaviour')
8890
9352
  object.storage_error_resume_behaviour = value if not value.nil?
9353
+ value = reader.get_attribute('tpm_enabled')
9354
+ object.tpm_enabled = value if not value.nil?
8891
9355
  value = reader.get_attribute('tunnel_migration')
8892
9356
  object.tunnel_migration = value if not value.nil?
8893
9357
  value = reader.get_attribute('type')
8894
9358
  object.type = value if not value.nil?
9359
+ value = reader.get_attribute('virtio_scsi_multi_queues')
9360
+ object.virtio_scsi_multi_queues = value if not value.nil?
9361
+ value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
9362
+ object.virtio_scsi_multi_queues_enabled = value if not value.nil?
8895
9363
 
8896
9364
  # Discard the start tag:
8897
9365
  empty = reader.empty_element?
@@ -8901,6 +9369,8 @@ module OvirtSDK4
8901
9369
  # Process the inner elements:
8902
9370
  while reader.forward do
8903
9371
  case reader.node_name
9372
+ when 'auto_pinning_policy'
9373
+ object.auto_pinning_policy = Reader.read_enum(AutoPinningPolicy, reader)
8904
9374
  when 'bios'
8905
9375
  object.bios = BiosReader.read_one(reader)
8906
9376
  when 'comment'
@@ -8909,6 +9379,8 @@ module OvirtSDK4
8909
9379
  object.console = ConsoleReader.read_one(reader)
8910
9380
  when 'cpu'
8911
9381
  object.cpu = CpuReader.read_one(reader)
9382
+ when 'cpu_pinning_policy'
9383
+ object.cpu_pinning_policy = Reader.read_enum(CpuPinningPolicy, reader)
8912
9384
  when 'cpu_shares'
8913
9385
  object.cpu_shares = Reader.read_integer(reader)
8914
9386
  when 'creation_time'
@@ -8979,6 +9451,8 @@ module OvirtSDK4
8979
9451
  object.storage_error_resume_behaviour = Reader.read_enum(VmStorageErrorResumeBehaviour, reader)
8980
9452
  when 'time_zone'
8981
9453
  object.time_zone = TimeZoneReader.read_one(reader)
9454
+ when 'tpm_enabled'
9455
+ object.tpm_enabled = Reader.read_boolean(reader)
8982
9456
  when 'tunnel_migration'
8983
9457
  object.tunnel_migration = Reader.read_boolean(reader)
8984
9458
  when 'type'
@@ -8989,6 +9463,10 @@ module OvirtSDK4
8989
9463
  object.version = TemplateVersionReader.read_one(reader)
8990
9464
  when 'virtio_scsi'
8991
9465
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
9466
+ when 'virtio_scsi_multi_queues'
9467
+ object.virtio_scsi_multi_queues = Reader.read_integer(reader)
9468
+ when 'virtio_scsi_multi_queues_enabled'
9469
+ object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
8992
9470
  when 'vm'
8993
9471
  object.vm = VmReader.read_one(reader)
8994
9472
  when 'cdroms'
@@ -9001,6 +9479,8 @@ module OvirtSDK4
9001
9479
  object.disk_attachments = DiskAttachmentReader.read_many(reader)
9002
9480
  when 'graphics_consoles'
9003
9481
  object.graphics_consoles = GraphicsConsoleReader.read_many(reader)
9482
+ when 'mediated_devices'
9483
+ object.mediated_devices = VmMediatedDeviceReader.read_many(reader)
9004
9484
  when 'nics'
9005
9485
  object.nics = NicReader.read_many(reader)
9006
9486
  when 'permissions'
@@ -9065,6 +9545,8 @@ module OvirtSDK4
9065
9545
  object.disk_attachments = list
9066
9546
  when 'graphicsconsoles'
9067
9547
  object.graphics_consoles = list
9548
+ when 'mediateddevices'
9549
+ object.mediated_devices = list
9068
9550
  when 'nics'
9069
9551
  object.nics = list
9070
9552
  when 'permissions'
@@ -10097,6 +10579,8 @@ module OvirtSDK4
10097
10579
  object.available_instances = value if not value.nil?
10098
10580
  value = reader.get_attribute('description')
10099
10581
  object.description = value if not value.nil?
10582
+ value = reader.get_attribute('human_readable_name')
10583
+ object.human_readable_name = value if not value.nil?
10100
10584
  value = reader.get_attribute('name')
10101
10585
  object.name = value if not value.nil?
10102
10586
 
@@ -10112,6 +10596,8 @@ module OvirtSDK4
10112
10596
  object.available_instances = Reader.read_integer(reader)
10113
10597
  when 'description'
10114
10598
  object.description = Reader.read_string(reader)
10599
+ when 'human_readable_name'
10600
+ object.human_readable_name = Reader.read_string(reader)
10115
10601
  when 'name'
10116
10602
  object.name = Reader.read_string(reader)
10117
10603
  else
@@ -10260,6 +10746,10 @@ module OvirtSDK4
10260
10746
  object.name = Reader.read_string(reader)
10261
10747
  when 'ranges'
10262
10748
  object.ranges = RangeReader.read_many(reader)
10749
+ when 'permissions'
10750
+ object.permissions = PermissionReader.read_many(reader)
10751
+ when 'link'
10752
+ read_link(reader, object)
10263
10753
  else
10264
10754
  reader.next_element
10265
10755
  end
@@ -10296,6 +10786,23 @@ module OvirtSDK4
10296
10786
  return list
10297
10787
  end
10298
10788
 
10789
+ def self.read_link(reader, object)
10790
+ # Process the attributes:
10791
+ rel = reader.get_attribute('rel')
10792
+ href = reader.get_attribute('href')
10793
+ if rel && href
10794
+ list = List.new
10795
+ list.href = href
10796
+ case rel
10797
+ when 'permissions'
10798
+ object.permissions = list
10799
+ end
10800
+ end
10801
+
10802
+ # Discard the rest of the element:
10803
+ reader.next_element
10804
+ end
10805
+
10299
10806
  end
10300
10807
 
10301
10808
  class MemoryOverCommitReader < Reader
@@ -10577,8 +11084,12 @@ module OvirtSDK4
10577
11084
  object.auto_converge = value if not value.nil?
10578
11085
  value = reader.get_attribute('compressed')
10579
11086
  object.compressed = value if not value.nil?
11087
+ value = reader.get_attribute('custom_parallel_migrations')
11088
+ object.custom_parallel_migrations = value if not value.nil?
10580
11089
  value = reader.get_attribute('encrypted')
10581
11090
  object.encrypted = value if not value.nil?
11091
+ value = reader.get_attribute('parallel_migrations_policy')
11092
+ object.parallel_migrations_policy = value if not value.nil?
10582
11093
 
10583
11094
  # Discard the start tag:
10584
11095
  empty = reader.empty_element?
@@ -10594,8 +11105,12 @@ module OvirtSDK4
10594
11105
  object.bandwidth = MigrationBandwidthReader.read_one(reader)
10595
11106
  when 'compressed'
10596
11107
  object.compressed = Reader.read_enum(InheritableBoolean, reader)
11108
+ when 'custom_parallel_migrations'
11109
+ object.custom_parallel_migrations = Reader.read_integer(reader)
10597
11110
  when 'encrypted'
10598
11111
  object.encrypted = Reader.read_enum(InheritableBoolean, reader)
11112
+ when 'parallel_migrations_policy'
11113
+ object.parallel_migrations_policy = Reader.read_enum(ParallelMigrationsPolicy, reader)
10599
11114
  when 'policy'
10600
11115
  object.policy = MigrationPolicyReader.read_one(reader)
10601
11116
  else
@@ -10733,6 +11248,8 @@ module OvirtSDK4
10733
11248
  object.mtu = value if not value.nil?
10734
11249
  value = reader.get_attribute('name')
10735
11250
  object.name = value if not value.nil?
11251
+ value = reader.get_attribute('port_isolation')
11252
+ object.port_isolation = value if not value.nil?
10736
11253
  value = reader.get_attribute('profile_required')
10737
11254
  object.profile_required = value if not value.nil?
10738
11255
  value = reader.get_attribute('required')
@@ -10768,6 +11285,8 @@ module OvirtSDK4
10768
11285
  object.mtu = Reader.read_integer(reader)
10769
11286
  when 'name'
10770
11287
  object.name = Reader.read_string(reader)
11288
+ when 'port_isolation'
11289
+ object.port_isolation = Reader.read_boolean(reader)
10771
11290
  when 'profile_required'
10772
11291
  object.profile_required = Reader.read_boolean(reader)
10773
11292
  when 'required'
@@ -11342,6 +11861,8 @@ module OvirtSDK4
11342
11861
  object.on_boot = value if not value.nil?
11343
11862
  value = reader.get_attribute('plugged')
11344
11863
  object.plugged = value if not value.nil?
11864
+ value = reader.get_attribute('synced')
11865
+ object.synced = value if not value.nil?
11345
11866
 
11346
11867
  # Discard the start tag:
11347
11868
  empty = reader.empty_element?
@@ -11371,6 +11892,8 @@ module OvirtSDK4
11371
11892
  object.on_boot = Reader.read_boolean(reader)
11372
11893
  when 'plugged'
11373
11894
  object.plugged = Reader.read_boolean(reader)
11895
+ when 'synced'
11896
+ object.synced = Reader.read_boolean(reader)
11374
11897
  when 'instance_type'
11375
11898
  object.instance_type = InstanceTypeReader.read_one(reader)
11376
11899
  when 'network'
@@ -12767,6 +13290,8 @@ module OvirtSDK4
12767
13290
  object.id = value if not value.nil?
12768
13291
  value = reader.get_attribute('name')
12769
13292
  object.name = value if not value.nil?
13293
+ value = reader.get_attribute('tpm_support')
13294
+ object.tpm_support = value if not value.nil?
12770
13295
 
12771
13296
  # Discard the start tag:
12772
13297
  empty = reader.empty_element?
@@ -12790,6 +13315,8 @@ module OvirtSDK4
12790
13315
  object.name = Reader.read_string(reader)
12791
13316
  when 'small_icon'
12792
13317
  object.small_icon = IconReader.read_one(reader)
13318
+ when 'tpm_support'
13319
+ object.tpm_support = Reader.read_enum(TpmSupport, reader)
12793
13320
  else
12794
13321
  reader.next_element
12795
13322
  end
@@ -13500,6 +14027,8 @@ module OvirtSDK4
13500
14027
 
13501
14028
  # Process the attributes:
13502
14029
  object.href = reader.get_attribute('href')
14030
+ value = reader.get_attribute('instance_id')
14031
+ object.instance_id = value if not value.nil?
13503
14032
  value = reader.get_attribute('name')
13504
14033
  object.name = value if not value.nil?
13505
14034
  value = reader.get_attribute('vendor')
@@ -13513,6 +14042,8 @@ module OvirtSDK4
13513
14042
  # Process the inner elements:
13514
14043
  while reader.forward do
13515
14044
  case reader.node_name
14045
+ when 'instance_id'
14046
+ object.instance_id = Reader.read_string(reader)
13516
14047
  when 'name'
13517
14048
  object.name = Reader.read_string(reader)
13518
14049
  when 'vendor'
@@ -15729,8 +16260,12 @@ module OvirtSDK4
15729
16260
 
15730
16261
  # Process the attributes:
15731
16262
  object.href = reader.get_attribute('href')
16263
+ value = reader.get_attribute('auto_pinning_policy')
16264
+ object.auto_pinning_policy = value if not value.nil?
15732
16265
  value = reader.get_attribute('comment')
15733
16266
  object.comment = value if not value.nil?
16267
+ value = reader.get_attribute('cpu_pinning_policy')
16268
+ object.cpu_pinning_policy = value if not value.nil?
15734
16269
  value = reader.get_attribute('cpu_shares')
15735
16270
  object.cpu_shares = value if not value.nil?
15736
16271
  value = reader.get_attribute('creation_time')
@@ -15791,12 +16326,18 @@ module OvirtSDK4
15791
16326
  object.stop_time = value if not value.nil?
15792
16327
  value = reader.get_attribute('storage_error_resume_behaviour')
15793
16328
  object.storage_error_resume_behaviour = value if not value.nil?
16329
+ value = reader.get_attribute('tpm_enabled')
16330
+ object.tpm_enabled = value if not value.nil?
15794
16331
  value = reader.get_attribute('tunnel_migration')
15795
16332
  object.tunnel_migration = value if not value.nil?
15796
16333
  value = reader.get_attribute('type')
15797
16334
  object.type = value if not value.nil?
15798
16335
  value = reader.get_attribute('use_latest_template_version')
15799
16336
  object.use_latest_template_version = value if not value.nil?
16337
+ value = reader.get_attribute('virtio_scsi_multi_queues')
16338
+ object.virtio_scsi_multi_queues = value if not value.nil?
16339
+ value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
16340
+ object.virtio_scsi_multi_queues_enabled = value if not value.nil?
15800
16341
 
15801
16342
  # Discard the start tag:
15802
16343
  empty = reader.empty_element?
@@ -15806,6 +16347,8 @@ module OvirtSDK4
15806
16347
  # Process the inner elements:
15807
16348
  while reader.forward do
15808
16349
  case reader.node_name
16350
+ when 'auto_pinning_policy'
16351
+ object.auto_pinning_policy = Reader.read_enum(AutoPinningPolicy, reader)
15809
16352
  when 'bios'
15810
16353
  object.bios = BiosReader.read_one(reader)
15811
16354
  when 'comment'
@@ -15814,6 +16357,8 @@ module OvirtSDK4
15814
16357
  object.console = ConsoleReader.read_one(reader)
15815
16358
  when 'cpu'
15816
16359
  object.cpu = CpuReader.read_one(reader)
16360
+ when 'cpu_pinning_policy'
16361
+ object.cpu_pinning_policy = Reader.read_enum(CpuPinningPolicy, reader)
15817
16362
  when 'cpu_shares'
15818
16363
  object.cpu_shares = Reader.read_integer(reader)
15819
16364
  when 'creation_time'
@@ -15916,6 +16461,8 @@ module OvirtSDK4
15916
16461
  object.storage_error_resume_behaviour = Reader.read_enum(VmStorageErrorResumeBehaviour, reader)
15917
16462
  when 'time_zone'
15918
16463
  object.time_zone = TimeZoneReader.read_one(reader)
16464
+ when 'tpm_enabled'
16465
+ object.tpm_enabled = Reader.read_boolean(reader)
15919
16466
  when 'tunnel_migration'
15920
16467
  object.tunnel_migration = Reader.read_boolean(reader)
15921
16468
  when 'type'
@@ -15926,6 +16473,10 @@ module OvirtSDK4
15926
16473
  object.use_latest_template_version = Reader.read_boolean(reader)
15927
16474
  when 'virtio_scsi'
15928
16475
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
16476
+ when 'virtio_scsi_multi_queues'
16477
+ object.virtio_scsi_multi_queues = Reader.read_integer(reader)
16478
+ when 'virtio_scsi_multi_queues_enabled'
16479
+ object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
15929
16480
  when 'affinity_labels'
15930
16481
  object.affinity_labels = AffinityLabelReader.read_many(reader)
15931
16482
  when 'applications'
@@ -15940,6 +16491,8 @@ module OvirtSDK4
15940
16491
  object.disk_attachments = DiskAttachmentReader.read_many(reader)
15941
16492
  when 'disks'
15942
16493
  object.disks = DiskReader.read_many(reader)
16494
+ when 'dynamic_cpu'
16495
+ object.dynamic_cpu = DynamicCpuReader.read_one(reader)
15943
16496
  when 'external_host_provider'
15944
16497
  object.external_host_provider = ExternalHostProviderReader.read_one(reader)
15945
16498
  when 'floppies'
@@ -15954,6 +16507,8 @@ module OvirtSDK4
15954
16507
  object.instance_type = InstanceTypeReader.read_one(reader)
15955
16508
  when 'katello_errata'
15956
16509
  object.katello_errata = KatelloErratumReader.read_many(reader)
16510
+ when 'mediated_devices'
16511
+ object.mediated_devices = VmMediatedDeviceReader.read_many(reader)
15957
16512
  when 'nics'
15958
16513
  object.nics = NicReader.read_many(reader)
15959
16514
  when 'host_numa_nodes'
@@ -16048,6 +16603,8 @@ module OvirtSDK4
16048
16603
  object.host_devices = list
16049
16604
  when 'katelloerrata'
16050
16605
  object.katello_errata = list
16606
+ when 'mediateddevices'
16607
+ object.mediated_devices = list
16051
16608
  when 'nics'
16052
16609
  object.nics = list
16053
16610
  when 'numanodes'
@@ -16228,6 +16785,8 @@ module OvirtSDK4
16228
16785
  object.name = value if not value.nil?
16229
16786
  value = reader.get_attribute('port')
16230
16787
  object.port = value if not value.nil?
16788
+ value = reader.get_attribute('public_key')
16789
+ object.public_key = value if not value.nil?
16231
16790
 
16232
16791
  # Discard the start tag:
16233
16792
  empty = reader.empty_element?
@@ -16251,6 +16810,8 @@ module OvirtSDK4
16251
16810
  object.name = Reader.read_string(reader)
16252
16811
  when 'port'
16253
16812
  object.port = Reader.read_integer(reader)
16813
+ when 'public_key'
16814
+ object.public_key = Reader.read_string(reader)
16254
16815
  when 'user'
16255
16816
  object.user = UserReader.read_one(reader)
16256
16817
  else
@@ -17392,8 +17953,12 @@ module OvirtSDK4
17392
17953
 
17393
17954
  # Process the attributes:
17394
17955
  object.href = reader.get_attribute('href')
17956
+ value = reader.get_attribute('auto_pinning_policy')
17957
+ object.auto_pinning_policy = value if not value.nil?
17395
17958
  value = reader.get_attribute('comment')
17396
17959
  object.comment = value if not value.nil?
17960
+ value = reader.get_attribute('cpu_pinning_policy')
17961
+ object.cpu_pinning_policy = value if not value.nil?
17397
17962
  value = reader.get_attribute('cpu_shares')
17398
17963
  object.cpu_shares = value if not value.nil?
17399
17964
  value = reader.get_attribute('creation_time')
@@ -17428,10 +17993,16 @@ module OvirtSDK4
17428
17993
  object.status = value if not value.nil?
17429
17994
  value = reader.get_attribute('storage_error_resume_behaviour')
17430
17995
  object.storage_error_resume_behaviour = value if not value.nil?
17996
+ value = reader.get_attribute('tpm_enabled')
17997
+ object.tpm_enabled = value if not value.nil?
17431
17998
  value = reader.get_attribute('tunnel_migration')
17432
17999
  object.tunnel_migration = value if not value.nil?
17433
18000
  value = reader.get_attribute('type')
17434
18001
  object.type = value if not value.nil?
18002
+ value = reader.get_attribute('virtio_scsi_multi_queues')
18003
+ object.virtio_scsi_multi_queues = value if not value.nil?
18004
+ value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
18005
+ object.virtio_scsi_multi_queues_enabled = value if not value.nil?
17435
18006
 
17436
18007
  # Discard the start tag:
17437
18008
  empty = reader.empty_element?
@@ -17441,6 +18012,8 @@ module OvirtSDK4
17441
18012
  # Process the inner elements:
17442
18013
  while reader.forward do
17443
18014
  case reader.node_name
18015
+ when 'auto_pinning_policy'
18016
+ object.auto_pinning_policy = Reader.read_enum(AutoPinningPolicy, reader)
17444
18017
  when 'bios'
17445
18018
  object.bios = BiosReader.read_one(reader)
17446
18019
  when 'comment'
@@ -17449,6 +18022,8 @@ module OvirtSDK4
17449
18022
  object.console = ConsoleReader.read_one(reader)
17450
18023
  when 'cpu'
17451
18024
  object.cpu = CpuReader.read_one(reader)
18025
+ when 'cpu_pinning_policy'
18026
+ object.cpu_pinning_policy = Reader.read_enum(CpuPinningPolicy, reader)
17452
18027
  when 'cpu_shares'
17453
18028
  object.cpu_shares = Reader.read_integer(reader)
17454
18029
  when 'creation_time'
@@ -17519,6 +18094,8 @@ module OvirtSDK4
17519
18094
  object.storage_error_resume_behaviour = Reader.read_enum(VmStorageErrorResumeBehaviour, reader)
17520
18095
  when 'time_zone'
17521
18096
  object.time_zone = TimeZoneReader.read_one(reader)
18097
+ when 'tpm_enabled'
18098
+ object.tpm_enabled = Reader.read_boolean(reader)
17522
18099
  when 'tunnel_migration'
17523
18100
  object.tunnel_migration = Reader.read_boolean(reader)
17524
18101
  when 'type'
@@ -17529,6 +18106,10 @@ module OvirtSDK4
17529
18106
  object.version = TemplateVersionReader.read_one(reader)
17530
18107
  when 'virtio_scsi'
17531
18108
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
18109
+ when 'virtio_scsi_multi_queues'
18110
+ object.virtio_scsi_multi_queues = Reader.read_integer(reader)
18111
+ when 'virtio_scsi_multi_queues_enabled'
18112
+ object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
17532
18113
  when 'vm'
17533
18114
  object.vm = VmReader.read_one(reader)
17534
18115
  when 'cdroms'
@@ -17541,6 +18122,8 @@ module OvirtSDK4
17541
18122
  object.disk_attachments = DiskAttachmentReader.read_many(reader)
17542
18123
  when 'graphics_consoles'
17543
18124
  object.graphics_consoles = GraphicsConsoleReader.read_many(reader)
18125
+ when 'mediated_devices'
18126
+ object.mediated_devices = VmMediatedDeviceReader.read_many(reader)
17544
18127
  when 'nics'
17545
18128
  object.nics = NicReader.read_many(reader)
17546
18129
  when 'permissions'
@@ -17605,6 +18188,8 @@ module OvirtSDK4
17605
18188
  object.disk_attachments = list
17606
18189
  when 'graphicsconsoles'
17607
18190
  object.graphics_consoles = list
18191
+ when 'mediateddevices'
18192
+ object.mediated_devices = list
17608
18193
  when 'nics'
17609
18194
  object.nics = list
17610
18195
  when 'permissions'
@@ -18106,6 +18691,8 @@ module OvirtSDK4
18106
18691
  object.domain = DomainReader.read_one(reader)
18107
18692
  when 'groups'
18108
18693
  object.groups = GroupReader.read_many(reader)
18694
+ when 'options'
18695
+ object.options = UserOptionReader.read_many(reader)
18109
18696
  when 'permissions'
18110
18697
  object.permissions = PermissionReader.read_many(reader)
18111
18698
  when 'roles'
@@ -18162,6 +18749,8 @@ module OvirtSDK4
18162
18749
  case rel
18163
18750
  when 'groups'
18164
18751
  object.groups = list
18752
+ when 'options'
18753
+ object.options = list
18165
18754
  when 'permissions'
18166
18755
  object.permissions = list
18167
18756
  when 'roles'
@@ -18179,6 +18768,86 @@ module OvirtSDK4
18179
18768
 
18180
18769
  end
18181
18770
 
18771
+ class UserOptionReader < Reader
18772
+
18773
+ def self.read_one(reader)
18774
+ # Do nothing if there aren't more tags:
18775
+ return nil unless reader.forward
18776
+
18777
+ # Create the object:
18778
+ object = UserOption.new
18779
+
18780
+ # Process the attributes:
18781
+ object.href = reader.get_attribute('href')
18782
+ value = reader.get_attribute('comment')
18783
+ object.comment = value if not value.nil?
18784
+ value = reader.get_attribute('content')
18785
+ object.content = value if not value.nil?
18786
+ value = reader.get_attribute('description')
18787
+ object.description = value if not value.nil?
18788
+ value = reader.get_attribute('id')
18789
+ object.id = value if not value.nil?
18790
+ value = reader.get_attribute('name')
18791
+ object.name = value if not value.nil?
18792
+
18793
+ # Discard the start tag:
18794
+ empty = reader.empty_element?
18795
+ reader.read
18796
+ return object if empty
18797
+
18798
+ # Process the inner elements:
18799
+ while reader.forward do
18800
+ case reader.node_name
18801
+ when 'comment'
18802
+ object.comment = Reader.read_string(reader)
18803
+ when 'content'
18804
+ object.content = Reader.read_string(reader)
18805
+ when 'description'
18806
+ object.description = Reader.read_string(reader)
18807
+ when 'id'
18808
+ object.id = Reader.read_string(reader)
18809
+ when 'name'
18810
+ object.name = Reader.read_string(reader)
18811
+ when 'user'
18812
+ object.user = UserReader.read_one(reader)
18813
+ else
18814
+ reader.next_element
18815
+ end
18816
+ end
18817
+
18818
+ # Discard the end tag:
18819
+ reader.read
18820
+
18821
+ return object
18822
+ end
18823
+
18824
+
18825
+ def self.read_many(reader)
18826
+ # Do nothing if there aren't more tags:
18827
+ list = List.new
18828
+ return list unless reader.forward
18829
+
18830
+ # Process the attributes:
18831
+ list.href = reader.get_attribute('href')
18832
+
18833
+ # Discard the start tag:
18834
+ empty = reader.empty_element?
18835
+ reader.read
18836
+ return list if empty
18837
+
18838
+ # Process the inner elements:
18839
+ while reader.forward do
18840
+ list << read_one(reader)
18841
+ end
18842
+
18843
+ # Discard the end tag:
18844
+ reader.read
18845
+
18846
+ return list
18847
+ end
18848
+
18849
+ end
18850
+
18182
18851
  class ValueReader < Reader
18183
18852
 
18184
18853
  def self.read_one(reader)
@@ -18566,6 +19235,8 @@ module OvirtSDK4
18566
19235
  object.name = value if not value.nil?
18567
19236
  value = reader.get_attribute('node_distance')
18568
19237
  object.node_distance = value if not value.nil?
19238
+ value = reader.get_attribute('numa_tune_mode')
19239
+ object.numa_tune_mode = value if not value.nil?
18569
19240
 
18570
19241
  # Discard the start tag:
18571
19242
  empty = reader.empty_element?
@@ -18593,6 +19264,8 @@ module OvirtSDK4
18593
19264
  object.node_distance = Reader.read_string(reader)
18594
19265
  when 'numa_node_pins'
18595
19266
  object.numa_node_pins = NumaNodePinReader.read_many(reader)
19267
+ when 'numa_tune_mode'
19268
+ object.numa_tune_mode = Reader.read_enum(NumaTuneMode, reader)
18596
19269
  when 'host'
18597
19270
  object.host = HostReader.read_one(reader)
18598
19271
  when 'statistics'
@@ -18729,8 +19402,12 @@ module OvirtSDK4
18729
19402
 
18730
19403
  # Process the attributes:
18731
19404
  object.href = reader.get_attribute('href')
19405
+ value = reader.get_attribute('auto_pinning_policy')
19406
+ object.auto_pinning_policy = value if not value.nil?
18732
19407
  value = reader.get_attribute('comment')
18733
19408
  object.comment = value if not value.nil?
19409
+ value = reader.get_attribute('cpu_pinning_policy')
19410
+ object.cpu_pinning_policy = value if not value.nil?
18734
19411
  value = reader.get_attribute('cpu_shares')
18735
19412
  object.cpu_shares = value if not value.nil?
18736
19413
  value = reader.get_attribute('creation_time')
@@ -18783,12 +19460,18 @@ module OvirtSDK4
18783
19460
  object.stop_time = value if not value.nil?
18784
19461
  value = reader.get_attribute('storage_error_resume_behaviour')
18785
19462
  object.storage_error_resume_behaviour = value if not value.nil?
19463
+ value = reader.get_attribute('tpm_enabled')
19464
+ object.tpm_enabled = value if not value.nil?
18786
19465
  value = reader.get_attribute('tunnel_migration')
18787
19466
  object.tunnel_migration = value if not value.nil?
18788
19467
  value = reader.get_attribute('type')
18789
19468
  object.type = value if not value.nil?
18790
19469
  value = reader.get_attribute('use_latest_template_version')
18791
19470
  object.use_latest_template_version = value if not value.nil?
19471
+ value = reader.get_attribute('virtio_scsi_multi_queues')
19472
+ object.virtio_scsi_multi_queues = value if not value.nil?
19473
+ value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
19474
+ object.virtio_scsi_multi_queues_enabled = value if not value.nil?
18792
19475
 
18793
19476
  # Discard the start tag:
18794
19477
  empty = reader.empty_element?
@@ -18798,6 +19481,8 @@ module OvirtSDK4
18798
19481
  # Process the inner elements:
18799
19482
  while reader.forward do
18800
19483
  case reader.node_name
19484
+ when 'auto_pinning_policy'
19485
+ object.auto_pinning_policy = Reader.read_enum(AutoPinningPolicy, reader)
18801
19486
  when 'bios'
18802
19487
  object.bios = BiosReader.read_one(reader)
18803
19488
  when 'comment'
@@ -18806,6 +19491,8 @@ module OvirtSDK4
18806
19491
  object.console = ConsoleReader.read_one(reader)
18807
19492
  when 'cpu'
18808
19493
  object.cpu = CpuReader.read_one(reader)
19494
+ when 'cpu_pinning_policy'
19495
+ object.cpu_pinning_policy = Reader.read_enum(CpuPinningPolicy, reader)
18809
19496
  when 'cpu_shares'
18810
19497
  object.cpu_shares = Reader.read_integer(reader)
18811
19498
  when 'creation_time'
@@ -18900,6 +19587,8 @@ module OvirtSDK4
18900
19587
  object.storage_error_resume_behaviour = Reader.read_enum(VmStorageErrorResumeBehaviour, reader)
18901
19588
  when 'time_zone'
18902
19589
  object.time_zone = TimeZoneReader.read_one(reader)
19590
+ when 'tpm_enabled'
19591
+ object.tpm_enabled = Reader.read_boolean(reader)
18903
19592
  when 'tunnel_migration'
18904
19593
  object.tunnel_migration = Reader.read_boolean(reader)
18905
19594
  when 'type'
@@ -18910,6 +19599,10 @@ module OvirtSDK4
18910
19599
  object.use_latest_template_version = Reader.read_boolean(reader)
18911
19600
  when 'virtio_scsi'
18912
19601
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
19602
+ when 'virtio_scsi_multi_queues'
19603
+ object.virtio_scsi_multi_queues = Reader.read_integer(reader)
19604
+ when 'virtio_scsi_multi_queues_enabled'
19605
+ object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
18913
19606
  when 'affinity_labels'
18914
19607
  object.affinity_labels = AffinityLabelReader.read_many(reader)
18915
19608
  when 'applications'
@@ -18922,6 +19615,8 @@ module OvirtSDK4
18922
19615
  object.cpu_profile = CpuProfileReader.read_one(reader)
18923
19616
  when 'disk_attachments'
18924
19617
  object.disk_attachments = DiskAttachmentReader.read_many(reader)
19618
+ when 'dynamic_cpu'
19619
+ object.dynamic_cpu = DynamicCpuReader.read_one(reader)
18925
19620
  when 'external_host_provider'
18926
19621
  object.external_host_provider = ExternalHostProviderReader.read_one(reader)
18927
19622
  when 'floppies'
@@ -18936,6 +19631,8 @@ module OvirtSDK4
18936
19631
  object.instance_type = InstanceTypeReader.read_one(reader)
18937
19632
  when 'katello_errata'
18938
19633
  object.katello_errata = KatelloErratumReader.read_many(reader)
19634
+ when 'mediated_devices'
19635
+ object.mediated_devices = VmMediatedDeviceReader.read_many(reader)
18939
19636
  when 'nics'
18940
19637
  object.nics = NicReader.read_many(reader)
18941
19638
  when 'host_numa_nodes'
@@ -19026,6 +19723,8 @@ module OvirtSDK4
19026
19723
  object.host_devices = list
19027
19724
  when 'katelloerrata'
19028
19725
  object.katello_errata = list
19726
+ when 'mediateddevices'
19727
+ object.mediated_devices = list
19029
19728
  when 'nics'
19030
19729
  object.nics = list
19031
19730
  when 'numanodes'
@@ -19064,8 +19763,12 @@ module OvirtSDK4
19064
19763
 
19065
19764
  # Process the attributes:
19066
19765
  object.href = reader.get_attribute('href')
19766
+ value = reader.get_attribute('auto_pinning_policy')
19767
+ object.auto_pinning_policy = value if not value.nil?
19067
19768
  value = reader.get_attribute('comment')
19068
19769
  object.comment = value if not value.nil?
19770
+ value = reader.get_attribute('cpu_pinning_policy')
19771
+ object.cpu_pinning_policy = value if not value.nil?
19069
19772
  value = reader.get_attribute('cpu_shares')
19070
19773
  object.cpu_shares = value if not value.nil?
19071
19774
  value = reader.get_attribute('creation_time')
@@ -19098,10 +19801,16 @@ module OvirtSDK4
19098
19801
  object.stateless = value if not value.nil?
19099
19802
  value = reader.get_attribute('storage_error_resume_behaviour')
19100
19803
  object.storage_error_resume_behaviour = value if not value.nil?
19804
+ value = reader.get_attribute('tpm_enabled')
19805
+ object.tpm_enabled = value if not value.nil?
19101
19806
  value = reader.get_attribute('tunnel_migration')
19102
19807
  object.tunnel_migration = value if not value.nil?
19103
19808
  value = reader.get_attribute('type')
19104
19809
  object.type = value if not value.nil?
19810
+ value = reader.get_attribute('virtio_scsi_multi_queues')
19811
+ object.virtio_scsi_multi_queues = value if not value.nil?
19812
+ value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
19813
+ object.virtio_scsi_multi_queues_enabled = value if not value.nil?
19105
19814
 
19106
19815
  # Discard the start tag:
19107
19816
  empty = reader.empty_element?
@@ -19111,6 +19820,8 @@ module OvirtSDK4
19111
19820
  # Process the inner elements:
19112
19821
  while reader.forward do
19113
19822
  case reader.node_name
19823
+ when 'auto_pinning_policy'
19824
+ object.auto_pinning_policy = Reader.read_enum(AutoPinningPolicy, reader)
19114
19825
  when 'bios'
19115
19826
  object.bios = BiosReader.read_one(reader)
19116
19827
  when 'comment'
@@ -19119,6 +19830,8 @@ module OvirtSDK4
19119
19830
  object.console = ConsoleReader.read_one(reader)
19120
19831
  when 'cpu'
19121
19832
  object.cpu = CpuReader.read_one(reader)
19833
+ when 'cpu_pinning_policy'
19834
+ object.cpu_pinning_policy = Reader.read_enum(CpuPinningPolicy, reader)
19122
19835
  when 'cpu_shares'
19123
19836
  object.cpu_shares = Reader.read_integer(reader)
19124
19837
  when 'creation_time'
@@ -19187,6 +19900,8 @@ module OvirtSDK4
19187
19900
  object.storage_error_resume_behaviour = Reader.read_enum(VmStorageErrorResumeBehaviour, reader)
19188
19901
  when 'time_zone'
19189
19902
  object.time_zone = TimeZoneReader.read_one(reader)
19903
+ when 'tpm_enabled'
19904
+ object.tpm_enabled = Reader.read_boolean(reader)
19190
19905
  when 'tunnel_migration'
19191
19906
  object.tunnel_migration = Reader.read_boolean(reader)
19192
19907
  when 'type'
@@ -19195,6 +19910,10 @@ module OvirtSDK4
19195
19910
  object.usb = UsbReader.read_one(reader)
19196
19911
  when 'virtio_scsi'
19197
19912
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
19913
+ when 'virtio_scsi_multi_queues'
19914
+ object.virtio_scsi_multi_queues = Reader.read_integer(reader)
19915
+ when 'virtio_scsi_multi_queues_enabled'
19916
+ object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
19198
19917
  when 'cluster'
19199
19918
  object.cluster = ClusterReader.read_one(reader)
19200
19919
  when 'cpu_profile'
@@ -19241,6 +19960,109 @@ module OvirtSDK4
19241
19960
 
19242
19961
  end
19243
19962
 
19963
+ class VmMediatedDeviceReader < Reader
19964
+
19965
+ def self.read_one(reader)
19966
+ # Do nothing if there aren't more tags:
19967
+ return nil unless reader.forward
19968
+
19969
+ # Create the object:
19970
+ object = VmMediatedDevice.new
19971
+
19972
+ # Process the attributes:
19973
+ object.href = reader.get_attribute('href')
19974
+ value = reader.get_attribute('comment')
19975
+ object.comment = value if not value.nil?
19976
+ value = reader.get_attribute('description')
19977
+ object.description = value if not value.nil?
19978
+ value = reader.get_attribute('id')
19979
+ object.id = value if not value.nil?
19980
+ value = reader.get_attribute('name')
19981
+ object.name = value if not value.nil?
19982
+
19983
+ # Discard the start tag:
19984
+ empty = reader.empty_element?
19985
+ reader.read
19986
+ return object if empty
19987
+
19988
+ # Process the inner elements:
19989
+ while reader.forward do
19990
+ case reader.node_name
19991
+ when 'comment'
19992
+ object.comment = Reader.read_string(reader)
19993
+ when 'description'
19994
+ object.description = Reader.read_string(reader)
19995
+ when 'id'
19996
+ object.id = Reader.read_string(reader)
19997
+ when 'name'
19998
+ object.name = Reader.read_string(reader)
19999
+ when 'spec_params'
20000
+ object.spec_params = PropertyReader.read_many(reader)
20001
+ when 'instance_type'
20002
+ object.instance_type = InstanceTypeReader.read_one(reader)
20003
+ when 'template'
20004
+ object.template = TemplateReader.read_one(reader)
20005
+ when 'vm'
20006
+ object.vm = VmReader.read_one(reader)
20007
+ when 'vms'
20008
+ object.vms = VmReader.read_many(reader)
20009
+ when 'link'
20010
+ read_link(reader, object)
20011
+ else
20012
+ reader.next_element
20013
+ end
20014
+ end
20015
+
20016
+ # Discard the end tag:
20017
+ reader.read
20018
+
20019
+ return object
20020
+ end
20021
+
20022
+
20023
+ def self.read_many(reader)
20024
+ # Do nothing if there aren't more tags:
20025
+ list = List.new
20026
+ return list unless reader.forward
20027
+
20028
+ # Process the attributes:
20029
+ list.href = reader.get_attribute('href')
20030
+
20031
+ # Discard the start tag:
20032
+ empty = reader.empty_element?
20033
+ reader.read
20034
+ return list if empty
20035
+
20036
+ # Process the inner elements:
20037
+ while reader.forward do
20038
+ list << read_one(reader)
20039
+ end
20040
+
20041
+ # Discard the end tag:
20042
+ reader.read
20043
+
20044
+ return list
20045
+ end
20046
+
20047
+ def self.read_link(reader, object)
20048
+ # Process the attributes:
20049
+ rel = reader.get_attribute('rel')
20050
+ href = reader.get_attribute('href')
20051
+ if rel && href
20052
+ list = List.new
20053
+ list.href = href
20054
+ case rel
20055
+ when 'vms'
20056
+ object.vms = list
20057
+ end
20058
+ end
20059
+
20060
+ # Discard the rest of the element:
20061
+ reader.next_element
20062
+ end
20063
+
20064
+ end
20065
+
19244
20066
  class VmPlacementPolicyReader < Reader
19245
20067
 
19246
20068
  def self.read_one(reader)
@@ -19355,6 +20177,8 @@ module OvirtSDK4
19355
20177
  object.soundcard_enabled = value if not value.nil?
19356
20178
  value = reader.get_attribute('stateful')
19357
20179
  object.stateful = value if not value.nil?
20180
+ value = reader.get_attribute('tpm_enabled')
20181
+ object.tpm_enabled = value if not value.nil?
19358
20182
  value = reader.get_attribute('type')
19359
20183
  object.type = value if not value.nil?
19360
20184
  value = reader.get_attribute('use_latest_template_version')
@@ -19392,6 +20216,8 @@ module OvirtSDK4
19392
20216
  object.soundcard_enabled = Reader.read_boolean(reader)
19393
20217
  when 'stateful'
19394
20218
  object.stateful = Reader.read_boolean(reader)
20219
+ when 'tpm_enabled'
20220
+ object.tpm_enabled = Reader.read_boolean(reader)
19395
20221
  when 'type'
19396
20222
  object.type = Reader.read_enum(VmPoolType, reader)
19397
20223
  when 'use_latest_template_version'
@@ -19643,6 +20469,8 @@ module OvirtSDK4
19643
20469
  object.pass_through = VnicPassThroughReader.read_one(reader)
19644
20470
  when 'port_mirroring'
19645
20471
  object.port_mirroring = Reader.read_boolean(reader)
20472
+ when 'failover'
20473
+ object.failover = VnicProfileReader.read_one(reader)
19646
20474
  when 'network'
19647
20475
  object.network = NetworkReader.read_one(reader)
19648
20476
  when 'network_filter'
@@ -20079,6 +20907,8 @@ module OvirtSDK4
20079
20907
  Reader.register('cdroms', CdromReader.method(:read_many))
20080
20908
  Reader.register('certificate', CertificateReader.method(:read_one))
20081
20909
  Reader.register('certificates', CertificateReader.method(:read_many))
20910
+ Reader.register('checkpoint', CheckpointReader.method(:read_one))
20911
+ Reader.register('checkpoints', CheckpointReader.method(:read_many))
20082
20912
  Reader.register('cloud_init', CloudInitReader.method(:read_one))
20083
20913
  Reader.register('cloud_inits', CloudInitReader.method(:read_many))
20084
20914
  Reader.register('cluster', ClusterReader.method(:read_one))
@@ -20125,6 +20955,8 @@ module OvirtSDK4
20125
20955
  Reader.register('dns_resolver_configurations', DnsResolverConfigurationReader.method(:read_many))
20126
20956
  Reader.register('domain', DomainReader.method(:read_one))
20127
20957
  Reader.register('domains', DomainReader.method(:read_many))
20958
+ Reader.register('dynamic_cpu', DynamicCpuReader.method(:read_one))
20959
+ Reader.register('dynamic_cpus', DynamicCpuReader.method(:read_many))
20128
20960
  Reader.register('entity_profile_detail', EntityProfileDetailReader.method(:read_one))
20129
20961
  Reader.register('entity_profile_details', EntityProfileDetailReader.method(:read_many))
20130
20962
  Reader.register('error_handling', ErrorHandlingReader.method(:read_one))
@@ -20147,6 +20979,8 @@ module OvirtSDK4
20147
20979
  Reader.register('external_network_provider_configurations', ExternalNetworkProviderConfigurationReader.method(:read_many))
20148
20980
  Reader.register('external_provider', ExternalProviderReader.method(:read_one))
20149
20981
  Reader.register('external_providers', ExternalProviderReader.method(:read_many))
20982
+ Reader.register('external_template_import', ExternalTemplateImportReader.method(:read_one))
20983
+ Reader.register('external_template_imports', ExternalTemplateImportReader.method(:read_many))
20150
20984
  Reader.register('external_vm_import', ExternalVmImportReader.method(:read_one))
20151
20985
  Reader.register('external_vm_imports', ExternalVmImportReader.method(:read_many))
20152
20986
  Reader.register('fault', FaultReader.method(:read_one))
@@ -20195,6 +21029,8 @@ module OvirtSDK4
20195
21029
  Reader.register('hooks', HookReader.method(:read_many))
20196
21030
  Reader.register('host', HostReader.method(:read_one))
20197
21031
  Reader.register('hosts', HostReader.method(:read_many))
21032
+ Reader.register('host_cpu_unit', HostCpuUnitReader.method(:read_one))
21033
+ Reader.register('host_cpu_units', HostCpuUnitReader.method(:read_many))
20198
21034
  Reader.register('host_device', HostDeviceReader.method(:read_one))
20199
21035
  Reader.register('host_devices', HostDeviceReader.method(:read_many))
20200
21036
  Reader.register('host_device_passthrough', HostDevicePassthroughReader.method(:read_one))
@@ -20425,6 +21261,8 @@ module OvirtSDK4
20425
21261
  Reader.register('usbs', UsbReader.method(:read_many))
20426
21262
  Reader.register('user', UserReader.method(:read_one))
20427
21263
  Reader.register('users', UserReader.method(:read_many))
21264
+ Reader.register('user_option', UserOptionReader.method(:read_one))
21265
+ Reader.register('user_options', UserOptionReader.method(:read_many))
20428
21266
  Reader.register('value', ValueReader.method(:read_one))
20429
21267
  Reader.register('values', ValueReader.method(:read_many))
20430
21268
  Reader.register('vcpu_pin', VcpuPinReader.method(:read_one))
@@ -20443,6 +21281,8 @@ module OvirtSDK4
20443
21281
  Reader.register('vms', VmReader.method(:read_many))
20444
21282
  Reader.register('vm_base', VmBaseReader.method(:read_one))
20445
21283
  Reader.register('vm_bases', VmBaseReader.method(:read_many))
21284
+ Reader.register('vm_mediated_device', VmMediatedDeviceReader.method(:read_one))
21285
+ Reader.register('vm_mediated_devices', VmMediatedDeviceReader.method(:read_many))
20446
21286
  Reader.register('vm_placement_policy', VmPlacementPolicyReader.method(:read_one))
20447
21287
  Reader.register('vm_placement_policies', VmPlacementPolicyReader.method(:read_many))
20448
21288
  Reader.register('vm_pool', VmPoolReader.method(:read_one))