ovirt-engine-sdk 4.4.0 → 4.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.adoc +5 -0
- data/lib/ovirtsdk4/readers.rb +306 -4
- data/lib/ovirtsdk4/services.rb +967 -25
- data/lib/ovirtsdk4/types.rb +1201 -192
- data/lib/ovirtsdk4/version.rb +1 -1
- data/lib/ovirtsdk4/writers.rb +94 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cbf21cc36a2d2e6cc01b2c93a66c911d986f701204f5da8c9a546dd03eda60e
|
4
|
+
data.tar.gz: 0102e341d81119a0f2e6c8181e2931c1bf57134836d1cc4a8d28eace0c873287
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee46d1debeafe7d3fe376f86413aaa650ba99e7bc2e211868b2418a6597c832e0bb3f8aa0da8cfff4ec3501d41af66a74fad9125c5a3550b8ddd4ffa1a3f3c2c
|
7
|
+
data.tar.gz: b0f854782e5e8257056d51c03e070d509972baa175c8006d06e3e75ad13968eef5624b4fd23a58ff65c8258df93060b0b6e9a34d11bc601edcbbfbcffa7729db
|
data/CHANGES.adoc
CHANGED
data/lib/ovirtsdk4/readers.rb
CHANGED
@@ -34,6 +34,8 @@ module OvirtSDK4
|
|
34
34
|
object.allow_partial_import = value if not value.nil?
|
35
35
|
value = reader.get_attribute('async')
|
36
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?
|
37
39
|
value = reader.get_attribute('check_connectivity')
|
38
40
|
object.check_connectivity = value if not value.nil?
|
39
41
|
value = reader.get_attribute('clone')
|
@@ -84,6 +86,8 @@ module OvirtSDK4
|
|
84
86
|
object.migrate_vms_in_affinity_closure = value if not value.nil?
|
85
87
|
value = reader.get_attribute('name')
|
86
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?
|
87
91
|
value = reader.get_attribute('pause')
|
88
92
|
object.pause = value if not value.nil?
|
89
93
|
value = reader.get_attribute('reason')
|
@@ -143,6 +147,8 @@ module OvirtSDK4
|
|
143
147
|
object.attachment = DiskAttachmentReader.read_one(reader)
|
144
148
|
when 'authorized_key'
|
145
149
|
object.authorized_key = AuthorizedKeyReader.read_one(reader)
|
150
|
+
when 'auto_pinning_policy'
|
151
|
+
object.auto_pinning_policy = Reader.read_enum(AutoPinningPolicy, reader)
|
146
152
|
when 'bricks'
|
147
153
|
object.bricks = GlusterBrickReader.read_many(reader)
|
148
154
|
when 'certificates'
|
@@ -237,6 +243,8 @@ module OvirtSDK4
|
|
237
243
|
object.modified_network_attachments = NetworkAttachmentReader.read_many(reader)
|
238
244
|
when 'name'
|
239
245
|
object.name = Reader.read_string(reader)
|
246
|
+
when 'optimize_cpu_settings'
|
247
|
+
object.optimize_cpu_settings = Reader.read_boolean(reader)
|
240
248
|
when 'option'
|
241
249
|
object.option = OptionReader.read_one(reader)
|
242
250
|
when 'pause'
|
@@ -1263,6 +1271,8 @@ module OvirtSDK4
|
|
1263
1271
|
object.to_checkpoint_id = Reader.read_string(reader)
|
1264
1272
|
when 'disks'
|
1265
1273
|
object.disks = DiskReader.read_many(reader)
|
1274
|
+
when 'host'
|
1275
|
+
object.host = HostReader.read_one(reader)
|
1266
1276
|
when 'vm'
|
1267
1277
|
object.vm = VmReader.read_one(reader)
|
1268
1278
|
when 'link'
|
@@ -2041,6 +2051,111 @@ module OvirtSDK4
|
|
2041
2051
|
|
2042
2052
|
end
|
2043
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
|
+
|
2044
2159
|
class CloudInitReader < Reader
|
2045
2160
|
|
2046
2161
|
def self.read_one(reader)
|
@@ -2136,6 +2251,8 @@ module OvirtSDK4
|
|
2136
2251
|
object.comment = value if not value.nil?
|
2137
2252
|
value = reader.get_attribute('description')
|
2138
2253
|
object.description = value if not value.nil?
|
2254
|
+
value = reader.get_attribute('fips_mode')
|
2255
|
+
object.fips_mode = value if not value.nil?
|
2139
2256
|
value = reader.get_attribute('firewall_type')
|
2140
2257
|
object.firewall_type = value if not value.nil?
|
2141
2258
|
value = reader.get_attribute('gluster_service')
|
@@ -2166,6 +2283,8 @@ module OvirtSDK4
|
|
2166
2283
|
object.tunnel_migration = value if not value.nil?
|
2167
2284
|
value = reader.get_attribute('virt_service')
|
2168
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?
|
2169
2288
|
|
2170
2289
|
# Discard the start tag:
|
2171
2290
|
empty = reader.empty_element?
|
@@ -2193,6 +2312,8 @@ module OvirtSDK4
|
|
2193
2312
|
object.error_handling = ErrorHandlingReader.read_one(reader)
|
2194
2313
|
when 'fencing_policy'
|
2195
2314
|
object.fencing_policy = FencingPolicyReader.read_one(reader)
|
2315
|
+
when 'fips_mode'
|
2316
|
+
object.fips_mode = Reader.read_enum(FipsMode, reader)
|
2196
2317
|
when 'firewall_type'
|
2197
2318
|
object.firewall_type = Reader.read_enum(FirewallType, reader)
|
2198
2319
|
when 'gluster_service'
|
@@ -2237,6 +2358,8 @@ module OvirtSDK4
|
|
2237
2358
|
object.version = VersionReader.read_one(reader)
|
2238
2359
|
when 'virt_service'
|
2239
2360
|
object.virt_service = Reader.read_boolean(reader)
|
2361
|
+
when 'vnc_encryption'
|
2362
|
+
object.vnc_encryption = Reader.read_boolean(reader)
|
2240
2363
|
when 'affinity_groups'
|
2241
2364
|
object.affinity_groups = AffinityGroupReader.read_many(reader)
|
2242
2365
|
when 'cpu_profiles'
|
@@ -3423,6 +3546,8 @@ module OvirtSDK4
|
|
3423
3546
|
object.alias_ = value if not value.nil?
|
3424
3547
|
value = reader.get_attribute('backup')
|
3425
3548
|
object.backup = value if not value.nil?
|
3549
|
+
value = reader.get_attribute('backup_mode')
|
3550
|
+
object.backup_mode = value if not value.nil?
|
3426
3551
|
value = reader.get_attribute('bootable')
|
3427
3552
|
object.bootable = value if not value.nil?
|
3428
3553
|
value = reader.get_attribute('comment')
|
@@ -3431,6 +3556,8 @@ module OvirtSDK4
|
|
3431
3556
|
object.content_type = value if not value.nil?
|
3432
3557
|
value = reader.get_attribute('description')
|
3433
3558
|
object.description = value if not value.nil?
|
3559
|
+
value = reader.get_attribute('external_disk')
|
3560
|
+
object.external_disk = value if not value.nil?
|
3434
3561
|
value = reader.get_attribute('format')
|
3435
3562
|
object.format = value if not value.nil?
|
3436
3563
|
value = reader.get_attribute('id')
|
@@ -3486,6 +3613,8 @@ module OvirtSDK4
|
|
3486
3613
|
object.alias_ = Reader.read_string(reader)
|
3487
3614
|
when 'backup'
|
3488
3615
|
object.backup = Reader.read_enum(DiskBackup, reader)
|
3616
|
+
when 'backup_mode'
|
3617
|
+
object.backup_mode = Reader.read_enum(DiskBackupMode, reader)
|
3489
3618
|
when 'bootable'
|
3490
3619
|
object.bootable = Reader.read_boolean(reader)
|
3491
3620
|
when 'comment'
|
@@ -3494,6 +3623,8 @@ module OvirtSDK4
|
|
3494
3623
|
object.content_type = Reader.read_enum(DiskContentType, reader)
|
3495
3624
|
when 'description'
|
3496
3625
|
object.description = Reader.read_string(reader)
|
3626
|
+
when 'external_disk'
|
3627
|
+
object.external_disk = Reader.read_string(reader)
|
3497
3628
|
when 'format'
|
3498
3629
|
object.format = Reader.read_enum(DiskFormat, reader)
|
3499
3630
|
when 'id'
|
@@ -3536,6 +3667,8 @@ module OvirtSDK4
|
|
3536
3667
|
object.wipe_after_delete = Reader.read_boolean(reader)
|
3537
3668
|
when 'disk_profile'
|
3538
3669
|
object.disk_profile = DiskProfileReader.read_one(reader)
|
3670
|
+
when 'disk_snapshots'
|
3671
|
+
object.disk_snapshots = DiskSnapshotReader.read_many(reader)
|
3539
3672
|
when 'instance_type'
|
3540
3673
|
object.instance_type = InstanceTypeReader.read_one(reader)
|
3541
3674
|
when 'openstack_volume_type'
|
@@ -3604,6 +3737,8 @@ module OvirtSDK4
|
|
3604
3737
|
list = List.new
|
3605
3738
|
list.href = href
|
3606
3739
|
case rel
|
3740
|
+
when 'disksnapshots'
|
3741
|
+
object.disk_snapshots = list
|
3607
3742
|
when 'permissions'
|
3608
3743
|
object.permissions = list
|
3609
3744
|
when 'statistics'
|
@@ -3847,6 +3982,8 @@ module OvirtSDK4
|
|
3847
3982
|
object.alias_ = value if not value.nil?
|
3848
3983
|
value = reader.get_attribute('backup')
|
3849
3984
|
object.backup = value if not value.nil?
|
3985
|
+
value = reader.get_attribute('backup_mode')
|
3986
|
+
object.backup_mode = value if not value.nil?
|
3850
3987
|
value = reader.get_attribute('bootable')
|
3851
3988
|
object.bootable = value if not value.nil?
|
3852
3989
|
value = reader.get_attribute('comment')
|
@@ -3855,6 +3992,8 @@ module OvirtSDK4
|
|
3855
3992
|
object.content_type = value if not value.nil?
|
3856
3993
|
value = reader.get_attribute('description')
|
3857
3994
|
object.description = value if not value.nil?
|
3995
|
+
value = reader.get_attribute('external_disk')
|
3996
|
+
object.external_disk = value if not value.nil?
|
3858
3997
|
value = reader.get_attribute('format')
|
3859
3998
|
object.format = value if not value.nil?
|
3860
3999
|
value = reader.get_attribute('id')
|
@@ -3910,6 +4049,8 @@ module OvirtSDK4
|
|
3910
4049
|
object.alias_ = Reader.read_string(reader)
|
3911
4050
|
when 'backup'
|
3912
4051
|
object.backup = Reader.read_enum(DiskBackup, reader)
|
4052
|
+
when 'backup_mode'
|
4053
|
+
object.backup_mode = Reader.read_enum(DiskBackupMode, reader)
|
3913
4054
|
when 'bootable'
|
3914
4055
|
object.bootable = Reader.read_boolean(reader)
|
3915
4056
|
when 'comment'
|
@@ -3918,6 +4059,8 @@ module OvirtSDK4
|
|
3918
4059
|
object.content_type = Reader.read_enum(DiskContentType, reader)
|
3919
4060
|
when 'description'
|
3920
4061
|
object.description = Reader.read_string(reader)
|
4062
|
+
when 'external_disk'
|
4063
|
+
object.external_disk = Reader.read_string(reader)
|
3921
4064
|
when 'format'
|
3922
4065
|
object.format = Reader.read_enum(DiskFormat, reader)
|
3923
4066
|
when 'id'
|
@@ -3962,10 +4105,14 @@ module OvirtSDK4
|
|
3962
4105
|
object.disk = DiskReader.read_one(reader)
|
3963
4106
|
when 'disk_profile'
|
3964
4107
|
object.disk_profile = DiskProfileReader.read_one(reader)
|
4108
|
+
when 'disk_snapshots'
|
4109
|
+
object.disk_snapshots = DiskSnapshotReader.read_many(reader)
|
3965
4110
|
when 'instance_type'
|
3966
4111
|
object.instance_type = InstanceTypeReader.read_one(reader)
|
3967
4112
|
when 'openstack_volume_type'
|
3968
4113
|
object.openstack_volume_type = OpenStackVolumeTypeReader.read_one(reader)
|
4114
|
+
when 'parent'
|
4115
|
+
object.parent = DiskSnapshotReader.read_one(reader)
|
3969
4116
|
when 'permissions'
|
3970
4117
|
object.permissions = PermissionReader.read_many(reader)
|
3971
4118
|
when 'quota'
|
@@ -4030,6 +4177,8 @@ module OvirtSDK4
|
|
4030
4177
|
list = List.new
|
4031
4178
|
list.href = href
|
4032
4179
|
case rel
|
4180
|
+
when 'disksnapshots'
|
4181
|
+
object.disk_snapshots = list
|
4033
4182
|
when 'permissions'
|
4034
4183
|
object.permissions = list
|
4035
4184
|
when 'statistics'
|
@@ -7502,6 +7651,8 @@ module OvirtSDK4
|
|
7502
7651
|
object.port = value if not value.nil?
|
7503
7652
|
value = reader.get_attribute('protocol')
|
7504
7653
|
object.protocol = value if not value.nil?
|
7654
|
+
value = reader.get_attribute('reinstallation_required')
|
7655
|
+
object.reinstallation_required = value if not value.nil?
|
7505
7656
|
value = reader.get_attribute('root_password')
|
7506
7657
|
object.root_password = value if not value.nil?
|
7507
7658
|
value = reader.get_attribute('status')
|
@@ -7575,6 +7726,8 @@ module OvirtSDK4
|
|
7575
7726
|
object.power_management = PowerManagementReader.read_one(reader)
|
7576
7727
|
when 'protocol'
|
7577
7728
|
object.protocol = Reader.read_enum(HostProtocol, reader)
|
7729
|
+
when 'reinstallation_required'
|
7730
|
+
object.reinstallation_required = Reader.read_boolean(reader)
|
7578
7731
|
when 'root_password'
|
7579
7732
|
object.root_password = Reader.read_string(reader)
|
7580
7733
|
when 'se_linux'
|
@@ -8612,8 +8765,10 @@ module OvirtSDK4
|
|
8612
8765
|
object.phase = value if not value.nil?
|
8613
8766
|
value = reader.get_attribute('proxy_url')
|
8614
8767
|
object.proxy_url = value if not value.nil?
|
8615
|
-
value = reader.get_attribute('
|
8616
|
-
object.
|
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?
|
8617
8772
|
value = reader.get_attribute('transfer_url')
|
8618
8773
|
object.transfer_url = value if not value.nil?
|
8619
8774
|
value = reader.get_attribute('transferred')
|
@@ -8647,8 +8802,10 @@ module OvirtSDK4
|
|
8647
8802
|
object.phase = Reader.read_enum(ImageTransferPhase, reader)
|
8648
8803
|
when 'proxy_url'
|
8649
8804
|
object.proxy_url = Reader.read_string(reader)
|
8650
|
-
when '
|
8651
|
-
object.
|
8805
|
+
when 'shallow'
|
8806
|
+
object.shallow = Reader.read_boolean(reader)
|
8807
|
+
when 'timeout_policy'
|
8808
|
+
object.timeout_policy = Reader.read_enum(ImageTransferTimeoutPolicy, reader)
|
8652
8809
|
when 'transfer_url'
|
8653
8810
|
object.transfer_url = Reader.read_string(reader)
|
8654
8811
|
when 'transferred'
|
@@ -8892,6 +9049,8 @@ module OvirtSDK4
|
|
8892
9049
|
object.tunnel_migration = value if not value.nil?
|
8893
9050
|
value = reader.get_attribute('type')
|
8894
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?
|
8895
9054
|
|
8896
9055
|
# Discard the start tag:
|
8897
9056
|
empty = reader.empty_element?
|
@@ -8989,6 +9148,8 @@ module OvirtSDK4
|
|
8989
9148
|
object.version = TemplateVersionReader.read_one(reader)
|
8990
9149
|
when 'virtio_scsi'
|
8991
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)
|
8992
9153
|
when 'vm'
|
8993
9154
|
object.vm = VmReader.read_one(reader)
|
8994
9155
|
when 'cdroms'
|
@@ -10260,6 +10421,10 @@ module OvirtSDK4
|
|
10260
10421
|
object.name = Reader.read_string(reader)
|
10261
10422
|
when 'ranges'
|
10262
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)
|
10263
10428
|
else
|
10264
10429
|
reader.next_element
|
10265
10430
|
end
|
@@ -10296,6 +10461,23 @@ module OvirtSDK4
|
|
10296
10461
|
return list
|
10297
10462
|
end
|
10298
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
|
+
|
10299
10481
|
end
|
10300
10482
|
|
10301
10483
|
class MemoryOverCommitReader < Reader
|
@@ -10733,6 +10915,8 @@ module OvirtSDK4
|
|
10733
10915
|
object.mtu = value if not value.nil?
|
10734
10916
|
value = reader.get_attribute('name')
|
10735
10917
|
object.name = value if not value.nil?
|
10918
|
+
value = reader.get_attribute('port_isolation')
|
10919
|
+
object.port_isolation = value if not value.nil?
|
10736
10920
|
value = reader.get_attribute('profile_required')
|
10737
10921
|
object.profile_required = value if not value.nil?
|
10738
10922
|
value = reader.get_attribute('required')
|
@@ -10768,6 +10952,8 @@ module OvirtSDK4
|
|
10768
10952
|
object.mtu = Reader.read_integer(reader)
|
10769
10953
|
when 'name'
|
10770
10954
|
object.name = Reader.read_string(reader)
|
10955
|
+
when 'port_isolation'
|
10956
|
+
object.port_isolation = Reader.read_boolean(reader)
|
10771
10957
|
when 'profile_required'
|
10772
10958
|
object.profile_required = Reader.read_boolean(reader)
|
10773
10959
|
when 'required'
|
@@ -13500,6 +13686,8 @@ module OvirtSDK4
|
|
13500
13686
|
|
13501
13687
|
# Process the attributes:
|
13502
13688
|
object.href = reader.get_attribute('href')
|
13689
|
+
value = reader.get_attribute('instance_id')
|
13690
|
+
object.instance_id = value if not value.nil?
|
13503
13691
|
value = reader.get_attribute('name')
|
13504
13692
|
object.name = value if not value.nil?
|
13505
13693
|
value = reader.get_attribute('vendor')
|
@@ -13513,6 +13701,8 @@ module OvirtSDK4
|
|
13513
13701
|
# Process the inner elements:
|
13514
13702
|
while reader.forward do
|
13515
13703
|
case reader.node_name
|
13704
|
+
when 'instance_id'
|
13705
|
+
object.instance_id = Reader.read_string(reader)
|
13516
13706
|
when 'name'
|
13517
13707
|
object.name = Reader.read_string(reader)
|
13518
13708
|
when 'vendor'
|
@@ -15797,6 +15987,8 @@ module OvirtSDK4
|
|
15797
15987
|
object.type = value if not value.nil?
|
15798
15988
|
value = reader.get_attribute('use_latest_template_version')
|
15799
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?
|
15800
15992
|
|
15801
15993
|
# Discard the start tag:
|
15802
15994
|
empty = reader.empty_element?
|
@@ -15926,6 +16118,8 @@ module OvirtSDK4
|
|
15926
16118
|
object.use_latest_template_version = Reader.read_boolean(reader)
|
15927
16119
|
when 'virtio_scsi'
|
15928
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)
|
15929
16123
|
when 'affinity_labels'
|
15930
16124
|
object.affinity_labels = AffinityLabelReader.read_many(reader)
|
15931
16125
|
when 'applications'
|
@@ -16228,6 +16422,8 @@ module OvirtSDK4
|
|
16228
16422
|
object.name = value if not value.nil?
|
16229
16423
|
value = reader.get_attribute('port')
|
16230
16424
|
object.port = value if not value.nil?
|
16425
|
+
value = reader.get_attribute('public_key')
|
16426
|
+
object.public_key = value if not value.nil?
|
16231
16427
|
|
16232
16428
|
# Discard the start tag:
|
16233
16429
|
empty = reader.empty_element?
|
@@ -16251,6 +16447,8 @@ module OvirtSDK4
|
|
16251
16447
|
object.name = Reader.read_string(reader)
|
16252
16448
|
when 'port'
|
16253
16449
|
object.port = Reader.read_integer(reader)
|
16450
|
+
when 'public_key'
|
16451
|
+
object.public_key = Reader.read_string(reader)
|
16254
16452
|
when 'user'
|
16255
16453
|
object.user = UserReader.read_one(reader)
|
16256
16454
|
else
|
@@ -17432,6 +17630,8 @@ module OvirtSDK4
|
|
17432
17630
|
object.tunnel_migration = value if not value.nil?
|
17433
17631
|
value = reader.get_attribute('type')
|
17434
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?
|
17435
17635
|
|
17436
17636
|
# Discard the start tag:
|
17437
17637
|
empty = reader.empty_element?
|
@@ -17529,6 +17729,8 @@ module OvirtSDK4
|
|
17529
17729
|
object.version = TemplateVersionReader.read_one(reader)
|
17530
17730
|
when 'virtio_scsi'
|
17531
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)
|
17532
17734
|
when 'vm'
|
17533
17735
|
object.vm = VmReader.read_one(reader)
|
17534
17736
|
when 'cdroms'
|
@@ -18106,6 +18308,8 @@ module OvirtSDK4
|
|
18106
18308
|
object.domain = DomainReader.read_one(reader)
|
18107
18309
|
when 'groups'
|
18108
18310
|
object.groups = GroupReader.read_many(reader)
|
18311
|
+
when 'options'
|
18312
|
+
object.options = UserOptionReader.read_many(reader)
|
18109
18313
|
when 'permissions'
|
18110
18314
|
object.permissions = PermissionReader.read_many(reader)
|
18111
18315
|
when 'roles'
|
@@ -18162,6 +18366,8 @@ module OvirtSDK4
|
|
18162
18366
|
case rel
|
18163
18367
|
when 'groups'
|
18164
18368
|
object.groups = list
|
18369
|
+
when 'options'
|
18370
|
+
object.options = list
|
18165
18371
|
when 'permissions'
|
18166
18372
|
object.permissions = list
|
18167
18373
|
when 'roles'
|
@@ -18179,6 +18385,86 @@ module OvirtSDK4
|
|
18179
18385
|
|
18180
18386
|
end
|
18181
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
|
+
|
18182
18468
|
class ValueReader < Reader
|
18183
18469
|
|
18184
18470
|
def self.read_one(reader)
|
@@ -18566,6 +18852,8 @@ module OvirtSDK4
|
|
18566
18852
|
object.name = value if not value.nil?
|
18567
18853
|
value = reader.get_attribute('node_distance')
|
18568
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?
|
18569
18857
|
|
18570
18858
|
# Discard the start tag:
|
18571
18859
|
empty = reader.empty_element?
|
@@ -18593,6 +18881,8 @@ module OvirtSDK4
|
|
18593
18881
|
object.node_distance = Reader.read_string(reader)
|
18594
18882
|
when 'numa_node_pins'
|
18595
18883
|
object.numa_node_pins = NumaNodePinReader.read_many(reader)
|
18884
|
+
when 'numa_tune_mode'
|
18885
|
+
object.numa_tune_mode = Reader.read_enum(NumaTuneMode, reader)
|
18596
18886
|
when 'host'
|
18597
18887
|
object.host = HostReader.read_one(reader)
|
18598
18888
|
when 'statistics'
|
@@ -18789,6 +19079,8 @@ module OvirtSDK4
|
|
18789
19079
|
object.type = value if not value.nil?
|
18790
19080
|
value = reader.get_attribute('use_latest_template_version')
|
18791
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?
|
18792
19084
|
|
18793
19085
|
# Discard the start tag:
|
18794
19086
|
empty = reader.empty_element?
|
@@ -18910,6 +19202,8 @@ module OvirtSDK4
|
|
18910
19202
|
object.use_latest_template_version = Reader.read_boolean(reader)
|
18911
19203
|
when 'virtio_scsi'
|
18912
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)
|
18913
19207
|
when 'affinity_labels'
|
18914
19208
|
object.affinity_labels = AffinityLabelReader.read_many(reader)
|
18915
19209
|
when 'applications'
|
@@ -19102,6 +19396,8 @@ module OvirtSDK4
|
|
19102
19396
|
object.tunnel_migration = value if not value.nil?
|
19103
19397
|
value = reader.get_attribute('type')
|
19104
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?
|
19105
19401
|
|
19106
19402
|
# Discard the start tag:
|
19107
19403
|
empty = reader.empty_element?
|
@@ -19195,6 +19491,8 @@ module OvirtSDK4
|
|
19195
19491
|
object.usb = UsbReader.read_one(reader)
|
19196
19492
|
when 'virtio_scsi'
|
19197
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)
|
19198
19496
|
when 'cluster'
|
19199
19497
|
object.cluster = ClusterReader.read_one(reader)
|
19200
19498
|
when 'cpu_profile'
|
@@ -20079,6 +20377,8 @@ module OvirtSDK4
|
|
20079
20377
|
Reader.register('cdroms', CdromReader.method(:read_many))
|
20080
20378
|
Reader.register('certificate', CertificateReader.method(:read_one))
|
20081
20379
|
Reader.register('certificates', CertificateReader.method(:read_many))
|
20380
|
+
Reader.register('checkpoint', CheckpointReader.method(:read_one))
|
20381
|
+
Reader.register('checkpoints', CheckpointReader.method(:read_many))
|
20082
20382
|
Reader.register('cloud_init', CloudInitReader.method(:read_one))
|
20083
20383
|
Reader.register('cloud_inits', CloudInitReader.method(:read_many))
|
20084
20384
|
Reader.register('cluster', ClusterReader.method(:read_one))
|
@@ -20425,6 +20725,8 @@ module OvirtSDK4
|
|
20425
20725
|
Reader.register('usbs', UsbReader.method(:read_many))
|
20426
20726
|
Reader.register('user', UserReader.method(:read_one))
|
20427
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))
|
20428
20730
|
Reader.register('value', ValueReader.method(:read_one))
|
20429
20731
|
Reader.register('values', ValueReader.method(:read_many))
|
20430
20732
|
Reader.register('vcpu_pin', VcpuPinReader.method(:read_one))
|