ovirt-engine-sdk 4.4.0 → 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,6 +30,7 @@ module OvirtSDK4
30
30
  Writer.write_boolean(writer, 'async', object.async) unless object.async.nil?
31
31
  DiskAttachmentWriter.write_one(object.attachment, writer, 'attachment') unless object.attachment.nil?
32
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?
33
34
  GlusterBrickWriter.write_many(object.bricks, writer, 'brick', 'bricks') unless object.bricks.nil?
34
35
  CertificateWriter.write_many(object.certificates, writer, 'certificate', 'certificates') unless object.certificates.nil?
35
36
  Writer.write_boolean(writer, 'check_connectivity', object.check_connectivity) unless object.check_connectivity.nil?
@@ -41,6 +42,7 @@ module OvirtSDK4
41
42
  Writer.write_boolean(writer, 'commit_on_success', object.commit_on_success) unless object.commit_on_success.nil?
42
43
  StorageConnectionWriter.write_one(object.connection, writer, 'connection') unless object.connection.nil?
43
44
  Writer.write_integer(writer, 'connectivity_timeout', object.connectivity_timeout) unless object.connectivity_timeout.nil?
45
+ Writer.write_string(writer, 'correlation_id', object.correlation_id) unless object.correlation_id.nil?
44
46
  DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
45
47
  Writer.write_boolean(writer, 'deploy_hosted_engine', object.deploy_hosted_engine) unless object.deploy_hosted_engine.nil?
46
48
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
@@ -57,6 +59,7 @@ module OvirtSDK4
57
59
  Writer.write_string(writer, 'filename', object.filename) unless object.filename.nil?
58
60
  Writer.write_boolean(writer, 'filter', object.filter) unless object.filter.nil?
59
61
  Writer.write_boolean(writer, 'fix_layout', object.fix_layout) unless object.fix_layout.nil?
62
+ Writer.write_string(writer, 'follow', object.follow) unless object.follow.nil?
60
63
  Writer.write_boolean(writer, 'force', object.force) unless object.force.nil?
61
64
  GracePeriodWriter.write_one(object.grace_period, writer, 'grace_period') unless object.grace_period.nil?
62
65
  HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
@@ -82,6 +85,7 @@ module OvirtSDK4
82
85
  NetworkLabelWriter.write_many(object.modified_labels, writer, 'network_label', 'modified_labels') unless object.modified_labels.nil?
83
86
  NetworkAttachmentWriter.write_many(object.modified_network_attachments, writer, 'network_attachment', 'modified_network_attachments') unless object.modified_network_attachments.nil?
84
87
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
88
+ Writer.write_boolean(writer, 'optimize_cpu_settings', object.optimize_cpu_settings) unless object.optimize_cpu_settings.nil?
85
89
  OptionWriter.write_one(object.option, writer, 'option') unless object.option.nil?
86
90
  Writer.write_boolean(writer, 'pause', object.pause) unless object.pause.nil?
87
91
  PermissionWriter.write_one(object.permission, writer, 'permission') unless object.permission.nil?
@@ -114,6 +118,7 @@ module OvirtSDK4
114
118
  Writer.write_integer(writer, 'timeout', object.timeout) unless object.timeout.nil?
115
119
  Writer.write_boolean(writer, 'undeploy_hosted_engine', object.undeploy_hosted_engine) unless object.undeploy_hosted_engine.nil?
116
120
  Writer.write_string(writer, 'upgrade_action', object.upgrade_action) unless object.upgrade_action.nil?
121
+ Writer.write_integer(writer, 'upgrade_percent_complete', object.upgrade_percent_complete) unless object.upgrade_percent_complete.nil?
117
122
  Writer.write_boolean(writer, 'use_cloud_init', object.use_cloud_init) unless object.use_cloud_init.nil?
118
123
  Writer.write_boolean(writer, 'use_ignition', object.use_ignition) unless object.use_ignition.nil?
119
124
  Writer.write_boolean(writer, 'use_initialization', object.use_initialization) unless object.use_initialization.nil?
@@ -149,6 +154,7 @@ module OvirtSDK4
149
154
  href = object.href
150
155
  writer.write_attribute('href', href) unless href.nil?
151
156
  writer.write_attribute('id', object.id) unless object.id.nil?
157
+ Writer.write_boolean(writer, 'broken', object.broken) unless object.broken.nil?
152
158
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
153
159
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
154
160
  Writer.write_boolean(writer, 'enforcing', object.enforcing) unless object.enforcing.nil?
@@ -481,10 +487,13 @@ module OvirtSDK4
481
487
  Writer.write_date(writer, 'creation_date', object.creation_date) unless object.creation_date.nil?
482
488
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
483
489
  Writer.write_string(writer, 'from_checkpoint_id', object.from_checkpoint_id) unless object.from_checkpoint_id.nil?
490
+ Writer.write_date(writer, 'modification_date', object.modification_date) unless object.modification_date.nil?
484
491
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
485
492
  Writer.write_string(writer, 'phase', object.phase) unless object.phase.nil?
486
493
  Writer.write_string(writer, 'to_checkpoint_id', object.to_checkpoint_id) unless object.to_checkpoint_id.nil?
487
494
  DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
495
+ HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
496
+ SnapshotWriter.write_one(object.snapshot, writer, 'snapshot') unless object.snapshot.nil?
488
497
  VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
489
498
  writer.write_end
490
499
  end
@@ -809,6 +818,41 @@ module OvirtSDK4
809
818
 
810
819
  end
811
820
 
821
+ class CheckpointWriter < Writer
822
+
823
+ def self.write_one(object, writer, singular = nil)
824
+ singular ||= 'checkpoint'
825
+ writer.write_start(singular)
826
+ href = object.href
827
+ writer.write_attribute('href', href) unless href.nil?
828
+ writer.write_attribute('id', object.id) unless object.id.nil?
829
+ Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
830
+ Writer.write_date(writer, 'creation_date', object.creation_date) unless object.creation_date.nil?
831
+ Writer.write_string(writer, 'description', object.description) unless object.description.nil?
832
+ Writer.write_string(writer, 'name', object.name) unless object.name.nil?
833
+ Writer.write_string(writer, 'parent_id', object.parent_id) unless object.parent_id.nil?
834
+ Writer.write_string(writer, 'state', object.state) unless object.state.nil?
835
+ DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
836
+ VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
837
+ writer.write_end
838
+ end
839
+
840
+ def self.write_many(list, writer, singular = nil, plural = nil)
841
+ singular ||= 'checkpoint'
842
+ plural ||= 'checkpoints'
843
+ writer.write_start(plural)
844
+ if list.is_a?(List)
845
+ href = list.href
846
+ writer.write_attribute('href', href) unless href.nil?
847
+ end
848
+ list.each do |item|
849
+ write_one(item, writer, singular)
850
+ end
851
+ writer.write_end
852
+ end
853
+
854
+ end
855
+
812
856
  class CloudInitWriter < Writer
813
857
 
814
858
  def self.write_one(object, writer, singular = nil)
@@ -859,6 +903,7 @@ module OvirtSDK4
859
903
  DisplayWriter.write_one(object.display, writer, 'display') unless object.display.nil?
860
904
  ErrorHandlingWriter.write_one(object.error_handling, writer, 'error_handling') unless object.error_handling.nil?
861
905
  FencingPolicyWriter.write_one(object.fencing_policy, writer, 'fencing_policy') unless object.fencing_policy.nil?
906
+ Writer.write_string(writer, 'fips_mode', object.fips_mode) unless object.fips_mode.nil?
862
907
  Writer.write_string(writer, 'firewall_type', object.firewall_type) unless object.firewall_type.nil?
863
908
  Writer.write_boolean(writer, 'gluster_service', object.gluster_service) unless object.gluster_service.nil?
864
909
  Writer.write_string(writer, 'gluster_tuned_profile', object.gluster_tuned_profile) unless object.gluster_tuned_profile.nil?
@@ -884,8 +929,12 @@ module OvirtSDK4
884
929
  Writer.write_boolean(writer, 'threads_as_cores', object.threads_as_cores) unless object.threads_as_cores.nil?
885
930
  Writer.write_boolean(writer, 'trusted_service', object.trusted_service) unless object.trusted_service.nil?
886
931
  Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
932
+ Writer.write_string(writer, 'upgrade_correlation_id', object.upgrade_correlation_id) unless object.upgrade_correlation_id.nil?
933
+ Writer.write_boolean(writer, 'upgrade_in_progress', object.upgrade_in_progress) unless object.upgrade_in_progress.nil?
934
+ Writer.write_integer(writer, 'upgrade_percent_complete', object.upgrade_percent_complete) unless object.upgrade_percent_complete.nil?
887
935
  VersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
888
936
  Writer.write_boolean(writer, 'virt_service', object.virt_service) unless object.virt_service.nil?
937
+ Writer.write_boolean(writer, 'vnc_encryption', object.vnc_encryption) unless object.vnc_encryption.nil?
889
938
  AffinityGroupWriter.write_many(object.affinity_groups, writer, 'affinity_group', 'affinity_groups') unless object.affinity_groups.nil?
890
939
  CpuProfileWriter.write_many(object.cpu_profiles, writer, 'cpu_profile', 'cpu_profiles') unless object.cpu_profiles.nil?
891
940
  DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
@@ -1337,10 +1386,12 @@ module OvirtSDK4
1337
1386
  Writer.write_integer(writer, 'actual_size', object.actual_size) unless object.actual_size.nil?
1338
1387
  Writer.write_string(writer, 'alias', object.alias_) unless object.alias_.nil?
1339
1388
  Writer.write_string(writer, 'backup', object.backup) unless object.backup.nil?
1389
+ Writer.write_string(writer, 'backup_mode', object.backup_mode) unless object.backup_mode.nil?
1340
1390
  Writer.write_boolean(writer, 'bootable', object.bootable) unless object.bootable.nil?
1341
1391
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
1342
1392
  Writer.write_string(writer, 'content_type', object.content_type) unless object.content_type.nil?
1343
1393
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
1394
+ Writer.write_string(writer, 'external_disk', object.external_disk) unless object.external_disk.nil?
1344
1395
  Writer.write_string(writer, 'format', object.format) unless object.format.nil?
1345
1396
  Writer.write_string(writer, 'image_id', object.image_id) unless object.image_id.nil?
1346
1397
  Writer.write_integer(writer, 'initial_size', object.initial_size) unless object.initial_size.nil?
@@ -1361,6 +1412,7 @@ module OvirtSDK4
1361
1412
  Writer.write_boolean(writer, 'uses_scsi_reservation', object.uses_scsi_reservation) unless object.uses_scsi_reservation.nil?
1362
1413
  Writer.write_boolean(writer, 'wipe_after_delete', object.wipe_after_delete) unless object.wipe_after_delete.nil?
1363
1414
  DiskProfileWriter.write_one(object.disk_profile, writer, 'disk_profile') unless object.disk_profile.nil?
1415
+ DiskSnapshotWriter.write_many(object.disk_snapshots, writer, 'disk_snapshot', 'disk_snapshots') unless object.disk_snapshots.nil?
1364
1416
  InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
1365
1417
  OpenStackVolumeTypeWriter.write_one(object.openstack_volume_type, writer, 'openstack_volume_type') unless object.openstack_volume_type.nil?
1366
1418
  PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
@@ -1476,10 +1528,12 @@ module OvirtSDK4
1476
1528
  Writer.write_integer(writer, 'actual_size', object.actual_size) unless object.actual_size.nil?
1477
1529
  Writer.write_string(writer, 'alias', object.alias_) unless object.alias_.nil?
1478
1530
  Writer.write_string(writer, 'backup', object.backup) unless object.backup.nil?
1531
+ Writer.write_string(writer, 'backup_mode', object.backup_mode) unless object.backup_mode.nil?
1479
1532
  Writer.write_boolean(writer, 'bootable', object.bootable) unless object.bootable.nil?
1480
1533
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
1481
1534
  Writer.write_string(writer, 'content_type', object.content_type) unless object.content_type.nil?
1482
1535
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
1536
+ Writer.write_string(writer, 'external_disk', object.external_disk) unless object.external_disk.nil?
1483
1537
  Writer.write_string(writer, 'format', object.format) unless object.format.nil?
1484
1538
  Writer.write_string(writer, 'image_id', object.image_id) unless object.image_id.nil?
1485
1539
  Writer.write_integer(writer, 'initial_size', object.initial_size) unless object.initial_size.nil?
@@ -1501,8 +1555,10 @@ module OvirtSDK4
1501
1555
  Writer.write_boolean(writer, 'wipe_after_delete', object.wipe_after_delete) unless object.wipe_after_delete.nil?
1502
1556
  DiskWriter.write_one(object.disk, writer, 'disk') unless object.disk.nil?
1503
1557
  DiskProfileWriter.write_one(object.disk_profile, writer, 'disk_profile') unless object.disk_profile.nil?
1558
+ DiskSnapshotWriter.write_many(object.disk_snapshots, writer, 'disk_snapshot', 'disk_snapshots') unless object.disk_snapshots.nil?
1504
1559
  InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
1505
1560
  OpenStackVolumeTypeWriter.write_one(object.openstack_volume_type, writer, 'openstack_volume_type') unless object.openstack_volume_type.nil?
1561
+ DiskSnapshotWriter.write_one(object.parent, writer, 'parent') unless object.parent.nil?
1506
1562
  PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
1507
1563
  QuotaWriter.write_one(object.quota, writer, 'quota') unless object.quota.nil?
1508
1564
  SnapshotWriter.write_one(object.snapshot, writer, 'snapshot') unless object.snapshot.nil?
@@ -1543,6 +1599,7 @@ module OvirtSDK4
1543
1599
  CertificateWriter.write_one(object.certificate, writer, 'certificate') unless object.certificate.nil?
1544
1600
  Writer.write_boolean(writer, 'copy_paste_enabled', object.copy_paste_enabled) unless object.copy_paste_enabled.nil?
1545
1601
  Writer.write_string(writer, 'disconnect_action', object.disconnect_action) unless object.disconnect_action.nil?
1602
+ Writer.write_integer(writer, 'disconnect_action_delay', object.disconnect_action_delay) unless object.disconnect_action_delay.nil?
1546
1603
  Writer.write_boolean(writer, 'file_transfer_enabled', object.file_transfer_enabled) unless object.file_transfer_enabled.nil?
1547
1604
  Writer.write_string(writer, 'keyboard_layout', object.keyboard_layout) unless object.keyboard_layout.nil?
1548
1605
  Writer.write_integer(writer, 'monitors', object.monitors) unless object.monitors.nil?
@@ -1665,6 +1722,34 @@ module OvirtSDK4
1665
1722
 
1666
1723
  end
1667
1724
 
1725
+ class DynamicCpuWriter < Writer
1726
+
1727
+ def self.write_one(object, writer, singular = nil)
1728
+ singular ||= 'dynamic_cpu'
1729
+ writer.write_start(singular)
1730
+ href = object.href
1731
+ writer.write_attribute('href', href) unless href.nil?
1732
+ CpuTuneWriter.write_one(object.cpu_tune, writer, 'cpu_tune') unless object.cpu_tune.nil?
1733
+ CpuTopologyWriter.write_one(object.topology, writer, 'topology') unless object.topology.nil?
1734
+ writer.write_end
1735
+ end
1736
+
1737
+ def self.write_many(list, writer, singular = nil, plural = nil)
1738
+ singular ||= 'dynamic_cpu'
1739
+ plural ||= 'dynamic_cpus'
1740
+ writer.write_start(plural)
1741
+ if list.is_a?(List)
1742
+ href = list.href
1743
+ writer.write_attribute('href', href) unless href.nil?
1744
+ end
1745
+ list.each do |item|
1746
+ write_one(item, writer, singular)
1747
+ end
1748
+ writer.write_end
1749
+ end
1750
+
1751
+ end
1752
+
1668
1753
  class EntityProfileDetailWriter < Writer
1669
1754
 
1670
1755
  def self.write_one(object, writer, singular = nil)
@@ -2045,6 +2130,40 @@ module OvirtSDK4
2045
2130
 
2046
2131
  end
2047
2132
 
2133
+ class ExternalTemplateImportWriter < Writer
2134
+
2135
+ def self.write_one(object, writer, singular = nil)
2136
+ singular ||= 'external_template_import'
2137
+ writer.write_start(singular)
2138
+ href = object.href
2139
+ writer.write_attribute('href', href) unless href.nil?
2140
+ Writer.write_boolean(writer, 'clone', object.clone) unless object.clone.nil?
2141
+ Writer.write_string(writer, 'url', object.url) unless object.url.nil?
2142
+ ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
2143
+ CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
2144
+ HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
2145
+ QuotaWriter.write_one(object.quota, writer, 'quota') unless object.quota.nil?
2146
+ StorageDomainWriter.write_one(object.storage_domain, writer, 'storage_domain') unless object.storage_domain.nil?
2147
+ TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
2148
+ writer.write_end
2149
+ end
2150
+
2151
+ def self.write_many(list, writer, singular = nil, plural = nil)
2152
+ singular ||= 'external_template_import'
2153
+ plural ||= 'external_template_imports'
2154
+ writer.write_start(plural)
2155
+ if list.is_a?(List)
2156
+ href = list.href
2157
+ writer.write_attribute('href', href) unless href.nil?
2158
+ end
2159
+ list.each do |item|
2160
+ write_one(item, writer, singular)
2161
+ end
2162
+ writer.write_end
2163
+ end
2164
+
2165
+ end
2166
+
2048
2167
  class ExternalVmImportWriter < Writer
2049
2168
 
2050
2169
  def self.write_one(object, writer, singular = nil)
@@ -2868,9 +2987,11 @@ module OvirtSDK4
2868
2987
  Writer.write_boolean(writer, 'numa_supported', object.numa_supported) unless object.numa_supported.nil?
2869
2988
  OperatingSystemWriter.write_one(object.os, writer, 'os') unless object.os.nil?
2870
2989
  Writer.write_boolean(writer, 'override_iptables', object.override_iptables) unless object.override_iptables.nil?
2990
+ Writer.write_boolean(writer, 'ovn_configured', object.ovn_configured) unless object.ovn_configured.nil?
2871
2991
  Writer.write_integer(writer, 'port', object.port) unless object.port.nil?
2872
2992
  PowerManagementWriter.write_one(object.power_management, writer, 'power_management') unless object.power_management.nil?
2873
2993
  Writer.write_string(writer, 'protocol', object.protocol) unless object.protocol.nil?
2994
+ Writer.write_boolean(writer, 'reinstallation_required', object.reinstallation_required) unless object.reinstallation_required.nil?
2874
2995
  Writer.write_string(writer, 'root_password', object.root_password) unless object.root_password.nil?
2875
2996
  SeLinuxWriter.write_one(object.se_linux, writer, 'se_linux') unless object.se_linux.nil?
2876
2997
  SpmWriter.write_one(object.spm, writer, 'spm') unless object.spm.nil?
@@ -2886,6 +3007,7 @@ module OvirtSDK4
2886
3007
  AffinityLabelWriter.write_many(object.affinity_labels, writer, 'affinity_label', 'affinity_labels') unless object.affinity_labels.nil?
2887
3008
  AgentWriter.write_many(object.agents, writer, 'agent', 'agents') unless object.agents.nil?
2888
3009
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
3010
+ HostCpuUnitWriter.write_many(object.cpu_units, writer, 'host_cpu_unit', 'cpu_units') unless object.cpu_units.nil?
2889
3011
  HostDeviceWriter.write_many(object.devices, writer, 'host_device', 'devices') unless object.devices.nil?
2890
3012
  ExternalHostProviderWriter.write_one(object.external_host_provider, writer, 'external_host_provider') unless object.external_host_provider.nil?
2891
3013
  ExternalNetworkProviderConfigurationWriter.write_many(object.external_network_provider_configurations, writer, 'external_network_provider_configuration', 'external_network_provider_configurations') unless object.external_network_provider_configurations.nil?
@@ -2919,6 +3041,41 @@ module OvirtSDK4
2919
3041
 
2920
3042
  end
2921
3043
 
3044
+ class HostCpuUnitWriter < Writer
3045
+
3046
+ def self.write_one(object, writer, singular = nil)
3047
+ singular ||= 'host_cpu_unit'
3048
+ writer.write_start(singular)
3049
+ href = object.href
3050
+ writer.write_attribute('href', href) unless href.nil?
3051
+ writer.write_attribute('id', object.id) unless object.id.nil?
3052
+ Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
3053
+ Writer.write_integer(writer, 'core_id', object.core_id) unless object.core_id.nil?
3054
+ Writer.write_integer(writer, 'cpu_id', object.cpu_id) unless object.cpu_id.nil?
3055
+ Writer.write_string(writer, 'description', object.description) unless object.description.nil?
3056
+ Writer.write_string(writer, 'name', object.name) unless object.name.nil?
3057
+ Writer.write_boolean(writer, 'runs_vdsm', object.runs_vdsm) unless object.runs_vdsm.nil?
3058
+ Writer.write_integer(writer, 'socket_id', object.socket_id) unless object.socket_id.nil?
3059
+ VmWriter.write_many(object.vms, writer, 'vm', 'vms') unless object.vms.nil?
3060
+ writer.write_end
3061
+ end
3062
+
3063
+ def self.write_many(list, writer, singular = nil, plural = nil)
3064
+ singular ||= 'host_cpu_unit'
3065
+ plural ||= 'host_cpu_units'
3066
+ writer.write_start(plural)
3067
+ if list.is_a?(List)
3068
+ href = list.href
3069
+ writer.write_attribute('href', href) unless href.nil?
3070
+ end
3071
+ list.each do |item|
3072
+ write_one(item, writer, singular)
3073
+ end
3074
+ writer.write_end
3075
+ end
3076
+
3077
+ end
3078
+
2922
3079
  class HostDeviceWriter < Writer
2923
3080
 
2924
3081
  def self.write_one(object, writer, singular = nil)
@@ -3263,7 +3420,8 @@ module OvirtSDK4
3263
3420
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
3264
3421
  Writer.write_string(writer, 'phase', object.phase) unless object.phase.nil?
3265
3422
  Writer.write_string(writer, 'proxy_url', object.proxy_url) unless object.proxy_url.nil?
3266
- Writer.write_string(writer, 'signed_ticket', object.signed_ticket) unless object.signed_ticket.nil?
3423
+ Writer.write_boolean(writer, 'shallow', object.shallow) unless object.shallow.nil?
3424
+ Writer.write_string(writer, 'timeout_policy', object.timeout_policy) unless object.timeout_policy.nil?
3267
3425
  Writer.write_string(writer, 'transfer_url', object.transfer_url) unless object.transfer_url.nil?
3268
3426
  Writer.write_integer(writer, 'transferred', object.transferred) unless object.transferred.nil?
3269
3427
  BackupWriter.write_one(object.backup, writer, 'backup') unless object.backup.nil?
@@ -3346,10 +3504,12 @@ module OvirtSDK4
3346
3504
  href = object.href
3347
3505
  writer.write_attribute('href', href) unless href.nil?
3348
3506
  writer.write_attribute('id', object.id) unless object.id.nil?
3507
+ Writer.write_string(writer, 'auto_pinning_policy', object.auto_pinning_policy) unless object.auto_pinning_policy.nil?
3349
3508
  BiosWriter.write_one(object.bios, writer, 'bios') unless object.bios.nil?
3350
3509
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
3351
3510
  ConsoleWriter.write_one(object.console, writer, 'console') unless object.console.nil?
3352
3511
  CpuWriter.write_one(object.cpu, writer, 'cpu') unless object.cpu.nil?
3512
+ Writer.write_string(writer, 'cpu_pinning_policy', object.cpu_pinning_policy) unless object.cpu_pinning_policy.nil?
3353
3513
  Writer.write_integer(writer, 'cpu_shares', object.cpu_shares) unless object.cpu_shares.nil?
3354
3514
  Writer.write_date(writer, 'creation_time', object.creation_time) unless object.creation_time.nil?
3355
3515
  VersionWriter.write_one(object.custom_compatibility_version, writer, 'custom_compatibility_version') unless object.custom_compatibility_version.nil?
@@ -3384,17 +3544,21 @@ module OvirtSDK4
3384
3544
  Writer.write_string(writer, 'status', object.status) unless object.status.nil?
3385
3545
  Writer.write_string(writer, 'storage_error_resume_behaviour', object.storage_error_resume_behaviour) unless object.storage_error_resume_behaviour.nil?
3386
3546
  TimeZoneWriter.write_one(object.time_zone, writer, 'time_zone') unless object.time_zone.nil?
3547
+ Writer.write_boolean(writer, 'tpm_enabled', object.tpm_enabled) unless object.tpm_enabled.nil?
3387
3548
  Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
3388
3549
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
3389
3550
  UsbWriter.write_one(object.usb, writer, 'usb') unless object.usb.nil?
3390
3551
  TemplateVersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
3391
3552
  VirtioScsiWriter.write_one(object.virtio_scsi, writer, 'virtio_scsi') unless object.virtio_scsi.nil?
3553
+ Writer.write_integer(writer, 'virtio_scsi_multi_queues', object.virtio_scsi_multi_queues) unless object.virtio_scsi_multi_queues.nil?
3554
+ Writer.write_boolean(writer, 'virtio_scsi_multi_queues_enabled', object.virtio_scsi_multi_queues_enabled) unless object.virtio_scsi_multi_queues_enabled.nil?
3392
3555
  VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
3393
3556
  CdromWriter.write_many(object.cdroms, writer, 'cdrom', 'cdroms') unless object.cdroms.nil?
3394
3557
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
3395
3558
  CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
3396
3559
  DiskAttachmentWriter.write_many(object.disk_attachments, writer, 'disk_attachment', 'disk_attachments') unless object.disk_attachments.nil?
3397
3560
  GraphicsConsoleWriter.write_many(object.graphics_consoles, writer, 'graphics_console', 'graphics_consoles') unless object.graphics_consoles.nil?
3561
+ VmMediatedDeviceWriter.write_many(object.mediated_devices, writer, 'vm_mediated_device', 'mediated_devices') unless object.mediated_devices.nil?
3398
3562
  NicWriter.write_many(object.nics, writer, 'nic', 'nics') unless object.nics.nil?
3399
3563
  PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
3400
3564
  QuotaWriter.write_one(object.quota, writer, 'quota') unless object.quota.nil?
@@ -3801,6 +3965,7 @@ module OvirtSDK4
3801
3965
  writer.write_attribute('href', href) unless href.nil?
3802
3966
  Writer.write_integer(writer, 'available_instances', object.available_instances) unless object.available_instances.nil?
3803
3967
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
3968
+ Writer.write_string(writer, 'human_readable_name', object.human_readable_name) unless object.human_readable_name.nil?
3804
3969
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
3805
3970
  writer.write_end
3806
3971
  end
@@ -3862,6 +4027,7 @@ module OvirtSDK4
3862
4027
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
3863
4028
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
3864
4029
  RangeWriter.write_many(object.ranges, writer, 'range', 'ranges') unless object.ranges.nil?
4030
+ PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
3865
4031
  writer.write_end
3866
4032
  end
3867
4033
 
@@ -4004,7 +4170,9 @@ module OvirtSDK4
4004
4170
  Writer.write_string(writer, 'auto_converge', object.auto_converge) unless object.auto_converge.nil?
4005
4171
  MigrationBandwidthWriter.write_one(object.bandwidth, writer, 'bandwidth') unless object.bandwidth.nil?
4006
4172
  Writer.write_string(writer, 'compressed', object.compressed) unless object.compressed.nil?
4173
+ Writer.write_integer(writer, 'custom_parallel_migrations', object.custom_parallel_migrations) unless object.custom_parallel_migrations.nil?
4007
4174
  Writer.write_string(writer, 'encrypted', object.encrypted) unless object.encrypted.nil?
4175
+ Writer.write_string(writer, 'parallel_migrations_policy', object.parallel_migrations_policy) unless object.parallel_migrations_policy.nil?
4008
4176
  MigrationPolicyWriter.write_one(object.policy, writer, 'policy') unless object.policy.nil?
4009
4177
  writer.write_end
4010
4178
  end
@@ -4070,6 +4238,7 @@ module OvirtSDK4
4070
4238
  IpWriter.write_one(object.ip, writer, 'ip') unless object.ip.nil?
4071
4239
  Writer.write_integer(writer, 'mtu', object.mtu) unless object.mtu.nil?
4072
4240
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
4241
+ Writer.write_boolean(writer, 'port_isolation', object.port_isolation) unless object.port_isolation.nil?
4073
4242
  Writer.write_boolean(writer, 'profile_required', object.profile_required) unless object.profile_required.nil?
4074
4243
  Writer.write_boolean(writer, 'required', object.required) unless object.required.nil?
4075
4244
  Writer.write_string(writer, 'status', object.status) unless object.status.nil?
@@ -4317,6 +4486,7 @@ module OvirtSDK4
4317
4486
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
4318
4487
  Writer.write_boolean(writer, 'on_boot', object.on_boot) unless object.on_boot.nil?
4319
4488
  Writer.write_boolean(writer, 'plugged', object.plugged) unless object.plugged.nil?
4489
+ Writer.write_boolean(writer, 'synced', object.synced) unless object.synced.nil?
4320
4490
  InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
4321
4491
  NetworkWriter.write_one(object.network, writer, 'network') unless object.network.nil?
4322
4492
  NetworkAttachmentWriter.write_many(object.network_attachments, writer, 'network_attachment', 'network_attachments') unless object.network_attachments.nil?
@@ -4831,6 +5001,7 @@ module OvirtSDK4
4831
5001
  IconWriter.write_one(object.large_icon, writer, 'large_icon') unless object.large_icon.nil?
4832
5002
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
4833
5003
  IconWriter.write_one(object.small_icon, writer, 'small_icon') unless object.small_icon.nil?
5004
+ Writer.write_string(writer, 'tpm_support', object.tpm_support) unless object.tpm_support.nil?
4834
5005
  writer.write_end
4835
5006
  end
4836
5007
 
@@ -5135,6 +5306,7 @@ module OvirtSDK4
5135
5306
  writer.write_start(singular)
5136
5307
  href = object.href
5137
5308
  writer.write_attribute('href', href) unless href.nil?
5309
+ Writer.write_string(writer, 'instance_id', object.instance_id) unless object.instance_id.nil?
5138
5310
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
5139
5311
  Writer.write_string(writer, 'vendor', object.vendor) unless object.vendor.nil?
5140
5312
  VersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
@@ -6036,10 +6208,12 @@ module OvirtSDK4
6036
6208
  href = object.href
6037
6209
  writer.write_attribute('href', href) unless href.nil?
6038
6210
  writer.write_attribute('id', object.id) unless object.id.nil?
6211
+ Writer.write_string(writer, 'auto_pinning_policy', object.auto_pinning_policy) unless object.auto_pinning_policy.nil?
6039
6212
  BiosWriter.write_one(object.bios, writer, 'bios') unless object.bios.nil?
6040
6213
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
6041
6214
  ConsoleWriter.write_one(object.console, writer, 'console') unless object.console.nil?
6042
6215
  CpuWriter.write_one(object.cpu, writer, 'cpu') unless object.cpu.nil?
6216
+ Writer.write_string(writer, 'cpu_pinning_policy', object.cpu_pinning_policy) unless object.cpu_pinning_policy.nil?
6043
6217
  Writer.write_integer(writer, 'cpu_shares', object.cpu_shares) unless object.cpu_shares.nil?
6044
6218
  Writer.write_date(writer, 'creation_time', object.creation_time) unless object.creation_time.nil?
6045
6219
  VersionWriter.write_one(object.custom_compatibility_version, writer, 'custom_compatibility_version') unless object.custom_compatibility_version.nil?
@@ -6090,11 +6264,14 @@ module OvirtSDK4
6090
6264
  Writer.write_date(writer, 'stop_time', object.stop_time) unless object.stop_time.nil?
6091
6265
  Writer.write_string(writer, 'storage_error_resume_behaviour', object.storage_error_resume_behaviour) unless object.storage_error_resume_behaviour.nil?
6092
6266
  TimeZoneWriter.write_one(object.time_zone, writer, 'time_zone') unless object.time_zone.nil?
6267
+ Writer.write_boolean(writer, 'tpm_enabled', object.tpm_enabled) unless object.tpm_enabled.nil?
6093
6268
  Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
6094
6269
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
6095
6270
  UsbWriter.write_one(object.usb, writer, 'usb') unless object.usb.nil?
6096
6271
  Writer.write_boolean(writer, 'use_latest_template_version', object.use_latest_template_version) unless object.use_latest_template_version.nil?
6097
6272
  VirtioScsiWriter.write_one(object.virtio_scsi, writer, 'virtio_scsi') unless object.virtio_scsi.nil?
6273
+ Writer.write_integer(writer, 'virtio_scsi_multi_queues', object.virtio_scsi_multi_queues) unless object.virtio_scsi_multi_queues.nil?
6274
+ Writer.write_boolean(writer, 'virtio_scsi_multi_queues_enabled', object.virtio_scsi_multi_queues_enabled) unless object.virtio_scsi_multi_queues_enabled.nil?
6098
6275
  AffinityLabelWriter.write_many(object.affinity_labels, writer, 'affinity_label', 'affinity_labels') unless object.affinity_labels.nil?
6099
6276
  ApplicationWriter.write_many(object.applications, writer, 'application', 'applications') unless object.applications.nil?
6100
6277
  CdromWriter.write_many(object.cdroms, writer, 'cdrom', 'cdroms') unless object.cdroms.nil?
@@ -6102,6 +6279,7 @@ module OvirtSDK4
6102
6279
  CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
6103
6280
  DiskAttachmentWriter.write_many(object.disk_attachments, writer, 'disk_attachment', 'disk_attachments') unless object.disk_attachments.nil?
6104
6281
  DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
6282
+ DynamicCpuWriter.write_one(object.dynamic_cpu, writer, 'dynamic_cpu') unless object.dynamic_cpu.nil?
6105
6283
  ExternalHostProviderWriter.write_one(object.external_host_provider, writer, 'external_host_provider') unless object.external_host_provider.nil?
6106
6284
  FloppyWriter.write_many(object.floppies, writer, 'floppy', 'floppies') unless object.floppies.nil?
6107
6285
  GraphicsConsoleWriter.write_many(object.graphics_consoles, writer, 'graphics_console', 'graphics_consoles') unless object.graphics_consoles.nil?
@@ -6109,6 +6287,7 @@ module OvirtSDK4
6109
6287
  HostDeviceWriter.write_many(object.host_devices, writer, 'host_device', 'host_devices') unless object.host_devices.nil?
6110
6288
  InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
6111
6289
  KatelloErratumWriter.write_many(object.katello_errata, writer, 'katello_erratum', 'katello_errata') unless object.katello_errata.nil?
6290
+ VmMediatedDeviceWriter.write_many(object.mediated_devices, writer, 'vm_mediated_device', 'mediated_devices') unless object.mediated_devices.nil?
6112
6291
  NicWriter.write_many(object.nics, writer, 'nic', 'nics') unless object.nics.nil?
6113
6292
  NumaNodeWriter.write_many(object.numa_nodes, writer, 'host_numa_node', 'host_numa_nodes') unless object.numa_nodes.nil?
6114
6293
  TemplateWriter.write_one(object.original_template, writer, 'original_template') unless object.original_template.nil?
@@ -6213,6 +6392,7 @@ module OvirtSDK4
6213
6392
  Writer.write_string(writer, 'fingerprint', object.fingerprint) unless object.fingerprint.nil?
6214
6393
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
6215
6394
  Writer.write_integer(writer, 'port', object.port) unless object.port.nil?
6395
+ Writer.write_string(writer, 'public_key', object.public_key) unless object.public_key.nil?
6216
6396
  UserWriter.write_one(object.user, writer, 'user') unless object.user.nil?
6217
6397
  writer.write_end
6218
6398
  end
@@ -6646,10 +6826,12 @@ module OvirtSDK4
6646
6826
  href = object.href
6647
6827
  writer.write_attribute('href', href) unless href.nil?
6648
6828
  writer.write_attribute('id', object.id) unless object.id.nil?
6829
+ Writer.write_string(writer, 'auto_pinning_policy', object.auto_pinning_policy) unless object.auto_pinning_policy.nil?
6649
6830
  BiosWriter.write_one(object.bios, writer, 'bios') unless object.bios.nil?
6650
6831
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
6651
6832
  ConsoleWriter.write_one(object.console, writer, 'console') unless object.console.nil?
6652
6833
  CpuWriter.write_one(object.cpu, writer, 'cpu') unless object.cpu.nil?
6834
+ Writer.write_string(writer, 'cpu_pinning_policy', object.cpu_pinning_policy) unless object.cpu_pinning_policy.nil?
6653
6835
  Writer.write_integer(writer, 'cpu_shares', object.cpu_shares) unless object.cpu_shares.nil?
6654
6836
  Writer.write_date(writer, 'creation_time', object.creation_time) unless object.creation_time.nil?
6655
6837
  VersionWriter.write_one(object.custom_compatibility_version, writer, 'custom_compatibility_version') unless object.custom_compatibility_version.nil?
@@ -6684,17 +6866,21 @@ module OvirtSDK4
6684
6866
  Writer.write_string(writer, 'status', object.status) unless object.status.nil?
6685
6867
  Writer.write_string(writer, 'storage_error_resume_behaviour', object.storage_error_resume_behaviour) unless object.storage_error_resume_behaviour.nil?
6686
6868
  TimeZoneWriter.write_one(object.time_zone, writer, 'time_zone') unless object.time_zone.nil?
6869
+ Writer.write_boolean(writer, 'tpm_enabled', object.tpm_enabled) unless object.tpm_enabled.nil?
6687
6870
  Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
6688
6871
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
6689
6872
  UsbWriter.write_one(object.usb, writer, 'usb') unless object.usb.nil?
6690
6873
  TemplateVersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
6691
6874
  VirtioScsiWriter.write_one(object.virtio_scsi, writer, 'virtio_scsi') unless object.virtio_scsi.nil?
6875
+ Writer.write_integer(writer, 'virtio_scsi_multi_queues', object.virtio_scsi_multi_queues) unless object.virtio_scsi_multi_queues.nil?
6876
+ Writer.write_boolean(writer, 'virtio_scsi_multi_queues_enabled', object.virtio_scsi_multi_queues_enabled) unless object.virtio_scsi_multi_queues_enabled.nil?
6692
6877
  VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
6693
6878
  CdromWriter.write_many(object.cdroms, writer, 'cdrom', 'cdroms') unless object.cdroms.nil?
6694
6879
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
6695
6880
  CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
6696
6881
  DiskAttachmentWriter.write_many(object.disk_attachments, writer, 'disk_attachment', 'disk_attachments') unless object.disk_attachments.nil?
6697
6882
  GraphicsConsoleWriter.write_many(object.graphics_consoles, writer, 'graphics_console', 'graphics_consoles') unless object.graphics_consoles.nil?
6883
+ VmMediatedDeviceWriter.write_many(object.mediated_devices, writer, 'vm_mediated_device', 'mediated_devices') unless object.mediated_devices.nil?
6698
6884
  NicWriter.write_many(object.nics, writer, 'nic', 'nics') unless object.nics.nil?
6699
6885
  PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
6700
6886
  QuotaWriter.write_one(object.quota, writer, 'quota') unless object.quota.nil?
@@ -6915,6 +7101,7 @@ module OvirtSDK4
6915
7101
  PropertyWriter.write_many(object.user_options, writer, 'property', 'user_options') unless object.user_options.nil?
6916
7102
  DomainWriter.write_one(object.domain, writer, 'domain') unless object.domain.nil?
6917
7103
  GroupWriter.write_many(object.groups, writer, 'group', 'groups') unless object.groups.nil?
7104
+ UserOptionWriter.write_many(object.options, writer, 'user_option', 'options') unless object.options.nil?
6918
7105
  PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
6919
7106
  RoleWriter.write_many(object.roles, writer, 'role', 'roles') unless object.roles.nil?
6920
7107
  SshPublicKeyWriter.write_many(object.ssh_public_keys, writer, 'ssh_public_key', 'ssh_public_keys') unless object.ssh_public_keys.nil?
@@ -6938,6 +7125,38 @@ module OvirtSDK4
6938
7125
 
6939
7126
  end
6940
7127
 
7128
+ class UserOptionWriter < Writer
7129
+
7130
+ def self.write_one(object, writer, singular = nil)
7131
+ singular ||= 'user_option'
7132
+ writer.write_start(singular)
7133
+ href = object.href
7134
+ writer.write_attribute('href', href) unless href.nil?
7135
+ writer.write_attribute('id', object.id) unless object.id.nil?
7136
+ Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
7137
+ Writer.write_string(writer, 'content', object.content) unless object.content.nil?
7138
+ Writer.write_string(writer, 'description', object.description) unless object.description.nil?
7139
+ Writer.write_string(writer, 'name', object.name) unless object.name.nil?
7140
+ UserWriter.write_one(object.user, writer, 'user') unless object.user.nil?
7141
+ writer.write_end
7142
+ end
7143
+
7144
+ def self.write_many(list, writer, singular = nil, plural = nil)
7145
+ singular ||= 'user_option'
7146
+ plural ||= 'user_options'
7147
+ writer.write_start(plural)
7148
+ if list.is_a?(List)
7149
+ href = list.href
7150
+ writer.write_attribute('href', href) unless href.nil?
7151
+ end
7152
+ list.each do |item|
7153
+ write_one(item, writer, singular)
7154
+ end
7155
+ writer.write_end
7156
+ end
7157
+
7158
+ end
7159
+
6941
7160
  class ValueWriter < Writer
6942
7161
 
6943
7162
  def self.write_one(object, writer, singular = nil)
@@ -7102,6 +7321,7 @@ module OvirtSDK4
7102
7321
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
7103
7322
  Writer.write_string(writer, 'node_distance', object.node_distance) unless object.node_distance.nil?
7104
7323
  NumaNodePinWriter.write_many(object.numa_node_pins, writer, 'numa_node_pin', 'numa_node_pins') unless object.numa_node_pins.nil?
7324
+ Writer.write_string(writer, 'numa_tune_mode', object.numa_tune_mode) unless object.numa_tune_mode.nil?
7105
7325
  HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
7106
7326
  StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
7107
7327
  VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
@@ -7159,10 +7379,12 @@ module OvirtSDK4
7159
7379
  href = object.href
7160
7380
  writer.write_attribute('href', href) unless href.nil?
7161
7381
  writer.write_attribute('id', object.id) unless object.id.nil?
7382
+ Writer.write_string(writer, 'auto_pinning_policy', object.auto_pinning_policy) unless object.auto_pinning_policy.nil?
7162
7383
  BiosWriter.write_one(object.bios, writer, 'bios') unless object.bios.nil?
7163
7384
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
7164
7385
  ConsoleWriter.write_one(object.console, writer, 'console') unless object.console.nil?
7165
7386
  CpuWriter.write_one(object.cpu, writer, 'cpu') unless object.cpu.nil?
7387
+ Writer.write_string(writer, 'cpu_pinning_policy', object.cpu_pinning_policy) unless object.cpu_pinning_policy.nil?
7166
7388
  Writer.write_integer(writer, 'cpu_shares', object.cpu_shares) unless object.cpu_shares.nil?
7167
7389
  Writer.write_date(writer, 'creation_time', object.creation_time) unless object.creation_time.nil?
7168
7390
  VersionWriter.write_one(object.custom_compatibility_version, writer, 'custom_compatibility_version') unless object.custom_compatibility_version.nil?
@@ -7209,17 +7431,21 @@ module OvirtSDK4
7209
7431
  Writer.write_date(writer, 'stop_time', object.stop_time) unless object.stop_time.nil?
7210
7432
  Writer.write_string(writer, 'storage_error_resume_behaviour', object.storage_error_resume_behaviour) unless object.storage_error_resume_behaviour.nil?
7211
7433
  TimeZoneWriter.write_one(object.time_zone, writer, 'time_zone') unless object.time_zone.nil?
7434
+ Writer.write_boolean(writer, 'tpm_enabled', object.tpm_enabled) unless object.tpm_enabled.nil?
7212
7435
  Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
7213
7436
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
7214
7437
  UsbWriter.write_one(object.usb, writer, 'usb') unless object.usb.nil?
7215
7438
  Writer.write_boolean(writer, 'use_latest_template_version', object.use_latest_template_version) unless object.use_latest_template_version.nil?
7216
7439
  VirtioScsiWriter.write_one(object.virtio_scsi, writer, 'virtio_scsi') unless object.virtio_scsi.nil?
7440
+ Writer.write_integer(writer, 'virtio_scsi_multi_queues', object.virtio_scsi_multi_queues) unless object.virtio_scsi_multi_queues.nil?
7441
+ Writer.write_boolean(writer, 'virtio_scsi_multi_queues_enabled', object.virtio_scsi_multi_queues_enabled) unless object.virtio_scsi_multi_queues_enabled.nil?
7217
7442
  AffinityLabelWriter.write_many(object.affinity_labels, writer, 'affinity_label', 'affinity_labels') unless object.affinity_labels.nil?
7218
7443
  ApplicationWriter.write_many(object.applications, writer, 'application', 'applications') unless object.applications.nil?
7219
7444
  CdromWriter.write_many(object.cdroms, writer, 'cdrom', 'cdroms') unless object.cdroms.nil?
7220
7445
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
7221
7446
  CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
7222
7447
  DiskAttachmentWriter.write_many(object.disk_attachments, writer, 'disk_attachment', 'disk_attachments') unless object.disk_attachments.nil?
7448
+ DynamicCpuWriter.write_one(object.dynamic_cpu, writer, 'dynamic_cpu') unless object.dynamic_cpu.nil?
7223
7449
  ExternalHostProviderWriter.write_one(object.external_host_provider, writer, 'external_host_provider') unless object.external_host_provider.nil?
7224
7450
  FloppyWriter.write_many(object.floppies, writer, 'floppy', 'floppies') unless object.floppies.nil?
7225
7451
  GraphicsConsoleWriter.write_many(object.graphics_consoles, writer, 'graphics_console', 'graphics_consoles') unless object.graphics_consoles.nil?
@@ -7227,6 +7453,7 @@ module OvirtSDK4
7227
7453
  HostDeviceWriter.write_many(object.host_devices, writer, 'host_device', 'host_devices') unless object.host_devices.nil?
7228
7454
  InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
7229
7455
  KatelloErratumWriter.write_many(object.katello_errata, writer, 'katello_erratum', 'katello_errata') unless object.katello_errata.nil?
7456
+ VmMediatedDeviceWriter.write_many(object.mediated_devices, writer, 'vm_mediated_device', 'mediated_devices') unless object.mediated_devices.nil?
7230
7457
  NicWriter.write_many(object.nics, writer, 'nic', 'nics') unless object.nics.nil?
7231
7458
  NumaNodeWriter.write_many(object.numa_nodes, writer, 'host_numa_node', 'host_numa_nodes') unless object.numa_nodes.nil?
7232
7459
  TemplateWriter.write_one(object.original_template, writer, 'original_template') unless object.original_template.nil?
@@ -7268,10 +7495,12 @@ module OvirtSDK4
7268
7495
  href = object.href
7269
7496
  writer.write_attribute('href', href) unless href.nil?
7270
7497
  writer.write_attribute('id', object.id) unless object.id.nil?
7498
+ Writer.write_string(writer, 'auto_pinning_policy', object.auto_pinning_policy) unless object.auto_pinning_policy.nil?
7271
7499
  BiosWriter.write_one(object.bios, writer, 'bios') unless object.bios.nil?
7272
7500
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
7273
7501
  ConsoleWriter.write_one(object.console, writer, 'console') unless object.console.nil?
7274
7502
  CpuWriter.write_one(object.cpu, writer, 'cpu') unless object.cpu.nil?
7503
+ Writer.write_string(writer, 'cpu_pinning_policy', object.cpu_pinning_policy) unless object.cpu_pinning_policy.nil?
7275
7504
  Writer.write_integer(writer, 'cpu_shares', object.cpu_shares) unless object.cpu_shares.nil?
7276
7505
  Writer.write_date(writer, 'creation_time', object.creation_time) unless object.creation_time.nil?
7277
7506
  VersionWriter.write_one(object.custom_compatibility_version, writer, 'custom_compatibility_version') unless object.custom_compatibility_version.nil?
@@ -7305,10 +7534,13 @@ module OvirtSDK4
7305
7534
  Writer.write_boolean(writer, 'stateless', object.stateless) unless object.stateless.nil?
7306
7535
  Writer.write_string(writer, 'storage_error_resume_behaviour', object.storage_error_resume_behaviour) unless object.storage_error_resume_behaviour.nil?
7307
7536
  TimeZoneWriter.write_one(object.time_zone, writer, 'time_zone') unless object.time_zone.nil?
7537
+ Writer.write_boolean(writer, 'tpm_enabled', object.tpm_enabled) unless object.tpm_enabled.nil?
7308
7538
  Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
7309
7539
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
7310
7540
  UsbWriter.write_one(object.usb, writer, 'usb') unless object.usb.nil?
7311
7541
  VirtioScsiWriter.write_one(object.virtio_scsi, writer, 'virtio_scsi') unless object.virtio_scsi.nil?
7542
+ Writer.write_integer(writer, 'virtio_scsi_multi_queues', object.virtio_scsi_multi_queues) unless object.virtio_scsi_multi_queues.nil?
7543
+ Writer.write_boolean(writer, 'virtio_scsi_multi_queues_enabled', object.virtio_scsi_multi_queues_enabled) unless object.virtio_scsi_multi_queues_enabled.nil?
7312
7544
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
7313
7545
  CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
7314
7546
  QuotaWriter.write_one(object.quota, writer, 'quota') unless object.quota.nil?
@@ -7332,6 +7564,41 @@ module OvirtSDK4
7332
7564
 
7333
7565
  end
7334
7566
 
7567
+ class VmMediatedDeviceWriter < Writer
7568
+
7569
+ def self.write_one(object, writer, singular = nil)
7570
+ singular ||= 'vm_mediated_device'
7571
+ writer.write_start(singular)
7572
+ href = object.href
7573
+ writer.write_attribute('href', href) unless href.nil?
7574
+ writer.write_attribute('id', object.id) unless object.id.nil?
7575
+ Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
7576
+ Writer.write_string(writer, 'description', object.description) unless object.description.nil?
7577
+ Writer.write_string(writer, 'name', object.name) unless object.name.nil?
7578
+ PropertyWriter.write_many(object.spec_params, writer, 'property', 'spec_params') unless object.spec_params.nil?
7579
+ InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
7580
+ TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
7581
+ VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
7582
+ VmWriter.write_many(object.vms, writer, 'vm', 'vms') unless object.vms.nil?
7583
+ writer.write_end
7584
+ end
7585
+
7586
+ def self.write_many(list, writer, singular = nil, plural = nil)
7587
+ singular ||= 'vm_mediated_device'
7588
+ plural ||= 'vm_mediated_devices'
7589
+ writer.write_start(plural)
7590
+ if list.is_a?(List)
7591
+ href = list.href
7592
+ writer.write_attribute('href', href) unless href.nil?
7593
+ end
7594
+ list.each do |item|
7595
+ write_one(item, writer, singular)
7596
+ end
7597
+ writer.write_end
7598
+ end
7599
+
7600
+ end
7601
+
7335
7602
  class VmPlacementPolicyWriter < Writer
7336
7603
 
7337
7604
  def self.write_one(object, writer, singular = nil)
@@ -7379,6 +7646,7 @@ module OvirtSDK4
7379
7646
  Writer.write_integer(writer, 'size', object.size) unless object.size.nil?
7380
7647
  Writer.write_boolean(writer, 'soundcard_enabled', object.soundcard_enabled) unless object.soundcard_enabled.nil?
7381
7648
  Writer.write_boolean(writer, 'stateful', object.stateful) unless object.stateful.nil?
7649
+ Writer.write_boolean(writer, 'tpm_enabled', object.tpm_enabled) unless object.tpm_enabled.nil?
7382
7650
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
7383
7651
  Writer.write_boolean(writer, 'use_latest_template_version', object.use_latest_template_version) unless object.use_latest_template_version.nil?
7384
7652
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
@@ -7476,6 +7744,7 @@ module OvirtSDK4
7476
7744
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
7477
7745
  VnicPassThroughWriter.write_one(object.pass_through, writer, 'pass_through') unless object.pass_through.nil?
7478
7746
  Writer.write_boolean(writer, 'port_mirroring', object.port_mirroring) unless object.port_mirroring.nil?
7747
+ VnicProfileWriter.write_one(object.failover, writer, 'failover') unless object.failover.nil?
7479
7748
  NetworkWriter.write_one(object.network, writer, 'network') unless object.network.nil?
7480
7749
  NetworkFilterWriter.write_one(object.network_filter, writer, 'network_filter') unless object.network_filter.nil?
7481
7750
  PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
@@ -7648,6 +7917,7 @@ module OvirtSDK4
7648
7917
  Writer.register(BrickProfileDetail, BrickProfileDetailWriter.method(:write_one))
7649
7918
  Writer.register(Cdrom, CdromWriter.method(:write_one))
7650
7919
  Writer.register(Certificate, CertificateWriter.method(:write_one))
7920
+ Writer.register(Checkpoint, CheckpointWriter.method(:write_one))
7651
7921
  Writer.register(CloudInit, CloudInitWriter.method(:write_one))
7652
7922
  Writer.register(Cluster, ClusterWriter.method(:write_one))
7653
7923
  Writer.register(ClusterFeature, ClusterFeatureWriter.method(:write_one))
@@ -7671,6 +7941,7 @@ module OvirtSDK4
7671
7941
  Writer.register(Dns, DnsWriter.method(:write_one))
7672
7942
  Writer.register(DnsResolverConfiguration, DnsResolverConfigurationWriter.method(:write_one))
7673
7943
  Writer.register(Domain, DomainWriter.method(:write_one))
7944
+ Writer.register(DynamicCpu, DynamicCpuWriter.method(:write_one))
7674
7945
  Writer.register(EntityProfileDetail, EntityProfileDetailWriter.method(:write_one))
7675
7946
  Writer.register(ErrorHandling, ErrorHandlingWriter.method(:write_one))
7676
7947
  Writer.register(Event, EventWriter.method(:write_one))
@@ -7682,6 +7953,7 @@ module OvirtSDK4
7682
7953
  Writer.register(ExternalHostProvider, ExternalHostProviderWriter.method(:write_one))
7683
7954
  Writer.register(ExternalNetworkProviderConfiguration, ExternalNetworkProviderConfigurationWriter.method(:write_one))
7684
7955
  Writer.register(ExternalProvider, ExternalProviderWriter.method(:write_one))
7956
+ Writer.register(ExternalTemplateImport, ExternalTemplateImportWriter.method(:write_one))
7685
7957
  Writer.register(ExternalVmImport, ExternalVmImportWriter.method(:write_one))
7686
7958
  Writer.register(Fault, FaultWriter.method(:write_one))
7687
7959
  Writer.register(FencingPolicy, FencingPolicyWriter.method(:write_one))
@@ -7706,6 +7978,7 @@ module OvirtSDK4
7706
7978
  Writer.register(HighAvailability, HighAvailabilityWriter.method(:write_one))
7707
7979
  Writer.register(Hook, HookWriter.method(:write_one))
7708
7980
  Writer.register(Host, HostWriter.method(:write_one))
7981
+ Writer.register(HostCpuUnit, HostCpuUnitWriter.method(:write_one))
7709
7982
  Writer.register(HostDevice, HostDeviceWriter.method(:write_one))
7710
7983
  Writer.register(HostDevicePassthrough, HostDevicePassthroughWriter.method(:write_one))
7711
7984
  Writer.register(HostNic, HostNicWriter.method(:write_one))
@@ -7821,6 +8094,7 @@ module OvirtSDK4
7821
8094
  Writer.register(UnmanagedNetwork, UnmanagedNetworkWriter.method(:write_one))
7822
8095
  Writer.register(Usb, UsbWriter.method(:write_one))
7823
8096
  Writer.register(User, UserWriter.method(:write_one))
8097
+ Writer.register(UserOption, UserOptionWriter.method(:write_one))
7824
8098
  Writer.register(Value, ValueWriter.method(:write_one))
7825
8099
  Writer.register(VcpuPin, VcpuPinWriter.method(:write_one))
7826
8100
  Writer.register(Vendor, VendorWriter.method(:write_one))
@@ -7830,6 +8104,7 @@ module OvirtSDK4
7830
8104
  Writer.register(Vlan, VlanWriter.method(:write_one))
7831
8105
  Writer.register(Vm, VmWriter.method(:write_one))
7832
8106
  Writer.register(VmBase, VmBaseWriter.method(:write_one))
8107
+ Writer.register(VmMediatedDevice, VmMediatedDeviceWriter.method(:write_one))
7833
8108
  Writer.register(VmPlacementPolicy, VmPlacementPolicyWriter.method(:write_one))
7834
8109
  Writer.register(VmPool, VmPoolWriter.method(:write_one))
7835
8110
  Writer.register(VmSummary, VmSummaryWriter.method(:write_one))