ovirt-engine-sdk 4.2.4 → 4.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module OvirtSDK4
19
- VERSION = '4.2.4'.freeze
19
+ VERSION = '4.4.1'.freeze
20
20
  end
@@ -25,10 +25,12 @@ module OvirtSDK4
25
25
  href = object.href
26
26
  writer.write_attribute('href', href) unless href.nil?
27
27
  writer.write_attribute('id', object.id) unless object.id.nil?
28
+ Writer.write_boolean(writer, 'activate', object.activate) unless object.activate.nil?
28
29
  Writer.write_boolean(writer, 'allow_partial_import', object.allow_partial_import) unless object.allow_partial_import.nil?
29
30
  Writer.write_boolean(writer, 'async', object.async) unless object.async.nil?
30
31
  DiskAttachmentWriter.write_one(object.attachment, writer, 'attachment') unless object.attachment.nil?
31
32
  AuthorizedKeyWriter.write_one(object.authorized_key, writer, 'authorized_key') unless object.authorized_key.nil?
33
+ Writer.write_string(writer, 'auto_pinning_policy', object.auto_pinning_policy) unless object.auto_pinning_policy.nil?
32
34
  GlusterBrickWriter.write_many(object.bricks, writer, 'brick', 'bricks') unless object.bricks.nil?
33
35
  CertificateWriter.write_many(object.certificates, writer, 'certificate', 'certificates') unless object.certificates.nil?
34
36
  Writer.write_boolean(writer, 'check_connectivity', object.check_connectivity) unless object.check_connectivity.nil?
@@ -37,6 +39,7 @@ module OvirtSDK4
37
39
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
38
40
  Writer.write_boolean(writer, 'collapse_snapshots', object.collapse_snapshots) unless object.collapse_snapshots.nil?
39
41
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
42
+ Writer.write_boolean(writer, 'commit_on_success', object.commit_on_success) unless object.commit_on_success.nil?
40
43
  StorageConnectionWriter.write_one(object.connection, writer, 'connection') unless object.connection.nil?
41
44
  Writer.write_integer(writer, 'connectivity_timeout', object.connectivity_timeout) unless object.connectivity_timeout.nil?
42
45
  DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
@@ -73,11 +76,14 @@ module OvirtSDK4
73
76
  JobWriter.write_one(object.job, writer, 'job') unless object.job.nil?
74
77
  StorageDomainLeaseWriter.write_one(object.lease, writer, 'lease') unless object.lease.nil?
75
78
  LogicalUnitWriter.write_many(object.logical_units, writer, 'logical_unit', 'logical_units') unless object.logical_units.nil?
79
+ Writer.write_boolean(writer, 'maintenance_after_restart', object.maintenance_after_restart) unless object.maintenance_after_restart.nil?
76
80
  Writer.write_boolean(writer, 'maintenance_enabled', object.maintenance_enabled) unless object.maintenance_enabled.nil?
81
+ Writer.write_boolean(writer, 'migrate_vms_in_affinity_closure', object.migrate_vms_in_affinity_closure) unless object.migrate_vms_in_affinity_closure.nil?
77
82
  HostNicWriter.write_many(object.modified_bonds, writer, 'host_nic', 'modified_bonds') unless object.modified_bonds.nil?
78
83
  NetworkLabelWriter.write_many(object.modified_labels, writer, 'network_label', 'modified_labels') unless object.modified_labels.nil?
79
84
  NetworkAttachmentWriter.write_many(object.modified_network_attachments, writer, 'network_attachment', 'modified_network_attachments') unless object.modified_network_attachments.nil?
80
85
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
86
+ Writer.write_boolean(writer, 'optimize_cpu_settings', object.optimize_cpu_settings) unless object.optimize_cpu_settings.nil?
81
87
  OptionWriter.write_one(object.option, writer, 'option') unless object.option.nil?
82
88
  Writer.write_boolean(writer, 'pause', object.pause) unless object.pause.nil?
83
89
  PermissionWriter.write_one(object.permission, writer, 'permission') unless object.permission.nil?
@@ -97,6 +103,7 @@ module OvirtSDK4
97
103
  Writer.write_string(writer, 'root_password', object.root_password) unless object.root_password.nil?
98
104
  Writer.write_boolean(writer, 'seal', object.seal) unless object.seal.nil?
99
105
  SnapshotWriter.write_one(object.snapshot, writer, 'snapshot') unless object.snapshot.nil?
106
+ HostWriter.write_one(object.source_host, writer, 'source_host') unless object.source_host.nil?
100
107
  SshWriter.write_one(object.ssh, writer, 'ssh') unless object.ssh.nil?
101
108
  Writer.write_string(writer, 'status', object.status) unless object.status.nil?
102
109
  Writer.write_boolean(writer, 'stop_gluster_service', object.stop_gluster_service) unless object.stop_gluster_service.nil?
@@ -106,8 +113,12 @@ module OvirtSDK4
106
113
  NetworkAttachmentWriter.write_many(object.synchronized_network_attachments, writer, 'network_attachment', 'synchronized_network_attachments') unless object.synchronized_network_attachments.nil?
107
114
  TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
108
115
  TicketWriter.write_one(object.ticket, writer, 'ticket') unless object.ticket.nil?
116
+ Writer.write_integer(writer, 'timeout', object.timeout) unless object.timeout.nil?
109
117
  Writer.write_boolean(writer, 'undeploy_hosted_engine', object.undeploy_hosted_engine) unless object.undeploy_hosted_engine.nil?
118
+ Writer.write_string(writer, 'upgrade_action', object.upgrade_action) unless object.upgrade_action.nil?
110
119
  Writer.write_boolean(writer, 'use_cloud_init', object.use_cloud_init) unless object.use_cloud_init.nil?
120
+ Writer.write_boolean(writer, 'use_ignition', object.use_ignition) unless object.use_ignition.nil?
121
+ Writer.write_boolean(writer, 'use_initialization', object.use_initialization) unless object.use_initialization.nil?
111
122
  Writer.write_boolean(writer, 'use_sysprep', object.use_sysprep) unless object.use_sysprep.nil?
112
123
  HostNicVirtualFunctionsConfigurationWriter.write_one(object.virtual_functions_configuration, writer, 'virtual_functions_configuration') unless object.virtual_functions_configuration.nil?
113
124
  VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
@@ -146,9 +157,12 @@ module OvirtSDK4
146
157
  AffinityRuleWriter.write_one(object.hosts_rule, writer, 'hosts_rule') unless object.hosts_rule.nil?
147
158
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
148
159
  Writer.write_boolean(writer, 'positive', object.positive) unless object.positive.nil?
160
+ Writer.write_decimal(writer, 'priority', object.priority) unless object.priority.nil?
149
161
  AffinityRuleWriter.write_one(object.vms_rule, writer, 'vms_rule') unless object.vms_rule.nil?
150
162
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
163
+ AffinityLabelWriter.write_many(object.host_labels, writer, 'affinity_label', 'host_labels') unless object.host_labels.nil?
151
164
  HostWriter.write_many(object.hosts, writer, 'host', 'hosts') unless object.hosts.nil?
165
+ AffinityLabelWriter.write_many(object.vm_labels, writer, 'affinity_label', 'vm_labels') unless object.vm_labels.nil?
152
166
  VmWriter.write_many(object.vms, writer, 'vm', 'vms') unless object.vms.nil?
153
167
  writer.write_end
154
168
  end
@@ -179,6 +193,7 @@ module OvirtSDK4
179
193
  writer.write_attribute('id', object.id) unless object.id.nil?
180
194
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
181
195
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
196
+ Writer.write_boolean(writer, 'has_implicit_affinity_group', object.has_implicit_affinity_group) unless object.has_implicit_affinity_group.nil?
182
197
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
183
198
  Writer.write_boolean(writer, 'read_only', object.read_only) unless object.read_only.nil?
184
199
  HostWriter.write_many(object.hosts, writer, 'host', 'hosts') unless object.hosts.nil?
@@ -456,6 +471,43 @@ module OvirtSDK4
456
471
 
457
472
  end
458
473
 
474
+ class BackupWriter < Writer
475
+
476
+ def self.write_one(object, writer, singular = nil)
477
+ singular ||= 'backup'
478
+ writer.write_start(singular)
479
+ href = object.href
480
+ writer.write_attribute('href', href) unless href.nil?
481
+ writer.write_attribute('id', object.id) unless object.id.nil?
482
+ Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
483
+ Writer.write_date(writer, 'creation_date', object.creation_date) unless object.creation_date.nil?
484
+ Writer.write_string(writer, 'description', object.description) unless object.description.nil?
485
+ Writer.write_string(writer, 'from_checkpoint_id', object.from_checkpoint_id) unless object.from_checkpoint_id.nil?
486
+ Writer.write_string(writer, 'name', object.name) unless object.name.nil?
487
+ Writer.write_string(writer, 'phase', object.phase) unless object.phase.nil?
488
+ Writer.write_string(writer, 'to_checkpoint_id', object.to_checkpoint_id) unless object.to_checkpoint_id.nil?
489
+ DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
490
+ HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
491
+ VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
492
+ writer.write_end
493
+ end
494
+
495
+ def self.write_many(list, writer, singular = nil, plural = nil)
496
+ singular ||= 'backup'
497
+ plural ||= 'backups'
498
+ writer.write_start(plural)
499
+ if list.is_a?(List)
500
+ href = list.href
501
+ writer.write_attribute('href', href) unless href.nil?
502
+ end
503
+ list.each do |item|
504
+ write_one(item, writer, singular)
505
+ end
506
+ writer.write_end
507
+ end
508
+
509
+ end
510
+
459
511
  class BalanceWriter < Writer
460
512
 
461
513
  def self.write_one(object, writer, singular = nil)
@@ -496,6 +548,7 @@ module OvirtSDK4
496
548
  href = object.href
497
549
  writer.write_attribute('href', href) unless href.nil?
498
550
  BootMenuWriter.write_one(object.boot_menu, writer, 'boot_menu') unless object.boot_menu.nil?
551
+ Writer.write_string(writer, 'type', object.type) unless object.type.nil?
499
552
  writer.write_end
500
553
  end
501
554
 
@@ -759,6 +812,40 @@ module OvirtSDK4
759
812
 
760
813
  end
761
814
 
815
+ class CheckpointWriter < Writer
816
+
817
+ def self.write_one(object, writer, singular = nil)
818
+ singular ||= 'checkpoint'
819
+ writer.write_start(singular)
820
+ href = object.href
821
+ writer.write_attribute('href', href) unless href.nil?
822
+ writer.write_attribute('id', object.id) unless object.id.nil?
823
+ Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
824
+ Writer.write_date(writer, 'creation_date', object.creation_date) unless object.creation_date.nil?
825
+ Writer.write_string(writer, 'description', object.description) unless object.description.nil?
826
+ Writer.write_string(writer, 'name', object.name) unless object.name.nil?
827
+ Writer.write_string(writer, 'parent_id', object.parent_id) unless object.parent_id.nil?
828
+ DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
829
+ VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
830
+ writer.write_end
831
+ end
832
+
833
+ def self.write_many(list, writer, singular = nil, plural = nil)
834
+ singular ||= 'checkpoint'
835
+ plural ||= 'checkpoints'
836
+ writer.write_start(plural)
837
+ if list.is_a?(List)
838
+ href = list.href
839
+ writer.write_attribute('href', href) unless href.nil?
840
+ end
841
+ list.each do |item|
842
+ write_one(item, writer, singular)
843
+ end
844
+ writer.write_end
845
+ end
846
+
847
+ end
848
+
762
849
  class CloudInitWriter < Writer
763
850
 
764
851
  def self.write_one(object, writer, singular = nil)
@@ -801,6 +888,7 @@ module OvirtSDK4
801
888
  writer.write_attribute('href', href) unless href.nil?
802
889
  writer.write_attribute('id', object.id) unless object.id.nil?
803
890
  Writer.write_boolean(writer, 'ballooning_enabled', object.ballooning_enabled) unless object.ballooning_enabled.nil?
891
+ Writer.write_string(writer, 'bios_type', object.bios_type) unless object.bios_type.nil?
804
892
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
805
893
  CpuWriter.write_one(object.cpu, writer, 'cpu') unless object.cpu.nil?
806
894
  PropertyWriter.write_many(object.custom_scheduling_policy_properties, writer, 'property', 'custom_scheduling_policy_properties') unless object.custom_scheduling_policy_properties.nil?
@@ -808,11 +896,14 @@ module OvirtSDK4
808
896
  DisplayWriter.write_one(object.display, writer, 'display') unless object.display.nil?
809
897
  ErrorHandlingWriter.write_one(object.error_handling, writer, 'error_handling') unless object.error_handling.nil?
810
898
  FencingPolicyWriter.write_one(object.fencing_policy, writer, 'fencing_policy') unless object.fencing_policy.nil?
899
+ Writer.write_string(writer, 'fips_mode', object.fips_mode) unless object.fips_mode.nil?
811
900
  Writer.write_string(writer, 'firewall_type', object.firewall_type) unless object.firewall_type.nil?
812
901
  Writer.write_boolean(writer, 'gluster_service', object.gluster_service) unless object.gluster_service.nil?
813
902
  Writer.write_string(writer, 'gluster_tuned_profile', object.gluster_tuned_profile) unless object.gluster_tuned_profile.nil?
814
903
  Writer.write_boolean(writer, 'ha_reservation', object.ha_reservation) unless object.ha_reservation.nil?
815
904
  KsmWriter.write_one(object.ksm, writer, 'ksm') unless object.ksm.nil?
905
+ Writer.write_integer(writer, 'log_max_memory_used_threshold', object.log_max_memory_used_threshold) unless object.log_max_memory_used_threshold.nil?
906
+ Writer.write_string(writer, 'log_max_memory_used_threshold_type', object.log_max_memory_used_threshold_type) unless object.log_max_memory_used_threshold_type.nil?
816
907
  Writer.write_boolean(writer, 'maintenance_reason_required', object.maintenance_reason_required) unless object.maintenance_reason_required.nil?
817
908
  MemoryPolicyWriter.write_one(object.memory_policy, writer, 'memory_policy') unless object.memory_policy.nil?
818
909
  MigrationOptionsWriter.write_one(object.migration, writer, 'migration') unless object.migration.nil?
@@ -833,6 +924,7 @@ module OvirtSDK4
833
924
  Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
834
925
  VersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
835
926
  Writer.write_boolean(writer, 'virt_service', object.virt_service) unless object.virt_service.nil?
927
+ Writer.write_boolean(writer, 'vnc_encryption', object.vnc_encryption) unless object.vnc_encryption.nil?
836
928
  AffinityGroupWriter.write_many(object.affinity_groups, writer, 'affinity_group', 'affinity_groups') unless object.affinity_groups.nil?
837
929
  CpuProfileWriter.write_many(object.cpu_profiles, writer, 'cpu_profile', 'cpu_profiles') unless object.cpu_profiles.nil?
838
930
  DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
@@ -1283,10 +1375,13 @@ module OvirtSDK4
1283
1375
  Writer.write_boolean(writer, 'active', object.active) unless object.active.nil?
1284
1376
  Writer.write_integer(writer, 'actual_size', object.actual_size) unless object.actual_size.nil?
1285
1377
  Writer.write_string(writer, 'alias', object.alias_) unless object.alias_.nil?
1378
+ Writer.write_string(writer, 'backup', object.backup) unless object.backup.nil?
1379
+ Writer.write_string(writer, 'backup_mode', object.backup_mode) unless object.backup_mode.nil?
1286
1380
  Writer.write_boolean(writer, 'bootable', object.bootable) unless object.bootable.nil?
1287
1381
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
1288
1382
  Writer.write_string(writer, 'content_type', object.content_type) unless object.content_type.nil?
1289
1383
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
1384
+ Writer.write_string(writer, 'external_disk', object.external_disk) unless object.external_disk.nil?
1290
1385
  Writer.write_string(writer, 'format', object.format) unless object.format.nil?
1291
1386
  Writer.write_string(writer, 'image_id', object.image_id) unless object.image_id.nil?
1292
1387
  Writer.write_integer(writer, 'initial_size', object.initial_size) unless object.initial_size.nil?
@@ -1307,6 +1402,7 @@ module OvirtSDK4
1307
1402
  Writer.write_boolean(writer, 'uses_scsi_reservation', object.uses_scsi_reservation) unless object.uses_scsi_reservation.nil?
1308
1403
  Writer.write_boolean(writer, 'wipe_after_delete', object.wipe_after_delete) unless object.wipe_after_delete.nil?
1309
1404
  DiskProfileWriter.write_one(object.disk_profile, writer, 'disk_profile') unless object.disk_profile.nil?
1405
+ DiskSnapshotWriter.write_many(object.disk_snapshots, writer, 'disk_snapshot', 'disk_snapshots') unless object.disk_snapshots.nil?
1310
1406
  InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
1311
1407
  OpenStackVolumeTypeWriter.write_one(object.openstack_volume_type, writer, 'openstack_volume_type') unless object.openstack_volume_type.nil?
1312
1408
  PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
@@ -1421,10 +1517,13 @@ module OvirtSDK4
1421
1517
  Writer.write_boolean(writer, 'active', object.active) unless object.active.nil?
1422
1518
  Writer.write_integer(writer, 'actual_size', object.actual_size) unless object.actual_size.nil?
1423
1519
  Writer.write_string(writer, 'alias', object.alias_) unless object.alias_.nil?
1520
+ Writer.write_string(writer, 'backup', object.backup) unless object.backup.nil?
1521
+ Writer.write_string(writer, 'backup_mode', object.backup_mode) unless object.backup_mode.nil?
1424
1522
  Writer.write_boolean(writer, 'bootable', object.bootable) unless object.bootable.nil?
1425
1523
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
1426
1524
  Writer.write_string(writer, 'content_type', object.content_type) unless object.content_type.nil?
1427
1525
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
1526
+ Writer.write_string(writer, 'external_disk', object.external_disk) unless object.external_disk.nil?
1428
1527
  Writer.write_string(writer, 'format', object.format) unless object.format.nil?
1429
1528
  Writer.write_string(writer, 'image_id', object.image_id) unless object.image_id.nil?
1430
1529
  Writer.write_integer(writer, 'initial_size', object.initial_size) unless object.initial_size.nil?
@@ -1446,8 +1545,10 @@ module OvirtSDK4
1446
1545
  Writer.write_boolean(writer, 'wipe_after_delete', object.wipe_after_delete) unless object.wipe_after_delete.nil?
1447
1546
  DiskWriter.write_one(object.disk, writer, 'disk') unless object.disk.nil?
1448
1547
  DiskProfileWriter.write_one(object.disk_profile, writer, 'disk_profile') unless object.disk_profile.nil?
1548
+ DiskSnapshotWriter.write_many(object.disk_snapshots, writer, 'disk_snapshot', 'disk_snapshots') unless object.disk_snapshots.nil?
1449
1549
  InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
1450
1550
  OpenStackVolumeTypeWriter.write_one(object.openstack_volume_type, writer, 'openstack_volume_type') unless object.openstack_volume_type.nil?
1551
+ DiskSnapshotWriter.write_one(object.parent, writer, 'parent') unless object.parent.nil?
1451
1552
  PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
1452
1553
  QuotaWriter.write_one(object.quota, writer, 'quota') unless object.quota.nil?
1453
1554
  SnapshotWriter.write_one(object.snapshot, writer, 'snapshot') unless object.snapshot.nil?
@@ -1680,6 +1781,7 @@ module OvirtSDK4
1680
1781
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
1681
1782
  Writer.write_integer(writer, 'flood_rate', object.flood_rate) unless object.flood_rate.nil?
1682
1783
  Writer.write_integer(writer, 'index', object.index) unless object.index.nil?
1784
+ Writer.write_boolean(writer, 'log_on_host', object.log_on_host) unless object.log_on_host.nil?
1683
1785
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
1684
1786
  Writer.write_string(writer, 'origin', object.origin) unless object.origin.nil?
1685
1787
  Writer.write_string(writer, 'severity', object.severity) unless object.severity.nil?
@@ -1710,6 +1812,40 @@ module OvirtSDK4
1710
1812
 
1711
1813
  end
1712
1814
 
1815
+ class EventSubscriptionWriter < Writer
1816
+
1817
+ def self.write_one(object, writer, singular = nil)
1818
+ singular ||= 'event_subscription'
1819
+ writer.write_start(singular)
1820
+ href = object.href
1821
+ writer.write_attribute('href', href) unless href.nil?
1822
+ writer.write_attribute('id', object.id) unless object.id.nil?
1823
+ Writer.write_string(writer, 'address', object.address) unless object.address.nil?
1824
+ Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
1825
+ Writer.write_string(writer, 'description', object.description) unless object.description.nil?
1826
+ Writer.write_string(writer, 'event', object.event) unless object.event.nil?
1827
+ Writer.write_string(writer, 'name', object.name) unless object.name.nil?
1828
+ Writer.write_string(writer, 'notification_method', object.notification_method) unless object.notification_method.nil?
1829
+ UserWriter.write_one(object.user, writer, 'user') unless object.user.nil?
1830
+ writer.write_end
1831
+ end
1832
+
1833
+ def self.write_many(list, writer, singular = nil, plural = nil)
1834
+ singular ||= 'event_subscription'
1835
+ plural ||= 'event_subscriptions'
1836
+ writer.write_start(plural)
1837
+ if list.is_a?(List)
1838
+ href = list.href
1839
+ writer.write_attribute('href', href) unless href.nil?
1840
+ end
1841
+ list.each do |item|
1842
+ write_one(item, writer, singular)
1843
+ end
1844
+ writer.write_end
1845
+ end
1846
+
1847
+ end
1848
+
1713
1849
  class ExternalComputeResourceWriter < Writer
1714
1850
 
1715
1851
  def self.write_one(object, writer, singular = nil)
@@ -2774,12 +2910,14 @@ module OvirtSDK4
2774
2910
  Writer.write_integer(writer, 'max_scheduling_memory', object.max_scheduling_memory) unless object.max_scheduling_memory.nil?
2775
2911
  Writer.write_integer(writer, 'memory', object.memory) unless object.memory.nil?
2776
2912
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
2913
+ Writer.write_boolean(writer, 'network_operation_in_progress', object.network_operation_in_progress) unless object.network_operation_in_progress.nil?
2777
2914
  Writer.write_boolean(writer, 'numa_supported', object.numa_supported) unless object.numa_supported.nil?
2778
2915
  OperatingSystemWriter.write_one(object.os, writer, 'os') unless object.os.nil?
2779
2916
  Writer.write_boolean(writer, 'override_iptables', object.override_iptables) unless object.override_iptables.nil?
2780
2917
  Writer.write_integer(writer, 'port', object.port) unless object.port.nil?
2781
2918
  PowerManagementWriter.write_one(object.power_management, writer, 'power_management') unless object.power_management.nil?
2782
2919
  Writer.write_string(writer, 'protocol', object.protocol) unless object.protocol.nil?
2920
+ Writer.write_boolean(writer, 'reinstallation_required', object.reinstallation_required) unless object.reinstallation_required.nil?
2783
2921
  Writer.write_string(writer, 'root_password', object.root_password) unless object.root_password.nil?
2784
2922
  SeLinuxWriter.write_one(object.se_linux, writer, 'se_linux') unless object.se_linux.nil?
2785
2923
  SpmWriter.write_one(object.spm, writer, 'spm') unless object.spm.nil?
@@ -2791,10 +2929,11 @@ module OvirtSDK4
2791
2929
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
2792
2930
  Writer.write_boolean(writer, 'update_available', object.update_available) unless object.update_available.nil?
2793
2931
  VersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
2932
+ Writer.write_string(writer, 'vgpu_placement', object.vgpu_placement) unless object.vgpu_placement.nil?
2794
2933
  AffinityLabelWriter.write_many(object.affinity_labels, writer, 'affinity_label', 'affinity_labels') unless object.affinity_labels.nil?
2795
2934
  AgentWriter.write_many(object.agents, writer, 'agent', 'agents') unless object.agents.nil?
2796
2935
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
2797
- DeviceWriter.write_many(object.devices, writer, 'device', 'devices') unless object.devices.nil?
2936
+ HostDeviceWriter.write_many(object.devices, writer, 'host_device', 'devices') unless object.devices.nil?
2798
2937
  ExternalHostProviderWriter.write_one(object.external_host_provider, writer, 'external_host_provider') unless object.external_host_provider.nil?
2799
2938
  ExternalNetworkProviderConfigurationWriter.write_many(object.external_network_provider_configurations, writer, 'external_network_provider_configuration', 'external_network_provider_configurations') unless object.external_network_provider_configurations.nil?
2800
2939
  HookWriter.write_many(object.hooks, writer, 'hook', 'hooks') unless object.hooks.nil?
@@ -2840,6 +2979,7 @@ module OvirtSDK4
2840
2979
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
2841
2980
  Writer.write_string(writer, 'driver', object.driver) unless object.driver.nil?
2842
2981
  Writer.write_integer(writer, 'iommu_group', object.iommu_group) unless object.iommu_group.nil?
2982
+ MDevTypeWriter.write_many(object.m_dev_types, writer, 'm_dev_type', 'm_dev_types') unless object.m_dev_types.nil?
2843
2983
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
2844
2984
  HostDeviceWriter.write_one(object.physical_function, writer, 'physical_function') unless object.physical_function.nil?
2845
2985
  Writer.write_boolean(writer, 'placeholder', object.placeholder) unless object.placeholder.nil?
@@ -2918,18 +3058,18 @@ module OvirtSDK4
2918
3058
  MacWriter.write_one(object.mac, writer, 'mac') unless object.mac.nil?
2919
3059
  Writer.write_integer(writer, 'mtu', object.mtu) unless object.mtu.nil?
2920
3060
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
2921
- NetworkLabelWriter.write_many(object.network_labels, writer, 'network_label', 'network_labels') unless object.network_labels.nil?
2922
3061
  Writer.write_boolean(writer, 'override_configuration', object.override_configuration) unless object.override_configuration.nil?
2923
3062
  PropertyWriter.write_many(object.properties, writer, 'property', 'properties') unless object.properties.nil?
2924
3063
  Writer.write_integer(writer, 'speed', object.speed) unless object.speed.nil?
2925
- StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
2926
3064
  Writer.write_string(writer, 'status', object.status) unless object.status.nil?
2927
3065
  HostNicVirtualFunctionsConfigurationWriter.write_one(object.virtual_functions_configuration, writer, 'virtual_functions_configuration') unless object.virtual_functions_configuration.nil?
2928
3066
  VlanWriter.write_one(object.vlan, writer, 'vlan') unless object.vlan.nil?
2929
3067
  HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
2930
3068
  NetworkWriter.write_one(object.network, writer, 'network') unless object.network.nil?
3069
+ NetworkLabelWriter.write_many(object.network_labels, writer, 'network_label', 'network_labels') unless object.network_labels.nil?
2931
3070
  HostNicWriter.write_one(object.physical_function, writer, 'physical_function') unless object.physical_function.nil?
2932
3071
  QosWriter.write_one(object.qos, writer, 'qos') unless object.qos.nil?
3072
+ StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
2933
3073
  writer.write_end
2934
3074
  end
2935
3075
 
@@ -2989,6 +3129,8 @@ module OvirtSDK4
2989
3129
  Writer.write_string(writer, 'address', object.address) unless object.address.nil?
2990
3130
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
2991
3131
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
3132
+ PropertyWriter.write_many(object.driver_options, writer, 'property', 'driver_options') unless object.driver_options.nil?
3133
+ PropertyWriter.write_many(object.driver_sensitive_options, writer, 'property', 'driver_sensitive_options') unless object.driver_sensitive_options.nil?
2992
3134
  LogicalUnitWriter.write_many(object.logical_units, writer, 'logical_unit', 'logical_units') unless object.logical_units.nil?
2993
3135
  Writer.write_string(writer, 'mount_options', object.mount_options) unless object.mount_options.nil?
2994
3136
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
@@ -3163,13 +3305,16 @@ module OvirtSDK4
3163
3305
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
3164
3306
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
3165
3307
  Writer.write_string(writer, 'direction', object.direction) unless object.direction.nil?
3308
+ Writer.write_string(writer, 'format', object.format) unless object.format.nil?
3166
3309
  Writer.write_integer(writer, 'inactivity_timeout', object.inactivity_timeout) unless object.inactivity_timeout.nil?
3167
3310
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
3168
3311
  Writer.write_string(writer, 'phase', object.phase) unless object.phase.nil?
3169
3312
  Writer.write_string(writer, 'proxy_url', object.proxy_url) unless object.proxy_url.nil?
3170
- Writer.write_string(writer, 'signed_ticket', object.signed_ticket) unless object.signed_ticket.nil?
3313
+ Writer.write_boolean(writer, 'shallow', object.shallow) unless object.shallow.nil?
3314
+ Writer.write_string(writer, 'timeout_policy', object.timeout_policy) unless object.timeout_policy.nil?
3171
3315
  Writer.write_string(writer, 'transfer_url', object.transfer_url) unless object.transfer_url.nil?
3172
3316
  Writer.write_integer(writer, 'transferred', object.transferred) unless object.transferred.nil?
3317
+ BackupWriter.write_one(object.backup, writer, 'backup') unless object.backup.nil?
3173
3318
  DiskWriter.write_one(object.disk, writer, 'disk') unless object.disk.nil?
3174
3319
  HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
3175
3320
  ImageWriter.write_one(object.image, writer, 'image') unless object.image.nil?
@@ -3203,6 +3348,7 @@ module OvirtSDK4
3203
3348
  Writer.write_string(writer, 'active_directory_ou', object.active_directory_ou) unless object.active_directory_ou.nil?
3204
3349
  Writer.write_string(writer, 'authorized_ssh_keys', object.authorized_ssh_keys) unless object.authorized_ssh_keys.nil?
3205
3350
  CloudInitWriter.write_one(object.cloud_init, writer, 'cloud_init') unless object.cloud_init.nil?
3351
+ Writer.write_string(writer, 'cloud_init_network_protocol', object.cloud_init_network_protocol) unless object.cloud_init_network_protocol.nil?
3206
3352
  ConfigurationWriter.write_one(object.configuration, writer, 'configuration') unless object.configuration.nil?
3207
3353
  Writer.write_string(writer, 'custom_script', object.custom_script) unless object.custom_script.nil?
3208
3354
  Writer.write_string(writer, 'dns_search', object.dns_search) unless object.dns_search.nil?
@@ -3271,6 +3417,7 @@ module OvirtSDK4
3271
3417
  MemoryPolicyWriter.write_one(object.memory_policy, writer, 'memory_policy') unless object.memory_policy.nil?
3272
3418
  MigrationOptionsWriter.write_one(object.migration, writer, 'migration') unless object.migration.nil?
3273
3419
  Writer.write_integer(writer, 'migration_downtime', object.migration_downtime) unless object.migration_downtime.nil?
3420
+ Writer.write_boolean(writer, 'multi_queues_enabled', object.multi_queues_enabled) unless object.multi_queues_enabled.nil?
3274
3421
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
3275
3422
  Writer.write_string(writer, 'origin', object.origin) unless object.origin.nil?
3276
3423
  OperatingSystemWriter.write_one(object.os, writer, 'os') unless object.os.nil?
@@ -3290,6 +3437,7 @@ module OvirtSDK4
3290
3437
  UsbWriter.write_one(object.usb, writer, 'usb') unless object.usb.nil?
3291
3438
  TemplateVersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
3292
3439
  VirtioScsiWriter.write_one(object.virtio_scsi, writer, 'virtio_scsi') unless object.virtio_scsi.nil?
3440
+ Writer.write_boolean(writer, 'virtio_scsi_multi_queues_enabled', object.virtio_scsi_multi_queues_enabled) unless object.virtio_scsi_multi_queues_enabled.nil?
3293
3441
  VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
3294
3442
  CdromWriter.write_many(object.cdroms, writer, 'cdrom', 'cdroms') unless object.cdroms.nil?
3295
3443
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
@@ -3693,6 +3841,35 @@ module OvirtSDK4
3693
3841
 
3694
3842
  end
3695
3843
 
3844
+ class MDevTypeWriter < Writer
3845
+
3846
+ def self.write_one(object, writer, singular = nil)
3847
+ singular ||= 'm_dev_type'
3848
+ writer.write_start(singular)
3849
+ href = object.href
3850
+ writer.write_attribute('href', href) unless href.nil?
3851
+ Writer.write_integer(writer, 'available_instances', object.available_instances) unless object.available_instances.nil?
3852
+ Writer.write_string(writer, 'description', object.description) unless object.description.nil?
3853
+ Writer.write_string(writer, 'name', object.name) unless object.name.nil?
3854
+ writer.write_end
3855
+ end
3856
+
3857
+ def self.write_many(list, writer, singular = nil, plural = nil)
3858
+ singular ||= 'm_dev_type'
3859
+ plural ||= 'm_dev_types'
3860
+ writer.write_start(plural)
3861
+ if list.is_a?(List)
3862
+ href = list.href
3863
+ writer.write_attribute('href', href) unless href.nil?
3864
+ end
3865
+ list.each do |item|
3866
+ write_one(item, writer, singular)
3867
+ end
3868
+ writer.write_end
3869
+ end
3870
+
3871
+ end
3872
+
3696
3873
  class MacWriter < Writer
3697
3874
 
3698
3875
  def self.write_one(object, writer, singular = nil)
@@ -3734,6 +3911,7 @@ module OvirtSDK4
3734
3911
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
3735
3912
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
3736
3913
  RangeWriter.write_many(object.ranges, writer, 'range', 'ranges') unless object.ranges.nil?
3914
+ PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
3737
3915
  writer.write_end
3738
3916
  end
3739
3917
 
@@ -3876,6 +4054,7 @@ module OvirtSDK4
3876
4054
  Writer.write_string(writer, 'auto_converge', object.auto_converge) unless object.auto_converge.nil?
3877
4055
  MigrationBandwidthWriter.write_one(object.bandwidth, writer, 'bandwidth') unless object.bandwidth.nil?
3878
4056
  Writer.write_string(writer, 'compressed', object.compressed) unless object.compressed.nil?
4057
+ Writer.write_string(writer, 'encrypted', object.encrypted) unless object.encrypted.nil?
3879
4058
  MigrationPolicyWriter.write_one(object.policy, writer, 'policy') unless object.policy.nil?
3880
4059
  writer.write_end
3881
4060
  end
@@ -3941,6 +4120,7 @@ module OvirtSDK4
3941
4120
  IpWriter.write_one(object.ip, writer, 'ip') unless object.ip.nil?
3942
4121
  Writer.write_integer(writer, 'mtu', object.mtu) unless object.mtu.nil?
3943
4122
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
4123
+ Writer.write_boolean(writer, 'port_isolation', object.port_isolation) unless object.port_isolation.nil?
3944
4124
  Writer.write_boolean(writer, 'profile_required', object.profile_required) unless object.profile_required.nil?
3945
4125
  Writer.write_boolean(writer, 'required', object.required) unless object.required.nil?
3946
4126
  Writer.write_string(writer, 'status', object.status) unless object.status.nil?
@@ -3952,6 +4132,7 @@ module OvirtSDK4
3952
4132
  end
3953
4133
  writer.write_end
3954
4134
  end
4135
+ Writer.write_string(writer, 'vdsm_name', object.vdsm_name) unless object.vdsm_name.nil?
3955
4136
  VlanWriter.write_one(object.vlan, writer, 'vlan') unless object.vlan.nil?
3956
4137
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
3957
4138
  DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
@@ -4434,6 +4615,8 @@ module OvirtSDK4
4434
4615
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
4435
4616
  Writer.write_string(writer, 'password', object.password) unless object.password.nil?
4436
4617
  Writer.write_string(writer, 'plugin_type', object.plugin_type) unless object.plugin_type.nil?
4618
+ Writer.write_string(writer, 'project_domain_name', object.project_domain_name) unless object.project_domain_name.nil?
4619
+ Writer.write_string(writer, 'project_name', object.project_name) unless object.project_name.nil?
4437
4620
  PropertyWriter.write_many(object.properties, writer, 'property', 'properties') unless object.properties.nil?
4438
4621
  Writer.write_boolean(writer, 'read_only', object.read_only) unless object.read_only.nil?
4439
4622
  Writer.write_boolean(writer, 'requires_authentication', object.requires_authentication) unless object.requires_authentication.nil?
@@ -4441,6 +4624,7 @@ module OvirtSDK4
4441
4624
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
4442
4625
  Writer.write_boolean(writer, 'unmanaged', object.unmanaged) unless object.unmanaged.nil?
4443
4626
  Writer.write_string(writer, 'url', object.url) unless object.url.nil?
4627
+ Writer.write_string(writer, 'user_domain_name', object.user_domain_name) unless object.user_domain_name.nil?
4444
4628
  Writer.write_string(writer, 'username', object.username) unless object.username.nil?
4445
4629
  CertificateWriter.write_many(object.certificates, writer, 'certificate', 'certificates') unless object.certificates.nil?
4446
4630
  OpenStackNetworkWriter.write_many(object.networks, writer, 'openstack_network', 'networks') unless object.networks.nil?
@@ -5002,6 +5186,7 @@ module OvirtSDK4
5002
5186
  writer.write_start(singular)
5003
5187
  href = object.href
5004
5188
  writer.write_attribute('href', href) unless href.nil?
5189
+ Writer.write_string(writer, 'instance_id', object.instance_id) unless object.instance_id.nil?
5005
5190
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
5006
5191
  Writer.write_string(writer, 'vendor', object.vendor) unless object.vendor.nil?
5007
5192
  VersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
@@ -5931,6 +6116,7 @@ module OvirtSDK4
5931
6116
  MemoryPolicyWriter.write_one(object.memory_policy, writer, 'memory_policy') unless object.memory_policy.nil?
5932
6117
  MigrationOptionsWriter.write_one(object.migration, writer, 'migration') unless object.migration.nil?
5933
6118
  Writer.write_integer(writer, 'migration_downtime', object.migration_downtime) unless object.migration_downtime.nil?
6119
+ Writer.write_boolean(writer, 'multi_queues_enabled', object.multi_queues_enabled) unless object.multi_queues_enabled.nil?
5934
6120
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
5935
6121
  Writer.write_boolean(writer, 'next_run_configuration_exists', object.next_run_configuration_exists) unless object.next_run_configuration_exists.nil?
5936
6122
  Writer.write_string(writer, 'numa_tune_mode', object.numa_tune_mode) unless object.numa_tune_mode.nil?
@@ -5961,12 +6147,14 @@ module OvirtSDK4
5961
6147
  UsbWriter.write_one(object.usb, writer, 'usb') unless object.usb.nil?
5962
6148
  Writer.write_boolean(writer, 'use_latest_template_version', object.use_latest_template_version) unless object.use_latest_template_version.nil?
5963
6149
  VirtioScsiWriter.write_one(object.virtio_scsi, writer, 'virtio_scsi') unless object.virtio_scsi.nil?
6150
+ Writer.write_boolean(writer, 'virtio_scsi_multi_queues_enabled', object.virtio_scsi_multi_queues_enabled) unless object.virtio_scsi_multi_queues_enabled.nil?
5964
6151
  AffinityLabelWriter.write_many(object.affinity_labels, writer, 'affinity_label', 'affinity_labels') unless object.affinity_labels.nil?
5965
6152
  ApplicationWriter.write_many(object.applications, writer, 'application', 'applications') unless object.applications.nil?
5966
6153
  CdromWriter.write_many(object.cdroms, writer, 'cdrom', 'cdroms') unless object.cdroms.nil?
5967
6154
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
5968
6155
  CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
5969
6156
  DiskAttachmentWriter.write_many(object.disk_attachments, writer, 'disk_attachment', 'disk_attachments') unless object.disk_attachments.nil?
6157
+ DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
5970
6158
  ExternalHostProviderWriter.write_one(object.external_host_provider, writer, 'external_host_provider') unless object.external_host_provider.nil?
5971
6159
  FloppyWriter.write_many(object.floppies, writer, 'floppy', 'floppies') unless object.floppies.nil?
5972
6160
  GraphicsConsoleWriter.write_many(object.graphics_consoles, writer, 'graphics_console', 'graphics_consoles') unless object.graphics_consoles.nil?
@@ -6078,6 +6266,7 @@ module OvirtSDK4
6078
6266
  Writer.write_string(writer, 'fingerprint', object.fingerprint) unless object.fingerprint.nil?
6079
6267
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
6080
6268
  Writer.write_integer(writer, 'port', object.port) unless object.port.nil?
6269
+ Writer.write_string(writer, 'public_key', object.public_key) unless object.public_key.nil?
6081
6270
  UserWriter.write_one(object.user, writer, 'user') unless object.user.nil?
6082
6271
  writer.write_end
6083
6272
  end
@@ -6266,6 +6455,7 @@ module OvirtSDK4
6266
6455
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
6267
6456
  Writer.write_string(writer, 'username', object.username) unless object.username.nil?
6268
6457
  Writer.write_string(writer, 'vfs_type', object.vfs_type) unless object.vfs_type.nil?
6458
+ GlusterVolumeWriter.write_one(object.gluster_volume, writer, 'gluster_volume') unless object.gluster_volume.nil?
6269
6459
  HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
6270
6460
  writer.write_end
6271
6461
  end
@@ -6330,6 +6520,7 @@ module OvirtSDK4
6330
6520
  writer.write_attribute('id', object.id) unless object.id.nil?
6331
6521
  Writer.write_integer(writer, 'available', object.available) unless object.available.nil?
6332
6522
  Writer.write_boolean(writer, 'backup', object.backup) unless object.backup.nil?
6523
+ Writer.write_integer(writer, 'block_size', object.block_size) unless object.block_size.nil?
6333
6524
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
6334
6525
  Writer.write_integer(writer, 'committed', object.committed) unless object.committed.nil?
6335
6526
  Writer.write_integer(writer, 'critical_space_action_blocker', object.critical_space_action_blocker) unless object.critical_space_action_blocker.nil?
@@ -6532,6 +6723,7 @@ module OvirtSDK4
6532
6723
  MemoryPolicyWriter.write_one(object.memory_policy, writer, 'memory_policy') unless object.memory_policy.nil?
6533
6724
  MigrationOptionsWriter.write_one(object.migration, writer, 'migration') unless object.migration.nil?
6534
6725
  Writer.write_integer(writer, 'migration_downtime', object.migration_downtime) unless object.migration_downtime.nil?
6726
+ Writer.write_boolean(writer, 'multi_queues_enabled', object.multi_queues_enabled) unless object.multi_queues_enabled.nil?
6535
6727
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
6536
6728
  Writer.write_string(writer, 'origin', object.origin) unless object.origin.nil?
6537
6729
  OperatingSystemWriter.write_one(object.os, writer, 'os') unless object.os.nil?
@@ -6551,6 +6743,7 @@ module OvirtSDK4
6551
6743
  UsbWriter.write_one(object.usb, writer, 'usb') unless object.usb.nil?
6552
6744
  TemplateVersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
6553
6745
  VirtioScsiWriter.write_one(object.virtio_scsi, writer, 'virtio_scsi') unless object.virtio_scsi.nil?
6746
+ Writer.write_boolean(writer, 'virtio_scsi_multi_queues_enabled', object.virtio_scsi_multi_queues_enabled) unless object.virtio_scsi_multi_queues_enabled.nil?
6554
6747
  VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
6555
6748
  CdromWriter.write_many(object.cdroms, writer, 'cdrom', 'cdroms') unless object.cdroms.nil?
6556
6749
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
@@ -6774,8 +6967,10 @@ module OvirtSDK4
6774
6967
  Writer.write_string(writer, 'password', object.password) unless object.password.nil?
6775
6968
  Writer.write_string(writer, 'principal', object.principal) unless object.principal.nil?
6776
6969
  Writer.write_string(writer, 'user_name', object.user_name) unless object.user_name.nil?
6970
+ PropertyWriter.write_many(object.user_options, writer, 'property', 'user_options') unless object.user_options.nil?
6777
6971
  DomainWriter.write_one(object.domain, writer, 'domain') unless object.domain.nil?
6778
6972
  GroupWriter.write_many(object.groups, writer, 'group', 'groups') unless object.groups.nil?
6973
+ UserOptionWriter.write_many(object.options, writer, 'user_option', 'options') unless object.options.nil?
6779
6974
  PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
6780
6975
  RoleWriter.write_many(object.roles, writer, 'role', 'roles') unless object.roles.nil?
6781
6976
  SshPublicKeyWriter.write_many(object.ssh_public_keys, writer, 'ssh_public_key', 'ssh_public_keys') unless object.ssh_public_keys.nil?
@@ -6799,6 +6994,38 @@ module OvirtSDK4
6799
6994
 
6800
6995
  end
6801
6996
 
6997
+ class UserOptionWriter < Writer
6998
+
6999
+ def self.write_one(object, writer, singular = nil)
7000
+ singular ||= 'user_option'
7001
+ writer.write_start(singular)
7002
+ href = object.href
7003
+ writer.write_attribute('href', href) unless href.nil?
7004
+ writer.write_attribute('id', object.id) unless object.id.nil?
7005
+ Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
7006
+ Writer.write_string(writer, 'content', object.content) unless object.content.nil?
7007
+ Writer.write_string(writer, 'description', object.description) unless object.description.nil?
7008
+ Writer.write_string(writer, 'name', object.name) unless object.name.nil?
7009
+ UserWriter.write_one(object.user, writer, 'user') unless object.user.nil?
7010
+ writer.write_end
7011
+ end
7012
+
7013
+ def self.write_many(list, writer, singular = nil, plural = nil)
7014
+ singular ||= 'user_option'
7015
+ plural ||= 'user_options'
7016
+ writer.write_start(plural)
7017
+ if list.is_a?(List)
7018
+ href = list.href
7019
+ writer.write_attribute('href', href) unless href.nil?
7020
+ end
7021
+ list.each do |item|
7022
+ write_one(item, writer, singular)
7023
+ end
7024
+ writer.write_end
7025
+ end
7026
+
7027
+ end
7028
+
6802
7029
  class ValueWriter < Writer
6803
7030
 
6804
7031
  def self.write_one(object, writer, singular = nil)
@@ -6963,6 +7190,7 @@ module OvirtSDK4
6963
7190
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
6964
7191
  Writer.write_string(writer, 'node_distance', object.node_distance) unless object.node_distance.nil?
6965
7192
  NumaNodePinWriter.write_many(object.numa_node_pins, writer, 'numa_node_pin', 'numa_node_pins') unless object.numa_node_pins.nil?
7193
+ Writer.write_string(writer, 'numa_tune_mode', object.numa_tune_mode) unless object.numa_tune_mode.nil?
6966
7194
  HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
6967
7195
  StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
6968
7196
  VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
@@ -7047,6 +7275,7 @@ module OvirtSDK4
7047
7275
  MemoryPolicyWriter.write_one(object.memory_policy, writer, 'memory_policy') unless object.memory_policy.nil?
7048
7276
  MigrationOptionsWriter.write_one(object.migration, writer, 'migration') unless object.migration.nil?
7049
7277
  Writer.write_integer(writer, 'migration_downtime', object.migration_downtime) unless object.migration_downtime.nil?
7278
+ Writer.write_boolean(writer, 'multi_queues_enabled', object.multi_queues_enabled) unless object.multi_queues_enabled.nil?
7050
7279
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
7051
7280
  Writer.write_boolean(writer, 'next_run_configuration_exists', object.next_run_configuration_exists) unless object.next_run_configuration_exists.nil?
7052
7281
  Writer.write_string(writer, 'numa_tune_mode', object.numa_tune_mode) unless object.numa_tune_mode.nil?
@@ -7074,6 +7303,7 @@ module OvirtSDK4
7074
7303
  UsbWriter.write_one(object.usb, writer, 'usb') unless object.usb.nil?
7075
7304
  Writer.write_boolean(writer, 'use_latest_template_version', object.use_latest_template_version) unless object.use_latest_template_version.nil?
7076
7305
  VirtioScsiWriter.write_one(object.virtio_scsi, writer, 'virtio_scsi') unless object.virtio_scsi.nil?
7306
+ Writer.write_boolean(writer, 'virtio_scsi_multi_queues_enabled', object.virtio_scsi_multi_queues_enabled) unless object.virtio_scsi_multi_queues_enabled.nil?
7077
7307
  AffinityLabelWriter.write_many(object.affinity_labels, writer, 'affinity_label', 'affinity_labels') unless object.affinity_labels.nil?
7078
7308
  ApplicationWriter.write_many(object.applications, writer, 'application', 'applications') unless object.applications.nil?
7079
7309
  CdromWriter.write_many(object.cdroms, writer, 'cdrom', 'cdroms') unless object.cdroms.nil?
@@ -7151,6 +7381,7 @@ module OvirtSDK4
7151
7381
  MemoryPolicyWriter.write_one(object.memory_policy, writer, 'memory_policy') unless object.memory_policy.nil?
7152
7382
  MigrationOptionsWriter.write_one(object.migration, writer, 'migration') unless object.migration.nil?
7153
7383
  Writer.write_integer(writer, 'migration_downtime', object.migration_downtime) unless object.migration_downtime.nil?
7384
+ Writer.write_boolean(writer, 'multi_queues_enabled', object.multi_queues_enabled) unless object.multi_queues_enabled.nil?
7154
7385
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
7155
7386
  Writer.write_string(writer, 'origin', object.origin) unless object.origin.nil?
7156
7387
  OperatingSystemWriter.write_one(object.os, writer, 'os') unless object.os.nil?
@@ -7168,6 +7399,7 @@ module OvirtSDK4
7168
7399
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
7169
7400
  UsbWriter.write_one(object.usb, writer, 'usb') unless object.usb.nil?
7170
7401
  VirtioScsiWriter.write_one(object.virtio_scsi, writer, 'virtio_scsi') unless object.virtio_scsi.nil?
7402
+ Writer.write_boolean(writer, 'virtio_scsi_multi_queues_enabled', object.virtio_scsi_multi_queues_enabled) unless object.virtio_scsi_multi_queues_enabled.nil?
7171
7403
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
7172
7404
  CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
7173
7405
  QuotaWriter.write_one(object.quota, writer, 'quota') unless object.quota.nil?
@@ -7496,6 +7728,7 @@ module OvirtSDK4
7496
7728
  Writer.register(ApiSummaryItem, ApiSummaryItemWriter.method(:write_one))
7497
7729
  Writer.register(Application, ApplicationWriter.method(:write_one))
7498
7730
  Writer.register(AuthorizedKey, AuthorizedKeyWriter.method(:write_one))
7731
+ Writer.register(Backup, BackupWriter.method(:write_one))
7499
7732
  Writer.register(Balance, BalanceWriter.method(:write_one))
7500
7733
  Writer.register(Bios, BiosWriter.method(:write_one))
7501
7734
  Writer.register(BlockStatistic, BlockStatisticWriter.method(:write_one))
@@ -7506,6 +7739,7 @@ module OvirtSDK4
7506
7739
  Writer.register(BrickProfileDetail, BrickProfileDetailWriter.method(:write_one))
7507
7740
  Writer.register(Cdrom, CdromWriter.method(:write_one))
7508
7741
  Writer.register(Certificate, CertificateWriter.method(:write_one))
7742
+ Writer.register(Checkpoint, CheckpointWriter.method(:write_one))
7509
7743
  Writer.register(CloudInit, CloudInitWriter.method(:write_one))
7510
7744
  Writer.register(Cluster, ClusterWriter.method(:write_one))
7511
7745
  Writer.register(ClusterFeature, ClusterFeatureWriter.method(:write_one))
@@ -7532,6 +7766,7 @@ module OvirtSDK4
7532
7766
  Writer.register(EntityProfileDetail, EntityProfileDetailWriter.method(:write_one))
7533
7767
  Writer.register(ErrorHandling, ErrorHandlingWriter.method(:write_one))
7534
7768
  Writer.register(Event, EventWriter.method(:write_one))
7769
+ Writer.register(EventSubscription, EventSubscriptionWriter.method(:write_one))
7535
7770
  Writer.register(ExternalComputeResource, ExternalComputeResourceWriter.method(:write_one))
7536
7771
  Writer.register(ExternalDiscoveredHost, ExternalDiscoveredHostWriter.method(:write_one))
7537
7772
  Writer.register(ExternalHost, ExternalHostWriter.method(:write_one))
@@ -7586,6 +7821,7 @@ module OvirtSDK4
7586
7821
  Writer.register(Ksm, KsmWriter.method(:write_one))
7587
7822
  Writer.register(LinkLayerDiscoveryProtocolElement, LinkLayerDiscoveryProtocolElementWriter.method(:write_one))
7588
7823
  Writer.register(LogicalUnit, LogicalUnitWriter.method(:write_one))
7824
+ Writer.register(MDevType, MDevTypeWriter.method(:write_one))
7589
7825
  Writer.register(Mac, MacWriter.method(:write_one))
7590
7826
  Writer.register(MacPool, MacPoolWriter.method(:write_one))
7591
7827
  Writer.register(MemoryOverCommit, MemoryOverCommitWriter.method(:write_one))
@@ -7677,6 +7913,7 @@ module OvirtSDK4
7677
7913
  Writer.register(UnmanagedNetwork, UnmanagedNetworkWriter.method(:write_one))
7678
7914
  Writer.register(Usb, UsbWriter.method(:write_one))
7679
7915
  Writer.register(User, UserWriter.method(:write_one))
7916
+ Writer.register(UserOption, UserOptionWriter.method(:write_one))
7680
7917
  Writer.register(Value, ValueWriter.method(:write_one))
7681
7918
  Writer.register(VcpuPin, VcpuPinWriter.method(:write_one))
7682
7919
  Writer.register(Vendor, VendorWriter.method(:write_one))