ovirt-engine-sdk 4.4.1 → 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,6 +50,8 @@ module OvirtSDK4
50
50
  object.commit_on_success = value if not value.nil?
51
51
  value = reader.get_attribute('connectivity_timeout')
52
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?
53
55
  value = reader.get_attribute('deploy_hosted_engine')
54
56
  object.deploy_hosted_engine = value if not value.nil?
55
57
  value = reader.get_attribute('description')
@@ -68,6 +70,8 @@ module OvirtSDK4
68
70
  object.filter = value if not value.nil?
69
71
  value = reader.get_attribute('fix_layout')
70
72
  object.fix_layout = value if not value.nil?
73
+ value = reader.get_attribute('follow')
74
+ object.follow = value if not value.nil?
71
75
  value = reader.get_attribute('force')
72
76
  object.force = value if not value.nil?
73
77
  value = reader.get_attribute('id')
@@ -118,6 +122,8 @@ module OvirtSDK4
118
122
  object.undeploy_hosted_engine = value if not value.nil?
119
123
  value = reader.get_attribute('upgrade_action')
120
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?
121
127
  value = reader.get_attribute('use_cloud_init')
122
128
  object.use_cloud_init = value if not value.nil?
123
129
  value = reader.get_attribute('use_ignition')
@@ -171,6 +177,8 @@ module OvirtSDK4
171
177
  object.connection = StorageConnectionReader.read_one(reader)
172
178
  when 'connectivity_timeout'
173
179
  object.connectivity_timeout = Reader.read_integer(reader)
180
+ when 'correlation_id'
181
+ object.correlation_id = Reader.read_string(reader)
174
182
  when 'data_center'
175
183
  object.data_center = DataCenterReader.read_one(reader)
176
184
  when 'deploy_hosted_engine'
@@ -203,6 +211,8 @@ module OvirtSDK4
203
211
  object.filter = Reader.read_boolean(reader)
204
212
  when 'fix_layout'
205
213
  object.fix_layout = Reader.read_boolean(reader)
214
+ when 'follow'
215
+ object.follow = Reader.read_string(reader)
206
216
  when 'force'
207
217
  object.force = Reader.read_boolean(reader)
208
218
  when 'grace_period'
@@ -309,6 +319,8 @@ module OvirtSDK4
309
319
  object.undeploy_hosted_engine = Reader.read_boolean(reader)
310
320
  when 'upgrade_action'
311
321
  object.upgrade_action = Reader.read_enum(ClusterUpgradeAction, reader)
322
+ when 'upgrade_percent_complete'
323
+ object.upgrade_percent_complete = Reader.read_integer(reader)
312
324
  when 'use_cloud_init'
313
325
  object.use_cloud_init = Reader.read_boolean(reader)
314
326
  when 'use_ignition'
@@ -374,6 +386,8 @@ module OvirtSDK4
374
386
 
375
387
  # Process the attributes:
376
388
  object.href = reader.get_attribute('href')
389
+ value = reader.get_attribute('broken')
390
+ object.broken = value if not value.nil?
377
391
  value = reader.get_attribute('comment')
378
392
  object.comment = value if not value.nil?
379
393
  value = reader.get_attribute('description')
@@ -397,6 +411,8 @@ module OvirtSDK4
397
411
  # Process the inner elements:
398
412
  while reader.forward do
399
413
  case reader.node_name
414
+ when 'broken'
415
+ object.broken = Reader.read_boolean(reader)
400
416
  when 'comment'
401
417
  object.comment = Reader.read_string(reader)
402
418
  when 'description'
@@ -1238,6 +1254,8 @@ module OvirtSDK4
1238
1254
  object.from_checkpoint_id = value if not value.nil?
1239
1255
  value = reader.get_attribute('id')
1240
1256
  object.id = value if not value.nil?
1257
+ value = reader.get_attribute('modification_date')
1258
+ object.modification_date = value if not value.nil?
1241
1259
  value = reader.get_attribute('name')
1242
1260
  object.name = value if not value.nil?
1243
1261
  value = reader.get_attribute('phase')
@@ -1263,6 +1281,8 @@ module OvirtSDK4
1263
1281
  object.from_checkpoint_id = Reader.read_string(reader)
1264
1282
  when 'id'
1265
1283
  object.id = Reader.read_string(reader)
1284
+ when 'modification_date'
1285
+ object.modification_date = Reader.read_date(reader)
1266
1286
  when 'name'
1267
1287
  object.name = Reader.read_string(reader)
1268
1288
  when 'phase'
@@ -1273,6 +1293,8 @@ module OvirtSDK4
1273
1293
  object.disks = DiskReader.read_many(reader)
1274
1294
  when 'host'
1275
1295
  object.host = HostReader.read_one(reader)
1296
+ when 'snapshot'
1297
+ object.snapshot = SnapshotReader.read_one(reader)
1276
1298
  when 'vm'
1277
1299
  object.vm = VmReader.read_one(reader)
1278
1300
  when 'link'
@@ -2074,6 +2096,8 @@ module OvirtSDK4
2074
2096
  object.name = value if not value.nil?
2075
2097
  value = reader.get_attribute('parent_id')
2076
2098
  object.parent_id = value if not value.nil?
2099
+ value = reader.get_attribute('state')
2100
+ object.state = value if not value.nil?
2077
2101
 
2078
2102
  # Discard the start tag:
2079
2103
  empty = reader.empty_element?
@@ -2095,6 +2119,8 @@ module OvirtSDK4
2095
2119
  object.name = Reader.read_string(reader)
2096
2120
  when 'parent_id'
2097
2121
  object.parent_id = Reader.read_string(reader)
2122
+ when 'state'
2123
+ object.state = Reader.read_enum(CheckpointState, reader)
2098
2124
  when 'disks'
2099
2125
  object.disks = DiskReader.read_many(reader)
2100
2126
  when 'vm'
@@ -2281,6 +2307,12 @@ module OvirtSDK4
2281
2307
  object.trusted_service = value if not value.nil?
2282
2308
  value = reader.get_attribute('tunnel_migration')
2283
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?
2284
2316
  value = reader.get_attribute('virt_service')
2285
2317
  object.virt_service = value if not value.nil?
2286
2318
  value = reader.get_attribute('vnc_encryption')
@@ -2354,6 +2386,12 @@ module OvirtSDK4
2354
2386
  object.trusted_service = Reader.read_boolean(reader)
2355
2387
  when 'tunnel_migration'
2356
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)
2357
2395
  when 'version'
2358
2396
  object.version = VersionReader.read_one(reader)
2359
2397
  when 'virt_service'
@@ -4215,6 +4253,8 @@ module OvirtSDK4
4215
4253
  object.copy_paste_enabled = value if not value.nil?
4216
4254
  value = reader.get_attribute('disconnect_action')
4217
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?
4218
4258
  value = reader.get_attribute('file_transfer_enabled')
4219
4259
  object.file_transfer_enabled = value if not value.nil?
4220
4260
  value = reader.get_attribute('keyboard_layout')
@@ -4252,6 +4292,8 @@ module OvirtSDK4
4252
4292
  object.copy_paste_enabled = Reader.read_boolean(reader)
4253
4293
  when 'disconnect_action'
4254
4294
  object.disconnect_action = Reader.read_string(reader)
4295
+ when 'disconnect_action_delay'
4296
+ object.disconnect_action_delay = Reader.read_integer(reader)
4255
4297
  when 'file_transfer_enabled'
4256
4298
  object.file_transfer_enabled = Reader.read_boolean(reader)
4257
4299
  when 'keyboard_layout'
@@ -4531,6 +4573,68 @@ module OvirtSDK4
4531
4573
 
4532
4574
  end
4533
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
+
4534
4638
  class EntityProfileDetailReader < Reader
4535
4639
 
4536
4640
  def self.read_one(reader)
@@ -5528,6 +5632,84 @@ module OvirtSDK4
5528
5632
 
5529
5633
  end
5530
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
+
5531
5713
  class ExternalVmImportReader < Reader
5532
5714
 
5533
5715
  def self.read_one(reader)
@@ -7647,6 +7829,8 @@ module OvirtSDK4
7647
7829
  object.numa_supported = value if not value.nil?
7648
7830
  value = reader.get_attribute('override_iptables')
7649
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?
7650
7834
  value = reader.get_attribute('port')
7651
7835
  object.port = value if not value.nil?
7652
7836
  value = reader.get_attribute('protocol')
@@ -7720,6 +7904,8 @@ module OvirtSDK4
7720
7904
  object.os = OperatingSystemReader.read_one(reader)
7721
7905
  when 'override_iptables'
7722
7906
  object.override_iptables = Reader.read_boolean(reader)
7907
+ when 'ovn_configured'
7908
+ object.ovn_configured = Reader.read_boolean(reader)
7723
7909
  when 'port'
7724
7910
  object.port = Reader.read_integer(reader)
7725
7911
  when 'power_management'
@@ -7758,6 +7944,8 @@ module OvirtSDK4
7758
7944
  object.agents = AgentReader.read_many(reader)
7759
7945
  when 'cluster'
7760
7946
  object.cluster = ClusterReader.read_one(reader)
7947
+ when 'cpu_units'
7948
+ object.cpu_units = HostCpuUnitReader.read_many(reader)
7761
7949
  when 'devices'
7762
7950
  object.devices = HostDeviceReader.read_many(reader)
7763
7951
  when 'external_host_provider'
@@ -7836,6 +8024,8 @@ module OvirtSDK4
7836
8024
  object.affinity_labels = list
7837
8025
  when 'agents'
7838
8026
  object.agents = list
8027
+ when 'cpuunits'
8028
+ object.cpu_units = list
7839
8029
  when 'devices'
7840
8030
  object.devices = list
7841
8031
  when 'externalnetworkproviderconfigurations'
@@ -7871,6 +8061,117 @@ module OvirtSDK4
7871
8061
 
7872
8062
  end
7873
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
8166
+ end
8167
+ end
8168
+
8169
+ # Discard the rest of the element:
8170
+ reader.next_element
8171
+ end
8172
+
8173
+ end
8174
+
7874
8175
  class HostDeviceReader < Reader
7875
8176
 
7876
8177
  def self.read_one(reader)
@@ -9009,8 +9310,12 @@ module OvirtSDK4
9009
9310
 
9010
9311
  # Process the attributes:
9011
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?
9012
9315
  value = reader.get_attribute('comment')
9013
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?
9014
9319
  value = reader.get_attribute('cpu_shares')
9015
9320
  object.cpu_shares = value if not value.nil?
9016
9321
  value = reader.get_attribute('creation_time')
@@ -9045,10 +9350,14 @@ module OvirtSDK4
9045
9350
  object.status = value if not value.nil?
9046
9351
  value = reader.get_attribute('storage_error_resume_behaviour')
9047
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?
9048
9355
  value = reader.get_attribute('tunnel_migration')
9049
9356
  object.tunnel_migration = value if not value.nil?
9050
9357
  value = reader.get_attribute('type')
9051
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?
9052
9361
  value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
9053
9362
  object.virtio_scsi_multi_queues_enabled = value if not value.nil?
9054
9363
 
@@ -9060,6 +9369,8 @@ module OvirtSDK4
9060
9369
  # Process the inner elements:
9061
9370
  while reader.forward do
9062
9371
  case reader.node_name
9372
+ when 'auto_pinning_policy'
9373
+ object.auto_pinning_policy = Reader.read_enum(AutoPinningPolicy, reader)
9063
9374
  when 'bios'
9064
9375
  object.bios = BiosReader.read_one(reader)
9065
9376
  when 'comment'
@@ -9068,6 +9379,8 @@ module OvirtSDK4
9068
9379
  object.console = ConsoleReader.read_one(reader)
9069
9380
  when 'cpu'
9070
9381
  object.cpu = CpuReader.read_one(reader)
9382
+ when 'cpu_pinning_policy'
9383
+ object.cpu_pinning_policy = Reader.read_enum(CpuPinningPolicy, reader)
9071
9384
  when 'cpu_shares'
9072
9385
  object.cpu_shares = Reader.read_integer(reader)
9073
9386
  when 'creation_time'
@@ -9138,6 +9451,8 @@ module OvirtSDK4
9138
9451
  object.storage_error_resume_behaviour = Reader.read_enum(VmStorageErrorResumeBehaviour, reader)
9139
9452
  when 'time_zone'
9140
9453
  object.time_zone = TimeZoneReader.read_one(reader)
9454
+ when 'tpm_enabled'
9455
+ object.tpm_enabled = Reader.read_boolean(reader)
9141
9456
  when 'tunnel_migration'
9142
9457
  object.tunnel_migration = Reader.read_boolean(reader)
9143
9458
  when 'type'
@@ -9148,6 +9463,8 @@ module OvirtSDK4
9148
9463
  object.version = TemplateVersionReader.read_one(reader)
9149
9464
  when 'virtio_scsi'
9150
9465
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
9466
+ when 'virtio_scsi_multi_queues'
9467
+ object.virtio_scsi_multi_queues = Reader.read_integer(reader)
9151
9468
  when 'virtio_scsi_multi_queues_enabled'
9152
9469
  object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
9153
9470
  when 'vm'
@@ -9162,6 +9479,8 @@ module OvirtSDK4
9162
9479
  object.disk_attachments = DiskAttachmentReader.read_many(reader)
9163
9480
  when 'graphics_consoles'
9164
9481
  object.graphics_consoles = GraphicsConsoleReader.read_many(reader)
9482
+ when 'mediated_devices'
9483
+ object.mediated_devices = VmMediatedDeviceReader.read_many(reader)
9165
9484
  when 'nics'
9166
9485
  object.nics = NicReader.read_many(reader)
9167
9486
  when 'permissions'
@@ -9226,6 +9545,8 @@ module OvirtSDK4
9226
9545
  object.disk_attachments = list
9227
9546
  when 'graphicsconsoles'
9228
9547
  object.graphics_consoles = list
9548
+ when 'mediateddevices'
9549
+ object.mediated_devices = list
9229
9550
  when 'nics'
9230
9551
  object.nics = list
9231
9552
  when 'permissions'
@@ -10258,6 +10579,8 @@ module OvirtSDK4
10258
10579
  object.available_instances = value if not value.nil?
10259
10580
  value = reader.get_attribute('description')
10260
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?
10261
10584
  value = reader.get_attribute('name')
10262
10585
  object.name = value if not value.nil?
10263
10586
 
@@ -10273,6 +10596,8 @@ module OvirtSDK4
10273
10596
  object.available_instances = Reader.read_integer(reader)
10274
10597
  when 'description'
10275
10598
  object.description = Reader.read_string(reader)
10599
+ when 'human_readable_name'
10600
+ object.human_readable_name = Reader.read_string(reader)
10276
10601
  when 'name'
10277
10602
  object.name = Reader.read_string(reader)
10278
10603
  else
@@ -10759,8 +11084,12 @@ module OvirtSDK4
10759
11084
  object.auto_converge = value if not value.nil?
10760
11085
  value = reader.get_attribute('compressed')
10761
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?
10762
11089
  value = reader.get_attribute('encrypted')
10763
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?
10764
11093
 
10765
11094
  # Discard the start tag:
10766
11095
  empty = reader.empty_element?
@@ -10776,8 +11105,12 @@ module OvirtSDK4
10776
11105
  object.bandwidth = MigrationBandwidthReader.read_one(reader)
10777
11106
  when 'compressed'
10778
11107
  object.compressed = Reader.read_enum(InheritableBoolean, reader)
11108
+ when 'custom_parallel_migrations'
11109
+ object.custom_parallel_migrations = Reader.read_integer(reader)
10779
11110
  when 'encrypted'
10780
11111
  object.encrypted = Reader.read_enum(InheritableBoolean, reader)
11112
+ when 'parallel_migrations_policy'
11113
+ object.parallel_migrations_policy = Reader.read_enum(ParallelMigrationsPolicy, reader)
10781
11114
  when 'policy'
10782
11115
  object.policy = MigrationPolicyReader.read_one(reader)
10783
11116
  else
@@ -11528,6 +11861,8 @@ module OvirtSDK4
11528
11861
  object.on_boot = value if not value.nil?
11529
11862
  value = reader.get_attribute('plugged')
11530
11863
  object.plugged = value if not value.nil?
11864
+ value = reader.get_attribute('synced')
11865
+ object.synced = value if not value.nil?
11531
11866
 
11532
11867
  # Discard the start tag:
11533
11868
  empty = reader.empty_element?
@@ -11557,6 +11892,8 @@ module OvirtSDK4
11557
11892
  object.on_boot = Reader.read_boolean(reader)
11558
11893
  when 'plugged'
11559
11894
  object.plugged = Reader.read_boolean(reader)
11895
+ when 'synced'
11896
+ object.synced = Reader.read_boolean(reader)
11560
11897
  when 'instance_type'
11561
11898
  object.instance_type = InstanceTypeReader.read_one(reader)
11562
11899
  when 'network'
@@ -12953,6 +13290,8 @@ module OvirtSDK4
12953
13290
  object.id = value if not value.nil?
12954
13291
  value = reader.get_attribute('name')
12955
13292
  object.name = value if not value.nil?
13293
+ value = reader.get_attribute('tpm_support')
13294
+ object.tpm_support = value if not value.nil?
12956
13295
 
12957
13296
  # Discard the start tag:
12958
13297
  empty = reader.empty_element?
@@ -12976,6 +13315,8 @@ module OvirtSDK4
12976
13315
  object.name = Reader.read_string(reader)
12977
13316
  when 'small_icon'
12978
13317
  object.small_icon = IconReader.read_one(reader)
13318
+ when 'tpm_support'
13319
+ object.tpm_support = Reader.read_enum(TpmSupport, reader)
12979
13320
  else
12980
13321
  reader.next_element
12981
13322
  end
@@ -15919,8 +16260,12 @@ module OvirtSDK4
15919
16260
 
15920
16261
  # Process the attributes:
15921
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?
15922
16265
  value = reader.get_attribute('comment')
15923
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?
15924
16269
  value = reader.get_attribute('cpu_shares')
15925
16270
  object.cpu_shares = value if not value.nil?
15926
16271
  value = reader.get_attribute('creation_time')
@@ -15981,12 +16326,16 @@ module OvirtSDK4
15981
16326
  object.stop_time = value if not value.nil?
15982
16327
  value = reader.get_attribute('storage_error_resume_behaviour')
15983
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?
15984
16331
  value = reader.get_attribute('tunnel_migration')
15985
16332
  object.tunnel_migration = value if not value.nil?
15986
16333
  value = reader.get_attribute('type')
15987
16334
  object.type = value if not value.nil?
15988
16335
  value = reader.get_attribute('use_latest_template_version')
15989
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?
15990
16339
  value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
15991
16340
  object.virtio_scsi_multi_queues_enabled = value if not value.nil?
15992
16341
 
@@ -15998,6 +16347,8 @@ module OvirtSDK4
15998
16347
  # Process the inner elements:
15999
16348
  while reader.forward do
16000
16349
  case reader.node_name
16350
+ when 'auto_pinning_policy'
16351
+ object.auto_pinning_policy = Reader.read_enum(AutoPinningPolicy, reader)
16001
16352
  when 'bios'
16002
16353
  object.bios = BiosReader.read_one(reader)
16003
16354
  when 'comment'
@@ -16006,6 +16357,8 @@ module OvirtSDK4
16006
16357
  object.console = ConsoleReader.read_one(reader)
16007
16358
  when 'cpu'
16008
16359
  object.cpu = CpuReader.read_one(reader)
16360
+ when 'cpu_pinning_policy'
16361
+ object.cpu_pinning_policy = Reader.read_enum(CpuPinningPolicy, reader)
16009
16362
  when 'cpu_shares'
16010
16363
  object.cpu_shares = Reader.read_integer(reader)
16011
16364
  when 'creation_time'
@@ -16108,6 +16461,8 @@ module OvirtSDK4
16108
16461
  object.storage_error_resume_behaviour = Reader.read_enum(VmStorageErrorResumeBehaviour, reader)
16109
16462
  when 'time_zone'
16110
16463
  object.time_zone = TimeZoneReader.read_one(reader)
16464
+ when 'tpm_enabled'
16465
+ object.tpm_enabled = Reader.read_boolean(reader)
16111
16466
  when 'tunnel_migration'
16112
16467
  object.tunnel_migration = Reader.read_boolean(reader)
16113
16468
  when 'type'
@@ -16118,6 +16473,8 @@ module OvirtSDK4
16118
16473
  object.use_latest_template_version = Reader.read_boolean(reader)
16119
16474
  when 'virtio_scsi'
16120
16475
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
16476
+ when 'virtio_scsi_multi_queues'
16477
+ object.virtio_scsi_multi_queues = Reader.read_integer(reader)
16121
16478
  when 'virtio_scsi_multi_queues_enabled'
16122
16479
  object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
16123
16480
  when 'affinity_labels'
@@ -16134,6 +16491,8 @@ module OvirtSDK4
16134
16491
  object.disk_attachments = DiskAttachmentReader.read_many(reader)
16135
16492
  when 'disks'
16136
16493
  object.disks = DiskReader.read_many(reader)
16494
+ when 'dynamic_cpu'
16495
+ object.dynamic_cpu = DynamicCpuReader.read_one(reader)
16137
16496
  when 'external_host_provider'
16138
16497
  object.external_host_provider = ExternalHostProviderReader.read_one(reader)
16139
16498
  when 'floppies'
@@ -16148,6 +16507,8 @@ module OvirtSDK4
16148
16507
  object.instance_type = InstanceTypeReader.read_one(reader)
16149
16508
  when 'katello_errata'
16150
16509
  object.katello_errata = KatelloErratumReader.read_many(reader)
16510
+ when 'mediated_devices'
16511
+ object.mediated_devices = VmMediatedDeviceReader.read_many(reader)
16151
16512
  when 'nics'
16152
16513
  object.nics = NicReader.read_many(reader)
16153
16514
  when 'host_numa_nodes'
@@ -16242,6 +16603,8 @@ module OvirtSDK4
16242
16603
  object.host_devices = list
16243
16604
  when 'katelloerrata'
16244
16605
  object.katello_errata = list
16606
+ when 'mediateddevices'
16607
+ object.mediated_devices = list
16245
16608
  when 'nics'
16246
16609
  object.nics = list
16247
16610
  when 'numanodes'
@@ -17590,8 +17953,12 @@ module OvirtSDK4
17590
17953
 
17591
17954
  # Process the attributes:
17592
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?
17593
17958
  value = reader.get_attribute('comment')
17594
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?
17595
17962
  value = reader.get_attribute('cpu_shares')
17596
17963
  object.cpu_shares = value if not value.nil?
17597
17964
  value = reader.get_attribute('creation_time')
@@ -17626,10 +17993,14 @@ module OvirtSDK4
17626
17993
  object.status = value if not value.nil?
17627
17994
  value = reader.get_attribute('storage_error_resume_behaviour')
17628
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?
17629
17998
  value = reader.get_attribute('tunnel_migration')
17630
17999
  object.tunnel_migration = value if not value.nil?
17631
18000
  value = reader.get_attribute('type')
17632
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?
17633
18004
  value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
17634
18005
  object.virtio_scsi_multi_queues_enabled = value if not value.nil?
17635
18006
 
@@ -17641,6 +18012,8 @@ module OvirtSDK4
17641
18012
  # Process the inner elements:
17642
18013
  while reader.forward do
17643
18014
  case reader.node_name
18015
+ when 'auto_pinning_policy'
18016
+ object.auto_pinning_policy = Reader.read_enum(AutoPinningPolicy, reader)
17644
18017
  when 'bios'
17645
18018
  object.bios = BiosReader.read_one(reader)
17646
18019
  when 'comment'
@@ -17649,6 +18022,8 @@ module OvirtSDK4
17649
18022
  object.console = ConsoleReader.read_one(reader)
17650
18023
  when 'cpu'
17651
18024
  object.cpu = CpuReader.read_one(reader)
18025
+ when 'cpu_pinning_policy'
18026
+ object.cpu_pinning_policy = Reader.read_enum(CpuPinningPolicy, reader)
17652
18027
  when 'cpu_shares'
17653
18028
  object.cpu_shares = Reader.read_integer(reader)
17654
18029
  when 'creation_time'
@@ -17719,6 +18094,8 @@ module OvirtSDK4
17719
18094
  object.storage_error_resume_behaviour = Reader.read_enum(VmStorageErrorResumeBehaviour, reader)
17720
18095
  when 'time_zone'
17721
18096
  object.time_zone = TimeZoneReader.read_one(reader)
18097
+ when 'tpm_enabled'
18098
+ object.tpm_enabled = Reader.read_boolean(reader)
17722
18099
  when 'tunnel_migration'
17723
18100
  object.tunnel_migration = Reader.read_boolean(reader)
17724
18101
  when 'type'
@@ -17729,6 +18106,8 @@ module OvirtSDK4
17729
18106
  object.version = TemplateVersionReader.read_one(reader)
17730
18107
  when 'virtio_scsi'
17731
18108
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
18109
+ when 'virtio_scsi_multi_queues'
18110
+ object.virtio_scsi_multi_queues = Reader.read_integer(reader)
17732
18111
  when 'virtio_scsi_multi_queues_enabled'
17733
18112
  object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
17734
18113
  when 'vm'
@@ -17743,6 +18122,8 @@ module OvirtSDK4
17743
18122
  object.disk_attachments = DiskAttachmentReader.read_many(reader)
17744
18123
  when 'graphics_consoles'
17745
18124
  object.graphics_consoles = GraphicsConsoleReader.read_many(reader)
18125
+ when 'mediated_devices'
18126
+ object.mediated_devices = VmMediatedDeviceReader.read_many(reader)
17746
18127
  when 'nics'
17747
18128
  object.nics = NicReader.read_many(reader)
17748
18129
  when 'permissions'
@@ -17807,6 +18188,8 @@ module OvirtSDK4
17807
18188
  object.disk_attachments = list
17808
18189
  when 'graphicsconsoles'
17809
18190
  object.graphics_consoles = list
18191
+ when 'mediateddevices'
18192
+ object.mediated_devices = list
17810
18193
  when 'nics'
17811
18194
  object.nics = list
17812
18195
  when 'permissions'
@@ -19019,8 +19402,12 @@ module OvirtSDK4
19019
19402
 
19020
19403
  # Process the attributes:
19021
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?
19022
19407
  value = reader.get_attribute('comment')
19023
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?
19024
19411
  value = reader.get_attribute('cpu_shares')
19025
19412
  object.cpu_shares = value if not value.nil?
19026
19413
  value = reader.get_attribute('creation_time')
@@ -19073,12 +19460,16 @@ module OvirtSDK4
19073
19460
  object.stop_time = value if not value.nil?
19074
19461
  value = reader.get_attribute('storage_error_resume_behaviour')
19075
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?
19076
19465
  value = reader.get_attribute('tunnel_migration')
19077
19466
  object.tunnel_migration = value if not value.nil?
19078
19467
  value = reader.get_attribute('type')
19079
19468
  object.type = value if not value.nil?
19080
19469
  value = reader.get_attribute('use_latest_template_version')
19081
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?
19082
19473
  value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
19083
19474
  object.virtio_scsi_multi_queues_enabled = value if not value.nil?
19084
19475
 
@@ -19090,6 +19481,8 @@ module OvirtSDK4
19090
19481
  # Process the inner elements:
19091
19482
  while reader.forward do
19092
19483
  case reader.node_name
19484
+ when 'auto_pinning_policy'
19485
+ object.auto_pinning_policy = Reader.read_enum(AutoPinningPolicy, reader)
19093
19486
  when 'bios'
19094
19487
  object.bios = BiosReader.read_one(reader)
19095
19488
  when 'comment'
@@ -19098,6 +19491,8 @@ module OvirtSDK4
19098
19491
  object.console = ConsoleReader.read_one(reader)
19099
19492
  when 'cpu'
19100
19493
  object.cpu = CpuReader.read_one(reader)
19494
+ when 'cpu_pinning_policy'
19495
+ object.cpu_pinning_policy = Reader.read_enum(CpuPinningPolicy, reader)
19101
19496
  when 'cpu_shares'
19102
19497
  object.cpu_shares = Reader.read_integer(reader)
19103
19498
  when 'creation_time'
@@ -19192,6 +19587,8 @@ module OvirtSDK4
19192
19587
  object.storage_error_resume_behaviour = Reader.read_enum(VmStorageErrorResumeBehaviour, reader)
19193
19588
  when 'time_zone'
19194
19589
  object.time_zone = TimeZoneReader.read_one(reader)
19590
+ when 'tpm_enabled'
19591
+ object.tpm_enabled = Reader.read_boolean(reader)
19195
19592
  when 'tunnel_migration'
19196
19593
  object.tunnel_migration = Reader.read_boolean(reader)
19197
19594
  when 'type'
@@ -19202,6 +19599,8 @@ module OvirtSDK4
19202
19599
  object.use_latest_template_version = Reader.read_boolean(reader)
19203
19600
  when 'virtio_scsi'
19204
19601
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
19602
+ when 'virtio_scsi_multi_queues'
19603
+ object.virtio_scsi_multi_queues = Reader.read_integer(reader)
19205
19604
  when 'virtio_scsi_multi_queues_enabled'
19206
19605
  object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
19207
19606
  when 'affinity_labels'
@@ -19216,6 +19615,8 @@ module OvirtSDK4
19216
19615
  object.cpu_profile = CpuProfileReader.read_one(reader)
19217
19616
  when 'disk_attachments'
19218
19617
  object.disk_attachments = DiskAttachmentReader.read_many(reader)
19618
+ when 'dynamic_cpu'
19619
+ object.dynamic_cpu = DynamicCpuReader.read_one(reader)
19219
19620
  when 'external_host_provider'
19220
19621
  object.external_host_provider = ExternalHostProviderReader.read_one(reader)
19221
19622
  when 'floppies'
@@ -19230,6 +19631,8 @@ module OvirtSDK4
19230
19631
  object.instance_type = InstanceTypeReader.read_one(reader)
19231
19632
  when 'katello_errata'
19232
19633
  object.katello_errata = KatelloErratumReader.read_many(reader)
19634
+ when 'mediated_devices'
19635
+ object.mediated_devices = VmMediatedDeviceReader.read_many(reader)
19233
19636
  when 'nics'
19234
19637
  object.nics = NicReader.read_many(reader)
19235
19638
  when 'host_numa_nodes'
@@ -19320,6 +19723,8 @@ module OvirtSDK4
19320
19723
  object.host_devices = list
19321
19724
  when 'katelloerrata'
19322
19725
  object.katello_errata = list
19726
+ when 'mediateddevices'
19727
+ object.mediated_devices = list
19323
19728
  when 'nics'
19324
19729
  object.nics = list
19325
19730
  when 'numanodes'
@@ -19358,8 +19763,12 @@ module OvirtSDK4
19358
19763
 
19359
19764
  # Process the attributes:
19360
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?
19361
19768
  value = reader.get_attribute('comment')
19362
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?
19363
19772
  value = reader.get_attribute('cpu_shares')
19364
19773
  object.cpu_shares = value if not value.nil?
19365
19774
  value = reader.get_attribute('creation_time')
@@ -19392,10 +19801,14 @@ module OvirtSDK4
19392
19801
  object.stateless = value if not value.nil?
19393
19802
  value = reader.get_attribute('storage_error_resume_behaviour')
19394
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?
19395
19806
  value = reader.get_attribute('tunnel_migration')
19396
19807
  object.tunnel_migration = value if not value.nil?
19397
19808
  value = reader.get_attribute('type')
19398
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?
19399
19812
  value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
19400
19813
  object.virtio_scsi_multi_queues_enabled = value if not value.nil?
19401
19814
 
@@ -19407,6 +19820,8 @@ module OvirtSDK4
19407
19820
  # Process the inner elements:
19408
19821
  while reader.forward do
19409
19822
  case reader.node_name
19823
+ when 'auto_pinning_policy'
19824
+ object.auto_pinning_policy = Reader.read_enum(AutoPinningPolicy, reader)
19410
19825
  when 'bios'
19411
19826
  object.bios = BiosReader.read_one(reader)
19412
19827
  when 'comment'
@@ -19415,6 +19830,8 @@ module OvirtSDK4
19415
19830
  object.console = ConsoleReader.read_one(reader)
19416
19831
  when 'cpu'
19417
19832
  object.cpu = CpuReader.read_one(reader)
19833
+ when 'cpu_pinning_policy'
19834
+ object.cpu_pinning_policy = Reader.read_enum(CpuPinningPolicy, reader)
19418
19835
  when 'cpu_shares'
19419
19836
  object.cpu_shares = Reader.read_integer(reader)
19420
19837
  when 'creation_time'
@@ -19483,6 +19900,8 @@ module OvirtSDK4
19483
19900
  object.storage_error_resume_behaviour = Reader.read_enum(VmStorageErrorResumeBehaviour, reader)
19484
19901
  when 'time_zone'
19485
19902
  object.time_zone = TimeZoneReader.read_one(reader)
19903
+ when 'tpm_enabled'
19904
+ object.tpm_enabled = Reader.read_boolean(reader)
19486
19905
  when 'tunnel_migration'
19487
19906
  object.tunnel_migration = Reader.read_boolean(reader)
19488
19907
  when 'type'
@@ -19491,6 +19910,8 @@ module OvirtSDK4
19491
19910
  object.usb = UsbReader.read_one(reader)
19492
19911
  when 'virtio_scsi'
19493
19912
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
19913
+ when 'virtio_scsi_multi_queues'
19914
+ object.virtio_scsi_multi_queues = Reader.read_integer(reader)
19494
19915
  when 'virtio_scsi_multi_queues_enabled'
19495
19916
  object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
19496
19917
  when 'cluster'
@@ -19539,6 +19960,109 @@ module OvirtSDK4
19539
19960
 
19540
19961
  end
19541
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
+
19542
20066
  class VmPlacementPolicyReader < Reader
19543
20067
 
19544
20068
  def self.read_one(reader)
@@ -19653,6 +20177,8 @@ module OvirtSDK4
19653
20177
  object.soundcard_enabled = value if not value.nil?
19654
20178
  value = reader.get_attribute('stateful')
19655
20179
  object.stateful = value if not value.nil?
20180
+ value = reader.get_attribute('tpm_enabled')
20181
+ object.tpm_enabled = value if not value.nil?
19656
20182
  value = reader.get_attribute('type')
19657
20183
  object.type = value if not value.nil?
19658
20184
  value = reader.get_attribute('use_latest_template_version')
@@ -19690,6 +20216,8 @@ module OvirtSDK4
19690
20216
  object.soundcard_enabled = Reader.read_boolean(reader)
19691
20217
  when 'stateful'
19692
20218
  object.stateful = Reader.read_boolean(reader)
20219
+ when 'tpm_enabled'
20220
+ object.tpm_enabled = Reader.read_boolean(reader)
19693
20221
  when 'type'
19694
20222
  object.type = Reader.read_enum(VmPoolType, reader)
19695
20223
  when 'use_latest_template_version'
@@ -19941,6 +20469,8 @@ module OvirtSDK4
19941
20469
  object.pass_through = VnicPassThroughReader.read_one(reader)
19942
20470
  when 'port_mirroring'
19943
20471
  object.port_mirroring = Reader.read_boolean(reader)
20472
+ when 'failover'
20473
+ object.failover = VnicProfileReader.read_one(reader)
19944
20474
  when 'network'
19945
20475
  object.network = NetworkReader.read_one(reader)
19946
20476
  when 'network_filter'
@@ -20425,6 +20955,8 @@ module OvirtSDK4
20425
20955
  Reader.register('dns_resolver_configurations', DnsResolverConfigurationReader.method(:read_many))
20426
20956
  Reader.register('domain', DomainReader.method(:read_one))
20427
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))
20428
20960
  Reader.register('entity_profile_detail', EntityProfileDetailReader.method(:read_one))
20429
20961
  Reader.register('entity_profile_details', EntityProfileDetailReader.method(:read_many))
20430
20962
  Reader.register('error_handling', ErrorHandlingReader.method(:read_one))
@@ -20447,6 +20979,8 @@ module OvirtSDK4
20447
20979
  Reader.register('external_network_provider_configurations', ExternalNetworkProviderConfigurationReader.method(:read_many))
20448
20980
  Reader.register('external_provider', ExternalProviderReader.method(:read_one))
20449
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))
20450
20984
  Reader.register('external_vm_import', ExternalVmImportReader.method(:read_one))
20451
20985
  Reader.register('external_vm_imports', ExternalVmImportReader.method(:read_many))
20452
20986
  Reader.register('fault', FaultReader.method(:read_one))
@@ -20495,6 +21029,8 @@ module OvirtSDK4
20495
21029
  Reader.register('hooks', HookReader.method(:read_many))
20496
21030
  Reader.register('host', HostReader.method(:read_one))
20497
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))
20498
21034
  Reader.register('host_device', HostDeviceReader.method(:read_one))
20499
21035
  Reader.register('host_devices', HostDeviceReader.method(:read_many))
20500
21036
  Reader.register('host_device_passthrough', HostDevicePassthroughReader.method(:read_one))
@@ -20745,6 +21281,8 @@ module OvirtSDK4
20745
21281
  Reader.register('vms', VmReader.method(:read_many))
20746
21282
  Reader.register('vm_base', VmBaseReader.method(:read_one))
20747
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))
20748
21286
  Reader.register('vm_placement_policy', VmPlacementPolicyReader.method(:read_one))
20749
21287
  Reader.register('vm_placement_policies', VmPlacementPolicyReader.method(:read_many))
20750
21288
  Reader.register('vm_pool', VmPoolReader.method(:read_one))