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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0acdc6d86eabc4cce313feae53d6b93730dec503
4
- data.tar.gz: cfc08b042e974243286497c29e426d700407ec05
2
+ SHA256:
3
+ metadata.gz: 3cbf21cc36a2d2e6cc01b2c93a66c911d986f701204f5da8c9a546dd03eda60e
4
+ data.tar.gz: 0102e341d81119a0f2e6c8181e2931c1bf57134836d1cc4a8d28eace0c873287
5
5
  SHA512:
6
- metadata.gz: 2735fbbba05029dd00f7af23acebc26f777f958abdca5c380df63b804c3c984099f07f1d4d7dcf22f3803bd209dcc567e32967d5d5d8dc4f8de2f8da77aedc47
7
- data.tar.gz: b045671bbb4687ff020cbe5cc66bd31128a21fbc00a65157e8d70ebaee3e73e081ba237be7313b020443fb52480e80e65c16a139fec476445eb38ac51b89a9ad
6
+ metadata.gz: ee46d1debeafe7d3fe376f86413aaa650ba99e7bc2e211868b2418a6597c832e0bb3f8aa0da8cfff4ec3501d41af66a74fad9125c5a3550b8ddd4ffa1a3f3c2c
7
+ data.tar.gz: b0f854782e5e8257056d51c03e070d509972baa175c8006d06e3e75ad13968eef5624b4fd23a58ff65c8258df93060b0b6e9a34d11bc601edcbbfbcffa7729db
data/CHANGES.adoc CHANGED
@@ -2,6 +2,105 @@
2
2
 
3
3
  This document describes the relevant changes between releases of the SDK.
4
4
 
5
+ == 4.4.1 / Feb 23 2021
6
+ Upgrade to model 4.4.22, metamodel 1.3.4
7
+
8
+ * Remove python dependencies from build scripts
9
+
10
+ == 4.4.0 / Apr 6 2020
11
+ Update to model 4.4.14.
12
+
13
+ New features:
14
+
15
+ * Rubocop patch version and cop namespace changes
16
+
17
+ * automation: add stdci v2 configuration
18
+
19
+ * automation: prepare for el8 build, python3 support and openjdk-11
20
+
21
+ * automation: add fc30, el8 spec files
22
+
23
+ * packaging: change spec files according to fedora rubygem rpmbuild guidelines
24
+
25
+ Deprecations:
26
+
27
+ * packaging: drop fc28, fc29, el7
28
+
29
+ * automation: drop fc28, fc29, el7
30
+
31
+ == 4.3.0 / Jan 16 2018
32
+ Update to model 4.3.21.
33
+
34
+ New features:
35
+
36
+ * Add `activate` input param to add/install/approve host
37
+ http://bugzilla.redhat.com/1561539[1561539].
38
+
39
+ * Added support for incremental backup.
40
+
41
+ * Added block size Storage domain property
42
+ https://bugzilla.redhat.com/1592916[1592916].
43
+
44
+ * Added V5 storage format
45
+ https://bugzilla.redhat.com/1592916[1592916].
46
+
47
+ * Add driverSensitiveOptions to managed block storage type.
48
+
49
+ * Add managed block storage type.
50
+
51
+ * Setup networks commit on success.
52
+
53
+ * Add vGPU placement to Host
54
+ https://bugzilla.redhat.com/1641125[1641125].
55
+
56
+ * Specify cloud-init protocol in vm intialization
57
+ https://bugzilla.redhat.com/1611889[1611889].
58
+
59
+ * Added SATA to DiskInterface enum.
60
+
61
+ * Add disks link to Snapshot type.
62
+
63
+ Bug fixes:
64
+
65
+ * Change HostNic statistics and labels to Link
66
+ https://bugzilla.redhat.com/1661207[1661207].
67
+
68
+ == 4.2.5 / Oct 5 2018
69
+ Update to model 4.2.32.
70
+
71
+ New features:
72
+
73
+ * Add support for OpenStack Identity API v3
74
+ https://bugzilla.redhat.com/1598391[1598391].
75
+
76
+ * Added linkedGlusterVolume to the StorageServerConnection
77
+ type and services
78
+ https://bugzilla.redhat.com/1563257[1563257].
79
+
80
+ * Add sync all networks in cluster
81
+ https://bugzilla.redhat.com/1558847[1558847].
82
+
83
+ * Add note to upgrade host
84
+ https://bugzilla.redhat.com/1603020[1603020].
85
+
86
+ * Indicate network operation in progress
87
+ https://bugzilla.redhat.com/1477599[1477599].
88
+
89
+ * Poly dhcpv6 and autoconf iface config
90
+ https://bugzilla.redhat.com/1360839[1360839].
91
+
92
+ * Add 'Multi Queues Enabled' to VmBase
93
+ https://bugzilla.redhat.com/1574771[1574771].
94
+
95
+ * Added Reduce action to Disk services
96
+ https://bugzilla.redhat.com/1443963[#1443963].
97
+
98
+ * Add documentation to DiskService
99
+ https://bugzilla.redhat.com/1585572[1585572].
100
+
101
+ * Add search parameter to providers
102
+ https://bugzilla.redhat.com/1572071[#1572071].
103
+
5
104
  == 4.2.4 / Apr 17 2018
6
105
  Update to model 4.2.32.
7
106
 
@@ -16,7 +16,6 @@
16
16
 
17
17
  require 'json'
18
18
  require 'tempfile'
19
- require 'thread'
20
19
  require 'uri'
21
20
 
22
21
  module OvirtSDK4
@@ -155,18 +154,18 @@ module OvirtSDK4
155
154
 
156
155
  # Create the HTTP client:
157
156
  @client = HttpClient.new(
158
- insecure: @insecure,
159
- ca_file: @ca_store ? @ca_store.path : nil,
160
- debug: @debug,
161
- log: @log,
162
- timeout: @timeout,
157
+ insecure: @insecure,
158
+ ca_file: @ca_store ? @ca_store.path : nil,
159
+ debug: @debug,
160
+ log: @log,
161
+ timeout: @timeout,
163
162
  connect_timeout: @connect_timeout,
164
- compress: @compress,
165
- proxy_url: @proxy_url,
166
- proxy_username: @proxy_username,
167
- proxy_password: @proxy_password,
168
- connections: @connections,
169
- pipeline: @pipeline
163
+ compress: @compress,
164
+ proxy_url: @proxy_url,
165
+ proxy_username: @proxy_username,
166
+ proxy_password: @proxy_password,
167
+ connections: @connections,
168
+ pipeline: @pipeline
170
169
  )
171
170
  end
172
171
 
@@ -232,6 +231,7 @@ module OvirtSDK4
232
231
  true
233
232
  rescue StandardError
234
233
  raise if raise_exception
234
+
235
235
  false
236
236
  end
237
237
 
@@ -244,7 +244,9 @@ module OvirtSDK4
244
244
  # @return [String]
245
245
  #
246
246
  def authenticate
247
+ # rubocop:disable Naming/MemoizedInstanceVariableName
247
248
  @token ||= create_access_token
249
+ # rubocop:enable Naming/MemoizedInstanceVariableName
248
250
  end
249
251
 
250
252
  #
@@ -416,14 +418,14 @@ module OvirtSDK4
416
418
  #
417
419
  # @api private
418
420
  #
419
- JSON_CONTENT_TYPE_RE = %r{^\s*(application|text)/json\s*(;.*)?$}i
421
+ JSON_CONTENT_TYPE_RE = %r{^\s*(application|text)/json\s*(;.*)?$}i.freeze
420
422
 
421
423
  #
422
424
  # Regular expression used to check XML content type.
423
425
  #
424
426
  # @api private
425
427
  #
426
- XML_CONTENT_TYPE_RE = %r{^\s*(application|text)/xml\s*(;.*)?$}i
428
+ XML_CONTENT_TYPE_RE = %r{^\s*(application|text)/xml\s*(;.*)?$}i.freeze
427
429
 
428
430
  #
429
431
  # The typical URL path, used just to generate informative error messages.
@@ -444,6 +446,7 @@ module OvirtSDK4
444
446
  def check_content_type(expected_re, expected_name, response)
445
447
  content_type = response.headers['content-type']
446
448
  return if expected_re =~ content_type
449
+
447
450
  detail = "The response content type '#{content_type}' isn't #{expected_name}"
448
451
  url = URI(@url)
449
452
  if url.path != TYPICAL_PATH
@@ -510,9 +513,9 @@ module OvirtSDK4
510
513
  request.method = :POST
511
514
  request.url = url
512
515
  request.headers = {
513
- 'User-Agent' => "RubySDK/#{VERSION}",
516
+ 'User-Agent' => "RubySDK/#{VERSION}",
514
517
  'Content-Type' => 'application/x-www-form-urlencoded',
515
- 'Accept' => 'application/json'
518
+ 'Accept' => 'application/json'
516
519
  }
517
520
  request.body = URI.encode_www_form(parameters)
518
521
 
@@ -551,8 +554,8 @@ module OvirtSDK4
551
554
  entry_point = 'token'
552
555
  parameters.merge!(
553
556
  grant_type: 'password',
554
- username: @username,
555
- password: @password
557
+ username: @username,
558
+ password: @password
556
559
  )
557
560
  end
558
561
 
@@ -183,6 +183,7 @@ module OvirtSDK4
183
183
  def probe
184
184
  path = detect_path
185
185
  raise Error, 'API path not found' unless path
186
+
186
187
  detect_version(path).map { |version| ProbeResult.new(version: version) }
187
188
  end
188
189
 
@@ -243,16 +244,15 @@ module OvirtSDK4
243
244
  @client.send(request)
244
245
  response = @client.wait(request)
245
246
  raise response if response.is_a?(Exception)
247
+
246
248
  response
247
249
  end
248
250
 
249
251
  def detect_path
250
252
  PATH_CANDIDATES.each do |path|
251
- begin
252
- response = send(path: path)
253
- return path if response.code == 200
254
- raise AuthError, 'Unauthorized' if response.code == 401
255
- end
253
+ response = send(path: path)
254
+ return path if response.code == 200
255
+ raise AuthError, 'Unauthorized' if response.code == 401
256
256
  end
257
257
  nil
258
258
  end
@@ -51,11 +51,12 @@ module OvirtSDK4
51
51
  #
52
52
  def self.parse_boolean(text)
53
53
  return nil if text.nil?
54
+
54
55
  case text.downcase
55
56
  when 'false', '0'
56
- return false
57
+ false
57
58
  when 'true', '1'
58
- return true
59
+ true
59
60
  else
60
61
  raise Error, "The text '#{text}' isn't a valid boolean value."
61
62
  end
@@ -90,8 +91,9 @@ module OvirtSDK4
90
91
  #
91
92
  def self.parse_integer(text)
92
93
  return nil if text.nil?
94
+
93
95
  begin
94
- return Integer(text, 10)
96
+ Integer(text, 10)
95
97
  rescue ArgumentError
96
98
  raise Error, "The text '#{text}' isn't a valid integer value."
97
99
  end
@@ -125,8 +127,9 @@ module OvirtSDK4
125
127
  #
126
128
  def self.parse_decimal(text)
127
129
  return nil if text.nil?
130
+
128
131
  begin
129
- return Float(text)
132
+ Float(text)
130
133
  rescue ArgumentError
131
134
  raise Error, "The text '#{text}' isn't a valid decimal value."
132
135
  end
@@ -161,8 +164,9 @@ module OvirtSDK4
161
164
  #
162
165
  def self.parse_date(text)
163
166
  return nil if text.nil?
167
+
164
168
  begin
165
- return DateTime.xmlschema(text)
169
+ DateTime.xmlschema(text)
166
170
  rescue ArgumentError
167
171
  raise Error, "The text '#{text}' isn't a valid date."
168
172
  end
@@ -198,6 +202,7 @@ module OvirtSDK4
198
202
  #
199
203
  def self.parse_enum(enum_module, text)
200
204
  return nil unless text
205
+
201
206
  values = enum_module.constants.map { |const| enum_module.const_get(const) }
202
207
  values.detect { |value| value.casecmp(text).zero? }
203
208
  end
@@ -28,10 +28,14 @@ module OvirtSDK4
28
28
 
29
29
  # Process the attributes:
30
30
  object.href = reader.get_attribute('href')
31
+ value = reader.get_attribute('activate')
32
+ object.activate = value if not value.nil?
31
33
  value = reader.get_attribute('allow_partial_import')
32
34
  object.allow_partial_import = value if not value.nil?
33
35
  value = reader.get_attribute('async')
34
36
  object.async = value if not value.nil?
37
+ value = reader.get_attribute('auto_pinning_policy')
38
+ object.auto_pinning_policy = value if not value.nil?
35
39
  value = reader.get_attribute('check_connectivity')
36
40
  object.check_connectivity = value if not value.nil?
37
41
  value = reader.get_attribute('clone')
@@ -42,6 +46,8 @@ module OvirtSDK4
42
46
  object.collapse_snapshots = value if not value.nil?
43
47
  value = reader.get_attribute('comment')
44
48
  object.comment = value if not value.nil?
49
+ value = reader.get_attribute('commit_on_success')
50
+ object.commit_on_success = value if not value.nil?
45
51
  value = reader.get_attribute('connectivity_timeout')
46
52
  object.connectivity_timeout = value if not value.nil?
47
53
  value = reader.get_attribute('deploy_hosted_engine')
@@ -72,10 +78,16 @@ module OvirtSDK4
72
78
  object.import_as_template = value if not value.nil?
73
79
  value = reader.get_attribute('is_attached')
74
80
  object.is_attached = value if not value.nil?
81
+ value = reader.get_attribute('maintenance_after_restart')
82
+ object.maintenance_after_restart = value if not value.nil?
75
83
  value = reader.get_attribute('maintenance_enabled')
76
84
  object.maintenance_enabled = value if not value.nil?
85
+ value = reader.get_attribute('migrate_vms_in_affinity_closure')
86
+ object.migrate_vms_in_affinity_closure = value if not value.nil?
77
87
  value = reader.get_attribute('name')
78
88
  object.name = value if not value.nil?
89
+ value = reader.get_attribute('optimize_cpu_settings')
90
+ object.optimize_cpu_settings = value if not value.nil?
79
91
  value = reader.get_attribute('pause')
80
92
  object.pause = value if not value.nil?
81
93
  value = reader.get_attribute('reason')
@@ -100,10 +112,18 @@ module OvirtSDK4
100
112
  object.stop_gluster_service = value if not value.nil?
101
113
  value = reader.get_attribute('succeeded')
102
114
  object.succeeded = value if not value.nil?
115
+ value = reader.get_attribute('timeout')
116
+ object.timeout = value if not value.nil?
103
117
  value = reader.get_attribute('undeploy_hosted_engine')
104
118
  object.undeploy_hosted_engine = value if not value.nil?
119
+ value = reader.get_attribute('upgrade_action')
120
+ object.upgrade_action = value if not value.nil?
105
121
  value = reader.get_attribute('use_cloud_init')
106
122
  object.use_cloud_init = value if not value.nil?
123
+ value = reader.get_attribute('use_ignition')
124
+ object.use_ignition = value if not value.nil?
125
+ value = reader.get_attribute('use_initialization')
126
+ object.use_initialization = value if not value.nil?
107
127
  value = reader.get_attribute('use_sysprep')
108
128
  object.use_sysprep = value if not value.nil?
109
129
  value = reader.get_attribute('volatile')
@@ -117,6 +137,8 @@ module OvirtSDK4
117
137
  # Process the inner elements:
118
138
  while reader.forward do
119
139
  case reader.node_name
140
+ when 'activate'
141
+ object.activate = Reader.read_boolean(reader)
120
142
  when 'allow_partial_import'
121
143
  object.allow_partial_import = Reader.read_boolean(reader)
122
144
  when 'async'
@@ -125,6 +147,8 @@ module OvirtSDK4
125
147
  object.attachment = DiskAttachmentReader.read_one(reader)
126
148
  when 'authorized_key'
127
149
  object.authorized_key = AuthorizedKeyReader.read_one(reader)
150
+ when 'auto_pinning_policy'
151
+ object.auto_pinning_policy = Reader.read_enum(AutoPinningPolicy, reader)
128
152
  when 'bricks'
129
153
  object.bricks = GlusterBrickReader.read_many(reader)
130
154
  when 'certificates'
@@ -141,6 +165,8 @@ module OvirtSDK4
141
165
  object.collapse_snapshots = Reader.read_boolean(reader)
142
166
  when 'comment'
143
167
  object.comment = Reader.read_string(reader)
168
+ when 'commit_on_success'
169
+ object.commit_on_success = Reader.read_boolean(reader)
144
170
  when 'connection'
145
171
  object.connection = StorageConnectionReader.read_one(reader)
146
172
  when 'connectivity_timeout'
@@ -203,8 +229,12 @@ module OvirtSDK4
203
229
  object.lease = StorageDomainLeaseReader.read_one(reader)
204
230
  when 'logical_units'
205
231
  object.logical_units = LogicalUnitReader.read_many(reader)
232
+ when 'maintenance_after_restart'
233
+ object.maintenance_after_restart = Reader.read_boolean(reader)
206
234
  when 'maintenance_enabled'
207
235
  object.maintenance_enabled = Reader.read_boolean(reader)
236
+ when 'migrate_vms_in_affinity_closure'
237
+ object.migrate_vms_in_affinity_closure = Reader.read_boolean(reader)
208
238
  when 'modified_bonds'
209
239
  object.modified_bonds = HostNicReader.read_many(reader)
210
240
  when 'modified_labels'
@@ -213,6 +243,8 @@ module OvirtSDK4
213
243
  object.modified_network_attachments = NetworkAttachmentReader.read_many(reader)
214
244
  when 'name'
215
245
  object.name = Reader.read_string(reader)
246
+ when 'optimize_cpu_settings'
247
+ object.optimize_cpu_settings = Reader.read_boolean(reader)
216
248
  when 'option'
217
249
  object.option = OptionReader.read_one(reader)
218
250
  when 'pause'
@@ -251,6 +283,8 @@ module OvirtSDK4
251
283
  object.seal = Reader.read_boolean(reader)
252
284
  when 'snapshot'
253
285
  object.snapshot = SnapshotReader.read_one(reader)
286
+ when 'source_host'
287
+ object.source_host = HostReader.read_one(reader)
254
288
  when 'ssh'
255
289
  object.ssh = SshReader.read_one(reader)
256
290
  when 'status'
@@ -269,10 +303,18 @@ module OvirtSDK4
269
303
  object.template = TemplateReader.read_one(reader)
270
304
  when 'ticket'
271
305
  object.ticket = TicketReader.read_one(reader)
306
+ when 'timeout'
307
+ object.timeout = Reader.read_integer(reader)
272
308
  when 'undeploy_hosted_engine'
273
309
  object.undeploy_hosted_engine = Reader.read_boolean(reader)
310
+ when 'upgrade_action'
311
+ object.upgrade_action = Reader.read_enum(ClusterUpgradeAction, reader)
274
312
  when 'use_cloud_init'
275
313
  object.use_cloud_init = Reader.read_boolean(reader)
314
+ when 'use_ignition'
315
+ object.use_ignition = Reader.read_boolean(reader)
316
+ when 'use_initialization'
317
+ object.use_initialization = Reader.read_boolean(reader)
276
318
  when 'use_sysprep'
277
319
  object.use_sysprep = Reader.read_boolean(reader)
278
320
  when 'virtual_functions_configuration'
@@ -344,6 +386,8 @@ module OvirtSDK4
344
386
  object.name = value if not value.nil?
345
387
  value = reader.get_attribute('positive')
346
388
  object.positive = value if not value.nil?
389
+ value = reader.get_attribute('priority')
390
+ object.priority = value if not value.nil?
347
391
 
348
392
  # Discard the start tag:
349
393
  empty = reader.empty_element?
@@ -367,12 +411,18 @@ module OvirtSDK4
367
411
  object.name = Reader.read_string(reader)
368
412
  when 'positive'
369
413
  object.positive = Reader.read_boolean(reader)
414
+ when 'priority'
415
+ object.priority = Reader.read_decimal(reader)
370
416
  when 'vms_rule'
371
417
  object.vms_rule = AffinityRuleReader.read_one(reader)
372
418
  when 'cluster'
373
419
  object.cluster = ClusterReader.read_one(reader)
420
+ when 'host_labels'
421
+ object.host_labels = AffinityLabelReader.read_many(reader)
374
422
  when 'hosts'
375
423
  object.hosts = HostReader.read_many(reader)
424
+ when 'vm_labels'
425
+ object.vm_labels = AffinityLabelReader.read_many(reader)
376
426
  when 'vms'
377
427
  object.vms = VmReader.read_many(reader)
378
428
  when 'link'
@@ -421,8 +471,12 @@ module OvirtSDK4
421
471
  list = List.new
422
472
  list.href = href
423
473
  case rel
474
+ when 'hostlabels'
475
+ object.host_labels = list
424
476
  when 'hosts'
425
477
  object.hosts = list
478
+ when 'vmlabels'
479
+ object.vm_labels = list
426
480
  when 'vms'
427
481
  object.vms = list
428
482
  end
@@ -449,6 +503,8 @@ module OvirtSDK4
449
503
  object.comment = value if not value.nil?
450
504
  value = reader.get_attribute('description')
451
505
  object.description = value if not value.nil?
506
+ value = reader.get_attribute('has_implicit_affinity_group')
507
+ object.has_implicit_affinity_group = value if not value.nil?
452
508
  value = reader.get_attribute('id')
453
509
  object.id = value if not value.nil?
454
510
  value = reader.get_attribute('name')
@@ -468,6 +524,8 @@ module OvirtSDK4
468
524
  object.comment = Reader.read_string(reader)
469
525
  when 'description'
470
526
  object.description = Reader.read_string(reader)
527
+ when 'has_implicit_affinity_group'
528
+ object.has_implicit_affinity_group = Reader.read_boolean(reader)
471
529
  when 'id'
472
530
  object.id = Reader.read_string(reader)
473
531
  when 'name'
@@ -1159,6 +1217,121 @@ module OvirtSDK4
1159
1217
 
1160
1218
  end
1161
1219
 
1220
+ class BackupReader < Reader
1221
+
1222
+ def self.read_one(reader)
1223
+ # Do nothing if there aren't more tags:
1224
+ return nil unless reader.forward
1225
+
1226
+ # Create the object:
1227
+ object = Backup.new
1228
+
1229
+ # Process the attributes:
1230
+ object.href = reader.get_attribute('href')
1231
+ value = reader.get_attribute('comment')
1232
+ object.comment = value if not value.nil?
1233
+ value = reader.get_attribute('creation_date')
1234
+ object.creation_date = value if not value.nil?
1235
+ value = reader.get_attribute('description')
1236
+ object.description = value if not value.nil?
1237
+ value = reader.get_attribute('from_checkpoint_id')
1238
+ object.from_checkpoint_id = value if not value.nil?
1239
+ value = reader.get_attribute('id')
1240
+ object.id = value if not value.nil?
1241
+ value = reader.get_attribute('name')
1242
+ object.name = value if not value.nil?
1243
+ value = reader.get_attribute('phase')
1244
+ object.phase = value if not value.nil?
1245
+ value = reader.get_attribute('to_checkpoint_id')
1246
+ object.to_checkpoint_id = value if not value.nil?
1247
+
1248
+ # Discard the start tag:
1249
+ empty = reader.empty_element?
1250
+ reader.read
1251
+ return object if empty
1252
+
1253
+ # Process the inner elements:
1254
+ while reader.forward do
1255
+ case reader.node_name
1256
+ when 'comment'
1257
+ object.comment = Reader.read_string(reader)
1258
+ when 'creation_date'
1259
+ object.creation_date = Reader.read_date(reader)
1260
+ when 'description'
1261
+ object.description = Reader.read_string(reader)
1262
+ when 'from_checkpoint_id'
1263
+ object.from_checkpoint_id = Reader.read_string(reader)
1264
+ when 'id'
1265
+ object.id = Reader.read_string(reader)
1266
+ when 'name'
1267
+ object.name = Reader.read_string(reader)
1268
+ when 'phase'
1269
+ object.phase = Reader.read_enum(BackupPhase, reader)
1270
+ when 'to_checkpoint_id'
1271
+ object.to_checkpoint_id = Reader.read_string(reader)
1272
+ when 'disks'
1273
+ object.disks = DiskReader.read_many(reader)
1274
+ when 'host'
1275
+ object.host = HostReader.read_one(reader)
1276
+ when 'vm'
1277
+ object.vm = VmReader.read_one(reader)
1278
+ when 'link'
1279
+ read_link(reader, object)
1280
+ else
1281
+ reader.next_element
1282
+ end
1283
+ end
1284
+
1285
+ # Discard the end tag:
1286
+ reader.read
1287
+
1288
+ return object
1289
+ end
1290
+
1291
+
1292
+ def self.read_many(reader)
1293
+ # Do nothing if there aren't more tags:
1294
+ list = List.new
1295
+ return list unless reader.forward
1296
+
1297
+ # Process the attributes:
1298
+ list.href = reader.get_attribute('href')
1299
+
1300
+ # Discard the start tag:
1301
+ empty = reader.empty_element?
1302
+ reader.read
1303
+ return list if empty
1304
+
1305
+ # Process the inner elements:
1306
+ while reader.forward do
1307
+ list << read_one(reader)
1308
+ end
1309
+
1310
+ # Discard the end tag:
1311
+ reader.read
1312
+
1313
+ return list
1314
+ end
1315
+
1316
+ def self.read_link(reader, object)
1317
+ # Process the attributes:
1318
+ rel = reader.get_attribute('rel')
1319
+ href = reader.get_attribute('href')
1320
+ if rel && href
1321
+ list = List.new
1322
+ list.href = href
1323
+ case rel
1324
+ when 'disks'
1325
+ object.disks = list
1326
+ end
1327
+ end
1328
+
1329
+ # Discard the rest of the element:
1330
+ reader.next_element
1331
+ end
1332
+
1333
+ end
1334
+
1162
1335
  class BalanceReader < Reader
1163
1336
 
1164
1337
  def self.read_one(reader)
@@ -1248,6 +1421,8 @@ module OvirtSDK4
1248
1421
 
1249
1422
  # Process the attributes:
1250
1423
  object.href = reader.get_attribute('href')
1424
+ value = reader.get_attribute('type')
1425
+ object.type = value if not value.nil?
1251
1426
 
1252
1427
  # Discard the start tag:
1253
1428
  empty = reader.empty_element?
@@ -1259,6 +1434,8 @@ module OvirtSDK4
1259
1434
  case reader.node_name
1260
1435
  when 'boot_menu'
1261
1436
  object.boot_menu = BootMenuReader.read_one(reader)
1437
+ when 'type'
1438
+ object.type = Reader.read_enum(BiosType, reader)
1262
1439
  else
1263
1440
  reader.next_element
1264
1441
  end
@@ -1874,6 +2051,111 @@ module OvirtSDK4
1874
2051
 
1875
2052
  end
1876
2053
 
2054
+ class CheckpointReader < Reader
2055
+
2056
+ def self.read_one(reader)
2057
+ # Do nothing if there aren't more tags:
2058
+ return nil unless reader.forward
2059
+
2060
+ # Create the object:
2061
+ object = Checkpoint.new
2062
+
2063
+ # Process the attributes:
2064
+ object.href = reader.get_attribute('href')
2065
+ value = reader.get_attribute('comment')
2066
+ object.comment = value if not value.nil?
2067
+ value = reader.get_attribute('creation_date')
2068
+ object.creation_date = value if not value.nil?
2069
+ value = reader.get_attribute('description')
2070
+ object.description = value if not value.nil?
2071
+ value = reader.get_attribute('id')
2072
+ object.id = value if not value.nil?
2073
+ value = reader.get_attribute('name')
2074
+ object.name = value if not value.nil?
2075
+ value = reader.get_attribute('parent_id')
2076
+ object.parent_id = value if not value.nil?
2077
+
2078
+ # Discard the start tag:
2079
+ empty = reader.empty_element?
2080
+ reader.read
2081
+ return object if empty
2082
+
2083
+ # Process the inner elements:
2084
+ while reader.forward do
2085
+ case reader.node_name
2086
+ when 'comment'
2087
+ object.comment = Reader.read_string(reader)
2088
+ when 'creation_date'
2089
+ object.creation_date = Reader.read_date(reader)
2090
+ when 'description'
2091
+ object.description = Reader.read_string(reader)
2092
+ when 'id'
2093
+ object.id = Reader.read_string(reader)
2094
+ when 'name'
2095
+ object.name = Reader.read_string(reader)
2096
+ when 'parent_id'
2097
+ object.parent_id = Reader.read_string(reader)
2098
+ when 'disks'
2099
+ object.disks = DiskReader.read_many(reader)
2100
+ when 'vm'
2101
+ object.vm = VmReader.read_one(reader)
2102
+ when 'link'
2103
+ read_link(reader, object)
2104
+ else
2105
+ reader.next_element
2106
+ end
2107
+ end
2108
+
2109
+ # Discard the end tag:
2110
+ reader.read
2111
+
2112
+ return object
2113
+ end
2114
+
2115
+
2116
+ def self.read_many(reader)
2117
+ # Do nothing if there aren't more tags:
2118
+ list = List.new
2119
+ return list unless reader.forward
2120
+
2121
+ # Process the attributes:
2122
+ list.href = reader.get_attribute('href')
2123
+
2124
+ # Discard the start tag:
2125
+ empty = reader.empty_element?
2126
+ reader.read
2127
+ return list if empty
2128
+
2129
+ # Process the inner elements:
2130
+ while reader.forward do
2131
+ list << read_one(reader)
2132
+ end
2133
+
2134
+ # Discard the end tag:
2135
+ reader.read
2136
+
2137
+ return list
2138
+ end
2139
+
2140
+ def self.read_link(reader, object)
2141
+ # Process the attributes:
2142
+ rel = reader.get_attribute('rel')
2143
+ href = reader.get_attribute('href')
2144
+ if rel && href
2145
+ list = List.new
2146
+ list.href = href
2147
+ case rel
2148
+ when 'disks'
2149
+ object.disks = list
2150
+ end
2151
+ end
2152
+
2153
+ # Discard the rest of the element:
2154
+ reader.next_element
2155
+ end
2156
+
2157
+ end
2158
+
1877
2159
  class CloudInitReader < Reader
1878
2160
 
1879
2161
  def self.read_one(reader)
@@ -1963,10 +2245,14 @@ module OvirtSDK4
1963
2245
  object.href = reader.get_attribute('href')
1964
2246
  value = reader.get_attribute('ballooning_enabled')
1965
2247
  object.ballooning_enabled = value if not value.nil?
2248
+ value = reader.get_attribute('bios_type')
2249
+ object.bios_type = value if not value.nil?
1966
2250
  value = reader.get_attribute('comment')
1967
2251
  object.comment = value if not value.nil?
1968
2252
  value = reader.get_attribute('description')
1969
2253
  object.description = value if not value.nil?
2254
+ value = reader.get_attribute('fips_mode')
2255
+ object.fips_mode = value if not value.nil?
1970
2256
  value = reader.get_attribute('firewall_type')
1971
2257
  object.firewall_type = value if not value.nil?
1972
2258
  value = reader.get_attribute('gluster_service')
@@ -1977,6 +2263,10 @@ module OvirtSDK4
1977
2263
  object.ha_reservation = value if not value.nil?
1978
2264
  value = reader.get_attribute('id')
1979
2265
  object.id = value if not value.nil?
2266
+ value = reader.get_attribute('log_max_memory_used_threshold')
2267
+ object.log_max_memory_used_threshold = value if not value.nil?
2268
+ value = reader.get_attribute('log_max_memory_used_threshold_type')
2269
+ object.log_max_memory_used_threshold_type = value if not value.nil?
1980
2270
  value = reader.get_attribute('maintenance_reason_required')
1981
2271
  object.maintenance_reason_required = value if not value.nil?
1982
2272
  value = reader.get_attribute('name')
@@ -1993,6 +2283,8 @@ module OvirtSDK4
1993
2283
  object.tunnel_migration = value if not value.nil?
1994
2284
  value = reader.get_attribute('virt_service')
1995
2285
  object.virt_service = value if not value.nil?
2286
+ value = reader.get_attribute('vnc_encryption')
2287
+ object.vnc_encryption = value if not value.nil?
1996
2288
 
1997
2289
  # Discard the start tag:
1998
2290
  empty = reader.empty_element?
@@ -2004,6 +2296,8 @@ module OvirtSDK4
2004
2296
  case reader.node_name
2005
2297
  when 'ballooning_enabled'
2006
2298
  object.ballooning_enabled = Reader.read_boolean(reader)
2299
+ when 'bios_type'
2300
+ object.bios_type = Reader.read_enum(BiosType, reader)
2007
2301
  when 'comment'
2008
2302
  object.comment = Reader.read_string(reader)
2009
2303
  when 'cpu'
@@ -2018,6 +2312,8 @@ module OvirtSDK4
2018
2312
  object.error_handling = ErrorHandlingReader.read_one(reader)
2019
2313
  when 'fencing_policy'
2020
2314
  object.fencing_policy = FencingPolicyReader.read_one(reader)
2315
+ when 'fips_mode'
2316
+ object.fips_mode = Reader.read_enum(FipsMode, reader)
2021
2317
  when 'firewall_type'
2022
2318
  object.firewall_type = Reader.read_enum(FirewallType, reader)
2023
2319
  when 'gluster_service'
@@ -2030,6 +2326,10 @@ module OvirtSDK4
2030
2326
  object.id = Reader.read_string(reader)
2031
2327
  when 'ksm'
2032
2328
  object.ksm = KsmReader.read_one(reader)
2329
+ when 'log_max_memory_used_threshold'
2330
+ object.log_max_memory_used_threshold = Reader.read_integer(reader)
2331
+ when 'log_max_memory_used_threshold_type'
2332
+ object.log_max_memory_used_threshold_type = Reader.read_enum(LogMaxMemoryUsedThresholdType, reader)
2033
2333
  when 'maintenance_reason_required'
2034
2334
  object.maintenance_reason_required = Reader.read_boolean(reader)
2035
2335
  when 'memory_policy'
@@ -2058,6 +2358,8 @@ module OvirtSDK4
2058
2358
  object.version = VersionReader.read_one(reader)
2059
2359
  when 'virt_service'
2060
2360
  object.virt_service = Reader.read_boolean(reader)
2361
+ when 'vnc_encryption'
2362
+ object.vnc_encryption = Reader.read_boolean(reader)
2061
2363
  when 'affinity_groups'
2062
2364
  object.affinity_groups = AffinityGroupReader.read_many(reader)
2063
2365
  when 'cpu_profiles'
@@ -3242,6 +3544,10 @@ module OvirtSDK4
3242
3544
  object.actual_size = value if not value.nil?
3243
3545
  value = reader.get_attribute('alias')
3244
3546
  object.alias_ = value if not value.nil?
3547
+ value = reader.get_attribute('backup')
3548
+ object.backup = value if not value.nil?
3549
+ value = reader.get_attribute('backup_mode')
3550
+ object.backup_mode = value if not value.nil?
3245
3551
  value = reader.get_attribute('bootable')
3246
3552
  object.bootable = value if not value.nil?
3247
3553
  value = reader.get_attribute('comment')
@@ -3250,6 +3556,8 @@ module OvirtSDK4
3250
3556
  object.content_type = value if not value.nil?
3251
3557
  value = reader.get_attribute('description')
3252
3558
  object.description = value if not value.nil?
3559
+ value = reader.get_attribute('external_disk')
3560
+ object.external_disk = value if not value.nil?
3253
3561
  value = reader.get_attribute('format')
3254
3562
  object.format = value if not value.nil?
3255
3563
  value = reader.get_attribute('id')
@@ -3303,6 +3611,10 @@ module OvirtSDK4
3303
3611
  object.actual_size = Reader.read_integer(reader)
3304
3612
  when 'alias'
3305
3613
  object.alias_ = Reader.read_string(reader)
3614
+ when 'backup'
3615
+ object.backup = Reader.read_enum(DiskBackup, reader)
3616
+ when 'backup_mode'
3617
+ object.backup_mode = Reader.read_enum(DiskBackupMode, reader)
3306
3618
  when 'bootable'
3307
3619
  object.bootable = Reader.read_boolean(reader)
3308
3620
  when 'comment'
@@ -3311,6 +3623,8 @@ module OvirtSDK4
3311
3623
  object.content_type = Reader.read_enum(DiskContentType, reader)
3312
3624
  when 'description'
3313
3625
  object.description = Reader.read_string(reader)
3626
+ when 'external_disk'
3627
+ object.external_disk = Reader.read_string(reader)
3314
3628
  when 'format'
3315
3629
  object.format = Reader.read_enum(DiskFormat, reader)
3316
3630
  when 'id'
@@ -3353,6 +3667,8 @@ module OvirtSDK4
3353
3667
  object.wipe_after_delete = Reader.read_boolean(reader)
3354
3668
  when 'disk_profile'
3355
3669
  object.disk_profile = DiskProfileReader.read_one(reader)
3670
+ when 'disk_snapshots'
3671
+ object.disk_snapshots = DiskSnapshotReader.read_many(reader)
3356
3672
  when 'instance_type'
3357
3673
  object.instance_type = InstanceTypeReader.read_one(reader)
3358
3674
  when 'openstack_volume_type'
@@ -3421,6 +3737,8 @@ module OvirtSDK4
3421
3737
  list = List.new
3422
3738
  list.href = href
3423
3739
  case rel
3740
+ when 'disksnapshots'
3741
+ object.disk_snapshots = list
3424
3742
  when 'permissions'
3425
3743
  object.permissions = list
3426
3744
  when 'statistics'
@@ -3662,6 +3980,10 @@ module OvirtSDK4
3662
3980
  object.actual_size = value if not value.nil?
3663
3981
  value = reader.get_attribute('alias')
3664
3982
  object.alias_ = value if not value.nil?
3983
+ value = reader.get_attribute('backup')
3984
+ object.backup = value if not value.nil?
3985
+ value = reader.get_attribute('backup_mode')
3986
+ object.backup_mode = value if not value.nil?
3665
3987
  value = reader.get_attribute('bootable')
3666
3988
  object.bootable = value if not value.nil?
3667
3989
  value = reader.get_attribute('comment')
@@ -3670,6 +3992,8 @@ module OvirtSDK4
3670
3992
  object.content_type = value if not value.nil?
3671
3993
  value = reader.get_attribute('description')
3672
3994
  object.description = value if not value.nil?
3995
+ value = reader.get_attribute('external_disk')
3996
+ object.external_disk = value if not value.nil?
3673
3997
  value = reader.get_attribute('format')
3674
3998
  object.format = value if not value.nil?
3675
3999
  value = reader.get_attribute('id')
@@ -3723,6 +4047,10 @@ module OvirtSDK4
3723
4047
  object.actual_size = Reader.read_integer(reader)
3724
4048
  when 'alias'
3725
4049
  object.alias_ = Reader.read_string(reader)
4050
+ when 'backup'
4051
+ object.backup = Reader.read_enum(DiskBackup, reader)
4052
+ when 'backup_mode'
4053
+ object.backup_mode = Reader.read_enum(DiskBackupMode, reader)
3726
4054
  when 'bootable'
3727
4055
  object.bootable = Reader.read_boolean(reader)
3728
4056
  when 'comment'
@@ -3731,6 +4059,8 @@ module OvirtSDK4
3731
4059
  object.content_type = Reader.read_enum(DiskContentType, reader)
3732
4060
  when 'description'
3733
4061
  object.description = Reader.read_string(reader)
4062
+ when 'external_disk'
4063
+ object.external_disk = Reader.read_string(reader)
3734
4064
  when 'format'
3735
4065
  object.format = Reader.read_enum(DiskFormat, reader)
3736
4066
  when 'id'
@@ -3775,10 +4105,14 @@ module OvirtSDK4
3775
4105
  object.disk = DiskReader.read_one(reader)
3776
4106
  when 'disk_profile'
3777
4107
  object.disk_profile = DiskProfileReader.read_one(reader)
4108
+ when 'disk_snapshots'
4109
+ object.disk_snapshots = DiskSnapshotReader.read_many(reader)
3778
4110
  when 'instance_type'
3779
4111
  object.instance_type = InstanceTypeReader.read_one(reader)
3780
4112
  when 'openstack_volume_type'
3781
4113
  object.openstack_volume_type = OpenStackVolumeTypeReader.read_one(reader)
4114
+ when 'parent'
4115
+ object.parent = DiskSnapshotReader.read_one(reader)
3782
4116
  when 'permissions'
3783
4117
  object.permissions = PermissionReader.read_many(reader)
3784
4118
  when 'quota'
@@ -3843,6 +4177,8 @@ module OvirtSDK4
3843
4177
  list = List.new
3844
4178
  list.href = href
3845
4179
  case rel
4180
+ when 'disksnapshots'
4181
+ object.disk_snapshots = list
3846
4182
  when 'permissions'
3847
4183
  object.permissions = list
3848
4184
  when 'statistics'
@@ -4346,6 +4682,8 @@ module OvirtSDK4
4346
4682
  object.id = value if not value.nil?
4347
4683
  value = reader.get_attribute('index')
4348
4684
  object.index = value if not value.nil?
4685
+ value = reader.get_attribute('log_on_host')
4686
+ object.log_on_host = value if not value.nil?
4349
4687
  value = reader.get_attribute('name')
4350
4688
  object.name = value if not value.nil?
4351
4689
  value = reader.get_attribute('origin')
@@ -4381,6 +4719,8 @@ module OvirtSDK4
4381
4719
  object.id = Reader.read_string(reader)
4382
4720
  when 'index'
4383
4721
  object.index = Reader.read_integer(reader)
4722
+ when 'log_on_host'
4723
+ object.log_on_host = Reader.read_boolean(reader)
4384
4724
  when 'name'
4385
4725
  object.name = Reader.read_string(reader)
4386
4726
  when 'origin'
@@ -4441,6 +4781,94 @@ module OvirtSDK4
4441
4781
 
4442
4782
  end
4443
4783
 
4784
+ class EventSubscriptionReader < Reader
4785
+
4786
+ def self.read_one(reader)
4787
+ # Do nothing if there aren't more tags:
4788
+ return nil unless reader.forward
4789
+
4790
+ # Create the object:
4791
+ object = EventSubscription.new
4792
+
4793
+ # Process the attributes:
4794
+ object.href = reader.get_attribute('href')
4795
+ value = reader.get_attribute('address')
4796
+ object.address = value if not value.nil?
4797
+ value = reader.get_attribute('comment')
4798
+ object.comment = value if not value.nil?
4799
+ value = reader.get_attribute('description')
4800
+ object.description = value if not value.nil?
4801
+ value = reader.get_attribute('event')
4802
+ object.event = value if not value.nil?
4803
+ value = reader.get_attribute('id')
4804
+ object.id = value if not value.nil?
4805
+ value = reader.get_attribute('name')
4806
+ object.name = value if not value.nil?
4807
+ value = reader.get_attribute('notification_method')
4808
+ object.notification_method = value if not value.nil?
4809
+
4810
+ # Discard the start tag:
4811
+ empty = reader.empty_element?
4812
+ reader.read
4813
+ return object if empty
4814
+
4815
+ # Process the inner elements:
4816
+ while reader.forward do
4817
+ case reader.node_name
4818
+ when 'address'
4819
+ object.address = Reader.read_string(reader)
4820
+ when 'comment'
4821
+ object.comment = Reader.read_string(reader)
4822
+ when 'description'
4823
+ object.description = Reader.read_string(reader)
4824
+ when 'event'
4825
+ object.event = Reader.read_enum(NotifiableEvent, reader)
4826
+ when 'id'
4827
+ object.id = Reader.read_string(reader)
4828
+ when 'name'
4829
+ object.name = Reader.read_string(reader)
4830
+ when 'notification_method'
4831
+ object.notification_method = Reader.read_enum(NotificationMethod, reader)
4832
+ when 'user'
4833
+ object.user = UserReader.read_one(reader)
4834
+ else
4835
+ reader.next_element
4836
+ end
4837
+ end
4838
+
4839
+ # Discard the end tag:
4840
+ reader.read
4841
+
4842
+ return object
4843
+ end
4844
+
4845
+
4846
+ def self.read_many(reader)
4847
+ # Do nothing if there aren't more tags:
4848
+ list = List.new
4849
+ return list unless reader.forward
4850
+
4851
+ # Process the attributes:
4852
+ list.href = reader.get_attribute('href')
4853
+
4854
+ # Discard the start tag:
4855
+ empty = reader.empty_element?
4856
+ reader.read
4857
+ return list if empty
4858
+
4859
+ # Process the inner elements:
4860
+ while reader.forward do
4861
+ list << read_one(reader)
4862
+ end
4863
+
4864
+ # Discard the end tag:
4865
+ reader.read
4866
+
4867
+ return list
4868
+ end
4869
+
4870
+ end
4871
+
4444
4872
  class ExternalComputeResourceReader < Reader
4445
4873
 
4446
4874
  def self.read_one(reader)
@@ -7213,6 +7641,8 @@ module OvirtSDK4
7213
7641
  object.memory = value if not value.nil?
7214
7642
  value = reader.get_attribute('name')
7215
7643
  object.name = value if not value.nil?
7644
+ value = reader.get_attribute('network_operation_in_progress')
7645
+ object.network_operation_in_progress = value if not value.nil?
7216
7646
  value = reader.get_attribute('numa_supported')
7217
7647
  object.numa_supported = value if not value.nil?
7218
7648
  value = reader.get_attribute('override_iptables')
@@ -7221,6 +7651,8 @@ module OvirtSDK4
7221
7651
  object.port = value if not value.nil?
7222
7652
  value = reader.get_attribute('protocol')
7223
7653
  object.protocol = value if not value.nil?
7654
+ value = reader.get_attribute('reinstallation_required')
7655
+ object.reinstallation_required = value if not value.nil?
7224
7656
  value = reader.get_attribute('root_password')
7225
7657
  object.root_password = value if not value.nil?
7226
7658
  value = reader.get_attribute('status')
@@ -7231,6 +7663,8 @@ module OvirtSDK4
7231
7663
  object.type = value if not value.nil?
7232
7664
  value = reader.get_attribute('update_available')
7233
7665
  object.update_available = value if not value.nil?
7666
+ value = reader.get_attribute('vgpu_placement')
7667
+ object.vgpu_placement = value if not value.nil?
7234
7668
 
7235
7669
  # Discard the start tag:
7236
7670
  empty = reader.empty_element?
@@ -7278,6 +7712,8 @@ module OvirtSDK4
7278
7712
  object.memory = Reader.read_integer(reader)
7279
7713
  when 'name'
7280
7714
  object.name = Reader.read_string(reader)
7715
+ when 'network_operation_in_progress'
7716
+ object.network_operation_in_progress = Reader.read_boolean(reader)
7281
7717
  when 'numa_supported'
7282
7718
  object.numa_supported = Reader.read_boolean(reader)
7283
7719
  when 'os'
@@ -7290,6 +7726,8 @@ module OvirtSDK4
7290
7726
  object.power_management = PowerManagementReader.read_one(reader)
7291
7727
  when 'protocol'
7292
7728
  object.protocol = Reader.read_enum(HostProtocol, reader)
7729
+ when 'reinstallation_required'
7730
+ object.reinstallation_required = Reader.read_boolean(reader)
7293
7731
  when 'root_password'
7294
7732
  object.root_password = Reader.read_string(reader)
7295
7733
  when 'se_linux'
@@ -7312,6 +7750,8 @@ module OvirtSDK4
7312
7750
  object.update_available = Reader.read_boolean(reader)
7313
7751
  when 'version'
7314
7752
  object.version = VersionReader.read_one(reader)
7753
+ when 'vgpu_placement'
7754
+ object.vgpu_placement = Reader.read_enum(VgpuPlacement, reader)
7315
7755
  when 'affinity_labels'
7316
7756
  object.affinity_labels = AffinityLabelReader.read_many(reader)
7317
7757
  when 'agents'
@@ -7319,7 +7759,7 @@ module OvirtSDK4
7319
7759
  when 'cluster'
7320
7760
  object.cluster = ClusterReader.read_one(reader)
7321
7761
  when 'devices'
7322
- object.devices = DeviceReader.read_many(reader)
7762
+ object.devices = HostDeviceReader.read_many(reader)
7323
7763
  when 'external_host_provider'
7324
7764
  object.external_host_provider = ExternalHostProviderReader.read_one(reader)
7325
7765
  when 'external_network_provider_configurations'
@@ -7481,6 +7921,8 @@ module OvirtSDK4
7481
7921
  object.id = Reader.read_string(reader)
7482
7922
  when 'iommu_group'
7483
7923
  object.iommu_group = Reader.read_integer(reader)
7924
+ when 'm_dev_types'
7925
+ object.m_dev_types = MDevTypeReader.read_many(reader)
7484
7926
  when 'name'
7485
7927
  object.name = Reader.read_string(reader)
7486
7928
  when 'physical_function'
@@ -7681,16 +8123,12 @@ module OvirtSDK4
7681
8123
  object.mtu = Reader.read_integer(reader)
7682
8124
  when 'name'
7683
8125
  object.name = Reader.read_string(reader)
7684
- when 'network_labels'
7685
- object.network_labels = NetworkLabelReader.read_many(reader)
7686
8126
  when 'override_configuration'
7687
8127
  object.override_configuration = Reader.read_boolean(reader)
7688
8128
  when 'properties'
7689
8129
  object.properties = PropertyReader.read_many(reader)
7690
8130
  when 'speed'
7691
8131
  object.speed = Reader.read_integer(reader)
7692
- when 'statistics'
7693
- object.statistics = StatisticReader.read_many(reader)
7694
8132
  when 'status'
7695
8133
  object.status = Reader.read_enum(NicStatus, reader)
7696
8134
  when 'virtual_functions_configuration'
@@ -7701,10 +8139,16 @@ module OvirtSDK4
7701
8139
  object.host = HostReader.read_one(reader)
7702
8140
  when 'network'
7703
8141
  object.network = NetworkReader.read_one(reader)
8142
+ when 'network_labels'
8143
+ object.network_labels = NetworkLabelReader.read_many(reader)
7704
8144
  when 'physical_function'
7705
8145
  object.physical_function = HostNicReader.read_one(reader)
7706
8146
  when 'qos'
7707
8147
  object.qos = QosReader.read_one(reader)
8148
+ when 'statistics'
8149
+ object.statistics = StatisticReader.read_many(reader)
8150
+ when 'link'
8151
+ read_link(reader, object)
7708
8152
  else
7709
8153
  reader.next_element
7710
8154
  end
@@ -7741,6 +8185,25 @@ module OvirtSDK4
7741
8185
  return list
7742
8186
  end
7743
8187
 
8188
+ def self.read_link(reader, object)
8189
+ # Process the attributes:
8190
+ rel = reader.get_attribute('rel')
8191
+ href = reader.get_attribute('href')
8192
+ if rel && href
8193
+ list = List.new
8194
+ list.href = href
8195
+ case rel
8196
+ when 'networklabels'
8197
+ object.network_labels = list
8198
+ when 'statistics'
8199
+ object.statistics = list
8200
+ end
8201
+ end
8202
+
8203
+ # Discard the rest of the element:
8204
+ reader.next_element
8205
+ end
8206
+
7744
8207
  end
7745
8208
 
7746
8209
  class HostNicVirtualFunctionsConfigurationReader < Reader
@@ -7875,6 +8338,10 @@ module OvirtSDK4
7875
8338
  object.comment = Reader.read_string(reader)
7876
8339
  when 'description'
7877
8340
  object.description = Reader.read_string(reader)
8341
+ when 'driver_options'
8342
+ object.driver_options = PropertyReader.read_many(reader)
8343
+ when 'driver_sensitive_options'
8344
+ object.driver_sensitive_options = PropertyReader.read_many(reader)
7878
8345
  when 'id'
7879
8346
  object.id = Reader.read_string(reader)
7880
8347
  when 'logical_units'
@@ -8286,6 +8753,8 @@ module OvirtSDK4
8286
8753
  object.description = value if not value.nil?
8287
8754
  value = reader.get_attribute('direction')
8288
8755
  object.direction = value if not value.nil?
8756
+ value = reader.get_attribute('format')
8757
+ object.format = value if not value.nil?
8289
8758
  value = reader.get_attribute('id')
8290
8759
  object.id = value if not value.nil?
8291
8760
  value = reader.get_attribute('inactivity_timeout')
@@ -8296,8 +8765,10 @@ module OvirtSDK4
8296
8765
  object.phase = value if not value.nil?
8297
8766
  value = reader.get_attribute('proxy_url')
8298
8767
  object.proxy_url = value if not value.nil?
8299
- value = reader.get_attribute('signed_ticket')
8300
- object.signed_ticket = value if not value.nil?
8768
+ value = reader.get_attribute('shallow')
8769
+ object.shallow = value if not value.nil?
8770
+ value = reader.get_attribute('timeout_policy')
8771
+ object.timeout_policy = value if not value.nil?
8301
8772
  value = reader.get_attribute('transfer_url')
8302
8773
  object.transfer_url = value if not value.nil?
8303
8774
  value = reader.get_attribute('transferred')
@@ -8319,6 +8790,8 @@ module OvirtSDK4
8319
8790
  object.description = Reader.read_string(reader)
8320
8791
  when 'direction'
8321
8792
  object.direction = Reader.read_enum(ImageTransferDirection, reader)
8793
+ when 'format'
8794
+ object.format = Reader.read_enum(DiskFormat, reader)
8322
8795
  when 'id'
8323
8796
  object.id = Reader.read_string(reader)
8324
8797
  when 'inactivity_timeout'
@@ -8329,12 +8802,16 @@ module OvirtSDK4
8329
8802
  object.phase = Reader.read_enum(ImageTransferPhase, reader)
8330
8803
  when 'proxy_url'
8331
8804
  object.proxy_url = Reader.read_string(reader)
8332
- when 'signed_ticket'
8333
- object.signed_ticket = Reader.read_string(reader)
8805
+ when 'shallow'
8806
+ object.shallow = Reader.read_boolean(reader)
8807
+ when 'timeout_policy'
8808
+ object.timeout_policy = Reader.read_enum(ImageTransferTimeoutPolicy, reader)
8334
8809
  when 'transfer_url'
8335
8810
  object.transfer_url = Reader.read_string(reader)
8336
8811
  when 'transferred'
8337
8812
  object.transferred = Reader.read_integer(reader)
8813
+ when 'backup'
8814
+ object.backup = BackupReader.read_one(reader)
8338
8815
  when 'disk'
8339
8816
  object.disk = DiskReader.read_one(reader)
8340
8817
  when 'host'
@@ -8396,6 +8873,8 @@ module OvirtSDK4
8396
8873
  object.active_directory_ou = value if not value.nil?
8397
8874
  value = reader.get_attribute('authorized_ssh_keys')
8398
8875
  object.authorized_ssh_keys = value if not value.nil?
8876
+ value = reader.get_attribute('cloud_init_network_protocol')
8877
+ object.cloud_init_network_protocol = value if not value.nil?
8399
8878
  value = reader.get_attribute('custom_script')
8400
8879
  object.custom_script = value if not value.nil?
8401
8880
  value = reader.get_attribute('dns_search')
@@ -8443,6 +8922,8 @@ module OvirtSDK4
8443
8922
  object.authorized_ssh_keys = Reader.read_string(reader)
8444
8923
  when 'cloud_init'
8445
8924
  object.cloud_init = CloudInitReader.read_one(reader)
8925
+ when 'cloud_init_network_protocol'
8926
+ object.cloud_init_network_protocol = Reader.read_enum(CloudInitNetworkProtocol, reader)
8446
8927
  when 'configuration'
8447
8928
  object.configuration = ConfigurationReader.read_one(reader)
8448
8929
  when 'custom_script'
@@ -8548,6 +9029,8 @@ module OvirtSDK4
8548
9029
  object.memory = value if not value.nil?
8549
9030
  value = reader.get_attribute('migration_downtime')
8550
9031
  object.migration_downtime = value if not value.nil?
9032
+ value = reader.get_attribute('multi_queues_enabled')
9033
+ object.multi_queues_enabled = value if not value.nil?
8551
9034
  value = reader.get_attribute('name')
8552
9035
  object.name = value if not value.nil?
8553
9036
  value = reader.get_attribute('origin')
@@ -8566,6 +9049,8 @@ module OvirtSDK4
8566
9049
  object.tunnel_migration = value if not value.nil?
8567
9050
  value = reader.get_attribute('type')
8568
9051
  object.type = value if not value.nil?
9052
+ value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
9053
+ object.virtio_scsi_multi_queues_enabled = value if not value.nil?
8569
9054
 
8570
9055
  # Discard the start tag:
8571
9056
  empty = reader.empty_element?
@@ -8623,6 +9108,8 @@ module OvirtSDK4
8623
9108
  object.migration = MigrationOptionsReader.read_one(reader)
8624
9109
  when 'migration_downtime'
8625
9110
  object.migration_downtime = Reader.read_integer(reader)
9111
+ when 'multi_queues_enabled'
9112
+ object.multi_queues_enabled = Reader.read_boolean(reader)
8626
9113
  when 'name'
8627
9114
  object.name = Reader.read_string(reader)
8628
9115
  when 'origin'
@@ -8661,6 +9148,8 @@ module OvirtSDK4
8661
9148
  object.version = TemplateVersionReader.read_one(reader)
8662
9149
  when 'virtio_scsi'
8663
9150
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
9151
+ when 'virtio_scsi_multi_queues_enabled'
9152
+ object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
8664
9153
  when 'vm'
8665
9154
  object.vm = VmReader.read_one(reader)
8666
9155
  when 'cdroms'
@@ -9754,6 +10243,76 @@ module OvirtSDK4
9754
10243
 
9755
10244
  end
9756
10245
 
10246
+ class MDevTypeReader < Reader
10247
+
10248
+ def self.read_one(reader)
10249
+ # Do nothing if there aren't more tags:
10250
+ return nil unless reader.forward
10251
+
10252
+ # Create the object:
10253
+ object = MDevType.new
10254
+
10255
+ # Process the attributes:
10256
+ object.href = reader.get_attribute('href')
10257
+ value = reader.get_attribute('available_instances')
10258
+ object.available_instances = value if not value.nil?
10259
+ value = reader.get_attribute('description')
10260
+ object.description = value if not value.nil?
10261
+ value = reader.get_attribute('name')
10262
+ object.name = value if not value.nil?
10263
+
10264
+ # Discard the start tag:
10265
+ empty = reader.empty_element?
10266
+ reader.read
10267
+ return object if empty
10268
+
10269
+ # Process the inner elements:
10270
+ while reader.forward do
10271
+ case reader.node_name
10272
+ when 'available_instances'
10273
+ object.available_instances = Reader.read_integer(reader)
10274
+ when 'description'
10275
+ object.description = Reader.read_string(reader)
10276
+ when 'name'
10277
+ object.name = Reader.read_string(reader)
10278
+ else
10279
+ reader.next_element
10280
+ end
10281
+ end
10282
+
10283
+ # Discard the end tag:
10284
+ reader.read
10285
+
10286
+ return object
10287
+ end
10288
+
10289
+
10290
+ def self.read_many(reader)
10291
+ # Do nothing if there aren't more tags:
10292
+ list = List.new
10293
+ return list unless reader.forward
10294
+
10295
+ # Process the attributes:
10296
+ list.href = reader.get_attribute('href')
10297
+
10298
+ # Discard the start tag:
10299
+ empty = reader.empty_element?
10300
+ reader.read
10301
+ return list if empty
10302
+
10303
+ # Process the inner elements:
10304
+ while reader.forward do
10305
+ list << read_one(reader)
10306
+ end
10307
+
10308
+ # Discard the end tag:
10309
+ reader.read
10310
+
10311
+ return list
10312
+ end
10313
+
10314
+ end
10315
+
9757
10316
  class MacReader < Reader
9758
10317
 
9759
10318
  def self.read_one(reader)
@@ -9862,6 +10421,10 @@ module OvirtSDK4
9862
10421
  object.name = Reader.read_string(reader)
9863
10422
  when 'ranges'
9864
10423
  object.ranges = RangeReader.read_many(reader)
10424
+ when 'permissions'
10425
+ object.permissions = PermissionReader.read_many(reader)
10426
+ when 'link'
10427
+ read_link(reader, object)
9865
10428
  else
9866
10429
  reader.next_element
9867
10430
  end
@@ -9898,6 +10461,23 @@ module OvirtSDK4
9898
10461
  return list
9899
10462
  end
9900
10463
 
10464
+ def self.read_link(reader, object)
10465
+ # Process the attributes:
10466
+ rel = reader.get_attribute('rel')
10467
+ href = reader.get_attribute('href')
10468
+ if rel && href
10469
+ list = List.new
10470
+ list.href = href
10471
+ case rel
10472
+ when 'permissions'
10473
+ object.permissions = list
10474
+ end
10475
+ end
10476
+
10477
+ # Discard the rest of the element:
10478
+ reader.next_element
10479
+ end
10480
+
9901
10481
  end
9902
10482
 
9903
10483
  class MemoryOverCommitReader < Reader
@@ -10179,6 +10759,8 @@ module OvirtSDK4
10179
10759
  object.auto_converge = value if not value.nil?
10180
10760
  value = reader.get_attribute('compressed')
10181
10761
  object.compressed = value if not value.nil?
10762
+ value = reader.get_attribute('encrypted')
10763
+ object.encrypted = value if not value.nil?
10182
10764
 
10183
10765
  # Discard the start tag:
10184
10766
  empty = reader.empty_element?
@@ -10194,6 +10776,8 @@ module OvirtSDK4
10194
10776
  object.bandwidth = MigrationBandwidthReader.read_one(reader)
10195
10777
  when 'compressed'
10196
10778
  object.compressed = Reader.read_enum(InheritableBoolean, reader)
10779
+ when 'encrypted'
10780
+ object.encrypted = Reader.read_enum(InheritableBoolean, reader)
10197
10781
  when 'policy'
10198
10782
  object.policy = MigrationPolicyReader.read_one(reader)
10199
10783
  else
@@ -10331,6 +10915,8 @@ module OvirtSDK4
10331
10915
  object.mtu = value if not value.nil?
10332
10916
  value = reader.get_attribute('name')
10333
10917
  object.name = value if not value.nil?
10918
+ value = reader.get_attribute('port_isolation')
10919
+ object.port_isolation = value if not value.nil?
10334
10920
  value = reader.get_attribute('profile_required')
10335
10921
  object.profile_required = value if not value.nil?
10336
10922
  value = reader.get_attribute('required')
@@ -10339,6 +10925,8 @@ module OvirtSDK4
10339
10925
  object.status = value if not value.nil?
10340
10926
  value = reader.get_attribute('stp')
10341
10927
  object.stp = value if not value.nil?
10928
+ value = reader.get_attribute('vdsm_name')
10929
+ object.vdsm_name = value if not value.nil?
10342
10930
 
10343
10931
  # Discard the start tag:
10344
10932
  empty = reader.empty_element?
@@ -10364,6 +10952,8 @@ module OvirtSDK4
10364
10952
  object.mtu = Reader.read_integer(reader)
10365
10953
  when 'name'
10366
10954
  object.name = Reader.read_string(reader)
10955
+ when 'port_isolation'
10956
+ object.port_isolation = Reader.read_boolean(reader)
10367
10957
  when 'profile_required'
10368
10958
  object.profile_required = Reader.read_boolean(reader)
10369
10959
  when 'required'
@@ -10374,6 +10964,8 @@ module OvirtSDK4
10374
10964
  object.stp = Reader.read_boolean(reader)
10375
10965
  when 'usages'
10376
10966
  object.usages = Reader.read_enums(NetworkUsage, reader)
10967
+ when 'vdsm_name'
10968
+ object.vdsm_name = Reader.read_string(reader)
10377
10969
  when 'vlan'
10378
10970
  object.vlan = VlanReader.read_one(reader)
10379
10971
  when 'cluster'
@@ -11625,6 +12217,10 @@ module OvirtSDK4
11625
12217
  object.password = value if not value.nil?
11626
12218
  value = reader.get_attribute('plugin_type')
11627
12219
  object.plugin_type = value if not value.nil?
12220
+ value = reader.get_attribute('project_domain_name')
12221
+ object.project_domain_name = value if not value.nil?
12222
+ value = reader.get_attribute('project_name')
12223
+ object.project_name = value if not value.nil?
11628
12224
  value = reader.get_attribute('read_only')
11629
12225
  object.read_only = value if not value.nil?
11630
12226
  value = reader.get_attribute('requires_authentication')
@@ -11637,6 +12233,8 @@ module OvirtSDK4
11637
12233
  object.unmanaged = value if not value.nil?
11638
12234
  value = reader.get_attribute('url')
11639
12235
  object.url = value if not value.nil?
12236
+ value = reader.get_attribute('user_domain_name')
12237
+ object.user_domain_name = value if not value.nil?
11640
12238
  value = reader.get_attribute('username')
11641
12239
  object.username = value if not value.nil?
11642
12240
 
@@ -11668,6 +12266,10 @@ module OvirtSDK4
11668
12266
  object.password = Reader.read_string(reader)
11669
12267
  when 'plugin_type'
11670
12268
  object.plugin_type = Reader.read_enum(NetworkPluginType, reader)
12269
+ when 'project_domain_name'
12270
+ object.project_domain_name = Reader.read_string(reader)
12271
+ when 'project_name'
12272
+ object.project_name = Reader.read_string(reader)
11671
12273
  when 'properties'
11672
12274
  object.properties = PropertyReader.read_many(reader)
11673
12275
  when 'read_only'
@@ -11682,6 +12284,8 @@ module OvirtSDK4
11682
12284
  object.unmanaged = Reader.read_boolean(reader)
11683
12285
  when 'url'
11684
12286
  object.url = Reader.read_string(reader)
12287
+ when 'user_domain_name'
12288
+ object.user_domain_name = Reader.read_string(reader)
11685
12289
  when 'username'
11686
12290
  object.username = Reader.read_string(reader)
11687
12291
  when 'certificates'
@@ -13082,6 +13686,8 @@ module OvirtSDK4
13082
13686
 
13083
13687
  # Process the attributes:
13084
13688
  object.href = reader.get_attribute('href')
13689
+ value = reader.get_attribute('instance_id')
13690
+ object.instance_id = value if not value.nil?
13085
13691
  value = reader.get_attribute('name')
13086
13692
  object.name = value if not value.nil?
13087
13693
  value = reader.get_attribute('vendor')
@@ -13095,6 +13701,8 @@ module OvirtSDK4
13095
13701
  # Process the inner elements:
13096
13702
  while reader.forward do
13097
13703
  case reader.node_name
13704
+ when 'instance_id'
13705
+ object.instance_id = Reader.read_string(reader)
13098
13706
  when 'name'
13099
13707
  object.name = Reader.read_string(reader)
13100
13708
  when 'vendor'
@@ -15337,6 +15945,8 @@ module OvirtSDK4
15337
15945
  object.memory = value if not value.nil?
15338
15946
  value = reader.get_attribute('migration_downtime')
15339
15947
  object.migration_downtime = value if not value.nil?
15948
+ value = reader.get_attribute('multi_queues_enabled')
15949
+ object.multi_queues_enabled = value if not value.nil?
15340
15950
  value = reader.get_attribute('name')
15341
15951
  object.name = value if not value.nil?
15342
15952
  value = reader.get_attribute('next_run_configuration_exists')
@@ -15377,6 +15987,8 @@ module OvirtSDK4
15377
15987
  object.type = value if not value.nil?
15378
15988
  value = reader.get_attribute('use_latest_template_version')
15379
15989
  object.use_latest_template_version = value if not value.nil?
15990
+ value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
15991
+ object.virtio_scsi_multi_queues_enabled = value if not value.nil?
15380
15992
 
15381
15993
  # Discard the start tag:
15382
15994
  empty = reader.empty_element?
@@ -15444,6 +16056,8 @@ module OvirtSDK4
15444
16056
  object.migration = MigrationOptionsReader.read_one(reader)
15445
16057
  when 'migration_downtime'
15446
16058
  object.migration_downtime = Reader.read_integer(reader)
16059
+ when 'multi_queues_enabled'
16060
+ object.multi_queues_enabled = Reader.read_boolean(reader)
15447
16061
  when 'name'
15448
16062
  object.name = Reader.read_string(reader)
15449
16063
  when 'next_run_configuration_exists'
@@ -15504,6 +16118,8 @@ module OvirtSDK4
15504
16118
  object.use_latest_template_version = Reader.read_boolean(reader)
15505
16119
  when 'virtio_scsi'
15506
16120
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
16121
+ when 'virtio_scsi_multi_queues_enabled'
16122
+ object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
15507
16123
  when 'affinity_labels'
15508
16124
  object.affinity_labels = AffinityLabelReader.read_many(reader)
15509
16125
  when 'applications'
@@ -15516,6 +16132,8 @@ module OvirtSDK4
15516
16132
  object.cpu_profile = CpuProfileReader.read_one(reader)
15517
16133
  when 'disk_attachments'
15518
16134
  object.disk_attachments = DiskAttachmentReader.read_many(reader)
16135
+ when 'disks'
16136
+ object.disks = DiskReader.read_many(reader)
15519
16137
  when 'external_host_provider'
15520
16138
  object.external_host_provider = ExternalHostProviderReader.read_one(reader)
15521
16139
  when 'floppies'
@@ -15614,6 +16232,8 @@ module OvirtSDK4
15614
16232
  object.cdroms = list
15615
16233
  when 'diskattachments'
15616
16234
  object.disk_attachments = list
16235
+ when 'disks'
16236
+ object.disks = list
15617
16237
  when 'floppies'
15618
16238
  object.floppies = list
15619
16239
  when 'graphicsconsoles'
@@ -15802,6 +16422,8 @@ module OvirtSDK4
15802
16422
  object.name = value if not value.nil?
15803
16423
  value = reader.get_attribute('port')
15804
16424
  object.port = value if not value.nil?
16425
+ value = reader.get_attribute('public_key')
16426
+ object.public_key = value if not value.nil?
15805
16427
 
15806
16428
  # Discard the start tag:
15807
16429
  empty = reader.empty_element?
@@ -15825,6 +16447,8 @@ module OvirtSDK4
15825
16447
  object.name = Reader.read_string(reader)
15826
16448
  when 'port'
15827
16449
  object.port = Reader.read_integer(reader)
16450
+ when 'public_key'
16451
+ object.public_key = Reader.read_string(reader)
15828
16452
  when 'user'
15829
16453
  object.user = UserReader.read_one(reader)
15830
16454
  else
@@ -16332,6 +16956,8 @@ module OvirtSDK4
16332
16956
  object.username = Reader.read_string(reader)
16333
16957
  when 'vfs_type'
16334
16958
  object.vfs_type = Reader.read_string(reader)
16959
+ when 'gluster_volume'
16960
+ object.gluster_volume = GlusterVolumeReader.read_one(reader)
16335
16961
  when 'host'
16336
16962
  object.host = HostReader.read_one(reader)
16337
16963
  else
@@ -16475,6 +17101,8 @@ module OvirtSDK4
16475
17101
  object.available = value if not value.nil?
16476
17102
  value = reader.get_attribute('backup')
16477
17103
  object.backup = value if not value.nil?
17104
+ value = reader.get_attribute('block_size')
17105
+ object.block_size = value if not value.nil?
16478
17106
  value = reader.get_attribute('comment')
16479
17107
  object.comment = value if not value.nil?
16480
17108
  value = reader.get_attribute('committed')
@@ -16524,6 +17152,8 @@ module OvirtSDK4
16524
17152
  object.available = Reader.read_integer(reader)
16525
17153
  when 'backup'
16526
17154
  object.backup = Reader.read_boolean(reader)
17155
+ when 'block_size'
17156
+ object.block_size = Reader.read_integer(reader)
16527
17157
  when 'comment'
16528
17158
  object.comment = Reader.read_string(reader)
16529
17159
  when 'committed'
@@ -16980,6 +17610,8 @@ module OvirtSDK4
16980
17610
  object.memory = value if not value.nil?
16981
17611
  value = reader.get_attribute('migration_downtime')
16982
17612
  object.migration_downtime = value if not value.nil?
17613
+ value = reader.get_attribute('multi_queues_enabled')
17614
+ object.multi_queues_enabled = value if not value.nil?
16983
17615
  value = reader.get_attribute('name')
16984
17616
  object.name = value if not value.nil?
16985
17617
  value = reader.get_attribute('origin')
@@ -16998,6 +17630,8 @@ module OvirtSDK4
16998
17630
  object.tunnel_migration = value if not value.nil?
16999
17631
  value = reader.get_attribute('type')
17000
17632
  object.type = value if not value.nil?
17633
+ value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
17634
+ object.virtio_scsi_multi_queues_enabled = value if not value.nil?
17001
17635
 
17002
17636
  # Discard the start tag:
17003
17637
  empty = reader.empty_element?
@@ -17055,6 +17689,8 @@ module OvirtSDK4
17055
17689
  object.migration = MigrationOptionsReader.read_one(reader)
17056
17690
  when 'migration_downtime'
17057
17691
  object.migration_downtime = Reader.read_integer(reader)
17692
+ when 'multi_queues_enabled'
17693
+ object.multi_queues_enabled = Reader.read_boolean(reader)
17058
17694
  when 'name'
17059
17695
  object.name = Reader.read_string(reader)
17060
17696
  when 'origin'
@@ -17093,6 +17729,8 @@ module OvirtSDK4
17093
17729
  object.version = TemplateVersionReader.read_one(reader)
17094
17730
  when 'virtio_scsi'
17095
17731
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
17732
+ when 'virtio_scsi_multi_queues_enabled'
17733
+ object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
17096
17734
  when 'vm'
17097
17735
  object.vm = VmReader.read_one(reader)
17098
17736
  when 'cdroms'
@@ -17664,10 +18302,14 @@ module OvirtSDK4
17664
18302
  object.principal = Reader.read_string(reader)
17665
18303
  when 'user_name'
17666
18304
  object.user_name = Reader.read_string(reader)
18305
+ when 'user_options'
18306
+ object.user_options = PropertyReader.read_many(reader)
17667
18307
  when 'domain'
17668
18308
  object.domain = DomainReader.read_one(reader)
17669
18309
  when 'groups'
17670
18310
  object.groups = GroupReader.read_many(reader)
18311
+ when 'options'
18312
+ object.options = UserOptionReader.read_many(reader)
17671
18313
  when 'permissions'
17672
18314
  object.permissions = PermissionReader.read_many(reader)
17673
18315
  when 'roles'
@@ -17724,6 +18366,8 @@ module OvirtSDK4
17724
18366
  case rel
17725
18367
  when 'groups'
17726
18368
  object.groups = list
18369
+ when 'options'
18370
+ object.options = list
17727
18371
  when 'permissions'
17728
18372
  object.permissions = list
17729
18373
  when 'roles'
@@ -17741,6 +18385,86 @@ module OvirtSDK4
17741
18385
 
17742
18386
  end
17743
18387
 
18388
+ class UserOptionReader < Reader
18389
+
18390
+ def self.read_one(reader)
18391
+ # Do nothing if there aren't more tags:
18392
+ return nil unless reader.forward
18393
+
18394
+ # Create the object:
18395
+ object = UserOption.new
18396
+
18397
+ # Process the attributes:
18398
+ object.href = reader.get_attribute('href')
18399
+ value = reader.get_attribute('comment')
18400
+ object.comment = value if not value.nil?
18401
+ value = reader.get_attribute('content')
18402
+ object.content = value if not value.nil?
18403
+ value = reader.get_attribute('description')
18404
+ object.description = value if not value.nil?
18405
+ value = reader.get_attribute('id')
18406
+ object.id = value if not value.nil?
18407
+ value = reader.get_attribute('name')
18408
+ object.name = value if not value.nil?
18409
+
18410
+ # Discard the start tag:
18411
+ empty = reader.empty_element?
18412
+ reader.read
18413
+ return object if empty
18414
+
18415
+ # Process the inner elements:
18416
+ while reader.forward do
18417
+ case reader.node_name
18418
+ when 'comment'
18419
+ object.comment = Reader.read_string(reader)
18420
+ when 'content'
18421
+ object.content = Reader.read_string(reader)
18422
+ when 'description'
18423
+ object.description = Reader.read_string(reader)
18424
+ when 'id'
18425
+ object.id = Reader.read_string(reader)
18426
+ when 'name'
18427
+ object.name = Reader.read_string(reader)
18428
+ when 'user'
18429
+ object.user = UserReader.read_one(reader)
18430
+ else
18431
+ reader.next_element
18432
+ end
18433
+ end
18434
+
18435
+ # Discard the end tag:
18436
+ reader.read
18437
+
18438
+ return object
18439
+ end
18440
+
18441
+
18442
+ def self.read_many(reader)
18443
+ # Do nothing if there aren't more tags:
18444
+ list = List.new
18445
+ return list unless reader.forward
18446
+
18447
+ # Process the attributes:
18448
+ list.href = reader.get_attribute('href')
18449
+
18450
+ # Discard the start tag:
18451
+ empty = reader.empty_element?
18452
+ reader.read
18453
+ return list if empty
18454
+
18455
+ # Process the inner elements:
18456
+ while reader.forward do
18457
+ list << read_one(reader)
18458
+ end
18459
+
18460
+ # Discard the end tag:
18461
+ reader.read
18462
+
18463
+ return list
18464
+ end
18465
+
18466
+ end
18467
+
17744
18468
  class ValueReader < Reader
17745
18469
 
17746
18470
  def self.read_one(reader)
@@ -18128,6 +18852,8 @@ module OvirtSDK4
18128
18852
  object.name = value if not value.nil?
18129
18853
  value = reader.get_attribute('node_distance')
18130
18854
  object.node_distance = value if not value.nil?
18855
+ value = reader.get_attribute('numa_tune_mode')
18856
+ object.numa_tune_mode = value if not value.nil?
18131
18857
 
18132
18858
  # Discard the start tag:
18133
18859
  empty = reader.empty_element?
@@ -18155,6 +18881,8 @@ module OvirtSDK4
18155
18881
  object.node_distance = Reader.read_string(reader)
18156
18882
  when 'numa_node_pins'
18157
18883
  object.numa_node_pins = NumaNodePinReader.read_many(reader)
18884
+ when 'numa_tune_mode'
18885
+ object.numa_tune_mode = Reader.read_enum(NumaTuneMode, reader)
18158
18886
  when 'host'
18159
18887
  object.host = HostReader.read_one(reader)
18160
18888
  when 'statistics'
@@ -18315,6 +19043,8 @@ module OvirtSDK4
18315
19043
  object.memory = value if not value.nil?
18316
19044
  value = reader.get_attribute('migration_downtime')
18317
19045
  object.migration_downtime = value if not value.nil?
19046
+ value = reader.get_attribute('multi_queues_enabled')
19047
+ object.multi_queues_enabled = value if not value.nil?
18318
19048
  value = reader.get_attribute('name')
18319
19049
  object.name = value if not value.nil?
18320
19050
  value = reader.get_attribute('next_run_configuration_exists')
@@ -18349,6 +19079,8 @@ module OvirtSDK4
18349
19079
  object.type = value if not value.nil?
18350
19080
  value = reader.get_attribute('use_latest_template_version')
18351
19081
  object.use_latest_template_version = value if not value.nil?
19082
+ value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
19083
+ object.virtio_scsi_multi_queues_enabled = value if not value.nil?
18352
19084
 
18353
19085
  # Discard the start tag:
18354
19086
  empty = reader.empty_element?
@@ -18414,6 +19146,8 @@ module OvirtSDK4
18414
19146
  object.migration = MigrationOptionsReader.read_one(reader)
18415
19147
  when 'migration_downtime'
18416
19148
  object.migration_downtime = Reader.read_integer(reader)
19149
+ when 'multi_queues_enabled'
19150
+ object.multi_queues_enabled = Reader.read_boolean(reader)
18417
19151
  when 'name'
18418
19152
  object.name = Reader.read_string(reader)
18419
19153
  when 'next_run_configuration_exists'
@@ -18468,6 +19202,8 @@ module OvirtSDK4
18468
19202
  object.use_latest_template_version = Reader.read_boolean(reader)
18469
19203
  when 'virtio_scsi'
18470
19204
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
19205
+ when 'virtio_scsi_multi_queues_enabled'
19206
+ object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
18471
19207
  when 'affinity_labels'
18472
19208
  object.affinity_labels = AffinityLabelReader.read_many(reader)
18473
19209
  when 'applications'
@@ -18642,6 +19378,8 @@ module OvirtSDK4
18642
19378
  object.memory = value if not value.nil?
18643
19379
  value = reader.get_attribute('migration_downtime')
18644
19380
  object.migration_downtime = value if not value.nil?
19381
+ value = reader.get_attribute('multi_queues_enabled')
19382
+ object.multi_queues_enabled = value if not value.nil?
18645
19383
  value = reader.get_attribute('name')
18646
19384
  object.name = value if not value.nil?
18647
19385
  value = reader.get_attribute('origin')
@@ -18658,6 +19396,8 @@ module OvirtSDK4
18658
19396
  object.tunnel_migration = value if not value.nil?
18659
19397
  value = reader.get_attribute('type')
18660
19398
  object.type = value if not value.nil?
19399
+ value = reader.get_attribute('virtio_scsi_multi_queues_enabled')
19400
+ object.virtio_scsi_multi_queues_enabled = value if not value.nil?
18661
19401
 
18662
19402
  # Discard the start tag:
18663
19403
  empty = reader.empty_element?
@@ -18715,6 +19455,8 @@ module OvirtSDK4
18715
19455
  object.migration = MigrationOptionsReader.read_one(reader)
18716
19456
  when 'migration_downtime'
18717
19457
  object.migration_downtime = Reader.read_integer(reader)
19458
+ when 'multi_queues_enabled'
19459
+ object.multi_queues_enabled = Reader.read_boolean(reader)
18718
19460
  when 'name'
18719
19461
  object.name = Reader.read_string(reader)
18720
19462
  when 'origin'
@@ -18749,6 +19491,8 @@ module OvirtSDK4
18749
19491
  object.usb = UsbReader.read_one(reader)
18750
19492
  when 'virtio_scsi'
18751
19493
  object.virtio_scsi = VirtioScsiReader.read_one(reader)
19494
+ when 'virtio_scsi_multi_queues_enabled'
19495
+ object.virtio_scsi_multi_queues_enabled = Reader.read_boolean(reader)
18752
19496
  when 'cluster'
18753
19497
  object.cluster = ClusterReader.read_one(reader)
18754
19498
  when 'cpu_profile'
@@ -19611,6 +20355,8 @@ module OvirtSDK4
19611
20355
  Reader.register('applications', ApplicationReader.method(:read_many))
19612
20356
  Reader.register('authorized_key', AuthorizedKeyReader.method(:read_one))
19613
20357
  Reader.register('authorized_keys', AuthorizedKeyReader.method(:read_many))
20358
+ Reader.register('backup', BackupReader.method(:read_one))
20359
+ Reader.register('backups', BackupReader.method(:read_many))
19614
20360
  Reader.register('balance', BalanceReader.method(:read_one))
19615
20361
  Reader.register('balances', BalanceReader.method(:read_many))
19616
20362
  Reader.register('bios', BiosReader.method(:read_one))
@@ -19631,6 +20377,8 @@ module OvirtSDK4
19631
20377
  Reader.register('cdroms', CdromReader.method(:read_many))
19632
20378
  Reader.register('certificate', CertificateReader.method(:read_one))
19633
20379
  Reader.register('certificates', CertificateReader.method(:read_many))
20380
+ Reader.register('checkpoint', CheckpointReader.method(:read_one))
20381
+ Reader.register('checkpoints', CheckpointReader.method(:read_many))
19634
20382
  Reader.register('cloud_init', CloudInitReader.method(:read_one))
19635
20383
  Reader.register('cloud_inits', CloudInitReader.method(:read_many))
19636
20384
  Reader.register('cluster', ClusterReader.method(:read_one))
@@ -19683,6 +20431,8 @@ module OvirtSDK4
19683
20431
  Reader.register('error_handlings', ErrorHandlingReader.method(:read_many))
19684
20432
  Reader.register('event', EventReader.method(:read_one))
19685
20433
  Reader.register('events', EventReader.method(:read_many))
20434
+ Reader.register('event_subscription', EventSubscriptionReader.method(:read_one))
20435
+ Reader.register('event_subscriptions', EventSubscriptionReader.method(:read_many))
19686
20436
  Reader.register('external_compute_resource', ExternalComputeResourceReader.method(:read_one))
19687
20437
  Reader.register('external_compute_resources', ExternalComputeResourceReader.method(:read_many))
19688
20438
  Reader.register('external_discovered_host', ExternalDiscoveredHostReader.method(:read_one))
@@ -19791,6 +20541,8 @@ module OvirtSDK4
19791
20541
  Reader.register('link_layer_discovery_protocol_elements', LinkLayerDiscoveryProtocolElementReader.method(:read_many))
19792
20542
  Reader.register('logical_unit', LogicalUnitReader.method(:read_one))
19793
20543
  Reader.register('logical_units', LogicalUnitReader.method(:read_many))
20544
+ Reader.register('m_dev_type', MDevTypeReader.method(:read_one))
20545
+ Reader.register('m_dev_types', MDevTypeReader.method(:read_many))
19794
20546
  Reader.register('mac', MacReader.method(:read_one))
19795
20547
  Reader.register('macs', MacReader.method(:read_many))
19796
20548
  Reader.register('mac_pool', MacPoolReader.method(:read_one))
@@ -19973,6 +20725,8 @@ module OvirtSDK4
19973
20725
  Reader.register('usbs', UsbReader.method(:read_many))
19974
20726
  Reader.register('user', UserReader.method(:read_one))
19975
20727
  Reader.register('users', UserReader.method(:read_many))
20728
+ Reader.register('user_option', UserOptionReader.method(:read_one))
20729
+ Reader.register('user_options', UserOptionReader.method(:read_many))
19976
20730
  Reader.register('value', ValueReader.method(:read_one))
19977
20731
  Reader.register('values', ValueReader.method(:read_many))
19978
20732
  Reader.register('vcpu_pin', VcpuPinReader.method(:read_one))