ovirt-engine-sdk 4.0.0.alpha13 → 4.0.0.alpha14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ovirtsdk4/http.rb +7 -3
- data/lib/ovirtsdk4/readers.rb +1427 -21
- data/lib/ovirtsdk4/services.rb +254 -1
- data/lib/ovirtsdk4/types.rb +3237 -0
- data/lib/ovirtsdk4/version.rb +1 -1
- data/lib/ovirtsdk4/writers.rb +524 -355
- metadata +26 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf1696675d47e92593addb9b06009bcd91635eed
|
4
|
+
data.tar.gz: b72f0002c3ef4748781130e4e3d0027de190d41b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bcf816c99cbd8d8c0d8fd1eeb13d87b1e92eff95f30171c2936b4d8b81aa30d10d7c96bbf5ab5d1bff661a629e747026162d4ebf0a982c9290f5e3ceb488cbb
|
7
|
+
data.tar.gz: be600fc25637f451c44a7c2fc14ef3c21f114b7898e23474bb5caa4183fb3b4c4e605181c4e6d8f3ff23ca7eb56e55f685d44053e158afd6380a887a248fa50a
|
data/lib/ovirtsdk4/http.rb
CHANGED
@@ -592,11 +592,15 @@ module OvirtSDK4
|
|
592
592
|
raise Error.new("The URL '#{href}' isn't compatible with the base URL of the connection")
|
593
593
|
end
|
594
594
|
|
595
|
-
# Remove the prefix from the URL, follow the path to the relevant service and invoke the "get" method
|
596
|
-
# retrieve its representation:
|
595
|
+
# Remove the prefix from the URL, follow the path to the relevant service and invoke the "get" or "list" method
|
596
|
+
# to retrieve its representation:
|
597
597
|
path = href[prefix.length..-1]
|
598
598
|
service = service(path)
|
599
|
-
|
599
|
+
if object.is_a?(Array)
|
600
|
+
service.list
|
601
|
+
else
|
602
|
+
service.get
|
603
|
+
end
|
600
604
|
end
|
601
605
|
|
602
606
|
#
|
data/lib/ovirtsdk4/readers.rb
CHANGED
@@ -34,6 +34,8 @@ module OvirtSDK4
|
|
34
34
|
object.check_connectivity = value if not value.nil?
|
35
35
|
value = reader.get_attribute('clone')
|
36
36
|
object.clone = value if not value.nil?
|
37
|
+
value = reader.get_attribute('collapse_snapshots')
|
38
|
+
object.collapse_snapshots = value if not value.nil?
|
37
39
|
value = reader.get_attribute('comment')
|
38
40
|
object.comment = value if not value.nil?
|
39
41
|
value = reader.get_attribute('connectivity_timeout')
|
@@ -111,6 +113,8 @@ module OvirtSDK4
|
|
111
113
|
object.clone = Reader.read_boolean(reader)
|
112
114
|
when 'cluster'
|
113
115
|
object.cluster = ClusterReader.read_one(reader)
|
116
|
+
when 'collapse_snapshots'
|
117
|
+
object.collapse_snapshots = Reader.read_boolean(reader)
|
114
118
|
when 'comment'
|
115
119
|
object.comment = Reader.read_string(reader)
|
116
120
|
when 'connectivity_timeout'
|
@@ -309,6 +313,10 @@ module OvirtSDK4
|
|
309
313
|
object.positive = Reader.read_boolean(reader)
|
310
314
|
when 'cluster'
|
311
315
|
object.cluster = ClusterReader.read_one(reader)
|
316
|
+
when 'vms'
|
317
|
+
object.vms = VmReader.read_many(reader)
|
318
|
+
when 'link'
|
319
|
+
read_link(reader, object)
|
312
320
|
else
|
313
321
|
reader.next_element
|
314
322
|
end
|
@@ -345,6 +353,23 @@ module OvirtSDK4
|
|
345
353
|
return list
|
346
354
|
end
|
347
355
|
|
356
|
+
def self.read_link(reader, object)
|
357
|
+
# Process the attributes:
|
358
|
+
rel = reader.get_attribute('rel')
|
359
|
+
href = reader.get_attribute('href')
|
360
|
+
if rel && href
|
361
|
+
list = List.new
|
362
|
+
list.href = href
|
363
|
+
case rel
|
364
|
+
when 'vms'
|
365
|
+
object.vms = list
|
366
|
+
end
|
367
|
+
end
|
368
|
+
|
369
|
+
# Discard the rest of the element:
|
370
|
+
reader.next_element
|
371
|
+
end
|
372
|
+
|
348
373
|
end
|
349
374
|
|
350
375
|
class AffinityLabelReader < Reader # :nodoc:
|
@@ -391,6 +416,8 @@ module OvirtSDK4
|
|
391
416
|
object.hosts = HostReader.read_many(reader)
|
392
417
|
when 'vms'
|
393
418
|
object.vms = VmReader.read_many(reader)
|
419
|
+
when 'link'
|
420
|
+
read_link(reader, object)
|
394
421
|
else
|
395
422
|
reader.next_element
|
396
423
|
end
|
@@ -427,6 +454,25 @@ module OvirtSDK4
|
|
427
454
|
return list
|
428
455
|
end
|
429
456
|
|
457
|
+
def self.read_link(reader, object)
|
458
|
+
# Process the attributes:
|
459
|
+
rel = reader.get_attribute('rel')
|
460
|
+
href = reader.get_attribute('href')
|
461
|
+
if rel && href
|
462
|
+
list = List.new
|
463
|
+
list.href = href
|
464
|
+
case rel
|
465
|
+
when 'hosts'
|
466
|
+
object.hosts = list
|
467
|
+
when 'vms'
|
468
|
+
object.vms = list
|
469
|
+
end
|
470
|
+
end
|
471
|
+
|
472
|
+
# Discard the rest of the element:
|
473
|
+
reader.next_element
|
474
|
+
end
|
475
|
+
|
430
476
|
end
|
431
477
|
|
432
478
|
class AgentReader < Reader # :nodoc:
|
@@ -1545,6 +1591,8 @@ module OvirtSDK4
|
|
1545
1591
|
object.vm = VmReader.read_one(reader)
|
1546
1592
|
when 'vms'
|
1547
1593
|
object.vms = VmReader.read_many(reader)
|
1594
|
+
when 'link'
|
1595
|
+
read_link(reader, object)
|
1548
1596
|
else
|
1549
1597
|
reader.next_element
|
1550
1598
|
end
|
@@ -1581,6 +1629,23 @@ module OvirtSDK4
|
|
1581
1629
|
return list
|
1582
1630
|
end
|
1583
1631
|
|
1632
|
+
def self.read_link(reader, object)
|
1633
|
+
# Process the attributes:
|
1634
|
+
rel = reader.get_attribute('rel')
|
1635
|
+
href = reader.get_attribute('href')
|
1636
|
+
if rel && href
|
1637
|
+
list = List.new
|
1638
|
+
list.href = href
|
1639
|
+
case rel
|
1640
|
+
when 'vms'
|
1641
|
+
object.vms = list
|
1642
|
+
end
|
1643
|
+
end
|
1644
|
+
|
1645
|
+
# Discard the rest of the element:
|
1646
|
+
reader.next_element
|
1647
|
+
end
|
1648
|
+
|
1584
1649
|
end
|
1585
1650
|
|
1586
1651
|
class CertificateReader < Reader # :nodoc:
|
@@ -1841,12 +1906,133 @@ module OvirtSDK4
|
|
1841
1906
|
object.version = VersionReader.read_one(reader)
|
1842
1907
|
when 'virt_service'
|
1843
1908
|
object.virt_service = Reader.read_boolean(reader)
|
1909
|
+
when 'affinity_groups'
|
1910
|
+
object.affinity_groups = AffinityGroupReader.read_many(reader)
|
1911
|
+
when 'cpu_profiles'
|
1912
|
+
object.cpu_profiles = CpuProfileReader.read_many(reader)
|
1844
1913
|
when 'data_center'
|
1845
1914
|
object.data_center = DataCenterReader.read_one(reader)
|
1915
|
+
when 'gluster_hooks'
|
1916
|
+
object.gluster_hooks = GlusterHookReader.read_many(reader)
|
1917
|
+
when 'gluster_volumes'
|
1918
|
+
object.gluster_volumes = GlusterVolumeReader.read_many(reader)
|
1846
1919
|
when 'mac_pool'
|
1847
1920
|
object.mac_pool = MacPoolReader.read_one(reader)
|
1848
1921
|
when 'management_network'
|
1849
1922
|
object.management_network = NetworkReader.read_one(reader)
|
1923
|
+
when 'network_filters'
|
1924
|
+
object.network_filters = NetworkFilterReader.read_many(reader)
|
1925
|
+
when 'networks'
|
1926
|
+
object.networks = NetworkReader.read_many(reader)
|
1927
|
+
when 'permissions'
|
1928
|
+
object.permissions = PermissionReader.read_many(reader)
|
1929
|
+
when 'link'
|
1930
|
+
read_link(reader, object)
|
1931
|
+
else
|
1932
|
+
reader.next_element
|
1933
|
+
end
|
1934
|
+
end
|
1935
|
+
|
1936
|
+
# Discard the end tag:
|
1937
|
+
reader.read
|
1938
|
+
|
1939
|
+
return object
|
1940
|
+
end
|
1941
|
+
|
1942
|
+
|
1943
|
+
def self.read_many(reader)
|
1944
|
+
# Do nothing if there aren't more tags:
|
1945
|
+
list = List.new
|
1946
|
+
return list unless reader.forward
|
1947
|
+
|
1948
|
+
# Process the attributes:
|
1949
|
+
list.href = reader.get_attribute('href')
|
1950
|
+
|
1951
|
+
# Discard the start tag:
|
1952
|
+
empty = reader.empty_element?
|
1953
|
+
reader.read
|
1954
|
+
return list if empty
|
1955
|
+
|
1956
|
+
# Process the inner elements:
|
1957
|
+
while reader.forward do
|
1958
|
+
list << read_one(reader)
|
1959
|
+
end
|
1960
|
+
|
1961
|
+
# Discard the end tag:
|
1962
|
+
reader.read
|
1963
|
+
|
1964
|
+
return list
|
1965
|
+
end
|
1966
|
+
|
1967
|
+
def self.read_link(reader, object)
|
1968
|
+
# Process the attributes:
|
1969
|
+
rel = reader.get_attribute('rel')
|
1970
|
+
href = reader.get_attribute('href')
|
1971
|
+
if rel && href
|
1972
|
+
list = List.new
|
1973
|
+
list.href = href
|
1974
|
+
case rel
|
1975
|
+
when 'affinitygroups'
|
1976
|
+
object.affinity_groups = list
|
1977
|
+
when 'cpuprofiles'
|
1978
|
+
object.cpu_profiles = list
|
1979
|
+
when 'glusterhooks'
|
1980
|
+
object.gluster_hooks = list
|
1981
|
+
when 'glustervolumes'
|
1982
|
+
object.gluster_volumes = list
|
1983
|
+
when 'networkfilters'
|
1984
|
+
object.network_filters = list
|
1985
|
+
when 'networks'
|
1986
|
+
object.networks = list
|
1987
|
+
when 'permissions'
|
1988
|
+
object.permissions = list
|
1989
|
+
end
|
1990
|
+
end
|
1991
|
+
|
1992
|
+
# Discard the rest of the element:
|
1993
|
+
reader.next_element
|
1994
|
+
end
|
1995
|
+
|
1996
|
+
end
|
1997
|
+
|
1998
|
+
class ClusterLevelReader < Reader # :nodoc:
|
1999
|
+
|
2000
|
+
def self.read_one(reader)
|
2001
|
+
# Do nothing if there aren't more tags:
|
2002
|
+
return nil unless reader.forward
|
2003
|
+
|
2004
|
+
# Create the object:
|
2005
|
+
object = ClusterLevel.new
|
2006
|
+
|
2007
|
+
# Process the attributes:
|
2008
|
+
object.href = reader.get_attribute('href')
|
2009
|
+
value = reader.get_attribute('comment')
|
2010
|
+
object.comment = value if not value.nil?
|
2011
|
+
value = reader.get_attribute('description')
|
2012
|
+
object.description = value if not value.nil?
|
2013
|
+
value = reader.get_attribute('id')
|
2014
|
+
object.id = value if not value.nil?
|
2015
|
+
value = reader.get_attribute('name')
|
2016
|
+
object.name = value if not value.nil?
|
2017
|
+
|
2018
|
+
# Discard the start tag:
|
2019
|
+
empty = reader.empty_element?
|
2020
|
+
reader.read
|
2021
|
+
return object if empty
|
2022
|
+
|
2023
|
+
# Process the inner elements:
|
2024
|
+
while reader.forward do
|
2025
|
+
case reader.node_name
|
2026
|
+
when 'comment'
|
2027
|
+
object.comment = Reader.read_string(reader)
|
2028
|
+
when 'cpu_types'
|
2029
|
+
object.cpu_types = CpuTypeReader.read_many(reader)
|
2030
|
+
when 'description'
|
2031
|
+
object.description = Reader.read_string(reader)
|
2032
|
+
when 'id'
|
2033
|
+
object.id = Reader.read_string(reader)
|
2034
|
+
when 'name'
|
2035
|
+
object.name = Reader.read_string(reader)
|
1850
2036
|
else
|
1851
2037
|
reader.next_element
|
1852
2038
|
end
|
@@ -2205,8 +2391,12 @@ module OvirtSDK4
|
|
2205
2391
|
object.name = Reader.read_string(reader)
|
2206
2392
|
when 'cluster'
|
2207
2393
|
object.cluster = ClusterReader.read_one(reader)
|
2394
|
+
when 'permissions'
|
2395
|
+
object.permissions = PermissionReader.read_many(reader)
|
2208
2396
|
when 'qos'
|
2209
2397
|
object.qos = QosReader.read_one(reader)
|
2398
|
+
when 'link'
|
2399
|
+
read_link(reader, object)
|
2210
2400
|
else
|
2211
2401
|
reader.next_element
|
2212
2402
|
end
|
@@ -2243,6 +2433,23 @@ module OvirtSDK4
|
|
2243
2433
|
return list
|
2244
2434
|
end
|
2245
2435
|
|
2436
|
+
def self.read_link(reader, object)
|
2437
|
+
# Process the attributes:
|
2438
|
+
rel = reader.get_attribute('rel')
|
2439
|
+
href = reader.get_attribute('href')
|
2440
|
+
if rel && href
|
2441
|
+
list = List.new
|
2442
|
+
list.href = href
|
2443
|
+
case rel
|
2444
|
+
when 'permissions'
|
2445
|
+
object.permissions = list
|
2446
|
+
end
|
2447
|
+
end
|
2448
|
+
|
2449
|
+
# Discard the rest of the element:
|
2450
|
+
reader.next_element
|
2451
|
+
end
|
2452
|
+
|
2246
2453
|
end
|
2247
2454
|
|
2248
2455
|
class CpuTopologyReader < Reader # :nodoc:
|
@@ -2375,6 +2582,76 @@ module OvirtSDK4
|
|
2375
2582
|
|
2376
2583
|
end
|
2377
2584
|
|
2585
|
+
class CpuTypeReader < Reader # :nodoc:
|
2586
|
+
|
2587
|
+
def self.read_one(reader)
|
2588
|
+
# Do nothing if there aren't more tags:
|
2589
|
+
return nil unless reader.forward
|
2590
|
+
|
2591
|
+
# Create the object:
|
2592
|
+
object = CpuType.new
|
2593
|
+
|
2594
|
+
# Process the attributes:
|
2595
|
+
object.href = reader.get_attribute('href')
|
2596
|
+
value = reader.get_attribute('architecture')
|
2597
|
+
object.architecture = value if not value.nil?
|
2598
|
+
value = reader.get_attribute('level')
|
2599
|
+
object.level = value if not value.nil?
|
2600
|
+
value = reader.get_attribute('name')
|
2601
|
+
object.name = value if not value.nil?
|
2602
|
+
|
2603
|
+
# Discard the start tag:
|
2604
|
+
empty = reader.empty_element?
|
2605
|
+
reader.read
|
2606
|
+
return object if empty
|
2607
|
+
|
2608
|
+
# Process the inner elements:
|
2609
|
+
while reader.forward do
|
2610
|
+
case reader.node_name
|
2611
|
+
when 'architecture'
|
2612
|
+
object.architecture = Reader.read_string(reader)
|
2613
|
+
when 'level'
|
2614
|
+
object.level = Reader.read_integer(reader)
|
2615
|
+
when 'name'
|
2616
|
+
object.name = Reader.read_string(reader)
|
2617
|
+
else
|
2618
|
+
reader.next_element
|
2619
|
+
end
|
2620
|
+
end
|
2621
|
+
|
2622
|
+
# Discard the end tag:
|
2623
|
+
reader.read
|
2624
|
+
|
2625
|
+
return object
|
2626
|
+
end
|
2627
|
+
|
2628
|
+
|
2629
|
+
def self.read_many(reader)
|
2630
|
+
# Do nothing if there aren't more tags:
|
2631
|
+
list = List.new
|
2632
|
+
return list unless reader.forward
|
2633
|
+
|
2634
|
+
# Process the attributes:
|
2635
|
+
list.href = reader.get_attribute('href')
|
2636
|
+
|
2637
|
+
# Discard the start tag:
|
2638
|
+
empty = reader.empty_element?
|
2639
|
+
reader.read
|
2640
|
+
return list if empty
|
2641
|
+
|
2642
|
+
# Process the inner elements:
|
2643
|
+
while reader.forward do
|
2644
|
+
list << read_one(reader)
|
2645
|
+
end
|
2646
|
+
|
2647
|
+
# Discard the end tag:
|
2648
|
+
reader.read
|
2649
|
+
|
2650
|
+
return list
|
2651
|
+
end
|
2652
|
+
|
2653
|
+
end
|
2654
|
+
|
2378
2655
|
class CustomPropertyReader < Reader # :nodoc:
|
2379
2656
|
|
2380
2657
|
def self.read_one(reader)
|
@@ -2501,6 +2778,24 @@ module OvirtSDK4
|
|
2501
2778
|
object.supported_versions = VersionReader.read_many(reader)
|
2502
2779
|
when 'version'
|
2503
2780
|
object.version = VersionReader.read_one(reader)
|
2781
|
+
when 'clusters'
|
2782
|
+
object.clusters = ClusterReader.read_many(reader)
|
2783
|
+
when 'iscsi_bonds'
|
2784
|
+
object.iscsi_bonds = IscsiBondReader.read_many(reader)
|
2785
|
+
when 'mac_pool'
|
2786
|
+
object.mac_pool = MacPoolReader.read_one(reader)
|
2787
|
+
when 'networks'
|
2788
|
+
object.networks = NetworkReader.read_many(reader)
|
2789
|
+
when 'permissions'
|
2790
|
+
object.permissions = PermissionReader.read_many(reader)
|
2791
|
+
when 'qoss'
|
2792
|
+
object.qoss = QosReader.read_many(reader)
|
2793
|
+
when 'quotas'
|
2794
|
+
object.quotas = QuotaReader.read_many(reader)
|
2795
|
+
when 'storage_domains'
|
2796
|
+
object.storage_domains = StorageDomainReader.read_many(reader)
|
2797
|
+
when 'link'
|
2798
|
+
read_link(reader, object)
|
2504
2799
|
else
|
2505
2800
|
reader.next_element
|
2506
2801
|
end
|
@@ -2537,6 +2832,35 @@ module OvirtSDK4
|
|
2537
2832
|
return list
|
2538
2833
|
end
|
2539
2834
|
|
2835
|
+
def self.read_link(reader, object)
|
2836
|
+
# Process the attributes:
|
2837
|
+
rel = reader.get_attribute('rel')
|
2838
|
+
href = reader.get_attribute('href')
|
2839
|
+
if rel && href
|
2840
|
+
list = List.new
|
2841
|
+
list.href = href
|
2842
|
+
case rel
|
2843
|
+
when 'clusters'
|
2844
|
+
object.clusters = list
|
2845
|
+
when 'iscsibonds'
|
2846
|
+
object.iscsi_bonds = list
|
2847
|
+
when 'networks'
|
2848
|
+
object.networks = list
|
2849
|
+
when 'permissions'
|
2850
|
+
object.permissions = list
|
2851
|
+
when 'qoss'
|
2852
|
+
object.qoss = list
|
2853
|
+
when 'quotas'
|
2854
|
+
object.quotas = list
|
2855
|
+
when 'storagedomains'
|
2856
|
+
object.storage_domains = list
|
2857
|
+
end
|
2858
|
+
end
|
2859
|
+
|
2860
|
+
# Discard the rest of the element:
|
2861
|
+
reader.next_element
|
2862
|
+
end
|
2863
|
+
|
2540
2864
|
end
|
2541
2865
|
|
2542
2866
|
class DeviceReader < Reader # :nodoc:
|
@@ -2583,6 +2907,8 @@ module OvirtSDK4
|
|
2583
2907
|
object.vm = VmReader.read_one(reader)
|
2584
2908
|
when 'vms'
|
2585
2909
|
object.vms = VmReader.read_many(reader)
|
2910
|
+
when 'link'
|
2911
|
+
read_link(reader, object)
|
2586
2912
|
else
|
2587
2913
|
reader.next_element
|
2588
2914
|
end
|
@@ -2619,6 +2945,23 @@ module OvirtSDK4
|
|
2619
2945
|
return list
|
2620
2946
|
end
|
2621
2947
|
|
2948
|
+
def self.read_link(reader, object)
|
2949
|
+
# Process the attributes:
|
2950
|
+
rel = reader.get_attribute('rel')
|
2951
|
+
href = reader.get_attribute('href')
|
2952
|
+
if rel && href
|
2953
|
+
list = List.new
|
2954
|
+
list.href = href
|
2955
|
+
case rel
|
2956
|
+
when 'vms'
|
2957
|
+
object.vms = list
|
2958
|
+
end
|
2959
|
+
end
|
2960
|
+
|
2961
|
+
# Discard the rest of the element:
|
2962
|
+
reader.next_element
|
2963
|
+
end
|
2964
|
+
|
2622
2965
|
end
|
2623
2966
|
|
2624
2967
|
class DiskReader < Reader # :nodoc:
|
@@ -2723,8 +3066,6 @@ module OvirtSDK4
|
|
2723
3066
|
object.shareable = Reader.read_boolean(reader)
|
2724
3067
|
when 'sparse'
|
2725
3068
|
object.sparse = Reader.read_boolean(reader)
|
2726
|
-
when 'statistics'
|
2727
|
-
object.statistics = StatisticReader.read_many(reader)
|
2728
3069
|
when 'status'
|
2729
3070
|
object.status = Reader.read_string(reader)
|
2730
3071
|
when 'storage_type'
|
@@ -2739,10 +3080,14 @@ module OvirtSDK4
|
|
2739
3080
|
object.instance_type = InstanceTypeReader.read_one(reader)
|
2740
3081
|
when 'openstack_volume_type'
|
2741
3082
|
object.openstack_volume_type = OpenStackVolumeTypeReader.read_one(reader)
|
3083
|
+
when 'permissions'
|
3084
|
+
object.permissions = PermissionReader.read_many(reader)
|
2742
3085
|
when 'quota'
|
2743
3086
|
object.quota = QuotaReader.read_one(reader)
|
2744
3087
|
when 'snapshot'
|
2745
3088
|
object.snapshot = SnapshotReader.read_one(reader)
|
3089
|
+
when 'statistics'
|
3090
|
+
object.statistics = StatisticReader.read_many(reader)
|
2746
3091
|
when 'storage_domain'
|
2747
3092
|
object.storage_domain = StorageDomainReader.read_one(reader)
|
2748
3093
|
when 'storage_domains'
|
@@ -2753,6 +3098,8 @@ module OvirtSDK4
|
|
2753
3098
|
object.vm = VmReader.read_one(reader)
|
2754
3099
|
when 'vms'
|
2755
3100
|
object.vms = VmReader.read_many(reader)
|
3101
|
+
when 'link'
|
3102
|
+
read_link(reader, object)
|
2756
3103
|
else
|
2757
3104
|
reader.next_element
|
2758
3105
|
end
|
@@ -2789,6 +3136,29 @@ module OvirtSDK4
|
|
2789
3136
|
return list
|
2790
3137
|
end
|
2791
3138
|
|
3139
|
+
def self.read_link(reader, object)
|
3140
|
+
# Process the attributes:
|
3141
|
+
rel = reader.get_attribute('rel')
|
3142
|
+
href = reader.get_attribute('href')
|
3143
|
+
if rel && href
|
3144
|
+
list = List.new
|
3145
|
+
list.href = href
|
3146
|
+
case rel
|
3147
|
+
when 'permissions'
|
3148
|
+
object.permissions = list
|
3149
|
+
when 'statistics'
|
3150
|
+
object.statistics = list
|
3151
|
+
when 'storagedomains'
|
3152
|
+
object.storage_domains = list
|
3153
|
+
when 'vms'
|
3154
|
+
object.vms = list
|
3155
|
+
end
|
3156
|
+
end
|
3157
|
+
|
3158
|
+
# Discard the rest of the element:
|
3159
|
+
reader.next_element
|
3160
|
+
end
|
3161
|
+
|
2792
3162
|
end
|
2793
3163
|
|
2794
3164
|
class DiskAttachmentReader < Reader # :nodoc:
|
@@ -2913,10 +3283,14 @@ module OvirtSDK4
|
|
2913
3283
|
object.id = Reader.read_string(reader)
|
2914
3284
|
when 'name'
|
2915
3285
|
object.name = Reader.read_string(reader)
|
3286
|
+
when 'permissions'
|
3287
|
+
object.permissions = PermissionReader.read_many(reader)
|
2916
3288
|
when 'qos'
|
2917
3289
|
object.qos = QosReader.read_one(reader)
|
2918
3290
|
when 'storage_domain'
|
2919
3291
|
object.storage_domain = StorageDomainReader.read_one(reader)
|
3292
|
+
when 'link'
|
3293
|
+
read_link(reader, object)
|
2920
3294
|
else
|
2921
3295
|
reader.next_element
|
2922
3296
|
end
|
@@ -2953,6 +3327,23 @@ module OvirtSDK4
|
|
2953
3327
|
return list
|
2954
3328
|
end
|
2955
3329
|
|
3330
|
+
def self.read_link(reader, object)
|
3331
|
+
# Process the attributes:
|
3332
|
+
rel = reader.get_attribute('rel')
|
3333
|
+
href = reader.get_attribute('href')
|
3334
|
+
if rel && href
|
3335
|
+
list = List.new
|
3336
|
+
list.href = href
|
3337
|
+
case rel
|
3338
|
+
when 'permissions'
|
3339
|
+
object.permissions = list
|
3340
|
+
end
|
3341
|
+
end
|
3342
|
+
|
3343
|
+
# Discard the rest of the element:
|
3344
|
+
reader.next_element
|
3345
|
+
end
|
3346
|
+
|
2956
3347
|
end
|
2957
3348
|
|
2958
3349
|
class DiskSnapshotReader < Reader # :nodoc:
|
@@ -3057,8 +3448,6 @@ module OvirtSDK4
|
|
3057
3448
|
object.shareable = Reader.read_boolean(reader)
|
3058
3449
|
when 'sparse'
|
3059
3450
|
object.sparse = Reader.read_boolean(reader)
|
3060
|
-
when 'statistics'
|
3061
|
-
object.statistics = StatisticReader.read_many(reader)
|
3062
3451
|
when 'status'
|
3063
3452
|
object.status = Reader.read_string(reader)
|
3064
3453
|
when 'storage_type'
|
@@ -3075,10 +3464,14 @@ module OvirtSDK4
|
|
3075
3464
|
object.instance_type = InstanceTypeReader.read_one(reader)
|
3076
3465
|
when 'openstack_volume_type'
|
3077
3466
|
object.openstack_volume_type = OpenStackVolumeTypeReader.read_one(reader)
|
3467
|
+
when 'permissions'
|
3468
|
+
object.permissions = PermissionReader.read_many(reader)
|
3078
3469
|
when 'quota'
|
3079
3470
|
object.quota = QuotaReader.read_one(reader)
|
3080
3471
|
when 'snapshot'
|
3081
3472
|
object.snapshot = SnapshotReader.read_one(reader)
|
3473
|
+
when 'statistics'
|
3474
|
+
object.statistics = StatisticReader.read_many(reader)
|
3082
3475
|
when 'storage_domain'
|
3083
3476
|
object.storage_domain = StorageDomainReader.read_one(reader)
|
3084
3477
|
when 'storage_domains'
|
@@ -3089,6 +3482,8 @@ module OvirtSDK4
|
|
3089
3482
|
object.vm = VmReader.read_one(reader)
|
3090
3483
|
when 'vms'
|
3091
3484
|
object.vms = VmReader.read_many(reader)
|
3485
|
+
when 'link'
|
3486
|
+
read_link(reader, object)
|
3092
3487
|
else
|
3093
3488
|
reader.next_element
|
3094
3489
|
end
|
@@ -3125,6 +3520,29 @@ module OvirtSDK4
|
|
3125
3520
|
return list
|
3126
3521
|
end
|
3127
3522
|
|
3523
|
+
def self.read_link(reader, object)
|
3524
|
+
# Process the attributes:
|
3525
|
+
rel = reader.get_attribute('rel')
|
3526
|
+
href = reader.get_attribute('href')
|
3527
|
+
if rel && href
|
3528
|
+
list = List.new
|
3529
|
+
list.href = href
|
3530
|
+
case rel
|
3531
|
+
when 'permissions'
|
3532
|
+
object.permissions = list
|
3533
|
+
when 'statistics'
|
3534
|
+
object.statistics = list
|
3535
|
+
when 'storagedomains'
|
3536
|
+
object.storage_domains = list
|
3537
|
+
when 'vms'
|
3538
|
+
object.vms = list
|
3539
|
+
end
|
3540
|
+
end
|
3541
|
+
|
3542
|
+
# Discard the rest of the element:
|
3543
|
+
reader.next_element
|
3544
|
+
end
|
3545
|
+
|
3128
3546
|
end
|
3129
3547
|
|
3130
3548
|
class DisplayReader < Reader # :nodoc:
|
@@ -3339,6 +3757,12 @@ module OvirtSDK4
|
|
3339
3757
|
object.name = Reader.read_string(reader)
|
3340
3758
|
when 'user'
|
3341
3759
|
object.user = UserReader.read_one(reader)
|
3760
|
+
when 'groups'
|
3761
|
+
object.groups = GroupReader.read_many(reader)
|
3762
|
+
when 'users'
|
3763
|
+
object.users = UserReader.read_many(reader)
|
3764
|
+
when 'link'
|
3765
|
+
read_link(reader, object)
|
3342
3766
|
else
|
3343
3767
|
reader.next_element
|
3344
3768
|
end
|
@@ -3375,6 +3799,25 @@ module OvirtSDK4
|
|
3375
3799
|
return list
|
3376
3800
|
end
|
3377
3801
|
|
3802
|
+
def self.read_link(reader, object)
|
3803
|
+
# Process the attributes:
|
3804
|
+
rel = reader.get_attribute('rel')
|
3805
|
+
href = reader.get_attribute('href')
|
3806
|
+
if rel && href
|
3807
|
+
list = List.new
|
3808
|
+
list.href = href
|
3809
|
+
case rel
|
3810
|
+
when 'groups'
|
3811
|
+
object.groups = list
|
3812
|
+
when 'users'
|
3813
|
+
object.users = list
|
3814
|
+
end
|
3815
|
+
end
|
3816
|
+
|
3817
|
+
# Discard the rest of the element:
|
3818
|
+
reader.next_element
|
3819
|
+
end
|
3820
|
+
|
3378
3821
|
end
|
3379
3822
|
|
3380
3823
|
class EntityProfileDetailReader < Reader # :nodoc:
|
@@ -4029,6 +4472,18 @@ module OvirtSDK4
|
|
4029
4472
|
object.url = Reader.read_string(reader)
|
4030
4473
|
when 'username'
|
4031
4474
|
object.username = Reader.read_string(reader)
|
4475
|
+
when 'certificates'
|
4476
|
+
object.certificates = CertificateReader.read_many(reader)
|
4477
|
+
when 'compute_resources'
|
4478
|
+
object.compute_resources = ExternalComputeResourceReader.read_many(reader)
|
4479
|
+
when 'discovered_hosts'
|
4480
|
+
object.discovered_hosts = ExternalDiscoveredHostReader.read_many(reader)
|
4481
|
+
when 'host_groups'
|
4482
|
+
object.host_groups = ExternalHostGroupReader.read_many(reader)
|
4483
|
+
when 'hosts'
|
4484
|
+
object.hosts = HostReader.read_many(reader)
|
4485
|
+
when 'link'
|
4486
|
+
read_link(reader, object)
|
4032
4487
|
else
|
4033
4488
|
reader.next_element
|
4034
4489
|
end
|
@@ -4065,6 +4520,31 @@ module OvirtSDK4
|
|
4065
4520
|
return list
|
4066
4521
|
end
|
4067
4522
|
|
4523
|
+
def self.read_link(reader, object)
|
4524
|
+
# Process the attributes:
|
4525
|
+
rel = reader.get_attribute('rel')
|
4526
|
+
href = reader.get_attribute('href')
|
4527
|
+
if rel && href
|
4528
|
+
list = List.new
|
4529
|
+
list.href = href
|
4530
|
+
case rel
|
4531
|
+
when 'certificates'
|
4532
|
+
object.certificates = list
|
4533
|
+
when 'computeresources'
|
4534
|
+
object.compute_resources = list
|
4535
|
+
when 'discoveredhosts'
|
4536
|
+
object.discovered_hosts = list
|
4537
|
+
when 'hostgroups'
|
4538
|
+
object.host_groups = list
|
4539
|
+
when 'hosts'
|
4540
|
+
object.hosts = list
|
4541
|
+
end
|
4542
|
+
end
|
4543
|
+
|
4544
|
+
# Discard the rest of the element:
|
4545
|
+
reader.next_element
|
4546
|
+
end
|
4547
|
+
|
4068
4548
|
end
|
4069
4549
|
|
4070
4550
|
class ExternalProviderReader < Reader # :nodoc:
|
@@ -4505,6 +4985,8 @@ module OvirtSDK4
|
|
4505
4985
|
object.vm = VmReader.read_one(reader)
|
4506
4986
|
when 'vms'
|
4507
4987
|
object.vms = VmReader.read_many(reader)
|
4988
|
+
when 'link'
|
4989
|
+
read_link(reader, object)
|
4508
4990
|
else
|
4509
4991
|
reader.next_element
|
4510
4992
|
end
|
@@ -4541,6 +5023,23 @@ module OvirtSDK4
|
|
4541
5023
|
return list
|
4542
5024
|
end
|
4543
5025
|
|
5026
|
+
def self.read_link(reader, object)
|
5027
|
+
# Process the attributes:
|
5028
|
+
rel = reader.get_attribute('rel')
|
5029
|
+
href = reader.get_attribute('href')
|
5030
|
+
if rel && href
|
5031
|
+
list = List.new
|
5032
|
+
list.href = href
|
5033
|
+
case rel
|
5034
|
+
when 'vms'
|
5035
|
+
object.vms = list
|
5036
|
+
end
|
5037
|
+
end
|
5038
|
+
|
5039
|
+
# Discard the rest of the element:
|
5040
|
+
reader.next_element
|
5041
|
+
end
|
5042
|
+
|
4544
5043
|
end
|
4545
5044
|
|
4546
5045
|
class FopStatisticReader < Reader # :nodoc:
|
@@ -4683,12 +5182,16 @@ module OvirtSDK4
|
|
4683
5182
|
object.gluster_volume = GlusterVolumeReader.read_one(reader)
|
4684
5183
|
when 'instance_type'
|
4685
5184
|
object.instance_type = InstanceTypeReader.read_one(reader)
|
5185
|
+
when 'statistics'
|
5186
|
+
object.statistics = StatisticReader.read_many(reader)
|
4686
5187
|
when 'template'
|
4687
5188
|
object.template = TemplateReader.read_one(reader)
|
4688
5189
|
when 'vm'
|
4689
5190
|
object.vm = VmReader.read_one(reader)
|
4690
5191
|
when 'vms'
|
4691
5192
|
object.vms = VmReader.read_many(reader)
|
5193
|
+
when 'link'
|
5194
|
+
read_link(reader, object)
|
4692
5195
|
else
|
4693
5196
|
reader.next_element
|
4694
5197
|
end
|
@@ -4725,6 +5228,25 @@ module OvirtSDK4
|
|
4725
5228
|
return list
|
4726
5229
|
end
|
4727
5230
|
|
5231
|
+
def self.read_link(reader, object)
|
5232
|
+
# Process the attributes:
|
5233
|
+
rel = reader.get_attribute('rel')
|
5234
|
+
href = reader.get_attribute('href')
|
5235
|
+
if rel && href
|
5236
|
+
list = List.new
|
5237
|
+
list.href = href
|
5238
|
+
case rel
|
5239
|
+
when 'statistics'
|
5240
|
+
object.statistics = list
|
5241
|
+
when 'vms'
|
5242
|
+
object.vms = list
|
5243
|
+
end
|
5244
|
+
end
|
5245
|
+
|
5246
|
+
# Discard the rest of the element:
|
5247
|
+
reader.next_element
|
5248
|
+
end
|
5249
|
+
|
4728
5250
|
end
|
4729
5251
|
|
4730
5252
|
class GlusterBrickAdvancedDetailsReader < Reader # :nodoc:
|
@@ -4795,6 +5317,8 @@ module OvirtSDK4
|
|
4795
5317
|
object.vm = VmReader.read_one(reader)
|
4796
5318
|
when 'vms'
|
4797
5319
|
object.vms = VmReader.read_many(reader)
|
5320
|
+
when 'link'
|
5321
|
+
read_link(reader, object)
|
4798
5322
|
else
|
4799
5323
|
reader.next_element
|
4800
5324
|
end
|
@@ -4831,6 +5355,23 @@ module OvirtSDK4
|
|
4831
5355
|
return list
|
4832
5356
|
end
|
4833
5357
|
|
5358
|
+
def self.read_link(reader, object)
|
5359
|
+
# Process the attributes:
|
5360
|
+
rel = reader.get_attribute('rel')
|
5361
|
+
href = reader.get_attribute('href')
|
5362
|
+
if rel && href
|
5363
|
+
list = List.new
|
5364
|
+
list.href = href
|
5365
|
+
case rel
|
5366
|
+
when 'vms'
|
5367
|
+
object.vms = list
|
5368
|
+
end
|
5369
|
+
end
|
5370
|
+
|
5371
|
+
# Discard the rest of the element:
|
5372
|
+
reader.next_element
|
5373
|
+
end
|
5374
|
+
|
4834
5375
|
end
|
4835
5376
|
|
4836
5377
|
class GlusterBrickMemoryInfoReader < Reader # :nodoc:
|
@@ -5039,6 +5580,8 @@ module OvirtSDK4
|
|
5039
5580
|
object.cluster = ClusterReader.read_one(reader)
|
5040
5581
|
when 'server_hooks'
|
5041
5582
|
object.server_hooks = GlusterServerHookReader.read_many(reader)
|
5583
|
+
when 'link'
|
5584
|
+
read_link(reader, object)
|
5042
5585
|
else
|
5043
5586
|
reader.next_element
|
5044
5587
|
end
|
@@ -5075,6 +5618,23 @@ module OvirtSDK4
|
|
5075
5618
|
return list
|
5076
5619
|
end
|
5077
5620
|
|
5621
|
+
def self.read_link(reader, object)
|
5622
|
+
# Process the attributes:
|
5623
|
+
rel = reader.get_attribute('rel')
|
5624
|
+
href = reader.get_attribute('href')
|
5625
|
+
if rel && href
|
5626
|
+
list = List.new
|
5627
|
+
list.href = href
|
5628
|
+
case rel
|
5629
|
+
when 'serverhooks'
|
5630
|
+
object.server_hooks = list
|
5631
|
+
end
|
5632
|
+
end
|
5633
|
+
|
5634
|
+
# Discard the rest of the element:
|
5635
|
+
reader.next_element
|
5636
|
+
end
|
5637
|
+
|
5078
5638
|
end
|
5079
5639
|
|
5080
5640
|
class GlusterMemoryPoolReader < Reader # :nodoc:
|
@@ -5339,6 +5899,10 @@ module OvirtSDK4
|
|
5339
5899
|
object.bricks = GlusterBrickReader.read_many(reader)
|
5340
5900
|
when 'cluster'
|
5341
5901
|
object.cluster = ClusterReader.read_one(reader)
|
5902
|
+
when 'statistics'
|
5903
|
+
object.statistics = StatisticReader.read_many(reader)
|
5904
|
+
when 'link'
|
5905
|
+
read_link(reader, object)
|
5342
5906
|
else
|
5343
5907
|
reader.next_element
|
5344
5908
|
end
|
@@ -5375,6 +5939,25 @@ module OvirtSDK4
|
|
5375
5939
|
return list
|
5376
5940
|
end
|
5377
5941
|
|
5942
|
+
def self.read_link(reader, object)
|
5943
|
+
# Process the attributes:
|
5944
|
+
rel = reader.get_attribute('rel')
|
5945
|
+
href = reader.get_attribute('href')
|
5946
|
+
if rel && href
|
5947
|
+
list = List.new
|
5948
|
+
list.href = href
|
5949
|
+
case rel
|
5950
|
+
when 'bricks'
|
5951
|
+
object.bricks = list
|
5952
|
+
when 'statistics'
|
5953
|
+
object.statistics = list
|
5954
|
+
end
|
5955
|
+
end
|
5956
|
+
|
5957
|
+
# Discard the rest of the element:
|
5958
|
+
reader.next_element
|
5959
|
+
end
|
5960
|
+
|
5378
5961
|
end
|
5379
5962
|
|
5380
5963
|
class GlusterVolumeProfileDetailsReader < Reader # :nodoc:
|
@@ -5659,8 +6242,14 @@ module OvirtSDK4
|
|
5659
6242
|
object.namespace = Reader.read_string(reader)
|
5660
6243
|
when 'domain'
|
5661
6244
|
object.domain = DomainReader.read_one(reader)
|
6245
|
+
when 'permissions'
|
6246
|
+
object.permissions = PermissionReader.read_many(reader)
|
5662
6247
|
when 'roles'
|
5663
6248
|
object.roles = RoleReader.read_many(reader)
|
6249
|
+
when 'tags'
|
6250
|
+
object.tags = TagReader.read_many(reader)
|
6251
|
+
when 'link'
|
6252
|
+
read_link(reader, object)
|
5664
6253
|
else
|
5665
6254
|
reader.next_element
|
5666
6255
|
end
|
@@ -5697,6 +6286,27 @@ module OvirtSDK4
|
|
5697
6286
|
return list
|
5698
6287
|
end
|
5699
6288
|
|
6289
|
+
def self.read_link(reader, object)
|
6290
|
+
# Process the attributes:
|
6291
|
+
rel = reader.get_attribute('rel')
|
6292
|
+
href = reader.get_attribute('href')
|
6293
|
+
if rel && href
|
6294
|
+
list = List.new
|
6295
|
+
list.href = href
|
6296
|
+
case rel
|
6297
|
+
when 'permissions'
|
6298
|
+
object.permissions = list
|
6299
|
+
when 'roles'
|
6300
|
+
object.roles = list
|
6301
|
+
when 'tags'
|
6302
|
+
object.tags = list
|
6303
|
+
end
|
6304
|
+
end
|
6305
|
+
|
6306
|
+
# Discard the rest of the element:
|
6307
|
+
reader.next_element
|
6308
|
+
end
|
6309
|
+
|
5700
6310
|
end
|
5701
6311
|
|
5702
6312
|
class GuestOperatingSystemReader < Reader # :nodoc:
|
@@ -6095,8 +6705,6 @@ module OvirtSDK4
|
|
6095
6705
|
object.id = Reader.read_string(reader)
|
6096
6706
|
when 'iscsi'
|
6097
6707
|
object.iscsi = IscsiDetailsReader.read_one(reader)
|
6098
|
-
when 'katello_errata'
|
6099
|
-
object.katello_errata = KatelloErratumReader.read_many(reader)
|
6100
6708
|
when 'kdump_status'
|
6101
6709
|
object.kdump_status = Reader.read_string(reader)
|
6102
6710
|
when 'ksm'
|
@@ -6129,8 +6737,6 @@ module OvirtSDK4
|
|
6129
6737
|
object.spm = SpmReader.read_one(reader)
|
6130
6738
|
when 'ssh'
|
6131
6739
|
object.ssh = SshReader.read_one(reader)
|
6132
|
-
when 'statistics'
|
6133
|
-
object.statistics = StatisticReader.read_many(reader)
|
6134
6740
|
when 'status'
|
6135
6741
|
object.status = Reader.read_string(reader)
|
6136
6742
|
when 'status_detail'
|
@@ -6145,14 +6751,40 @@ module OvirtSDK4
|
|
6145
6751
|
object.update_available = Reader.read_boolean(reader)
|
6146
6752
|
when 'version'
|
6147
6753
|
object.version = VersionReader.read_one(reader)
|
6754
|
+
when 'affinity_labels'
|
6755
|
+
object.affinity_labels = AffinityLabelReader.read_many(reader)
|
6756
|
+
when 'agents'
|
6757
|
+
object.agents = AgentReader.read_many(reader)
|
6148
6758
|
when 'cluster'
|
6149
6759
|
object.cluster = ClusterReader.read_one(reader)
|
6760
|
+
when 'devices'
|
6761
|
+
object.devices = DeviceReader.read_many(reader)
|
6150
6762
|
when 'external_host_provider'
|
6151
6763
|
object.external_host_provider = ExternalHostProviderReader.read_one(reader)
|
6152
6764
|
when 'hooks'
|
6153
6765
|
object.hooks = HookReader.read_many(reader)
|
6766
|
+
when 'katello_errata'
|
6767
|
+
object.katello_errata = KatelloErratumReader.read_many(reader)
|
6768
|
+
when 'network_attachments'
|
6769
|
+
object.network_attachments = NetworkAttachmentReader.read_many(reader)
|
6770
|
+
when 'nics'
|
6771
|
+
object.nics = NicReader.read_many(reader)
|
6772
|
+
when 'host_numa_nodes'
|
6773
|
+
object.numa_nodes = NumaNodeReader.read_many(reader)
|
6774
|
+
when 'permissions'
|
6775
|
+
object.permissions = PermissionReader.read_many(reader)
|
6776
|
+
when 'statistics'
|
6777
|
+
object.statistics = StatisticReader.read_many(reader)
|
6154
6778
|
when 'storage_connection_extensions'
|
6155
6779
|
object.storage_connection_extensions = StorageConnectionExtensionReader.read_many(reader)
|
6780
|
+
when 'storages'
|
6781
|
+
object.storages = HostStorageReader.read_many(reader)
|
6782
|
+
when 'tags'
|
6783
|
+
object.tags = TagReader.read_many(reader)
|
6784
|
+
when 'unmanaged_networks'
|
6785
|
+
object.unmanaged_networks = UnmanagedNetworkReader.read_many(reader)
|
6786
|
+
when 'link'
|
6787
|
+
read_link(reader, object)
|
6156
6788
|
else
|
6157
6789
|
reader.next_element
|
6158
6790
|
end
|
@@ -6189,6 +6821,49 @@ module OvirtSDK4
|
|
6189
6821
|
return list
|
6190
6822
|
end
|
6191
6823
|
|
6824
|
+
def self.read_link(reader, object)
|
6825
|
+
# Process the attributes:
|
6826
|
+
rel = reader.get_attribute('rel')
|
6827
|
+
href = reader.get_attribute('href')
|
6828
|
+
if rel && href
|
6829
|
+
list = List.new
|
6830
|
+
list.href = href
|
6831
|
+
case rel
|
6832
|
+
when 'affinitylabels'
|
6833
|
+
object.affinity_labels = list
|
6834
|
+
when 'agents'
|
6835
|
+
object.agents = list
|
6836
|
+
when 'devices'
|
6837
|
+
object.devices = list
|
6838
|
+
when 'hooks'
|
6839
|
+
object.hooks = list
|
6840
|
+
when 'katelloerrata'
|
6841
|
+
object.katello_errata = list
|
6842
|
+
when 'networkattachments'
|
6843
|
+
object.network_attachments = list
|
6844
|
+
when 'nics'
|
6845
|
+
object.nics = list
|
6846
|
+
when 'numanodes'
|
6847
|
+
object.numa_nodes = list
|
6848
|
+
when 'permissions'
|
6849
|
+
object.permissions = list
|
6850
|
+
when 'statistics'
|
6851
|
+
object.statistics = list
|
6852
|
+
when 'storageconnectionextensions'
|
6853
|
+
object.storage_connection_extensions = list
|
6854
|
+
when 'storages'
|
6855
|
+
object.storages = list
|
6856
|
+
when 'tags'
|
6857
|
+
object.tags = list
|
6858
|
+
when 'unmanagednetworks'
|
6859
|
+
object.unmanaged_networks = list
|
6860
|
+
end
|
6861
|
+
end
|
6862
|
+
|
6863
|
+
# Discard the rest of the element:
|
6864
|
+
reader.next_element
|
6865
|
+
end
|
6866
|
+
|
6192
6867
|
end
|
6193
6868
|
|
6194
6869
|
class HostDeviceReader < Reader # :nodoc:
|
@@ -7285,12 +7960,28 @@ module OvirtSDK4
|
|
7285
7960
|
object.virtio_scsi = VirtioScsiReader.read_one(reader)
|
7286
7961
|
when 'vm'
|
7287
7962
|
object.vm = VmReader.read_one(reader)
|
7963
|
+
when 'cdroms'
|
7964
|
+
object.cdroms = CdromReader.read_many(reader)
|
7288
7965
|
when 'cluster'
|
7289
7966
|
object.cluster = ClusterReader.read_one(reader)
|
7290
7967
|
when 'cpu_profile'
|
7291
7968
|
object.cpu_profile = CpuProfileReader.read_one(reader)
|
7969
|
+
when 'disks'
|
7970
|
+
object.disks = DiskReader.read_many(reader)
|
7971
|
+
when 'graphics_consoles'
|
7972
|
+
object.graphics_consoles = GraphicsConsoleReader.read_many(reader)
|
7973
|
+
when 'nics'
|
7974
|
+
object.nics = NicReader.read_many(reader)
|
7975
|
+
when 'permissions'
|
7976
|
+
object.permissions = PermissionReader.read_many(reader)
|
7292
7977
|
when 'storage_domain'
|
7293
7978
|
object.storage_domain = StorageDomainReader.read_one(reader)
|
7979
|
+
when 'tags'
|
7980
|
+
object.tags = TagReader.read_many(reader)
|
7981
|
+
when 'watchdogs'
|
7982
|
+
object.watchdogs = WatchdogReader.read_many(reader)
|
7983
|
+
when 'link'
|
7984
|
+
read_link(reader, object)
|
7294
7985
|
else
|
7295
7986
|
reader.next_element
|
7296
7987
|
end
|
@@ -7327,6 +8018,35 @@ module OvirtSDK4
|
|
7327
8018
|
return list
|
7328
8019
|
end
|
7329
8020
|
|
8021
|
+
def self.read_link(reader, object)
|
8022
|
+
# Process the attributes:
|
8023
|
+
rel = reader.get_attribute('rel')
|
8024
|
+
href = reader.get_attribute('href')
|
8025
|
+
if rel && href
|
8026
|
+
list = List.new
|
8027
|
+
list.href = href
|
8028
|
+
case rel
|
8029
|
+
when 'cdroms'
|
8030
|
+
object.cdroms = list
|
8031
|
+
when 'disks'
|
8032
|
+
object.disks = list
|
8033
|
+
when 'graphicsconsoles'
|
8034
|
+
object.graphics_consoles = list
|
8035
|
+
when 'nics'
|
8036
|
+
object.nics = list
|
8037
|
+
when 'permissions'
|
8038
|
+
object.permissions = list
|
8039
|
+
when 'tags'
|
8040
|
+
object.tags = list
|
8041
|
+
when 'watchdogs'
|
8042
|
+
object.watchdogs = list
|
8043
|
+
end
|
8044
|
+
end
|
8045
|
+
|
8046
|
+
# Discard the rest of the element:
|
8047
|
+
reader.next_element
|
8048
|
+
end
|
8049
|
+
|
7330
8050
|
end
|
7331
8051
|
|
7332
8052
|
class IoReader < Reader # :nodoc:
|
@@ -7571,6 +8291,8 @@ module OvirtSDK4
|
|
7571
8291
|
object.networks = NetworkReader.read_many(reader)
|
7572
8292
|
when 'storage_connections'
|
7573
8293
|
object.storage_connections = StorageConnectionReader.read_many(reader)
|
8294
|
+
when 'link'
|
8295
|
+
read_link(reader, object)
|
7574
8296
|
else
|
7575
8297
|
reader.next_element
|
7576
8298
|
end
|
@@ -7607,6 +8329,25 @@ module OvirtSDK4
|
|
7607
8329
|
return list
|
7608
8330
|
end
|
7609
8331
|
|
8332
|
+
def self.read_link(reader, object)
|
8333
|
+
# Process the attributes:
|
8334
|
+
rel = reader.get_attribute('rel')
|
8335
|
+
href = reader.get_attribute('href')
|
8336
|
+
if rel && href
|
8337
|
+
list = List.new
|
8338
|
+
list.href = href
|
8339
|
+
case rel
|
8340
|
+
when 'networks'
|
8341
|
+
object.networks = list
|
8342
|
+
when 'storageconnections'
|
8343
|
+
object.storage_connections = list
|
8344
|
+
end
|
8345
|
+
end
|
8346
|
+
|
8347
|
+
# Discard the rest of the element:
|
8348
|
+
reader.next_element
|
8349
|
+
end
|
8350
|
+
|
7610
8351
|
end
|
7611
8352
|
|
7612
8353
|
class IscsiDetailsReader < Reader # :nodoc:
|
@@ -7797,6 +8538,10 @@ module OvirtSDK4
|
|
7797
8538
|
object.status = Reader.read_string(reader)
|
7798
8539
|
when 'owner'
|
7799
8540
|
object.owner = UserReader.read_one(reader)
|
8541
|
+
when 'steps'
|
8542
|
+
object.steps = StepReader.read_many(reader)
|
8543
|
+
when 'link'
|
8544
|
+
read_link(reader, object)
|
7800
8545
|
else
|
7801
8546
|
reader.next_element
|
7802
8547
|
end
|
@@ -7830,7 +8575,24 @@ module OvirtSDK4
|
|
7830
8575
|
# Discard the end tag:
|
7831
8576
|
reader.read
|
7832
8577
|
|
7833
|
-
return list
|
8578
|
+
return list
|
8579
|
+
end
|
8580
|
+
|
8581
|
+
def self.read_link(reader, object)
|
8582
|
+
# Process the attributes:
|
8583
|
+
rel = reader.get_attribute('rel')
|
8584
|
+
href = reader.get_attribute('href')
|
8585
|
+
if rel && href
|
8586
|
+
list = List.new
|
8587
|
+
list.href = href
|
8588
|
+
case rel
|
8589
|
+
when 'steps'
|
8590
|
+
object.steps = list
|
8591
|
+
end
|
8592
|
+
end
|
8593
|
+
|
8594
|
+
# Discard the rest of the element:
|
8595
|
+
reader.next_element
|
7834
8596
|
end
|
7835
8597
|
|
7836
8598
|
end
|
@@ -8795,8 +9557,6 @@ module OvirtSDK4
|
|
8795
9557
|
object.mtu = Reader.read_integer(reader)
|
8796
9558
|
when 'name'
|
8797
9559
|
object.name = Reader.read_string(reader)
|
8798
|
-
when 'network_labels'
|
8799
|
-
object.network_labels = NetworkLabelReader.read_many(reader)
|
8800
9560
|
when 'profile_required'
|
8801
9561
|
object.profile_required = Reader.read_boolean(reader)
|
8802
9562
|
when 'required'
|
@@ -8813,8 +9573,16 @@ module OvirtSDK4
|
|
8813
9573
|
object.cluster = ClusterReader.read_one(reader)
|
8814
9574
|
when 'data_center'
|
8815
9575
|
object.data_center = DataCenterReader.read_one(reader)
|
9576
|
+
when 'network_labels'
|
9577
|
+
object.network_labels = NetworkLabelReader.read_many(reader)
|
9578
|
+
when 'permissions'
|
9579
|
+
object.permissions = PermissionReader.read_many(reader)
|
8816
9580
|
when 'qos'
|
8817
9581
|
object.qos = QosReader.read_one(reader)
|
9582
|
+
when 'vnic_profiles'
|
9583
|
+
object.vnic_profiles = VnicProfileReader.read_many(reader)
|
9584
|
+
when 'link'
|
9585
|
+
read_link(reader, object)
|
8818
9586
|
else
|
8819
9587
|
reader.next_element
|
8820
9588
|
end
|
@@ -8851,6 +9619,27 @@ module OvirtSDK4
|
|
8851
9619
|
return list
|
8852
9620
|
end
|
8853
9621
|
|
9622
|
+
def self.read_link(reader, object)
|
9623
|
+
# Process the attributes:
|
9624
|
+
rel = reader.get_attribute('rel')
|
9625
|
+
href = reader.get_attribute('href')
|
9626
|
+
if rel && href
|
9627
|
+
list = List.new
|
9628
|
+
list.href = href
|
9629
|
+
case rel
|
9630
|
+
when 'networklabels'
|
9631
|
+
object.network_labels = list
|
9632
|
+
when 'permissions'
|
9633
|
+
object.permissions = list
|
9634
|
+
when 'vnicprofiles'
|
9635
|
+
object.vnic_profiles = list
|
9636
|
+
end
|
9637
|
+
end
|
9638
|
+
|
9639
|
+
# Discard the rest of the element:
|
9640
|
+
reader.next_element
|
9641
|
+
end
|
9642
|
+
|
8854
9643
|
end
|
8855
9644
|
|
8856
9645
|
class NetworkAttachmentReader < Reader # :nodoc:
|
@@ -9283,22 +10072,32 @@ module OvirtSDK4
|
|
9283
10072
|
object.on_boot = Reader.read_boolean(reader)
|
9284
10073
|
when 'plugged'
|
9285
10074
|
object.plugged = Reader.read_boolean(reader)
|
9286
|
-
when 'reported_devices'
|
9287
|
-
object.reported_devices = ReportedDeviceReader.read_many(reader)
|
9288
10075
|
when 'instance_type'
|
9289
10076
|
object.instance_type = InstanceTypeReader.read_one(reader)
|
9290
10077
|
when 'network'
|
9291
10078
|
object.network = NetworkReader.read_one(reader)
|
10079
|
+
when 'network_attachments'
|
10080
|
+
object.network_attachments = NetworkAttachmentReader.read_many(reader)
|
10081
|
+
when 'network_labels'
|
10082
|
+
object.network_labels = NetworkLabelReader.read_many(reader)
|
10083
|
+
when 'reported_devices'
|
10084
|
+
object.reported_devices = ReportedDeviceReader.read_many(reader)
|
9292
10085
|
when 'statistics'
|
9293
10086
|
object.statistics = StatisticReader.read_many(reader)
|
9294
10087
|
when 'template'
|
9295
10088
|
object.template = TemplateReader.read_one(reader)
|
10089
|
+
when 'virtual_function_allowed_labels'
|
10090
|
+
object.virtual_function_allowed_labels = NetworkLabelReader.read_many(reader)
|
10091
|
+
when 'virtual_function_allowed_networks'
|
10092
|
+
object.virtual_function_allowed_networks = NetworkReader.read_many(reader)
|
9296
10093
|
when 'vm'
|
9297
10094
|
object.vm = VmReader.read_one(reader)
|
9298
10095
|
when 'vms'
|
9299
10096
|
object.vms = VmReader.read_many(reader)
|
9300
10097
|
when 'vnic_profile'
|
9301
10098
|
object.vnic_profile = VnicProfileReader.read_one(reader)
|
10099
|
+
when 'link'
|
10100
|
+
read_link(reader, object)
|
9302
10101
|
else
|
9303
10102
|
reader.next_element
|
9304
10103
|
end
|
@@ -9335,6 +10134,35 @@ module OvirtSDK4
|
|
9335
10134
|
return list
|
9336
10135
|
end
|
9337
10136
|
|
10137
|
+
def self.read_link(reader, object)
|
10138
|
+
# Process the attributes:
|
10139
|
+
rel = reader.get_attribute('rel')
|
10140
|
+
href = reader.get_attribute('href')
|
10141
|
+
if rel && href
|
10142
|
+
list = List.new
|
10143
|
+
list.href = href
|
10144
|
+
case rel
|
10145
|
+
when 'networkattachments'
|
10146
|
+
object.network_attachments = list
|
10147
|
+
when 'networklabels'
|
10148
|
+
object.network_labels = list
|
10149
|
+
when 'reporteddevices'
|
10150
|
+
object.reported_devices = list
|
10151
|
+
when 'statistics'
|
10152
|
+
object.statistics = list
|
10153
|
+
when 'virtualfunctionallowedlabels'
|
10154
|
+
object.virtual_function_allowed_labels = list
|
10155
|
+
when 'virtualfunctionallowednetworks'
|
10156
|
+
object.virtual_function_allowed_networks = list
|
10157
|
+
when 'vms'
|
10158
|
+
object.vms = list
|
10159
|
+
end
|
10160
|
+
end
|
10161
|
+
|
10162
|
+
# Discard the rest of the element:
|
10163
|
+
reader.next_element
|
10164
|
+
end
|
10165
|
+
|
9338
10166
|
end
|
9339
10167
|
|
9340
10168
|
class NicConfigurationReader < Reader # :nodoc:
|
@@ -9463,6 +10291,8 @@ module OvirtSDK4
|
|
9463
10291
|
object.host = HostReader.read_one(reader)
|
9464
10292
|
when 'statistics'
|
9465
10293
|
object.statistics = StatisticReader.read_many(reader)
|
10294
|
+
when 'link'
|
10295
|
+
read_link(reader, object)
|
9466
10296
|
else
|
9467
10297
|
reader.next_element
|
9468
10298
|
end
|
@@ -9499,6 +10329,23 @@ module OvirtSDK4
|
|
9499
10329
|
return list
|
9500
10330
|
end
|
9501
10331
|
|
10332
|
+
def self.read_link(reader, object)
|
10333
|
+
# Process the attributes:
|
10334
|
+
rel = reader.get_attribute('rel')
|
10335
|
+
href = reader.get_attribute('href')
|
10336
|
+
if rel && href
|
10337
|
+
list = List.new
|
10338
|
+
list.href = href
|
10339
|
+
case rel
|
10340
|
+
when 'statistics'
|
10341
|
+
object.statistics = list
|
10342
|
+
end
|
10343
|
+
end
|
10344
|
+
|
10345
|
+
# Discard the rest of the element:
|
10346
|
+
reader.next_element
|
10347
|
+
end
|
10348
|
+
|
9502
10349
|
end
|
9503
10350
|
|
9504
10351
|
class NumaNodePinReader < Reader # :nodoc:
|
@@ -9707,6 +10554,12 @@ module OvirtSDK4
|
|
9707
10554
|
object.url = Reader.read_string(reader)
|
9708
10555
|
when 'username'
|
9709
10556
|
object.username = Reader.read_string(reader)
|
10557
|
+
when 'certificates'
|
10558
|
+
object.certificates = CertificateReader.read_many(reader)
|
10559
|
+
when 'images'
|
10560
|
+
object.images = OpenStackImageReader.read_many(reader)
|
10561
|
+
when 'link'
|
10562
|
+
read_link(reader, object)
|
9710
10563
|
else
|
9711
10564
|
reader.next_element
|
9712
10565
|
end
|
@@ -9743,6 +10596,25 @@ module OvirtSDK4
|
|
9743
10596
|
return list
|
9744
10597
|
end
|
9745
10598
|
|
10599
|
+
def self.read_link(reader, object)
|
10600
|
+
# Process the attributes:
|
10601
|
+
rel = reader.get_attribute('rel')
|
10602
|
+
href = reader.get_attribute('href')
|
10603
|
+
if rel && href
|
10604
|
+
list = List.new
|
10605
|
+
list.href = href
|
10606
|
+
case rel
|
10607
|
+
when 'certificates'
|
10608
|
+
object.certificates = list
|
10609
|
+
when 'images'
|
10610
|
+
object.images = list
|
10611
|
+
end
|
10612
|
+
end
|
10613
|
+
|
10614
|
+
# Discard the rest of the element:
|
10615
|
+
reader.next_element
|
10616
|
+
end
|
10617
|
+
|
9746
10618
|
end
|
9747
10619
|
|
9748
10620
|
class OpenStackNetworkReader < Reader # :nodoc:
|
@@ -9897,6 +10769,14 @@ module OvirtSDK4
|
|
9897
10769
|
object.url = Reader.read_string(reader)
|
9898
10770
|
when 'username'
|
9899
10771
|
object.username = Reader.read_string(reader)
|
10772
|
+
when 'certificates'
|
10773
|
+
object.certificates = CertificateReader.read_many(reader)
|
10774
|
+
when 'networks'
|
10775
|
+
object.networks = OpenStackNetworkReader.read_many(reader)
|
10776
|
+
when 'subnets'
|
10777
|
+
object.subnets = OpenStackSubnetReader.read_many(reader)
|
10778
|
+
when 'link'
|
10779
|
+
read_link(reader, object)
|
9900
10780
|
else
|
9901
10781
|
reader.next_element
|
9902
10782
|
end
|
@@ -9933,6 +10813,27 @@ module OvirtSDK4
|
|
9933
10813
|
return list
|
9934
10814
|
end
|
9935
10815
|
|
10816
|
+
def self.read_link(reader, object)
|
10817
|
+
# Process the attributes:
|
10818
|
+
rel = reader.get_attribute('rel')
|
10819
|
+
href = reader.get_attribute('href')
|
10820
|
+
if rel && href
|
10821
|
+
list = List.new
|
10822
|
+
list.href = href
|
10823
|
+
case rel
|
10824
|
+
when 'certificates'
|
10825
|
+
object.certificates = list
|
10826
|
+
when 'networks'
|
10827
|
+
object.networks = list
|
10828
|
+
when 'subnets'
|
10829
|
+
object.subnets = list
|
10830
|
+
end
|
10831
|
+
end
|
10832
|
+
|
10833
|
+
# Discard the rest of the element:
|
10834
|
+
reader.next_element
|
10835
|
+
end
|
10836
|
+
|
9936
10837
|
end
|
9937
10838
|
|
9938
10839
|
class OpenStackProviderReader < Reader # :nodoc:
|
@@ -10187,8 +11088,16 @@ module OvirtSDK4
|
|
10187
11088
|
object.url = Reader.read_string(reader)
|
10188
11089
|
when 'username'
|
10189
11090
|
object.username = Reader.read_string(reader)
|
11091
|
+
when 'authentication_keys'
|
11092
|
+
object.authentication_keys = OpenstackVolumeAuthenticationKeyReader.read_many(reader)
|
11093
|
+
when 'certificates'
|
11094
|
+
object.certificates = CertificateReader.read_many(reader)
|
10190
11095
|
when 'data_center'
|
10191
11096
|
object.data_center = DataCenterReader.read_one(reader)
|
11097
|
+
when 'volume_types'
|
11098
|
+
object.volume_types = OpenStackVolumeTypeReader.read_many(reader)
|
11099
|
+
when 'link'
|
11100
|
+
read_link(reader, object)
|
10192
11101
|
else
|
10193
11102
|
reader.next_element
|
10194
11103
|
end
|
@@ -10225,6 +11134,27 @@ module OvirtSDK4
|
|
10225
11134
|
return list
|
10226
11135
|
end
|
10227
11136
|
|
11137
|
+
def self.read_link(reader, object)
|
11138
|
+
# Process the attributes:
|
11139
|
+
rel = reader.get_attribute('rel')
|
11140
|
+
href = reader.get_attribute('href')
|
11141
|
+
if rel && href
|
11142
|
+
list = List.new
|
11143
|
+
list.href = href
|
11144
|
+
case rel
|
11145
|
+
when 'authenticationkeys'
|
11146
|
+
object.authentication_keys = list
|
11147
|
+
when 'certificates'
|
11148
|
+
object.certificates = list
|
11149
|
+
when 'volumetypes'
|
11150
|
+
object.volume_types = list
|
11151
|
+
end
|
11152
|
+
end
|
11153
|
+
|
11154
|
+
# Discard the rest of the element:
|
11155
|
+
reader.next_element
|
11156
|
+
end
|
11157
|
+
|
10228
11158
|
end
|
10229
11159
|
|
10230
11160
|
class OpenStackVolumeTypeReader < Reader # :nodoc:
|
@@ -10410,10 +11340,14 @@ module OvirtSDK4
|
|
10410
11340
|
object.href = reader.get_attribute('href')
|
10411
11341
|
value = reader.get_attribute('cmdline')
|
10412
11342
|
object.cmdline = value if not value.nil?
|
11343
|
+
value = reader.get_attribute('custom_kernel_cmdline')
|
11344
|
+
object.custom_kernel_cmdline = value if not value.nil?
|
10413
11345
|
value = reader.get_attribute('initrd')
|
10414
11346
|
object.initrd = value if not value.nil?
|
10415
11347
|
value = reader.get_attribute('kernel')
|
10416
11348
|
object.kernel = value if not value.nil?
|
11349
|
+
value = reader.get_attribute('reported_kernel_cmdline')
|
11350
|
+
object.reported_kernel_cmdline = value if not value.nil?
|
10417
11351
|
value = reader.get_attribute('type')
|
10418
11352
|
object.type = value if not value.nil?
|
10419
11353
|
|
@@ -10429,10 +11363,14 @@ module OvirtSDK4
|
|
10429
11363
|
object.boot = BootReader.read_one(reader)
|
10430
11364
|
when 'cmdline'
|
10431
11365
|
object.cmdline = Reader.read_string(reader)
|
11366
|
+
when 'custom_kernel_cmdline'
|
11367
|
+
object.custom_kernel_cmdline = Reader.read_string(reader)
|
10432
11368
|
when 'initrd'
|
10433
11369
|
object.initrd = Reader.read_string(reader)
|
10434
11370
|
when 'kernel'
|
10435
11371
|
object.kernel = Reader.read_string(reader)
|
11372
|
+
when 'reported_kernel_cmdline'
|
11373
|
+
object.reported_kernel_cmdline = Reader.read_string(reader)
|
10436
11374
|
when 'type'
|
10437
11375
|
object.type = Reader.read_string(reader)
|
10438
11376
|
when 'version'
|
@@ -11686,6 +12624,14 @@ module OvirtSDK4
|
|
11686
12624
|
object.users = UserReader.read_many(reader)
|
11687
12625
|
when 'vms'
|
11688
12626
|
object.vms = VmReader.read_many(reader)
|
12627
|
+
when 'permissions'
|
12628
|
+
object.permissions = PermissionReader.read_many(reader)
|
12629
|
+
when 'quota_cluster_limits'
|
12630
|
+
object.quota_cluster_limits = QuotaClusterLimitReader.read_many(reader)
|
12631
|
+
when 'quota_storage_limits'
|
12632
|
+
object.quota_storage_limits = QuotaStorageLimitReader.read_many(reader)
|
12633
|
+
when 'link'
|
12634
|
+
read_link(reader, object)
|
11689
12635
|
else
|
11690
12636
|
reader.next_element
|
11691
12637
|
end
|
@@ -11722,6 +12668,27 @@ module OvirtSDK4
|
|
11722
12668
|
return list
|
11723
12669
|
end
|
11724
12670
|
|
12671
|
+
def self.read_link(reader, object)
|
12672
|
+
# Process the attributes:
|
12673
|
+
rel = reader.get_attribute('rel')
|
12674
|
+
href = reader.get_attribute('href')
|
12675
|
+
if rel && href
|
12676
|
+
list = List.new
|
12677
|
+
list.href = href
|
12678
|
+
case rel
|
12679
|
+
when 'permissions'
|
12680
|
+
object.permissions = list
|
12681
|
+
when 'quotaclusterlimits'
|
12682
|
+
object.quota_cluster_limits = list
|
12683
|
+
when 'quotastoragelimits'
|
12684
|
+
object.quota_storage_limits = list
|
12685
|
+
end
|
12686
|
+
end
|
12687
|
+
|
12688
|
+
# Discard the rest of the element:
|
12689
|
+
reader.next_element
|
12690
|
+
end
|
12691
|
+
|
11725
12692
|
end
|
11726
12693
|
|
11727
12694
|
class QuotaClusterLimitReader < Reader # :nodoc:
|
@@ -12306,6 +13273,8 @@ module OvirtSDK4
|
|
12306
13273
|
object.permits = PermitReader.read_many(reader)
|
12307
13274
|
when 'user'
|
12308
13275
|
object.user = UserReader.read_one(reader)
|
13276
|
+
when 'link'
|
13277
|
+
read_link(reader, object)
|
12309
13278
|
else
|
12310
13279
|
reader.next_element
|
12311
13280
|
end
|
@@ -12342,6 +13311,23 @@ module OvirtSDK4
|
|
12342
13311
|
return list
|
12343
13312
|
end
|
12344
13313
|
|
13314
|
+
def self.read_link(reader, object)
|
13315
|
+
# Process the attributes:
|
13316
|
+
rel = reader.get_attribute('rel')
|
13317
|
+
href = reader.get_attribute('href')
|
13318
|
+
if rel && href
|
13319
|
+
list = List.new
|
13320
|
+
list.href = href
|
13321
|
+
case rel
|
13322
|
+
when 'permits'
|
13323
|
+
object.permits = list
|
13324
|
+
end
|
13325
|
+
end
|
13326
|
+
|
13327
|
+
# Discard the rest of the element:
|
13328
|
+
reader.next_element
|
13329
|
+
end
|
13330
|
+
|
12345
13331
|
end
|
12346
13332
|
|
12347
13333
|
class SchedulingPolicyReader < Reader # :nodoc:
|
@@ -12390,6 +13376,14 @@ module OvirtSDK4
|
|
12390
13376
|
object.name = Reader.read_string(reader)
|
12391
13377
|
when 'properties'
|
12392
13378
|
object.properties = PropertyReader.read_many(reader)
|
13379
|
+
when 'balances'
|
13380
|
+
object.balances = BalanceReader.read_many(reader)
|
13381
|
+
when 'filters'
|
13382
|
+
object.filters = FilterReader.read_many(reader)
|
13383
|
+
when 'weight'
|
13384
|
+
object.weight = WeightReader.read_many(reader)
|
13385
|
+
when 'link'
|
13386
|
+
read_link(reader, object)
|
12393
13387
|
else
|
12394
13388
|
reader.next_element
|
12395
13389
|
end
|
@@ -12426,6 +13420,27 @@ module OvirtSDK4
|
|
12426
13420
|
return list
|
12427
13421
|
end
|
12428
13422
|
|
13423
|
+
def self.read_link(reader, object)
|
13424
|
+
# Process the attributes:
|
13425
|
+
rel = reader.get_attribute('rel')
|
13426
|
+
href = reader.get_attribute('href')
|
13427
|
+
if rel && href
|
13428
|
+
list = List.new
|
13429
|
+
list.href = href
|
13430
|
+
case rel
|
13431
|
+
when 'balances'
|
13432
|
+
object.balances = list
|
13433
|
+
when 'filters'
|
13434
|
+
object.filters = list
|
13435
|
+
when 'weight'
|
13436
|
+
object.weight = list
|
13437
|
+
end
|
13438
|
+
end
|
13439
|
+
|
13440
|
+
# Discard the rest of the element:
|
13441
|
+
reader.next_element
|
13442
|
+
end
|
13443
|
+
|
12429
13444
|
end
|
12430
13445
|
|
12431
13446
|
class SchedulingPolicyUnitReader < Reader # :nodoc:
|
@@ -13034,8 +14049,6 @@ module OvirtSDK4
|
|
13034
14049
|
object.start_time = Reader.read_date(reader)
|
13035
14050
|
when 'stateless'
|
13036
14051
|
object.stateless = Reader.read_boolean(reader)
|
13037
|
-
when 'statistics'
|
13038
|
-
object.statistics = StatisticReader.read_many(reader)
|
13039
14052
|
when 'status'
|
13040
14053
|
object.status = Reader.read_string(reader)
|
13041
14054
|
when 'status_detail'
|
@@ -13044,8 +14057,6 @@ module OvirtSDK4
|
|
13044
14057
|
object.stop_reason = Reader.read_string(reader)
|
13045
14058
|
when 'stop_time'
|
13046
14059
|
object.stop_time = Reader.read_date(reader)
|
13047
|
-
when 'tags'
|
13048
|
-
object.tags = TagReader.read_many(reader)
|
13049
14060
|
when 'time_zone'
|
13050
14061
|
object.time_zone = TimeZoneReader.read_one(reader)
|
13051
14062
|
when 'tunnel_migration'
|
@@ -13058,36 +14069,54 @@ module OvirtSDK4
|
|
13058
14069
|
object.use_latest_template_version = Reader.read_boolean(reader)
|
13059
14070
|
when 'virtio_scsi'
|
13060
14071
|
object.virtio_scsi = VirtioScsiReader.read_one(reader)
|
14072
|
+
when 'affinity_labels'
|
14073
|
+
object.affinity_labels = AffinityLabelReader.read_many(reader)
|
14074
|
+
when 'applications'
|
14075
|
+
object.applications = ApplicationReader.read_many(reader)
|
13061
14076
|
when 'cdroms'
|
13062
14077
|
object.cdroms = CdromReader.read_many(reader)
|
13063
14078
|
when 'cluster'
|
13064
14079
|
object.cluster = ClusterReader.read_one(reader)
|
13065
14080
|
when 'cpu_profile'
|
13066
14081
|
object.cpu_profile = CpuProfileReader.read_one(reader)
|
14082
|
+
when 'disk_attachments'
|
14083
|
+
object.disk_attachments = DiskAttachmentReader.read_many(reader)
|
13067
14084
|
when 'disks'
|
13068
14085
|
object.disks = DiskReader.read_many(reader)
|
13069
14086
|
when 'external_host_provider'
|
13070
14087
|
object.external_host_provider = ExternalHostProviderReader.read_one(reader)
|
13071
14088
|
when 'floppies'
|
13072
14089
|
object.floppies = FloppyReader.read_many(reader)
|
14090
|
+
when 'graphics_consoles'
|
14091
|
+
object.graphics_consoles = GraphicsConsoleReader.read_many(reader)
|
13073
14092
|
when 'host'
|
13074
14093
|
object.host = HostReader.read_one(reader)
|
14094
|
+
when 'host_devices'
|
14095
|
+
object.host_devices = HostDeviceReader.read_many(reader)
|
13075
14096
|
when 'instance_type'
|
13076
14097
|
object.instance_type = InstanceTypeReader.read_one(reader)
|
13077
14098
|
when 'katello_errata'
|
13078
14099
|
object.katello_errata = KatelloErratumReader.read_many(reader)
|
13079
14100
|
when 'nics'
|
13080
14101
|
object.nics = NicReader.read_many(reader)
|
14102
|
+
when 'host_numa_nodes'
|
14103
|
+
object.numa_nodes = NumaNodeReader.read_many(reader)
|
13081
14104
|
when 'permissions'
|
13082
14105
|
object.permissions = PermissionReader.read_many(reader)
|
13083
14106
|
when 'quota'
|
13084
14107
|
object.quota = QuotaReader.read_one(reader)
|
13085
14108
|
when 'reported_devices'
|
13086
14109
|
object.reported_devices = ReportedDeviceReader.read_many(reader)
|
14110
|
+
when 'sessions'
|
14111
|
+
object.sessions = SessionReader.read_many(reader)
|
13087
14112
|
when 'snapshots'
|
13088
14113
|
object.snapshots = SnapshotReader.read_many(reader)
|
14114
|
+
when 'statistics'
|
14115
|
+
object.statistics = StatisticReader.read_many(reader)
|
13089
14116
|
when 'storage_domain'
|
13090
14117
|
object.storage_domain = StorageDomainReader.read_one(reader)
|
14118
|
+
when 'tags'
|
14119
|
+
object.tags = TagReader.read_many(reader)
|
13091
14120
|
when 'template'
|
13092
14121
|
object.template = TemplateReader.read_one(reader)
|
13093
14122
|
when 'vm'
|
@@ -13096,6 +14125,8 @@ module OvirtSDK4
|
|
13096
14125
|
object.vm_pool = VmPoolReader.read_one(reader)
|
13097
14126
|
when 'watchdogs'
|
13098
14127
|
object.watchdogs = WatchdogReader.read_many(reader)
|
14128
|
+
when 'link'
|
14129
|
+
read_link(reader, object)
|
13099
14130
|
else
|
13100
14131
|
reader.next_element
|
13101
14132
|
end
|
@@ -13132,6 +14163,57 @@ module OvirtSDK4
|
|
13132
14163
|
return list
|
13133
14164
|
end
|
13134
14165
|
|
14166
|
+
def self.read_link(reader, object)
|
14167
|
+
# Process the attributes:
|
14168
|
+
rel = reader.get_attribute('rel')
|
14169
|
+
href = reader.get_attribute('href')
|
14170
|
+
if rel && href
|
14171
|
+
list = List.new
|
14172
|
+
list.href = href
|
14173
|
+
case rel
|
14174
|
+
when 'affinitylabels'
|
14175
|
+
object.affinity_labels = list
|
14176
|
+
when 'applications'
|
14177
|
+
object.applications = list
|
14178
|
+
when 'cdroms'
|
14179
|
+
object.cdroms = list
|
14180
|
+
when 'diskattachments'
|
14181
|
+
object.disk_attachments = list
|
14182
|
+
when 'disks'
|
14183
|
+
object.disks = list
|
14184
|
+
when 'floppies'
|
14185
|
+
object.floppies = list
|
14186
|
+
when 'graphicsconsoles'
|
14187
|
+
object.graphics_consoles = list
|
14188
|
+
when 'hostdevices'
|
14189
|
+
object.host_devices = list
|
14190
|
+
when 'katelloerrata'
|
14191
|
+
object.katello_errata = list
|
14192
|
+
when 'nics'
|
14193
|
+
object.nics = list
|
14194
|
+
when 'numanodes'
|
14195
|
+
object.numa_nodes = list
|
14196
|
+
when 'permissions'
|
14197
|
+
object.permissions = list
|
14198
|
+
when 'reporteddevices'
|
14199
|
+
object.reported_devices = list
|
14200
|
+
when 'sessions'
|
14201
|
+
object.sessions = list
|
14202
|
+
when 'snapshots'
|
14203
|
+
object.snapshots = list
|
14204
|
+
when 'statistics'
|
14205
|
+
object.statistics = list
|
14206
|
+
when 'tags'
|
14207
|
+
object.tags = list
|
14208
|
+
when 'watchdogs'
|
14209
|
+
object.watchdogs = list
|
14210
|
+
end
|
14211
|
+
end
|
14212
|
+
|
14213
|
+
# Discard the rest of the element:
|
14214
|
+
reader.next_element
|
14215
|
+
end
|
14216
|
+
|
13135
14217
|
end
|
13136
14218
|
|
13137
14219
|
class SpecialObjectsReader < Reader # :nodoc:
|
@@ -13664,6 +14746,10 @@ module OvirtSDK4
|
|
13664
14746
|
object.job = JobReader.read_one(reader)
|
13665
14747
|
when 'parent_step'
|
13666
14748
|
object.parent_step = StepReader.read_one(reader)
|
14749
|
+
when 'statistics'
|
14750
|
+
object.statistics = StatisticReader.read_many(reader)
|
14751
|
+
when 'link'
|
14752
|
+
read_link(reader, object)
|
13667
14753
|
else
|
13668
14754
|
reader.next_element
|
13669
14755
|
end
|
@@ -13700,6 +14786,23 @@ module OvirtSDK4
|
|
13700
14786
|
return list
|
13701
14787
|
end
|
13702
14788
|
|
14789
|
+
def self.read_link(reader, object)
|
14790
|
+
# Process the attributes:
|
14791
|
+
rel = reader.get_attribute('rel')
|
14792
|
+
href = reader.get_attribute('href')
|
14793
|
+
if rel && href
|
14794
|
+
list = List.new
|
14795
|
+
list.href = href
|
14796
|
+
case rel
|
14797
|
+
when 'statistics'
|
14798
|
+
object.statistics = list
|
14799
|
+
end
|
14800
|
+
end
|
14801
|
+
|
14802
|
+
# Discard the rest of the element:
|
14803
|
+
reader.next_element
|
14804
|
+
end
|
14805
|
+
|
13703
14806
|
end
|
13704
14807
|
|
13705
14808
|
class StorageConnectionReader < Reader # :nodoc:
|
@@ -14008,8 +15111,28 @@ module OvirtSDK4
|
|
14008
15111
|
object.data_center = DataCenterReader.read_one(reader)
|
14009
15112
|
when 'data_centers'
|
14010
15113
|
object.data_centers = DataCenterReader.read_many(reader)
|
15114
|
+
when 'disk_profiles'
|
15115
|
+
object.disk_profiles = DiskProfileReader.read_many(reader)
|
15116
|
+
when 'disk_snapshots'
|
15117
|
+
object.disk_snapshots = DiskSnapshotReader.read_many(reader)
|
15118
|
+
when 'disks'
|
15119
|
+
object.disks = DiskReader.read_many(reader)
|
15120
|
+
when 'files'
|
15121
|
+
object.files = FileReader.read_many(reader)
|
14011
15122
|
when 'host'
|
14012
15123
|
object.host = HostReader.read_one(reader)
|
15124
|
+
when 'images'
|
15125
|
+
object.images = ImageReader.read_many(reader)
|
15126
|
+
when 'permissions'
|
15127
|
+
object.permissions = PermissionReader.read_many(reader)
|
15128
|
+
when 'storage_connections'
|
15129
|
+
object.storage_connections = StorageConnectionReader.read_many(reader)
|
15130
|
+
when 'templates'
|
15131
|
+
object.templates = TemplateReader.read_many(reader)
|
15132
|
+
when 'vms'
|
15133
|
+
object.vms = VmReader.read_many(reader)
|
15134
|
+
when 'link'
|
15135
|
+
read_link(reader, object)
|
14013
15136
|
else
|
14014
15137
|
reader.next_element
|
14015
15138
|
end
|
@@ -14046,6 +15169,41 @@ module OvirtSDK4
|
|
14046
15169
|
return list
|
14047
15170
|
end
|
14048
15171
|
|
15172
|
+
def self.read_link(reader, object)
|
15173
|
+
# Process the attributes:
|
15174
|
+
rel = reader.get_attribute('rel')
|
15175
|
+
href = reader.get_attribute('href')
|
15176
|
+
if rel && href
|
15177
|
+
list = List.new
|
15178
|
+
list.href = href
|
15179
|
+
case rel
|
15180
|
+
when 'datacenters'
|
15181
|
+
object.data_centers = list
|
15182
|
+
when 'diskprofiles'
|
15183
|
+
object.disk_profiles = list
|
15184
|
+
when 'disksnapshots'
|
15185
|
+
object.disk_snapshots = list
|
15186
|
+
when 'disks'
|
15187
|
+
object.disks = list
|
15188
|
+
when 'files'
|
15189
|
+
object.files = list
|
15190
|
+
when 'images'
|
15191
|
+
object.images = list
|
15192
|
+
when 'permissions'
|
15193
|
+
object.permissions = list
|
15194
|
+
when 'storageconnections'
|
15195
|
+
object.storage_connections = list
|
15196
|
+
when 'templates'
|
15197
|
+
object.templates = list
|
15198
|
+
when 'vms'
|
15199
|
+
object.vms = list
|
15200
|
+
end
|
15201
|
+
end
|
15202
|
+
|
15203
|
+
# Discard the rest of the element:
|
15204
|
+
reader.next_element
|
15205
|
+
end
|
15206
|
+
|
14049
15207
|
end
|
14050
15208
|
|
14051
15209
|
class TagReader < Reader # :nodoc:
|
@@ -14272,12 +15430,28 @@ module OvirtSDK4
|
|
14272
15430
|
object.virtio_scsi = VirtioScsiReader.read_one(reader)
|
14273
15431
|
when 'vm'
|
14274
15432
|
object.vm = VmReader.read_one(reader)
|
15433
|
+
when 'cdroms'
|
15434
|
+
object.cdroms = CdromReader.read_many(reader)
|
14275
15435
|
when 'cluster'
|
14276
15436
|
object.cluster = ClusterReader.read_one(reader)
|
14277
15437
|
when 'cpu_profile'
|
14278
15438
|
object.cpu_profile = CpuProfileReader.read_one(reader)
|
15439
|
+
when 'disks'
|
15440
|
+
object.disks = DiskReader.read_many(reader)
|
15441
|
+
when 'graphics_consoles'
|
15442
|
+
object.graphics_consoles = GraphicsConsoleReader.read_many(reader)
|
15443
|
+
when 'nics'
|
15444
|
+
object.nics = NicReader.read_many(reader)
|
15445
|
+
when 'permissions'
|
15446
|
+
object.permissions = PermissionReader.read_many(reader)
|
14279
15447
|
when 'storage_domain'
|
14280
15448
|
object.storage_domain = StorageDomainReader.read_one(reader)
|
15449
|
+
when 'tags'
|
15450
|
+
object.tags = TagReader.read_many(reader)
|
15451
|
+
when 'watchdogs'
|
15452
|
+
object.watchdogs = WatchdogReader.read_many(reader)
|
15453
|
+
when 'link'
|
15454
|
+
read_link(reader, object)
|
14281
15455
|
else
|
14282
15456
|
reader.next_element
|
14283
15457
|
end
|
@@ -14314,6 +15488,35 @@ module OvirtSDK4
|
|
14314
15488
|
return list
|
14315
15489
|
end
|
14316
15490
|
|
15491
|
+
def self.read_link(reader, object)
|
15492
|
+
# Process the attributes:
|
15493
|
+
rel = reader.get_attribute('rel')
|
15494
|
+
href = reader.get_attribute('href')
|
15495
|
+
if rel && href
|
15496
|
+
list = List.new
|
15497
|
+
list.href = href
|
15498
|
+
case rel
|
15499
|
+
when 'cdroms'
|
15500
|
+
object.cdroms = list
|
15501
|
+
when 'disks'
|
15502
|
+
object.disks = list
|
15503
|
+
when 'graphicsconsoles'
|
15504
|
+
object.graphics_consoles = list
|
15505
|
+
when 'nics'
|
15506
|
+
object.nics = list
|
15507
|
+
when 'permissions'
|
15508
|
+
object.permissions = list
|
15509
|
+
when 'tags'
|
15510
|
+
object.tags = list
|
15511
|
+
when 'watchdogs'
|
15512
|
+
object.watchdogs = list
|
15513
|
+
end
|
15514
|
+
end
|
15515
|
+
|
15516
|
+
# Discard the rest of the element:
|
15517
|
+
reader.next_element
|
15518
|
+
end
|
15519
|
+
|
14317
15520
|
end
|
14318
15521
|
|
14319
15522
|
class TemplateVersionReader < Reader # :nodoc:
|
@@ -14798,8 +16001,16 @@ module OvirtSDK4
|
|
14798
16001
|
object.domain = DomainReader.read_one(reader)
|
14799
16002
|
when 'groups'
|
14800
16003
|
object.groups = GroupReader.read_many(reader)
|
16004
|
+
when 'permissions'
|
16005
|
+
object.permissions = PermissionReader.read_many(reader)
|
14801
16006
|
when 'roles'
|
14802
16007
|
object.roles = RoleReader.read_many(reader)
|
16008
|
+
when 'ssh_public_keys'
|
16009
|
+
object.ssh_public_keys = SshPublicKeyReader.read_many(reader)
|
16010
|
+
when 'tags'
|
16011
|
+
object.tags = TagReader.read_many(reader)
|
16012
|
+
when 'link'
|
16013
|
+
read_link(reader, object)
|
14803
16014
|
else
|
14804
16015
|
reader.next_element
|
14805
16016
|
end
|
@@ -14836,6 +16047,31 @@ module OvirtSDK4
|
|
14836
16047
|
return list
|
14837
16048
|
end
|
14838
16049
|
|
16050
|
+
def self.read_link(reader, object)
|
16051
|
+
# Process the attributes:
|
16052
|
+
rel = reader.get_attribute('rel')
|
16053
|
+
href = reader.get_attribute('href')
|
16054
|
+
if rel && href
|
16055
|
+
list = List.new
|
16056
|
+
list.href = href
|
16057
|
+
case rel
|
16058
|
+
when 'groups'
|
16059
|
+
object.groups = list
|
16060
|
+
when 'permissions'
|
16061
|
+
object.permissions = list
|
16062
|
+
when 'roles'
|
16063
|
+
object.roles = list
|
16064
|
+
when 'sshpublickeys'
|
16065
|
+
object.ssh_public_keys = list
|
16066
|
+
when 'tags'
|
16067
|
+
object.tags = list
|
16068
|
+
end
|
16069
|
+
end
|
16070
|
+
|
16071
|
+
# Discard the rest of the element:
|
16072
|
+
reader.next_element
|
16073
|
+
end
|
16074
|
+
|
14839
16075
|
end
|
14840
16076
|
|
14841
16077
|
class ValueReader < Reader # :nodoc:
|
@@ -15258,6 +16494,8 @@ module OvirtSDK4
|
|
15258
16494
|
object.statistics = StatisticReader.read_many(reader)
|
15259
16495
|
when 'vm'
|
15260
16496
|
object.vm = VmReader.read_one(reader)
|
16497
|
+
when 'link'
|
16498
|
+
read_link(reader, object)
|
15261
16499
|
else
|
15262
16500
|
reader.next_element
|
15263
16501
|
end
|
@@ -15294,6 +16532,23 @@ module OvirtSDK4
|
|
15294
16532
|
return list
|
15295
16533
|
end
|
15296
16534
|
|
16535
|
+
def self.read_link(reader, object)
|
16536
|
+
# Process the attributes:
|
16537
|
+
rel = reader.get_attribute('rel')
|
16538
|
+
href = reader.get_attribute('href')
|
16539
|
+
if rel && href
|
16540
|
+
list = List.new
|
16541
|
+
list.href = href
|
16542
|
+
case rel
|
16543
|
+
when 'statistics'
|
16544
|
+
object.statistics = list
|
16545
|
+
end
|
16546
|
+
end
|
16547
|
+
|
16548
|
+
# Discard the rest of the element:
|
16549
|
+
reader.next_element
|
16550
|
+
end
|
16551
|
+
|
15297
16552
|
end
|
15298
16553
|
|
15299
16554
|
class VlanReader < Reader # :nodoc:
|
@@ -15516,8 +16771,6 @@ module OvirtSDK4
|
|
15516
16771
|
object.start_time = Reader.read_date(reader)
|
15517
16772
|
when 'stateless'
|
15518
16773
|
object.stateless = Reader.read_boolean(reader)
|
15519
|
-
when 'statistics'
|
15520
|
-
object.statistics = StatisticReader.read_many(reader)
|
15521
16774
|
when 'status'
|
15522
16775
|
object.status = Reader.read_string(reader)
|
15523
16776
|
when 'status_detail'
|
@@ -15526,8 +16779,6 @@ module OvirtSDK4
|
|
15526
16779
|
object.stop_reason = Reader.read_string(reader)
|
15527
16780
|
when 'stop_time'
|
15528
16781
|
object.stop_time = Reader.read_date(reader)
|
15529
|
-
when 'tags'
|
15530
|
-
object.tags = TagReader.read_many(reader)
|
15531
16782
|
when 'time_zone'
|
15532
16783
|
object.time_zone = TimeZoneReader.read_one(reader)
|
15533
16784
|
when 'tunnel_migration'
|
@@ -15540,42 +16791,62 @@ module OvirtSDK4
|
|
15540
16791
|
object.use_latest_template_version = Reader.read_boolean(reader)
|
15541
16792
|
when 'virtio_scsi'
|
15542
16793
|
object.virtio_scsi = VirtioScsiReader.read_one(reader)
|
16794
|
+
when 'affinity_labels'
|
16795
|
+
object.affinity_labels = AffinityLabelReader.read_many(reader)
|
16796
|
+
when 'applications'
|
16797
|
+
object.applications = ApplicationReader.read_many(reader)
|
15543
16798
|
when 'cdroms'
|
15544
16799
|
object.cdroms = CdromReader.read_many(reader)
|
15545
16800
|
when 'cluster'
|
15546
16801
|
object.cluster = ClusterReader.read_one(reader)
|
15547
16802
|
when 'cpu_profile'
|
15548
16803
|
object.cpu_profile = CpuProfileReader.read_one(reader)
|
16804
|
+
when 'disk_attachments'
|
16805
|
+
object.disk_attachments = DiskAttachmentReader.read_many(reader)
|
15549
16806
|
when 'disks'
|
15550
16807
|
object.disks = DiskReader.read_many(reader)
|
15551
16808
|
when 'external_host_provider'
|
15552
16809
|
object.external_host_provider = ExternalHostProviderReader.read_one(reader)
|
15553
16810
|
when 'floppies'
|
15554
16811
|
object.floppies = FloppyReader.read_many(reader)
|
16812
|
+
when 'graphics_consoles'
|
16813
|
+
object.graphics_consoles = GraphicsConsoleReader.read_many(reader)
|
15555
16814
|
when 'host'
|
15556
16815
|
object.host = HostReader.read_one(reader)
|
16816
|
+
when 'host_devices'
|
16817
|
+
object.host_devices = HostDeviceReader.read_many(reader)
|
15557
16818
|
when 'instance_type'
|
15558
16819
|
object.instance_type = InstanceTypeReader.read_one(reader)
|
15559
16820
|
when 'katello_errata'
|
15560
16821
|
object.katello_errata = KatelloErratumReader.read_many(reader)
|
15561
16822
|
when 'nics'
|
15562
16823
|
object.nics = NicReader.read_many(reader)
|
16824
|
+
when 'host_numa_nodes'
|
16825
|
+
object.numa_nodes = NumaNodeReader.read_many(reader)
|
15563
16826
|
when 'permissions'
|
15564
16827
|
object.permissions = PermissionReader.read_many(reader)
|
15565
16828
|
when 'quota'
|
15566
16829
|
object.quota = QuotaReader.read_one(reader)
|
15567
16830
|
when 'reported_devices'
|
15568
16831
|
object.reported_devices = ReportedDeviceReader.read_many(reader)
|
16832
|
+
when 'sessions'
|
16833
|
+
object.sessions = SessionReader.read_many(reader)
|
15569
16834
|
when 'snapshots'
|
15570
16835
|
object.snapshots = SnapshotReader.read_many(reader)
|
16836
|
+
when 'statistics'
|
16837
|
+
object.statistics = StatisticReader.read_many(reader)
|
15571
16838
|
when 'storage_domain'
|
15572
16839
|
object.storage_domain = StorageDomainReader.read_one(reader)
|
16840
|
+
when 'tags'
|
16841
|
+
object.tags = TagReader.read_many(reader)
|
15573
16842
|
when 'template'
|
15574
16843
|
object.template = TemplateReader.read_one(reader)
|
15575
16844
|
when 'vm_pool'
|
15576
16845
|
object.vm_pool = VmPoolReader.read_one(reader)
|
15577
16846
|
when 'watchdogs'
|
15578
16847
|
object.watchdogs = WatchdogReader.read_many(reader)
|
16848
|
+
when 'link'
|
16849
|
+
read_link(reader, object)
|
15579
16850
|
else
|
15580
16851
|
reader.next_element
|
15581
16852
|
end
|
@@ -15612,6 +16883,57 @@ module OvirtSDK4
|
|
15612
16883
|
return list
|
15613
16884
|
end
|
15614
16885
|
|
16886
|
+
def self.read_link(reader, object)
|
16887
|
+
# Process the attributes:
|
16888
|
+
rel = reader.get_attribute('rel')
|
16889
|
+
href = reader.get_attribute('href')
|
16890
|
+
if rel && href
|
16891
|
+
list = List.new
|
16892
|
+
list.href = href
|
16893
|
+
case rel
|
16894
|
+
when 'affinitylabels'
|
16895
|
+
object.affinity_labels = list
|
16896
|
+
when 'applications'
|
16897
|
+
object.applications = list
|
16898
|
+
when 'cdroms'
|
16899
|
+
object.cdroms = list
|
16900
|
+
when 'diskattachments'
|
16901
|
+
object.disk_attachments = list
|
16902
|
+
when 'disks'
|
16903
|
+
object.disks = list
|
16904
|
+
when 'floppies'
|
16905
|
+
object.floppies = list
|
16906
|
+
when 'graphicsconsoles'
|
16907
|
+
object.graphics_consoles = list
|
16908
|
+
when 'hostdevices'
|
16909
|
+
object.host_devices = list
|
16910
|
+
when 'katelloerrata'
|
16911
|
+
object.katello_errata = list
|
16912
|
+
when 'nics'
|
16913
|
+
object.nics = list
|
16914
|
+
when 'numanodes'
|
16915
|
+
object.numa_nodes = list
|
16916
|
+
when 'permissions'
|
16917
|
+
object.permissions = list
|
16918
|
+
when 'reporteddevices'
|
16919
|
+
object.reported_devices = list
|
16920
|
+
when 'sessions'
|
16921
|
+
object.sessions = list
|
16922
|
+
when 'snapshots'
|
16923
|
+
object.snapshots = list
|
16924
|
+
when 'statistics'
|
16925
|
+
object.statistics = list
|
16926
|
+
when 'tags'
|
16927
|
+
object.tags = list
|
16928
|
+
when 'watchdogs'
|
16929
|
+
object.watchdogs = list
|
16930
|
+
end
|
16931
|
+
end
|
16932
|
+
|
16933
|
+
# Discard the rest of the element:
|
16934
|
+
reader.next_element
|
16935
|
+
end
|
16936
|
+
|
15615
16937
|
end
|
15616
16938
|
|
15617
16939
|
class VmBaseReader < Reader # :nodoc:
|
@@ -15814,6 +17136,8 @@ module OvirtSDK4
|
|
15814
17136
|
object.affinity = Reader.read_string(reader)
|
15815
17137
|
when 'hosts'
|
15816
17138
|
object.hosts = HostReader.read_many(reader)
|
17139
|
+
when 'link'
|
17140
|
+
read_link(reader, object)
|
15817
17141
|
else
|
15818
17142
|
reader.next_element
|
15819
17143
|
end
|
@@ -15850,6 +17174,23 @@ module OvirtSDK4
|
|
15850
17174
|
return list
|
15851
17175
|
end
|
15852
17176
|
|
17177
|
+
def self.read_link(reader, object)
|
17178
|
+
# Process the attributes:
|
17179
|
+
rel = reader.get_attribute('rel')
|
17180
|
+
href = reader.get_attribute('href')
|
17181
|
+
if rel && href
|
17182
|
+
list = List.new
|
17183
|
+
list.href = href
|
17184
|
+
case rel
|
17185
|
+
when 'hosts'
|
17186
|
+
object.hosts = list
|
17187
|
+
end
|
17188
|
+
end
|
17189
|
+
|
17190
|
+
# Discard the rest of the element:
|
17191
|
+
reader.next_element
|
17192
|
+
end
|
17193
|
+
|
15853
17194
|
end
|
15854
17195
|
|
15855
17196
|
class VmPoolReader < Reader # :nodoc:
|
@@ -15879,6 +17220,8 @@ module OvirtSDK4
|
|
15879
17220
|
object.size = value if not value.nil?
|
15880
17221
|
value = reader.get_attribute('soundcard_enabled')
|
15881
17222
|
object.soundcard_enabled = value if not value.nil?
|
17223
|
+
value = reader.get_attribute('stateful')
|
17224
|
+
object.stateful = value if not value.nil?
|
15882
17225
|
value = reader.get_attribute('type')
|
15883
17226
|
object.type = value if not value.nil?
|
15884
17227
|
value = reader.get_attribute('use_latest_template_version')
|
@@ -15912,6 +17255,8 @@ module OvirtSDK4
|
|
15912
17255
|
object.size = Reader.read_integer(reader)
|
15913
17256
|
when 'soundcard_enabled'
|
15914
17257
|
object.soundcard_enabled = Reader.read_boolean(reader)
|
17258
|
+
when 'stateful'
|
17259
|
+
object.stateful = Reader.read_boolean(reader)
|
15915
17260
|
when 'type'
|
15916
17261
|
object.type = Reader.read_string(reader)
|
15917
17262
|
when 'use_latest_template_version'
|
@@ -15920,10 +17265,14 @@ module OvirtSDK4
|
|
15920
17265
|
object.cluster = ClusterReader.read_one(reader)
|
15921
17266
|
when 'instance_type'
|
15922
17267
|
object.instance_type = InstanceTypeReader.read_one(reader)
|
17268
|
+
when 'permissions'
|
17269
|
+
object.permissions = PermissionReader.read_many(reader)
|
15923
17270
|
when 'template'
|
15924
17271
|
object.template = TemplateReader.read_one(reader)
|
15925
17272
|
when 'vm'
|
15926
17273
|
object.vm = VmReader.read_one(reader)
|
17274
|
+
when 'link'
|
17275
|
+
read_link(reader, object)
|
15927
17276
|
else
|
15928
17277
|
reader.next_element
|
15929
17278
|
end
|
@@ -15960,6 +17309,23 @@ module OvirtSDK4
|
|
15960
17309
|
return list
|
15961
17310
|
end
|
15962
17311
|
|
17312
|
+
def self.read_link(reader, object)
|
17313
|
+
# Process the attributes:
|
17314
|
+
rel = reader.get_attribute('rel')
|
17315
|
+
href = reader.get_attribute('href')
|
17316
|
+
if rel && href
|
17317
|
+
list = List.new
|
17318
|
+
list.href = href
|
17319
|
+
case rel
|
17320
|
+
when 'permissions'
|
17321
|
+
object.permissions = list
|
17322
|
+
end
|
17323
|
+
end
|
17324
|
+
|
17325
|
+
# Discard the rest of the element:
|
17326
|
+
reader.next_element
|
17327
|
+
end
|
17328
|
+
|
15963
17329
|
end
|
15964
17330
|
|
15965
17331
|
class VmSummaryReader < Reader # :nodoc:
|
@@ -16142,8 +17508,12 @@ module OvirtSDK4
|
|
16142
17508
|
object.network = NetworkReader.read_one(reader)
|
16143
17509
|
when 'network_filter'
|
16144
17510
|
object.network_filter = NetworkFilterReader.read_one(reader)
|
17511
|
+
when 'permissions'
|
17512
|
+
object.permissions = PermissionReader.read_many(reader)
|
16145
17513
|
when 'qos'
|
16146
17514
|
object.qos = QosReader.read_one(reader)
|
17515
|
+
when 'link'
|
17516
|
+
read_link(reader, object)
|
16147
17517
|
else
|
16148
17518
|
reader.next_element
|
16149
17519
|
end
|
@@ -16180,6 +17550,23 @@ module OvirtSDK4
|
|
16180
17550
|
return list
|
16181
17551
|
end
|
16182
17552
|
|
17553
|
+
def self.read_link(reader, object)
|
17554
|
+
# Process the attributes:
|
17555
|
+
rel = reader.get_attribute('rel')
|
17556
|
+
href = reader.get_attribute('href')
|
17557
|
+
if rel && href
|
17558
|
+
list = List.new
|
17559
|
+
list.href = href
|
17560
|
+
case rel
|
17561
|
+
when 'permissions'
|
17562
|
+
object.permissions = list
|
17563
|
+
end
|
17564
|
+
end
|
17565
|
+
|
17566
|
+
# Discard the rest of the element:
|
17567
|
+
reader.next_element
|
17568
|
+
end
|
17569
|
+
|
16183
17570
|
end
|
16184
17571
|
|
16185
17572
|
class VolumeGroupReader < Reader # :nodoc:
|
@@ -16302,6 +17689,8 @@ module OvirtSDK4
|
|
16302
17689
|
object.vm = VmReader.read_one(reader)
|
16303
17690
|
when 'vms'
|
16304
17691
|
object.vms = VmReader.read_many(reader)
|
17692
|
+
when 'link'
|
17693
|
+
read_link(reader, object)
|
16305
17694
|
else
|
16306
17695
|
reader.next_element
|
16307
17696
|
end
|
@@ -16338,6 +17727,23 @@ module OvirtSDK4
|
|
16338
17727
|
return list
|
16339
17728
|
end
|
16340
17729
|
|
17730
|
+
def self.read_link(reader, object)
|
17731
|
+
# Process the attributes:
|
17732
|
+
rel = reader.get_attribute('rel')
|
17733
|
+
href = reader.get_attribute('href')
|
17734
|
+
if rel && href
|
17735
|
+
list = List.new
|
17736
|
+
list.href = href
|
17737
|
+
case rel
|
17738
|
+
when 'vms'
|
17739
|
+
object.vms = list
|
17740
|
+
end
|
17741
|
+
end
|
17742
|
+
|
17743
|
+
# Discard the rest of the element:
|
17744
|
+
reader.next_element
|
17745
|
+
end
|
17746
|
+
|
16341
17747
|
end
|
16342
17748
|
|
16343
17749
|
class WeightReader < Reader # :nodoc:
|