ovirt-engine-sdk 4.2.0.alpha2 → 4.2.0.alpha3

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@
16
16
 
17
17
  module OvirtSDK4
18
18
  #
19
- # The class for all errors raised by the SDK.
19
+ # The base class for all errors raised by the SDK.
20
20
  #
21
21
  class Error
22
22
  #
@@ -35,4 +35,36 @@ module OvirtSDK4
35
35
  #
36
36
  attr_accessor :fault
37
37
  end
38
+
39
+ #
40
+ # This class of error indicates that an authentiation or authorization problem happenend, like incorrect user name,
41
+ # incorrect password, or missing permissions.
42
+ #
43
+ class AuthError < Error
44
+ end
45
+
46
+ #
47
+ # This class of error indicates that the name of the server or the name of the proxy can't be resolved to an IP
48
+ # address, or that the connection can't be stablished because the server is down or unreachable.
49
+ #
50
+ # Note that for this class of error the `code` and `fault` attributes will always be empty, as no response from the
51
+ # server will be available to populate them.
52
+ #
53
+ class ConnectionError < Error
54
+ end
55
+
56
+ #
57
+ # This class of error indicates that an object can't be found.
58
+ #
59
+ class NotFoundError < Error
60
+ end
61
+
62
+ #
63
+ # This class of error indicates that an operation timed out.
64
+ #
65
+ # Note that for this class of error the `code` and `fault` attributes will always be empty, as no response from the
66
+ # server will be available to populate them.
67
+ #
68
+ class TimeoutError < Error
69
+ end
38
70
  end
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2016 Red Hat, Inc.
2
+ # Copyright (c) 2016-2017 Red Hat, Inc.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -251,7 +251,7 @@ module OvirtSDK4
251
251
  begin
252
252
  response = send(path: path)
253
253
  return path if response.code == 200
254
- raise Error, 'Unauthorized' if response.code == 401
254
+ raise AuthError, 'Unauthorized' if response.code == 401
255
255
  end
256
256
  end
257
257
  nil
@@ -92,7 +92,7 @@ module OvirtSDK4
92
92
  return nil if text.nil?
93
93
  begin
94
94
  return Integer(text, 10)
95
- rescue
95
+ rescue ArgumentError
96
96
  raise Error, "The text '#{text}' isn't a valid integer value."
97
97
  end
98
98
  end
@@ -127,7 +127,7 @@ module OvirtSDK4
127
127
  return nil if text.nil?
128
128
  begin
129
129
  return Float(text)
130
- rescue
130
+ rescue ArgumentError
131
131
  raise Error, "The text '#{text}' isn't a valid decimal value."
132
132
  end
133
133
  end
@@ -163,7 +163,7 @@ module OvirtSDK4
163
163
  return nil if text.nil?
164
164
  begin
165
165
  return DateTime.xmlschema(text)
166
- rescue
166
+ rescue ArgumentError
167
167
  raise Error, "The text '#{text}' isn't a valid date."
168
168
  end
169
169
  end
@@ -36,6 +36,8 @@ module OvirtSDK4
36
36
  object.check_connectivity = value if not value.nil?
37
37
  value = reader.get_attribute('clone')
38
38
  object.clone = value if not value.nil?
39
+ value = reader.get_attribute('clone_permissions')
40
+ object.clone_permissions = value if not value.nil?
39
41
  value = reader.get_attribute('collapse_snapshots')
40
42
  object.collapse_snapshots = value if not value.nil?
41
43
  value = reader.get_attribute('comment')
@@ -96,6 +98,8 @@ module OvirtSDK4
96
98
  object.use_cloud_init = value if not value.nil?
97
99
  value = reader.get_attribute('use_sysprep')
98
100
  object.use_sysprep = value if not value.nil?
101
+ value = reader.get_attribute('volatile')
102
+ object.volatile = value if not value.nil?
99
103
 
100
104
  # Discard the start tag:
101
105
  empty = reader.empty_element?
@@ -109,6 +113,10 @@ module OvirtSDK4
109
113
  object.allow_partial_import = Reader.read_boolean(reader)
110
114
  when 'async'
111
115
  object.async = Reader.read_boolean(reader)
116
+ when 'attachment'
117
+ object.attachment = DiskAttachmentReader.read_one(reader)
118
+ when 'authorized_key'
119
+ object.authorized_key = AuthorizedKeyReader.read_one(reader)
112
120
  when 'bricks'
113
121
  object.bricks = GlusterBrickReader.read_many(reader)
114
122
  when 'certificates'
@@ -117,12 +125,16 @@ module OvirtSDK4
117
125
  object.check_connectivity = Reader.read_boolean(reader)
118
126
  when 'clone'
119
127
  object.clone = Reader.read_boolean(reader)
128
+ when 'clone_permissions'
129
+ object.clone_permissions = Reader.read_boolean(reader)
120
130
  when 'cluster'
121
131
  object.cluster = ClusterReader.read_one(reader)
122
132
  when 'collapse_snapshots'
123
133
  object.collapse_snapshots = Reader.read_boolean(reader)
124
134
  when 'comment'
125
135
  object.comment = Reader.read_string(reader)
136
+ when 'connection'
137
+ object.connection = StorageConnectionReader.read_one(reader)
126
138
  when 'connectivity_timeout'
127
139
  object.connectivity_timeout = Reader.read_integer(reader)
128
140
  when 'data_center'
@@ -159,6 +171,8 @@ module OvirtSDK4
159
171
  object.id = Reader.read_string(reader)
160
172
  when 'image'
161
173
  object.image = Reader.read_string(reader)
174
+ when 'image_transfer'
175
+ object.image_transfer = ImageTransferReader.read_one(reader)
162
176
  when 'import_as_template'
163
177
  object.import_as_template = Reader.read_boolean(reader)
164
178
  when 'is_attached'
@@ -185,6 +199,8 @@ module OvirtSDK4
185
199
  object.option = OptionReader.read_one(reader)
186
200
  when 'pause'
187
201
  object.pause = Reader.read_boolean(reader)
202
+ when 'permission'
203
+ object.permission = PermissionReader.read_one(reader)
188
204
  when 'power_management'
189
205
  object.power_management = PowerManagementReader.read_one(reader)
190
206
  when 'proxy_ticket'
@@ -239,6 +255,8 @@ module OvirtSDK4
239
255
  object.vm = VmReader.read_one(reader)
240
256
  when 'vnic_profile_mappings'
241
257
  object.vnic_profile_mappings = VnicProfileMappingReader.read_many(reader)
258
+ when 'volatile'
259
+ object.volatile = Reader.read_boolean(reader)
242
260
  else
243
261
  reader.next_element
244
262
  end
@@ -1919,6 +1937,8 @@ module OvirtSDK4
1919
1937
  object.comment = value if not value.nil?
1920
1938
  value = reader.get_attribute('description')
1921
1939
  object.description = value if not value.nil?
1940
+ value = reader.get_attribute('firewall_type')
1941
+ object.firewall_type = value if not value.nil?
1922
1942
  value = reader.get_attribute('gluster_service')
1923
1943
  object.gluster_service = value if not value.nil?
1924
1944
  value = reader.get_attribute('gluster_tuned_profile')
@@ -1968,6 +1988,8 @@ module OvirtSDK4
1968
1988
  object.error_handling = ErrorHandlingReader.read_one(reader)
1969
1989
  when 'fencing_policy'
1970
1990
  object.fencing_policy = FencingPolicyReader.read_one(reader)
1991
+ when 'firewall_type'
1992
+ object.firewall_type = Reader.read_enum(FirewallType, reader)
1971
1993
  when 'gluster_service'
1972
1994
  object.gluster_service = Reader.read_boolean(reader)
1973
1995
  when 'gluster_tuned_profile'
@@ -2012,6 +2034,8 @@ module OvirtSDK4
2012
2034
  object.cpu_profiles = CpuProfileReader.read_many(reader)
2013
2035
  when 'data_center'
2014
2036
  object.data_center = DataCenterReader.read_one(reader)
2037
+ when 'enabled_features'
2038
+ object.enabled_features = ClusterFeatureReader.read_many(reader)
2015
2039
  when 'gluster_hooks'
2016
2040
  object.gluster_hooks = GlusterHookReader.read_many(reader)
2017
2041
  when 'gluster_volumes'
@@ -2078,6 +2102,8 @@ module OvirtSDK4
2078
2102
  object.affinity_groups = list
2079
2103
  when 'cpuprofiles'
2080
2104
  object.cpu_profiles = list
2105
+ when 'enabledfeatures'
2106
+ object.enabled_features = list
2081
2107
  when 'glusterhooks'
2082
2108
  object.gluster_hooks = list
2083
2109
  when 'glustervolumes'
@@ -2097,6 +2123,82 @@ module OvirtSDK4
2097
2123
 
2098
2124
  end
2099
2125
 
2126
+ class ClusterFeatureReader < Reader
2127
+
2128
+ def self.read_one(reader)
2129
+ # Do nothing if there aren't more tags:
2130
+ return nil unless reader.forward
2131
+
2132
+ # Create the object:
2133
+ object = ClusterFeature.new
2134
+
2135
+ # Process the attributes:
2136
+ object.href = reader.get_attribute('href')
2137
+ value = reader.get_attribute('comment')
2138
+ object.comment = value if not value.nil?
2139
+ value = reader.get_attribute('description')
2140
+ object.description = value if not value.nil?
2141
+ value = reader.get_attribute('id')
2142
+ object.id = value if not value.nil?
2143
+ value = reader.get_attribute('name')
2144
+ object.name = value if not value.nil?
2145
+
2146
+ # Discard the start tag:
2147
+ empty = reader.empty_element?
2148
+ reader.read
2149
+ return object if empty
2150
+
2151
+ # Process the inner elements:
2152
+ while reader.forward do
2153
+ case reader.node_name
2154
+ when 'comment'
2155
+ object.comment = Reader.read_string(reader)
2156
+ when 'description'
2157
+ object.description = Reader.read_string(reader)
2158
+ when 'id'
2159
+ object.id = Reader.read_string(reader)
2160
+ when 'name'
2161
+ object.name = Reader.read_string(reader)
2162
+ when 'cluster_level'
2163
+ object.cluster_level = ClusterLevelReader.read_one(reader)
2164
+ else
2165
+ reader.next_element
2166
+ end
2167
+ end
2168
+
2169
+ # Discard the end tag:
2170
+ reader.read
2171
+
2172
+ return object
2173
+ end
2174
+
2175
+
2176
+ def self.read_many(reader)
2177
+ # Do nothing if there aren't more tags:
2178
+ list = List.new
2179
+ return list unless reader.forward
2180
+
2181
+ # Process the attributes:
2182
+ list.href = reader.get_attribute('href')
2183
+
2184
+ # Discard the start tag:
2185
+ empty = reader.empty_element?
2186
+ reader.read
2187
+ return list if empty
2188
+
2189
+ # Process the inner elements:
2190
+ while reader.forward do
2191
+ list << read_one(reader)
2192
+ end
2193
+
2194
+ # Discard the end tag:
2195
+ reader.read
2196
+
2197
+ return list
2198
+ end
2199
+
2200
+ end
2201
+
2100
2202
  class ClusterLevelReader < Reader
2101
2203
 
2102
2204
  def self.read_one(reader)
@@ -2137,6 +2239,10 @@ module OvirtSDK4
2137
2239
  object.name = Reader.read_string(reader)
2138
2240
  when 'permits'
2139
2241
  object.permits = PermitReader.read_many(reader)
2242
+ when 'cluster_features'
2243
+ object.cluster_features = ClusterFeatureReader.read_many(reader)
2244
+ when 'link'
2245
+ read_link(reader, object)
2140
2246
  else
2141
2247
  reader.next_element
2142
2248
  end
@@ -2173,6 +2279,23 @@ module OvirtSDK4
2173
2279
  return list
2174
2280
  end
2175
2281
 
2282
+ def self.read_link(reader, object)
2283
+ # Process the attributes:
2284
+ rel = reader.get_attribute('rel')
2285
+ href = reader.get_attribute('href')
2286
+ if rel && href
2287
+ list = List.new
2288
+ list.href = href
2289
+ case rel
2290
+ when 'clusterfeatures'
2291
+ object.cluster_features = list
2292
+ end
2293
+ end
2294
+
2295
+ # Discard the rest of the element:
2296
+ reader.next_element
2297
+ end
2298
+
2176
2299
  end
2177
2300
 
2178
2301
  class ConfigurationReader < Reader
@@ -3123,6 +3246,8 @@ module OvirtSDK4
3123
3246
  object.status = value if not value.nil?
3124
3247
  value = reader.get_attribute('storage_type')
3125
3248
  object.storage_type = value if not value.nil?
3249
+ value = reader.get_attribute('total_size')
3250
+ object.total_size = value if not value.nil?
3126
3251
  value = reader.get_attribute('uses_scsi_reservation')
3127
3252
  object.uses_scsi_reservation = value if not value.nil?
3128
3253
  value = reader.get_attribute('wipe_after_delete')
@@ -3182,6 +3307,8 @@ module OvirtSDK4
3182
3307
  object.status = Reader.read_enum(DiskStatus, reader)
3183
3308
  when 'storage_type'
3184
3309
  object.storage_type = Reader.read_enum(DiskStorageType, reader)
3310
+ when 'total_size'
3311
+ object.total_size = Reader.read_integer(reader)
3185
3312
  when 'uses_scsi_reservation'
3186
3313
  object.uses_scsi_reservation = Reader.read_boolean(reader)
3187
3314
  when 'wipe_after_delete'
@@ -3302,6 +3429,8 @@ module OvirtSDK4
3302
3429
  object.name = value if not value.nil?
3303
3430
  value = reader.get_attribute('pass_discard')
3304
3431
  object.pass_discard = value if not value.nil?
3432
+ value = reader.get_attribute('read_only')
3433
+ object.read_only = value if not value.nil?
3305
3434
  value = reader.get_attribute('uses_scsi_reservation')
3306
3435
  object.uses_scsi_reservation = value if not value.nil?
3307
3436
 
@@ -3331,6 +3460,8 @@ module OvirtSDK4
3331
3460
  object.name = Reader.read_string(reader)
3332
3461
  when 'pass_discard'
3333
3462
  object.pass_discard = Reader.read_boolean(reader)
3463
+ when 'read_only'
3464
+ object.read_only = Reader.read_boolean(reader)
3334
3465
  when 'uses_scsi_reservation'
3335
3466
  object.uses_scsi_reservation = Reader.read_boolean(reader)
3336
3467
  when 'disk'
@@ -3531,6 +3662,8 @@ module OvirtSDK4
3531
3662
  object.status = value if not value.nil?
3532
3663
  value = reader.get_attribute('storage_type')
3533
3664
  object.storage_type = value if not value.nil?
3665
+ value = reader.get_attribute('total_size')
3666
+ object.total_size = value if not value.nil?
3534
3667
  value = reader.get_attribute('uses_scsi_reservation')
3535
3668
  object.uses_scsi_reservation = value if not value.nil?
3536
3669
  value = reader.get_attribute('wipe_after_delete')
@@ -3590,6 +3723,8 @@ module OvirtSDK4
3590
3723
  object.status = Reader.read_enum(DiskStatus, reader)
3591
3724
  when 'storage_type'
3592
3725
  object.storage_type = Reader.read_enum(DiskStorageType, reader)
3726
+ when 'total_size'
3727
+ object.total_size = Reader.read_integer(reader)
3593
3728
  when 'uses_scsi_reservation'
3594
3729
  object.uses_scsi_reservation = Reader.read_boolean(reader)
3595
3730
  when 'wipe_after_delete'
@@ -4167,6 +4302,8 @@ module OvirtSDK4
4167
4302
  object.flood_rate = value if not value.nil?
4168
4303
  value = reader.get_attribute('id')
4169
4304
  object.id = value if not value.nil?
4305
+ value = reader.get_attribute('index')
4306
+ object.index = value if not value.nil?
4170
4307
  value = reader.get_attribute('name')
4171
4308
  object.name = value if not value.nil?
4172
4309
  value = reader.get_attribute('origin')
@@ -4200,6 +4337,8 @@ module OvirtSDK4
4200
4337
  object.flood_rate = Reader.read_integer(reader)
4201
4338
  when 'id'
4202
4339
  object.id = Reader.read_string(reader)
4340
+ when 'index'
4341
+ object.index = Reader.read_integer(reader)
4203
4342
  when 'name'
4204
4343
  object.name = Reader.read_string(reader)
4205
4344
  when 'origin'
@@ -7070,7 +7209,7 @@ module OvirtSDK4
7070
7209
  when 'network_attachments'
7071
7210
  object.network_attachments = NetworkAttachmentReader.read_many(reader)
7072
7211
  when 'nics'
7073
- object.nics = NicReader.read_many(reader)
7212
+ object.nics = HostNicReader.read_many(reader)
7074
7213
  when 'host_numa_nodes'
7075
7214
  object.numa_nodes = NumaNodeReader.read_many(reader)
7076
7215
  when 'permissions'
@@ -7185,6 +7324,8 @@ module OvirtSDK4
7185
7324
  object.comment = value if not value.nil?
7186
7325
  value = reader.get_attribute('description')
7187
7326
  object.description = value if not value.nil?
7327
+ value = reader.get_attribute('driver')
7328
+ object.driver = value if not value.nil?
7188
7329
  value = reader.get_attribute('id')
7189
7330
  object.id = value if not value.nil?
7190
7331
  value = reader.get_attribute('iommu_group')
@@ -7210,6 +7351,8 @@ module OvirtSDK4
7210
7351
  object.comment = Reader.read_string(reader)
7211
7352
  when 'description'
7212
7353
  object.description = Reader.read_string(reader)
7354
+ when 'driver'
7355
+ object.driver = Reader.read_string(reader)
7213
7356
  when 'id'
7214
7357
  object.id = Reader.read_string(reader)
7215
7358
  when 'iommu_group'
@@ -7935,6 +8078,10 @@ module OvirtSDK4
7935
8078
  object.id = value if not value.nil?
7936
8079
  value = reader.get_attribute('name')
7937
8080
  object.name = value if not value.nil?
8081
+ value = reader.get_attribute('size')
8082
+ object.size = value if not value.nil?
8083
+ value = reader.get_attribute('type')
8084
+ object.type = value if not value.nil?
7938
8085
 
7939
8086
  # Discard the start tag:
7940
8087
  empty = reader.empty_element?
@@ -7952,6 +8099,10 @@ module OvirtSDK4
7952
8099
  object.id = Reader.read_string(reader)
7953
8100
  when 'name'
7954
8101
  object.name = Reader.read_string(reader)
8102
+ when 'size'
8103
+ object.size = Reader.read_integer(reader)
8104
+ when 'type'
8105
+ object.type = Reader.read_enum(ImageFileType, reader)
7955
8106
  when 'storage_domain'
7956
8107
  object.storage_domain = StorageDomainReader.read_one(reader)
7957
8108
  else
@@ -8044,10 +8195,14 @@ module OvirtSDK4
8044
8195
  object.proxy_url = Reader.read_string(reader)
8045
8196
  when 'signed_ticket'
8046
8197
  object.signed_ticket = Reader.read_string(reader)
8198
+ when 'disk'
8199
+ object.disk = DiskReader.read_one(reader)
8047
8200
  when 'host'
8048
8201
  object.host = HostReader.read_one(reader)
8049
8202
  when 'image'
8050
8203
  object.image = ImageReader.read_one(reader)
8204
+ when 'snapshot'
8205
+ object.snapshot = DiskSnapshotReader.read_one(reader)
8051
8206
  else
8052
8207
  reader.next_element
8053
8208
  end
@@ -9231,6 +9386,94 @@ module OvirtSDK4
9231
9386
 
9232
9387
  end
9233
9388
 
9389
+ class LinkLayerDiscoveryProtocolElementReader < Reader
9390
+
9391
+ def self.read_one(reader)
9392
+ # Do nothing if there aren't more tags:
9393
+ return nil unless reader.forward
9394
+
9395
+ # Create the object:
9396
+ object = LinkLayerDiscoveryProtocolElement.new
9397
+
9398
+ # Process the attributes:
9399
+ object.href = reader.get_attribute('href')
9400
+ value = reader.get_attribute('comment')
9401
+ object.comment = value if not value.nil?
9402
+ value = reader.get_attribute('description')
9403
+ object.description = value if not value.nil?
9404
+ value = reader.get_attribute('id')
9405
+ object.id = value if not value.nil?
9406
+ value = reader.get_attribute('name')
9407
+ object.name = value if not value.nil?
9408
+ value = reader.get_attribute('oui')
9409
+ object.oui = value if not value.nil?
9410
+ value = reader.get_attribute('subtype')
9411
+ object.subtype = value if not value.nil?
9412
+ value = reader.get_attribute('type')
9413
+ object.type = value if not value.nil?
9414
+
9415
+ # Discard the start tag:
9416
+ empty = reader.empty_element?
9417
+ reader.read
9418
+ return object if empty
9419
+
9420
+ # Process the inner elements:
9421
+ while reader.forward do
9422
+ case reader.node_name
9423
+ when 'comment'
9424
+ object.comment = Reader.read_string(reader)
9425
+ when 'description'
9426
+ object.description = Reader.read_string(reader)
9427
+ when 'id'
9428
+ object.id = Reader.read_string(reader)
9429
+ when 'name'
9430
+ object.name = Reader.read_string(reader)
9431
+ when 'oui'
9432
+ object.oui = Reader.read_integer(reader)
9433
+ when 'properties'
9434
+ object.properties = PropertyReader.read_many(reader)
9435
+ when 'subtype'
9436
+ object.subtype = Reader.read_integer(reader)
9437
+ when 'type'
9438
+ object.type = Reader.read_integer(reader)
9439
+ else
9440
+ reader.next_element
9441
+ end
9442
+ end
9443
+
9444
+ # Discard the end tag:
9445
+ reader.read
9446
+
9447
+ return object
9448
+ end
9449
+
9450
+
9451
+ def self.read_many(reader)
9452
+ # Do nothing if there aren't more tags:
9453
+ list = List.new
9454
+ return list unless reader.forward
9455
+
9456
+ # Process the attributes:
9457
+ list.href = reader.get_attribute('href')
9458
+
9459
+ # Discard the start tag:
9460
+ empty = reader.empty_element?
9461
+ reader.read
9462
+ return list if empty
9463
+
9464
+ # Process the inner elements:
9465
+ while reader.forward do
9466
+ list << read_one(reader)
9467
+ end
9468
+
9469
+ # Discard the end tag:
9470
+ reader.read
9471
+
9472
+ return list
9473
+ end
9474
+
9475
+ end
9476
+
9234
9477
  class LogicalUnitReader < Reader
9235
9478
 
9236
9479
  def self.read_one(reader)
@@ -10332,6 +10575,8 @@ module OvirtSDK4
10332
10575
  object.name = Reader.read_string(reader)
10333
10576
  when 'value'
10334
10577
  object.value = Reader.read_string(reader)
10578
+ when 'nic'
10579
+ object.nic = NicReader.read_one(reader)
10335
10580
  else
10336
10581
  reader.next_element
10337
10582
  end
@@ -14412,6 +14657,8 @@ module OvirtSDK4
14412
14657
  object.description = value if not value.nil?
14413
14658
  value = reader.get_attribute('fqdn')
14414
14659
  object.fqdn = value if not value.nil?
14660
+ value = reader.get_attribute('has_illegal_images')
14661
+ object.has_illegal_images = value if not value.nil?
14415
14662
  value = reader.get_attribute('id')
14416
14663
  object.id = value if not value.nil?
14417
14664
  value = reader.get_attribute('memory')
@@ -14501,6 +14748,8 @@ module OvirtSDK4
14501
14748
  object.guest_operating_system = GuestOperatingSystemReader.read_one(reader)
14502
14749
  when 'guest_time_zone'
14503
14750
  object.guest_time_zone = TimeZoneReader.read_one(reader)
14751
+ when 'has_illegal_images'
14752
+ object.has_illegal_images = Reader.read_boolean(reader)
14504
14753
  when 'high_availability'
14505
14754
  object.high_availability = HighAvailabilityReader.read_one(reader)
14506
14755
  when 'id'
@@ -15548,6 +15797,8 @@ module OvirtSDK4
15548
15797
  object.href = reader.get_attribute('href')
15549
15798
  value = reader.get_attribute('available')
15550
15799
  object.available = value if not value.nil?
15800
+ value = reader.get_attribute('backup')
15801
+ object.backup = value if not value.nil?
15551
15802
  value = reader.get_attribute('comment')
15552
15803
  object.comment = value if not value.nil?
15553
15804
  value = reader.get_attribute('committed')
@@ -15595,6 +15846,8 @@ module OvirtSDK4
15595
15846
  case reader.node_name
15596
15847
  when 'available'
15597
15848
  object.available = Reader.read_integer(reader)
15849
+ when 'backup'
15850
+ object.backup = Reader.read_boolean(reader)
15598
15851
  when 'comment'
15599
15852
  object.comment = Reader.read_string(reader)
15600
15853
  when 'committed'
@@ -15792,6 +16045,148 @@ module OvirtSDK4
15792
16045
 
15793
16046
  end
15794
16047
 
16048
+ class SystemOptionReader < Reader
16049
+
16050
+ def self.read_one(reader)
16051
+ # Do nothing if there aren't more tags:
16052
+ return nil unless reader.forward
16053
+
16054
+ # Create the object:
16055
+ object = SystemOption.new
16056
+
16057
+ # Process the attributes:
16058
+ object.href = reader.get_attribute('href')
16059
+ value = reader.get_attribute('comment')
16060
+ object.comment = value if not value.nil?
16061
+ value = reader.get_attribute('description')
16062
+ object.description = value if not value.nil?
16063
+ value = reader.get_attribute('id')
16064
+ object.id = value if not value.nil?
16065
+ value = reader.get_attribute('name')
16066
+ object.name = value if not value.nil?
16067
+
16068
+ # Discard the start tag:
16069
+ empty = reader.empty_element?
16070
+ reader.read
16071
+ return object if empty
16072
+
16073
+ # Process the inner elements:
16074
+ while reader.forward do
16075
+ case reader.node_name
16076
+ when 'comment'
16077
+ object.comment = Reader.read_string(reader)
16078
+ when 'description'
16079
+ object.description = Reader.read_string(reader)
16080
+ when 'id'
16081
+ object.id = Reader.read_string(reader)
16082
+ when 'name'
16083
+ object.name = Reader.read_string(reader)
16084
+ when 'values'
16085
+ object.values = SystemOptionValueReader.read_many(reader)
16086
+ else
16087
+ reader.next_element
16088
+ end
16089
+ end
16090
+
16091
+ # Discard the end tag:
16092
+ reader.read
16093
+
16094
+ return object
16095
+ end
16096
+
16097
+
16098
+ def self.read_many(reader)
16099
+ # Do nothing if there aren't more tags:
16100
+ list = List.new
16101
+ return list unless reader.forward
16102
+
16103
+ # Process the attributes:
16104
+ list.href = reader.get_attribute('href')
16105
+
16106
+ # Discard the start tag:
16107
+ empty = reader.empty_element?
16108
+ reader.read
16109
+ return list if empty
16110
+
16111
+ # Process the inner elements:
16112
+ while reader.forward do
16113
+ list << read_one(reader)
16114
+ end
16115
+
16116
+ # Discard the end tag:
16117
+ reader.read
16118
+
16119
+ return list
16120
+ end
16121
+
16122
+ end
16123
+
16124
+ class SystemOptionValueReader < Reader
16125
+
16126
+ def self.read_one(reader)
16127
+ # Do nothing if there aren't more tags:
16128
+ return nil unless reader.forward
16129
+
16130
+ # Create the object:
16131
+ object = SystemOptionValue.new
16132
+
16133
+ # Process the attributes:
16134
+ object.href = reader.get_attribute('href')
16135
+ value = reader.get_attribute('value')
16136
+ object.value = value if not value.nil?
16137
+ value = reader.get_attribute('version')
16138
+ object.version = value if not value.nil?
16139
+
16140
+ # Discard the start tag:
16141
+ empty = reader.empty_element?
16142
+ reader.read
16143
+ return object if empty
16144
+
16145
+ # Process the inner elements:
16146
+ while reader.forward do
16147
+ case reader.node_name
16148
+ when 'value'
16149
+ object.value = Reader.read_string(reader)
16150
+ when 'version'
16151
+ object.version = Reader.read_string(reader)
16152
+ else
16153
+ reader.next_element
16154
+ end
16155
+ end
16156
+
16157
+ # Discard the end tag:
16158
+ reader.read
16159
+
16160
+ return object
16161
+ end
16162
+
16163
+
16164
+ def self.read_many(reader)
16165
+ # Do nothing if there aren't more tags:
16166
+ list = List.new
16167
+ return list unless reader.forward
16168
+
16169
+ # Process the attributes:
16170
+ list.href = reader.get_attribute('href')
16171
+
16172
+ # Discard the start tag:
16173
+ empty = reader.empty_element?
16174
+ reader.read
16175
+ return list if empty
16176
+
16177
+ # Process the inner elements:
16178
+ while reader.forward do
16179
+ list << read_one(reader)
16180
+ end
16181
+
16182
+ # Discard the end tag:
16183
+ reader.read
16184
+
16185
+ return list
16186
+ end
16187
+
16188
+ end
16189
+
15795
16190
  class TagReader < Reader
15796
16191
 
15797
16192
  def self.read_one(reader)
@@ -17230,6 +17625,8 @@ module OvirtSDK4
17230
17625
  object.description = value if not value.nil?
17231
17626
  value = reader.get_attribute('fqdn')
17232
17627
  object.fqdn = value if not value.nil?
17628
+ value = reader.get_attribute('has_illegal_images')
17629
+ object.has_illegal_images = value if not value.nil?
17233
17630
  value = reader.get_attribute('id')
17234
17631
  object.id = value if not value.nil?
17235
17632
  value = reader.get_attribute('memory')
@@ -17311,6 +17708,8 @@ module OvirtSDK4
17311
17708
  object.guest_operating_system = GuestOperatingSystemReader.read_one(reader)
17312
17709
  when 'guest_time_zone'
17313
17710
  object.guest_time_zone = TimeZoneReader.read_one(reader)
17711
+ when 'has_illegal_images'
17712
+ object.has_illegal_images = Reader.read_boolean(reader)
17314
17713
  when 'high_availability'
17315
17714
  object.high_availability = HighAvailabilityReader.read_one(reader)
17316
17715
  when 'id'
@@ -18544,6 +18943,8 @@ module OvirtSDK4
18544
18943
  Reader.register('cloud_inits', CloudInitReader.method(:read_many))
18545
18944
  Reader.register('cluster', ClusterReader.method(:read_one))
18546
18945
  Reader.register('clusters', ClusterReader.method(:read_many))
18946
+ Reader.register('cluster_feature', ClusterFeatureReader.method(:read_one))
18947
+ Reader.register('cluster_features', ClusterFeatureReader.method(:read_many))
18547
18948
  Reader.register('cluster_level', ClusterLevelReader.method(:read_one))
18548
18949
  Reader.register('cluster_levels', ClusterLevelReader.method(:read_many))
18549
18950
  Reader.register('configuration', ConfigurationReader.method(:read_one))
@@ -18692,6 +19093,8 @@ module OvirtSDK4
18692
19093
  Reader.register('kernels', KernelReader.method(:read_many))
18693
19094
  Reader.register('ksm', KsmReader.method(:read_one))
18694
19095
  Reader.register('ksms', KsmReader.method(:read_many))
19096
+ Reader.register('link_layer_discovery_protocol_element', LinkLayerDiscoveryProtocolElementReader.method(:read_one))
19097
+ Reader.register('link_layer_discovery_protocol_elements', LinkLayerDiscoveryProtocolElementReader.method(:read_many))
18695
19098
  Reader.register('logical_unit', LogicalUnitReader.method(:read_one))
18696
19099
  Reader.register('logical_units', LogicalUnitReader.method(:read_many))
18697
19100
  Reader.register('mac', MacReader.method(:read_one))
@@ -18838,6 +19241,10 @@ module OvirtSDK4
18838
19241
  Reader.register('storage_domains', StorageDomainReader.method(:read_many))
18839
19242
  Reader.register('storage_domain_lease', StorageDomainLeaseReader.method(:read_one))
18840
19243
  Reader.register('storage_domain_leases', StorageDomainLeaseReader.method(:read_many))
19244
+ Reader.register('system_option', SystemOptionReader.method(:read_one))
19245
+ Reader.register('system_options', SystemOptionReader.method(:read_many))
19246
+ Reader.register('system_option_value', SystemOptionValueReader.method(:read_one))
19247
+ Reader.register('system_option_values', SystemOptionValueReader.method(:read_many))
18841
19248
  Reader.register('tag', TagReader.method(:read_one))
18842
19249
  Reader.register('tags', TagReader.method(:read_many))
18843
19250
  Reader.register('template', TemplateReader.method(:read_one))