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
data/lib/ovirtsdk4/version.rb
CHANGED
data/lib/ovirtsdk4/writers.rb
CHANGED
@@ -31,6 +31,7 @@ module OvirtSDK4
|
|
31
31
|
Writer.write_boolean(writer, 'check_connectivity', object.check_connectivity) unless object.check_connectivity.nil?
|
32
32
|
Writer.write_boolean(writer, 'clone', object.clone) unless object.clone.nil?
|
33
33
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
34
|
+
Writer.write_boolean(writer, 'collapse_snapshots', object.collapse_snapshots) unless object.collapse_snapshots.nil?
|
34
35
|
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
35
36
|
Writer.write_integer(writer, 'connectivity_timeout', object.connectivity_timeout) unless object.connectivity_timeout.nil?
|
36
37
|
DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
|
@@ -115,7 +116,7 @@ module OvirtSDK4
|
|
115
116
|
class AffinityGroupWriter < Writer # :nodoc:
|
116
117
|
|
117
118
|
def self.write_one(object, writer, singular = nil)
|
118
|
-
singular ||= '
|
119
|
+
singular ||= 'affinity_group'
|
119
120
|
writer.write_start(singular)
|
120
121
|
href = object.href
|
121
122
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -126,12 +127,13 @@ module OvirtSDK4
|
|
126
127
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
127
128
|
Writer.write_boolean(writer, 'positive', object.positive) unless object.positive.nil?
|
128
129
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
130
|
+
VmWriter.write_many(object.vms, writer, 'vm', 'vms') unless object.vms.nil?
|
129
131
|
writer.write_end
|
130
132
|
end
|
131
133
|
|
132
134
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
133
|
-
singular ||= '
|
134
|
-
plural ||= '
|
135
|
+
singular ||= 'affinity_group'
|
136
|
+
plural ||= 'affinity_groups'
|
135
137
|
writer.write_start(plural)
|
136
138
|
if list.is_a?(List)
|
137
139
|
href = list.href
|
@@ -148,7 +150,7 @@ module OvirtSDK4
|
|
148
150
|
class AffinityLabelWriter < Writer # :nodoc:
|
149
151
|
|
150
152
|
def self.write_one(object, writer, singular = nil)
|
151
|
-
singular ||= '
|
153
|
+
singular ||= 'affinity_label'
|
152
154
|
writer.write_start(singular)
|
153
155
|
href = object.href
|
154
156
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -163,8 +165,8 @@ module OvirtSDK4
|
|
163
165
|
end
|
164
166
|
|
165
167
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
166
|
-
singular ||= '
|
167
|
-
plural ||= '
|
168
|
+
singular ||= 'affinity_label'
|
169
|
+
plural ||= 'affinity_labels'
|
168
170
|
writer.write_start(plural)
|
169
171
|
if list.is_a?(List)
|
170
172
|
href = list.href
|
@@ -221,7 +223,7 @@ module OvirtSDK4
|
|
221
223
|
class AgentConfigurationWriter < Writer # :nodoc:
|
222
224
|
|
223
225
|
def self.write_one(object, writer, singular = nil)
|
224
|
-
singular ||= '
|
226
|
+
singular ||= 'agent_configuration'
|
225
227
|
writer.write_start(singular)
|
226
228
|
href = object.href
|
227
229
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -235,8 +237,8 @@ module OvirtSDK4
|
|
235
237
|
end
|
236
238
|
|
237
239
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
238
|
-
singular ||= '
|
239
|
-
plural ||= '
|
240
|
+
singular ||= 'agent_configuration'
|
241
|
+
plural ||= 'agent_configurations'
|
240
242
|
writer.write_start(plural)
|
241
243
|
if list.is_a?(List)
|
242
244
|
href = list.href
|
@@ -283,7 +285,7 @@ module OvirtSDK4
|
|
283
285
|
class ApiSummaryWriter < Writer # :nodoc:
|
284
286
|
|
285
287
|
def self.write_one(object, writer, singular = nil)
|
286
|
-
singular ||= '
|
288
|
+
singular ||= 'api_summary'
|
287
289
|
writer.write_start(singular)
|
288
290
|
href = object.href
|
289
291
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -295,8 +297,8 @@ module OvirtSDK4
|
|
295
297
|
end
|
296
298
|
|
297
299
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
298
|
-
singular ||= '
|
299
|
-
plural ||= '
|
300
|
+
singular ||= 'api_summary'
|
301
|
+
plural ||= 'api_summaries'
|
300
302
|
writer.write_start(plural)
|
301
303
|
if list.is_a?(List)
|
302
304
|
href = list.href
|
@@ -313,7 +315,7 @@ module OvirtSDK4
|
|
313
315
|
class ApiSummaryItemWriter < Writer # :nodoc:
|
314
316
|
|
315
317
|
def self.write_one(object, writer, singular = nil)
|
316
|
-
singular ||= '
|
318
|
+
singular ||= 'api_summary_item'
|
317
319
|
writer.write_start(singular)
|
318
320
|
href = object.href
|
319
321
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -323,8 +325,8 @@ module OvirtSDK4
|
|
323
325
|
end
|
324
326
|
|
325
327
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
326
|
-
singular ||= '
|
327
|
-
plural ||= '
|
328
|
+
singular ||= 'api_summary_item'
|
329
|
+
plural ||= 'api_summary_items'
|
328
330
|
writer.write_start(plural)
|
329
331
|
if list.is_a?(List)
|
330
332
|
href = list.href
|
@@ -372,7 +374,7 @@ module OvirtSDK4
|
|
372
374
|
class AuthorizedKeyWriter < Writer # :nodoc:
|
373
375
|
|
374
376
|
def self.write_one(object, writer, singular = nil)
|
375
|
-
singular ||= '
|
377
|
+
singular ||= 'authorized_key'
|
376
378
|
writer.write_start(singular)
|
377
379
|
href = object.href
|
378
380
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -386,8 +388,8 @@ module OvirtSDK4
|
|
386
388
|
end
|
387
389
|
|
388
390
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
389
|
-
singular ||= '
|
390
|
-
plural ||= '
|
391
|
+
singular ||= 'authorized_key'
|
392
|
+
plural ||= 'authorized_keys'
|
391
393
|
writer.write_start(plural)
|
392
394
|
if list.is_a?(List)
|
393
395
|
href = list.href
|
@@ -463,7 +465,7 @@ module OvirtSDK4
|
|
463
465
|
class BlockStatisticWriter < Writer # :nodoc:
|
464
466
|
|
465
467
|
def self.write_one(object, writer, singular = nil)
|
466
|
-
singular ||= '
|
468
|
+
singular ||= 'block_statistic'
|
467
469
|
writer.write_start(singular)
|
468
470
|
href = object.href
|
469
471
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -472,8 +474,8 @@ module OvirtSDK4
|
|
472
474
|
end
|
473
475
|
|
474
476
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
475
|
-
singular ||= '
|
476
|
-
plural ||= '
|
477
|
+
singular ||= 'block_statistic'
|
478
|
+
plural ||= 'block_statistics'
|
477
479
|
writer.write_start(plural)
|
478
480
|
if list.is_a?(List)
|
479
481
|
href = list.href
|
@@ -582,7 +584,7 @@ module OvirtSDK4
|
|
582
584
|
class BootMenuWriter < Writer # :nodoc:
|
583
585
|
|
584
586
|
def self.write_one(object, writer, singular = nil)
|
585
|
-
singular ||= '
|
587
|
+
singular ||= 'boot_menu'
|
586
588
|
writer.write_start(singular)
|
587
589
|
href = object.href
|
588
590
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -591,8 +593,8 @@ module OvirtSDK4
|
|
591
593
|
end
|
592
594
|
|
593
595
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
594
|
-
singular ||= '
|
595
|
-
plural ||= '
|
596
|
+
singular ||= 'boot_menu'
|
597
|
+
plural ||= 'boot_menus'
|
596
598
|
writer.write_start(plural)
|
597
599
|
if list.is_a?(List)
|
598
600
|
href = list.href
|
@@ -609,7 +611,7 @@ module OvirtSDK4
|
|
609
611
|
class BrickProfileDetailWriter < Writer # :nodoc:
|
610
612
|
|
611
613
|
def self.write_one(object, writer, singular = nil)
|
612
|
-
singular ||= '
|
614
|
+
singular ||= 'brick_profile_detail'
|
613
615
|
writer.write_start(singular)
|
614
616
|
href = object.href
|
615
617
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -619,8 +621,8 @@ module OvirtSDK4
|
|
619
621
|
end
|
620
622
|
|
621
623
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
622
|
-
singular ||= '
|
623
|
-
plural ||= '
|
624
|
+
singular ||= 'brick_profile_detail'
|
625
|
+
plural ||= 'brick_profile_details'
|
624
626
|
writer.write_start(plural)
|
625
627
|
if list.is_a?(List)
|
626
628
|
href = list.href
|
@@ -705,7 +707,7 @@ module OvirtSDK4
|
|
705
707
|
class CloudInitWriter < Writer # :nodoc:
|
706
708
|
|
707
709
|
def self.write_one(object, writer, singular = nil)
|
708
|
-
singular ||= '
|
710
|
+
singular ||= 'cloud_init'
|
709
711
|
writer.write_start(singular)
|
710
712
|
href = object.href
|
711
713
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -720,8 +722,8 @@ module OvirtSDK4
|
|
720
722
|
end
|
721
723
|
|
722
724
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
723
|
-
singular ||= '
|
724
|
-
plural ||= '
|
725
|
+
singular ||= 'cloud_init'
|
726
|
+
plural ||= 'cloud_inits'
|
725
727
|
writer.write_start(plural)
|
726
728
|
if list.is_a?(List)
|
727
729
|
href = list.href
|
@@ -773,9 +775,16 @@ module OvirtSDK4
|
|
773
775
|
Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
|
774
776
|
VersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
|
775
777
|
Writer.write_boolean(writer, 'virt_service', object.virt_service) unless object.virt_service.nil?
|
778
|
+
AffinityGroupWriter.write_many(object.affinity_groups, writer, 'affinity_group', 'affinity_groups') unless object.affinity_groups.nil?
|
779
|
+
CpuProfileWriter.write_many(object.cpu_profiles, writer, 'cpu_profile', 'cpu_profiles') unless object.cpu_profiles.nil?
|
776
780
|
DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
|
781
|
+
GlusterHookWriter.write_many(object.gluster_hooks, writer, 'gluster_hook', 'gluster_hooks') unless object.gluster_hooks.nil?
|
782
|
+
GlusterVolumeWriter.write_many(object.gluster_volumes, writer, 'gluster_volume', 'gluster_volumes') unless object.gluster_volumes.nil?
|
777
783
|
MacPoolWriter.write_one(object.mac_pool, writer, 'mac_pool') unless object.mac_pool.nil?
|
778
784
|
NetworkWriter.write_one(object.management_network, writer, 'management_network') unless object.management_network.nil?
|
785
|
+
NetworkFilterWriter.write_many(object.network_filters, writer, 'network_filter', 'network_filters') unless object.network_filters.nil?
|
786
|
+
NetworkWriter.write_many(object.networks, writer, 'network', 'networks') unless object.networks.nil?
|
787
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
779
788
|
writer.write_end
|
780
789
|
end
|
781
790
|
|
@@ -795,6 +804,37 @@ module OvirtSDK4
|
|
795
804
|
|
796
805
|
end
|
797
806
|
|
807
|
+
class ClusterLevelWriter < Writer # :nodoc:
|
808
|
+
|
809
|
+
def self.write_one(object, writer, singular = nil)
|
810
|
+
singular ||= 'cluster_level'
|
811
|
+
writer.write_start(singular)
|
812
|
+
href = object.href
|
813
|
+
writer.write_attribute('href', href) unless href.nil?
|
814
|
+
writer.write_attribute('id', object.id) unless object.id.nil?
|
815
|
+
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
816
|
+
CpuTypeWriter.write_many(object.cpu_types, writer, 'cpu_type', 'cpu_types') unless object.cpu_types.nil?
|
817
|
+
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
818
|
+
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
819
|
+
writer.write_end
|
820
|
+
end
|
821
|
+
|
822
|
+
def self.write_many(list, writer, singular = nil, plural = nil)
|
823
|
+
singular ||= 'cluster_level'
|
824
|
+
plural ||= 'cluster_levels'
|
825
|
+
writer.write_start(plural)
|
826
|
+
if list.is_a?(List)
|
827
|
+
href = list.href
|
828
|
+
writer.write_attribute('href', href) unless href.nil?
|
829
|
+
end
|
830
|
+
list.each do |item|
|
831
|
+
write_one(item, writer, singular)
|
832
|
+
end
|
833
|
+
writer.write_end
|
834
|
+
end
|
835
|
+
|
836
|
+
end
|
837
|
+
|
798
838
|
class ConfigurationWriter < Writer # :nodoc:
|
799
839
|
|
800
840
|
def self.write_one(object, writer, singular = nil)
|
@@ -916,7 +956,7 @@ module OvirtSDK4
|
|
916
956
|
class CpuProfileWriter < Writer # :nodoc:
|
917
957
|
|
918
958
|
def self.write_one(object, writer, singular = nil)
|
919
|
-
singular ||= '
|
959
|
+
singular ||= 'cpu_profile'
|
920
960
|
writer.write_start(singular)
|
921
961
|
href = object.href
|
922
962
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -925,13 +965,14 @@ module OvirtSDK4
|
|
925
965
|
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
926
966
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
927
967
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
968
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
928
969
|
QosWriter.write_one(object.qos, writer, 'qos') unless object.qos.nil?
|
929
970
|
writer.write_end
|
930
971
|
end
|
931
972
|
|
932
973
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
933
|
-
singular ||= '
|
934
|
-
plural ||= '
|
974
|
+
singular ||= 'cpu_profile'
|
975
|
+
plural ||= 'cpu_profiles'
|
935
976
|
writer.write_start(plural)
|
936
977
|
if list.is_a?(List)
|
937
978
|
href = list.href
|
@@ -948,7 +989,7 @@ module OvirtSDK4
|
|
948
989
|
class CpuTopologyWriter < Writer # :nodoc:
|
949
990
|
|
950
991
|
def self.write_one(object, writer, singular = nil)
|
951
|
-
singular ||= '
|
992
|
+
singular ||= 'cpu_topology'
|
952
993
|
writer.write_start(singular)
|
953
994
|
href = object.href
|
954
995
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -959,8 +1000,8 @@ module OvirtSDK4
|
|
959
1000
|
end
|
960
1001
|
|
961
1002
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
962
|
-
singular ||= '
|
963
|
-
plural ||= '
|
1003
|
+
singular ||= 'cpu_topology'
|
1004
|
+
plural ||= 'cpu_topologies'
|
964
1005
|
writer.write_start(plural)
|
965
1006
|
if list.is_a?(List)
|
966
1007
|
href = list.href
|
@@ -977,7 +1018,7 @@ module OvirtSDK4
|
|
977
1018
|
class CpuTuneWriter < Writer # :nodoc:
|
978
1019
|
|
979
1020
|
def self.write_one(object, writer, singular = nil)
|
980
|
-
singular ||= '
|
1021
|
+
singular ||= 'cpu_tune'
|
981
1022
|
writer.write_start(singular)
|
982
1023
|
href = object.href
|
983
1024
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -986,8 +1027,37 @@ module OvirtSDK4
|
|
986
1027
|
end
|
987
1028
|
|
988
1029
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
989
|
-
singular ||= '
|
990
|
-
plural ||= '
|
1030
|
+
singular ||= 'cpu_tune'
|
1031
|
+
plural ||= 'cpu_tunes'
|
1032
|
+
writer.write_start(plural)
|
1033
|
+
if list.is_a?(List)
|
1034
|
+
href = list.href
|
1035
|
+
writer.write_attribute('href', href) unless href.nil?
|
1036
|
+
end
|
1037
|
+
list.each do |item|
|
1038
|
+
write_one(item, writer, singular)
|
1039
|
+
end
|
1040
|
+
writer.write_end
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
end
|
1044
|
+
|
1045
|
+
class CpuTypeWriter < Writer # :nodoc:
|
1046
|
+
|
1047
|
+
def self.write_one(object, writer, singular = nil)
|
1048
|
+
singular ||= 'cpu_type'
|
1049
|
+
writer.write_start(singular)
|
1050
|
+
href = object.href
|
1051
|
+
writer.write_attribute('href', href) unless href.nil?
|
1052
|
+
Writer.write_string(writer, 'architecture', object.architecture) unless object.architecture.nil?
|
1053
|
+
Writer.write_integer(writer, 'level', object.level) unless object.level.nil?
|
1054
|
+
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
1055
|
+
writer.write_end
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
def self.write_many(list, writer, singular = nil, plural = nil)
|
1059
|
+
singular ||= 'cpu_type'
|
1060
|
+
plural ||= 'cpu_types'
|
991
1061
|
writer.write_start(plural)
|
992
1062
|
if list.is_a?(List)
|
993
1063
|
href = list.href
|
@@ -1004,7 +1074,7 @@ module OvirtSDK4
|
|
1004
1074
|
class CustomPropertyWriter < Writer # :nodoc:
|
1005
1075
|
|
1006
1076
|
def self.write_one(object, writer, singular = nil)
|
1007
|
-
singular ||= '
|
1077
|
+
singular ||= 'custom_property'
|
1008
1078
|
writer.write_start(singular)
|
1009
1079
|
href = object.href
|
1010
1080
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1015,8 +1085,8 @@ module OvirtSDK4
|
|
1015
1085
|
end
|
1016
1086
|
|
1017
1087
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1018
|
-
singular ||= '
|
1019
|
-
plural ||= '
|
1088
|
+
singular ||= 'custom_property'
|
1089
|
+
plural ||= 'custom_properties'
|
1020
1090
|
writer.write_start(plural)
|
1021
1091
|
if list.is_a?(List)
|
1022
1092
|
href = list.href
|
@@ -1033,7 +1103,7 @@ module OvirtSDK4
|
|
1033
1103
|
class DataCenterWriter < Writer # :nodoc:
|
1034
1104
|
|
1035
1105
|
def self.write_one(object, writer, singular = nil)
|
1036
|
-
singular ||= '
|
1106
|
+
singular ||= 'data_center'
|
1037
1107
|
writer.write_start(singular)
|
1038
1108
|
href = object.href
|
1039
1109
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1047,12 +1117,20 @@ module OvirtSDK4
|
|
1047
1117
|
Writer.write_string(writer, 'storage_format', object.storage_format) unless object.storage_format.nil?
|
1048
1118
|
VersionWriter.write_many(object.supported_versions, writer, 'supported_version', 'supported_versions') unless object.supported_versions.nil?
|
1049
1119
|
VersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
|
1120
|
+
ClusterWriter.write_many(object.clusters, writer, 'cluster', 'clusters') unless object.clusters.nil?
|
1121
|
+
IscsiBondWriter.write_many(object.iscsi_bonds, writer, 'iscsi_bond', 'iscsi_bonds') unless object.iscsi_bonds.nil?
|
1122
|
+
MacPoolWriter.write_one(object.mac_pool, writer, 'mac_pool') unless object.mac_pool.nil?
|
1123
|
+
NetworkWriter.write_many(object.networks, writer, 'network', 'networks') unless object.networks.nil?
|
1124
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
1125
|
+
QosWriter.write_many(object.qoss, writer, 'qos', 'qoss') unless object.qoss.nil?
|
1126
|
+
QuotaWriter.write_many(object.quotas, writer, 'quota', 'quotas') unless object.quotas.nil?
|
1127
|
+
StorageDomainWriter.write_many(object.storage_domains, writer, 'storage_domain', 'storage_domains') unless object.storage_domains.nil?
|
1050
1128
|
writer.write_end
|
1051
1129
|
end
|
1052
1130
|
|
1053
1131
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1054
|
-
singular ||= '
|
1055
|
-
plural ||= '
|
1132
|
+
singular ||= 'data_center'
|
1133
|
+
plural ||= 'data_centers'
|
1056
1134
|
writer.write_start(plural)
|
1057
1135
|
if list.is_a?(List)
|
1058
1136
|
href = list.href
|
@@ -1126,7 +1204,6 @@ module OvirtSDK4
|
|
1126
1204
|
Writer.write_string(writer, 'sgio', object.sgio) unless object.sgio.nil?
|
1127
1205
|
Writer.write_boolean(writer, 'shareable', object.shareable) unless object.shareable.nil?
|
1128
1206
|
Writer.write_boolean(writer, 'sparse', object.sparse) unless object.sparse.nil?
|
1129
|
-
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
1130
1207
|
Writer.write_string(writer, 'status', object.status) unless object.status.nil?
|
1131
1208
|
Writer.write_string(writer, 'storage_type', object.storage_type) unless object.storage_type.nil?
|
1132
1209
|
Writer.write_boolean(writer, 'uses_scsi_reservation', object.uses_scsi_reservation) unless object.uses_scsi_reservation.nil?
|
@@ -1134,8 +1211,10 @@ module OvirtSDK4
|
|
1134
1211
|
DiskProfileWriter.write_one(object.disk_profile, writer, 'disk_profile') unless object.disk_profile.nil?
|
1135
1212
|
InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
|
1136
1213
|
OpenStackVolumeTypeWriter.write_one(object.openstack_volume_type, writer, 'openstack_volume_type') unless object.openstack_volume_type.nil?
|
1214
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
1137
1215
|
QuotaWriter.write_one(object.quota, writer, 'quota') unless object.quota.nil?
|
1138
1216
|
SnapshotWriter.write_one(object.snapshot, writer, 'snapshot') unless object.snapshot.nil?
|
1217
|
+
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
1139
1218
|
StorageDomainWriter.write_one(object.storage_domain, writer, 'storage_domain') unless object.storage_domain.nil?
|
1140
1219
|
StorageDomainWriter.write_many(object.storage_domains, writer, 'storage_domain', 'storage_domains') unless object.storage_domains.nil?
|
1141
1220
|
TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
|
@@ -1163,7 +1242,7 @@ module OvirtSDK4
|
|
1163
1242
|
class DiskAttachmentWriter < Writer # :nodoc:
|
1164
1243
|
|
1165
1244
|
def self.write_one(object, writer, singular = nil)
|
1166
|
-
singular ||= '
|
1245
|
+
singular ||= 'disk_attachment'
|
1167
1246
|
writer.write_start(singular)
|
1168
1247
|
href = object.href
|
1169
1248
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1179,8 +1258,8 @@ module OvirtSDK4
|
|
1179
1258
|
end
|
1180
1259
|
|
1181
1260
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1182
|
-
singular ||= '
|
1183
|
-
plural ||= '
|
1261
|
+
singular ||= 'disk_attachment'
|
1262
|
+
plural ||= 'disk_attachments'
|
1184
1263
|
writer.write_start(plural)
|
1185
1264
|
if list.is_a?(List)
|
1186
1265
|
href = list.href
|
@@ -1197,7 +1276,7 @@ module OvirtSDK4
|
|
1197
1276
|
class DiskProfileWriter < Writer # :nodoc:
|
1198
1277
|
|
1199
1278
|
def self.write_one(object, writer, singular = nil)
|
1200
|
-
singular ||= '
|
1279
|
+
singular ||= 'disk_profile'
|
1201
1280
|
writer.write_start(singular)
|
1202
1281
|
href = object.href
|
1203
1282
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1205,14 +1284,15 @@ module OvirtSDK4
|
|
1205
1284
|
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
1206
1285
|
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
1207
1286
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
1287
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
1208
1288
|
QosWriter.write_one(object.qos, writer, 'qos') unless object.qos.nil?
|
1209
1289
|
StorageDomainWriter.write_one(object.storage_domain, writer, 'storage_domain') unless object.storage_domain.nil?
|
1210
1290
|
writer.write_end
|
1211
1291
|
end
|
1212
1292
|
|
1213
1293
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1214
|
-
singular ||= '
|
1215
|
-
plural ||= '
|
1294
|
+
singular ||= 'disk_profile'
|
1295
|
+
plural ||= 'disk_profiles'
|
1216
1296
|
writer.write_start(plural)
|
1217
1297
|
if list.is_a?(List)
|
1218
1298
|
href = list.href
|
@@ -1229,7 +1309,7 @@ module OvirtSDK4
|
|
1229
1309
|
class DiskSnapshotWriter < Writer # :nodoc:
|
1230
1310
|
|
1231
1311
|
def self.write_one(object, writer, singular = nil)
|
1232
|
-
singular ||= '
|
1312
|
+
singular ||= 'disk_snapshot'
|
1233
1313
|
writer.write_start(singular)
|
1234
1314
|
href = object.href
|
1235
1315
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1252,7 +1332,6 @@ module OvirtSDK4
|
|
1252
1332
|
Writer.write_string(writer, 'sgio', object.sgio) unless object.sgio.nil?
|
1253
1333
|
Writer.write_boolean(writer, 'shareable', object.shareable) unless object.shareable.nil?
|
1254
1334
|
Writer.write_boolean(writer, 'sparse', object.sparse) unless object.sparse.nil?
|
1255
|
-
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
1256
1335
|
Writer.write_string(writer, 'status', object.status) unless object.status.nil?
|
1257
1336
|
Writer.write_string(writer, 'storage_type', object.storage_type) unless object.storage_type.nil?
|
1258
1337
|
Writer.write_boolean(writer, 'uses_scsi_reservation', object.uses_scsi_reservation) unless object.uses_scsi_reservation.nil?
|
@@ -1261,8 +1340,10 @@ module OvirtSDK4
|
|
1261
1340
|
DiskProfileWriter.write_one(object.disk_profile, writer, 'disk_profile') unless object.disk_profile.nil?
|
1262
1341
|
InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
|
1263
1342
|
OpenStackVolumeTypeWriter.write_one(object.openstack_volume_type, writer, 'openstack_volume_type') unless object.openstack_volume_type.nil?
|
1343
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
1264
1344
|
QuotaWriter.write_one(object.quota, writer, 'quota') unless object.quota.nil?
|
1265
1345
|
SnapshotWriter.write_one(object.snapshot, writer, 'snapshot') unless object.snapshot.nil?
|
1346
|
+
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
1266
1347
|
StorageDomainWriter.write_one(object.storage_domain, writer, 'storage_domain') unless object.storage_domain.nil?
|
1267
1348
|
StorageDomainWriter.write_many(object.storage_domains, writer, 'storage_domain', 'storage_domains') unless object.storage_domains.nil?
|
1268
1349
|
TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
|
@@ -1272,8 +1353,8 @@ module OvirtSDK4
|
|
1272
1353
|
end
|
1273
1354
|
|
1274
1355
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1275
|
-
singular ||= '
|
1276
|
-
plural ||= '
|
1356
|
+
singular ||= 'disk_snapshot'
|
1357
|
+
plural ||= 'disk_snapshots'
|
1277
1358
|
writer.write_start(plural)
|
1278
1359
|
if list.is_a?(List)
|
1279
1360
|
href = list.href
|
@@ -1367,6 +1448,8 @@ module OvirtSDK4
|
|
1367
1448
|
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
1368
1449
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
1369
1450
|
UserWriter.write_one(object.user, writer, 'user') unless object.user.nil?
|
1451
|
+
GroupWriter.write_many(object.groups, writer, 'group', 'groups') unless object.groups.nil?
|
1452
|
+
UserWriter.write_many(object.users, writer, 'user', 'users') unless object.users.nil?
|
1370
1453
|
writer.write_end
|
1371
1454
|
end
|
1372
1455
|
|
@@ -1389,7 +1472,7 @@ module OvirtSDK4
|
|
1389
1472
|
class EntityProfileDetailWriter < Writer # :nodoc:
|
1390
1473
|
|
1391
1474
|
def self.write_one(object, writer, singular = nil)
|
1392
|
-
singular ||= '
|
1475
|
+
singular ||= 'entity_profile_detail'
|
1393
1476
|
writer.write_start(singular)
|
1394
1477
|
href = object.href
|
1395
1478
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1398,8 +1481,8 @@ module OvirtSDK4
|
|
1398
1481
|
end
|
1399
1482
|
|
1400
1483
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1401
|
-
singular ||= '
|
1402
|
-
plural ||= '
|
1484
|
+
singular ||= 'entity_profile_detail'
|
1485
|
+
plural ||= 'entity_profile_details'
|
1403
1486
|
writer.write_start(plural)
|
1404
1487
|
if list.is_a?(List)
|
1405
1488
|
href = list.href
|
@@ -1416,7 +1499,7 @@ module OvirtSDK4
|
|
1416
1499
|
class ErrorHandlingWriter < Writer # :nodoc:
|
1417
1500
|
|
1418
1501
|
def self.write_one(object, writer, singular = nil)
|
1419
|
-
singular ||= '
|
1502
|
+
singular ||= 'error_handling'
|
1420
1503
|
writer.write_start(singular)
|
1421
1504
|
href = object.href
|
1422
1505
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1425,8 +1508,8 @@ module OvirtSDK4
|
|
1425
1508
|
end
|
1426
1509
|
|
1427
1510
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1428
|
-
singular ||= '
|
1429
|
-
plural ||= '
|
1511
|
+
singular ||= 'error_handling'
|
1512
|
+
plural ||= 'error_handlings'
|
1430
1513
|
writer.write_start(plural)
|
1431
1514
|
if list.is_a?(List)
|
1432
1515
|
href = list.href
|
@@ -1488,7 +1571,7 @@ module OvirtSDK4
|
|
1488
1571
|
class ExternalComputeResourceWriter < Writer # :nodoc:
|
1489
1572
|
|
1490
1573
|
def self.write_one(object, writer, singular = nil)
|
1491
|
-
singular ||= '
|
1574
|
+
singular ||= 'external_compute_resource'
|
1492
1575
|
writer.write_start(singular)
|
1493
1576
|
href = object.href
|
1494
1577
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1504,8 +1587,8 @@ module OvirtSDK4
|
|
1504
1587
|
end
|
1505
1588
|
|
1506
1589
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1507
|
-
singular ||= '
|
1508
|
-
plural ||= '
|
1590
|
+
singular ||= 'external_compute_resource'
|
1591
|
+
plural ||= 'external_compute_resources'
|
1509
1592
|
writer.write_start(plural)
|
1510
1593
|
if list.is_a?(List)
|
1511
1594
|
href = list.href
|
@@ -1522,7 +1605,7 @@ module OvirtSDK4
|
|
1522
1605
|
class ExternalDiscoveredHostWriter < Writer # :nodoc:
|
1523
1606
|
|
1524
1607
|
def self.write_one(object, writer, singular = nil)
|
1525
|
-
singular ||= '
|
1608
|
+
singular ||= 'external_discovered_host'
|
1526
1609
|
writer.write_start(singular)
|
1527
1610
|
href = object.href
|
1528
1611
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1539,8 +1622,8 @@ module OvirtSDK4
|
|
1539
1622
|
end
|
1540
1623
|
|
1541
1624
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1542
|
-
singular ||= '
|
1543
|
-
plural ||= '
|
1625
|
+
singular ||= 'external_discovered_host'
|
1626
|
+
plural ||= 'external_discovered_hosts'
|
1544
1627
|
writer.write_start(plural)
|
1545
1628
|
if list.is_a?(List)
|
1546
1629
|
href = list.href
|
@@ -1557,7 +1640,7 @@ module OvirtSDK4
|
|
1557
1640
|
class ExternalHostWriter < Writer # :nodoc:
|
1558
1641
|
|
1559
1642
|
def self.write_one(object, writer, singular = nil)
|
1560
|
-
singular ||= '
|
1643
|
+
singular ||= 'external_host'
|
1561
1644
|
writer.write_start(singular)
|
1562
1645
|
href = object.href
|
1563
1646
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1571,8 +1654,8 @@ module OvirtSDK4
|
|
1571
1654
|
end
|
1572
1655
|
|
1573
1656
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1574
|
-
singular ||= '
|
1575
|
-
plural ||= '
|
1657
|
+
singular ||= 'external_host'
|
1658
|
+
plural ||= 'external_hosts'
|
1576
1659
|
writer.write_start(plural)
|
1577
1660
|
if list.is_a?(List)
|
1578
1661
|
href = list.href
|
@@ -1589,7 +1672,7 @@ module OvirtSDK4
|
|
1589
1672
|
class ExternalHostGroupWriter < Writer # :nodoc:
|
1590
1673
|
|
1591
1674
|
def self.write_one(object, writer, singular = nil)
|
1592
|
-
singular ||= '
|
1675
|
+
singular ||= 'external_host_group'
|
1593
1676
|
writer.write_start(singular)
|
1594
1677
|
href = object.href
|
1595
1678
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1606,8 +1689,8 @@ module OvirtSDK4
|
|
1606
1689
|
end
|
1607
1690
|
|
1608
1691
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1609
|
-
singular ||= '
|
1610
|
-
plural ||= '
|
1692
|
+
singular ||= 'external_host_group'
|
1693
|
+
plural ||= 'external_host_groups'
|
1611
1694
|
writer.write_start(plural)
|
1612
1695
|
if list.is_a?(List)
|
1613
1696
|
href = list.href
|
@@ -1624,7 +1707,7 @@ module OvirtSDK4
|
|
1624
1707
|
class ExternalHostProviderWriter < Writer # :nodoc:
|
1625
1708
|
|
1626
1709
|
def self.write_one(object, writer, singular = nil)
|
1627
|
-
singular ||= '
|
1710
|
+
singular ||= 'external_host_provider'
|
1628
1711
|
writer.write_start(singular)
|
1629
1712
|
href = object.href
|
1630
1713
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1638,12 +1721,17 @@ module OvirtSDK4
|
|
1638
1721
|
Writer.write_boolean(writer, 'requires_authentication', object.requires_authentication) unless object.requires_authentication.nil?
|
1639
1722
|
Writer.write_string(writer, 'url', object.url) unless object.url.nil?
|
1640
1723
|
Writer.write_string(writer, 'username', object.username) unless object.username.nil?
|
1724
|
+
CertificateWriter.write_many(object.certificates, writer, 'certificate', 'certificates') unless object.certificates.nil?
|
1725
|
+
ExternalComputeResourceWriter.write_many(object.compute_resources, writer, 'compute_resource', 'compute_resources') unless object.compute_resources.nil?
|
1726
|
+
ExternalDiscoveredHostWriter.write_many(object.discovered_hosts, writer, 'discovered_host', 'discovered_hosts') unless object.discovered_hosts.nil?
|
1727
|
+
ExternalHostGroupWriter.write_many(object.host_groups, writer, 'host_group', 'host_groups') unless object.host_groups.nil?
|
1728
|
+
HostWriter.write_many(object.hosts, writer, 'host', 'hosts') unless object.hosts.nil?
|
1641
1729
|
writer.write_end
|
1642
1730
|
end
|
1643
1731
|
|
1644
1732
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1645
|
-
singular ||= '
|
1646
|
-
plural ||= '
|
1733
|
+
singular ||= 'external_host_provider'
|
1734
|
+
plural ||= 'external_host_providers'
|
1647
1735
|
writer.write_start(plural)
|
1648
1736
|
if list.is_a?(List)
|
1649
1737
|
href = list.href
|
@@ -1660,7 +1748,7 @@ module OvirtSDK4
|
|
1660
1748
|
class ExternalProviderWriter < Writer # :nodoc:
|
1661
1749
|
|
1662
1750
|
def self.write_one(object, writer, singular = nil)
|
1663
|
-
singular ||= '
|
1751
|
+
singular ||= 'external_provider'
|
1664
1752
|
writer.write_start(singular)
|
1665
1753
|
href = object.href
|
1666
1754
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1678,8 +1766,8 @@ module OvirtSDK4
|
|
1678
1766
|
end
|
1679
1767
|
|
1680
1768
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1681
|
-
singular ||= '
|
1682
|
-
plural ||= '
|
1769
|
+
singular ||= 'external_provider'
|
1770
|
+
plural ||= 'external_providers'
|
1683
1771
|
writer.write_start(plural)
|
1684
1772
|
if list.is_a?(List)
|
1685
1773
|
href = list.href
|
@@ -1724,7 +1812,7 @@ module OvirtSDK4
|
|
1724
1812
|
class FencingPolicyWriter < Writer # :nodoc:
|
1725
1813
|
|
1726
1814
|
def self.write_one(object, writer, singular = nil)
|
1727
|
-
singular ||= '
|
1815
|
+
singular ||= 'fencing_policy'
|
1728
1816
|
writer.write_start(singular)
|
1729
1817
|
href = object.href
|
1730
1818
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1735,8 +1823,8 @@ module OvirtSDK4
|
|
1735
1823
|
end
|
1736
1824
|
|
1737
1825
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1738
|
-
singular ||= '
|
1739
|
-
plural ||= '
|
1826
|
+
singular ||= 'fencing_policy'
|
1827
|
+
plural ||= 'fencing_policies'
|
1740
1828
|
writer.write_start(plural)
|
1741
1829
|
if list.is_a?(List)
|
1742
1830
|
href = list.href
|
@@ -1853,7 +1941,7 @@ module OvirtSDK4
|
|
1853
1941
|
class FopStatisticWriter < Writer # :nodoc:
|
1854
1942
|
|
1855
1943
|
def self.write_one(object, writer, singular = nil)
|
1856
|
-
singular ||= '
|
1944
|
+
singular ||= 'fop_statistic'
|
1857
1945
|
writer.write_start(singular)
|
1858
1946
|
href = object.href
|
1859
1947
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1863,8 +1951,8 @@ module OvirtSDK4
|
|
1863
1951
|
end
|
1864
1952
|
|
1865
1953
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1866
|
-
singular ||= '
|
1867
|
-
plural ||= '
|
1954
|
+
singular ||= 'fop_statistic'
|
1955
|
+
plural ||= 'fop_statistics'
|
1868
1956
|
writer.write_start(plural)
|
1869
1957
|
if list.is_a?(List)
|
1870
1958
|
href = list.href
|
@@ -1881,7 +1969,7 @@ module OvirtSDK4
|
|
1881
1969
|
class GlusterBrickWriter < Writer # :nodoc:
|
1882
1970
|
|
1883
1971
|
def self.write_one(object, writer, singular = nil)
|
1884
|
-
singular ||= '
|
1972
|
+
singular ||= 'gluster_brick'
|
1885
1973
|
writer.write_start(singular)
|
1886
1974
|
href = object.href
|
1887
1975
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1901,6 +1989,7 @@ module OvirtSDK4
|
|
1901
1989
|
Writer.write_string(writer, 'status', object.status) unless object.status.nil?
|
1902
1990
|
GlusterVolumeWriter.write_one(object.gluster_volume, writer, 'gluster_volume') unless object.gluster_volume.nil?
|
1903
1991
|
InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
|
1992
|
+
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
1904
1993
|
TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
|
1905
1994
|
VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
|
1906
1995
|
VmWriter.write_many(object.vms, writer, 'vm', 'vms') unless object.vms.nil?
|
@@ -1908,8 +1997,8 @@ module OvirtSDK4
|
|
1908
1997
|
end
|
1909
1998
|
|
1910
1999
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1911
|
-
singular ||= '
|
1912
|
-
plural ||= '
|
2000
|
+
singular ||= 'gluster_brick'
|
2001
|
+
plural ||= 'gluster_bricks'
|
1913
2002
|
writer.write_start(plural)
|
1914
2003
|
if list.is_a?(List)
|
1915
2004
|
href = list.href
|
@@ -1926,7 +2015,7 @@ module OvirtSDK4
|
|
1926
2015
|
class GlusterBrickAdvancedDetailsWriter < Writer # :nodoc:
|
1927
2016
|
|
1928
2017
|
def self.write_one(object, writer, singular = nil)
|
1929
|
-
singular ||= '
|
2018
|
+
singular ||= 'gluster_brick_advanced_details'
|
1930
2019
|
writer.write_start(singular)
|
1931
2020
|
href = object.href
|
1932
2021
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1949,8 +2038,8 @@ module OvirtSDK4
|
|
1949
2038
|
end
|
1950
2039
|
|
1951
2040
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1952
|
-
singular ||= '
|
1953
|
-
plural ||= '
|
2041
|
+
singular ||= 'gluster_brick_advanced_details'
|
2042
|
+
plural ||= 'gluster_brick_advanced_detailss'
|
1954
2043
|
writer.write_start(plural)
|
1955
2044
|
if list.is_a?(List)
|
1956
2045
|
href = list.href
|
@@ -1967,7 +2056,7 @@ module OvirtSDK4
|
|
1967
2056
|
class GlusterBrickMemoryInfoWriter < Writer # :nodoc:
|
1968
2057
|
|
1969
2058
|
def self.write_one(object, writer, singular = nil)
|
1970
|
-
singular ||= '
|
2059
|
+
singular ||= 'gluster_brick_memory_info'
|
1971
2060
|
writer.write_start(singular)
|
1972
2061
|
href = object.href
|
1973
2062
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -1976,8 +2065,8 @@ module OvirtSDK4
|
|
1976
2065
|
end
|
1977
2066
|
|
1978
2067
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
1979
|
-
singular ||= '
|
1980
|
-
plural ||= '
|
2068
|
+
singular ||= 'gluster_brick_memory_info'
|
2069
|
+
plural ||= 'gluster_brick_memory_infos'
|
1981
2070
|
writer.write_start(plural)
|
1982
2071
|
if list.is_a?(List)
|
1983
2072
|
href = list.href
|
@@ -1994,7 +2083,7 @@ module OvirtSDK4
|
|
1994
2083
|
class GlusterClientWriter < Writer # :nodoc:
|
1995
2084
|
|
1996
2085
|
def self.write_one(object, writer, singular = nil)
|
1997
|
-
singular ||= '
|
2086
|
+
singular ||= 'gluster_client'
|
1998
2087
|
writer.write_start(singular)
|
1999
2088
|
href = object.href
|
2000
2089
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2006,8 +2095,8 @@ module OvirtSDK4
|
|
2006
2095
|
end
|
2007
2096
|
|
2008
2097
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2009
|
-
singular ||= '
|
2010
|
-
plural ||= '
|
2098
|
+
singular ||= 'gluster_client'
|
2099
|
+
plural ||= 'gluster_clients'
|
2011
2100
|
writer.write_start(plural)
|
2012
2101
|
if list.is_a?(List)
|
2013
2102
|
href = list.href
|
@@ -2024,7 +2113,7 @@ module OvirtSDK4
|
|
2024
2113
|
class GlusterHookWriter < Writer # :nodoc:
|
2025
2114
|
|
2026
2115
|
def self.write_one(object, writer, singular = nil)
|
2027
|
-
singular ||= '
|
2116
|
+
singular ||= 'gluster_hook'
|
2028
2117
|
writer.write_start(singular)
|
2029
2118
|
href = object.href
|
2030
2119
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2046,8 +2135,8 @@ module OvirtSDK4
|
|
2046
2135
|
end
|
2047
2136
|
|
2048
2137
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2049
|
-
singular ||= '
|
2050
|
-
plural ||= '
|
2138
|
+
singular ||= 'gluster_hook'
|
2139
|
+
plural ||= 'gluster_hooks'
|
2051
2140
|
writer.write_start(plural)
|
2052
2141
|
if list.is_a?(List)
|
2053
2142
|
href = list.href
|
@@ -2064,7 +2153,7 @@ module OvirtSDK4
|
|
2064
2153
|
class GlusterMemoryPoolWriter < Writer # :nodoc:
|
2065
2154
|
|
2066
2155
|
def self.write_one(object, writer, singular = nil)
|
2067
|
-
singular ||= '
|
2156
|
+
singular ||= 'gluster_memory_pool'
|
2068
2157
|
writer.write_start(singular)
|
2069
2158
|
href = object.href
|
2070
2159
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2084,8 +2173,8 @@ module OvirtSDK4
|
|
2084
2173
|
end
|
2085
2174
|
|
2086
2175
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2087
|
-
singular ||= '
|
2088
|
-
plural ||= '
|
2176
|
+
singular ||= 'gluster_memory_pool'
|
2177
|
+
plural ||= 'gluster_memory_pools'
|
2089
2178
|
writer.write_start(plural)
|
2090
2179
|
if list.is_a?(List)
|
2091
2180
|
href = list.href
|
@@ -2102,7 +2191,7 @@ module OvirtSDK4
|
|
2102
2191
|
class GlusterServerHookWriter < Writer # :nodoc:
|
2103
2192
|
|
2104
2193
|
def self.write_one(object, writer, singular = nil)
|
2105
|
-
singular ||= '
|
2194
|
+
singular ||= 'gluster_server_hook'
|
2106
2195
|
writer.write_start(singular)
|
2107
2196
|
href = object.href
|
2108
2197
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2118,8 +2207,8 @@ module OvirtSDK4
|
|
2118
2207
|
end
|
2119
2208
|
|
2120
2209
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2121
|
-
singular ||= '
|
2122
|
-
plural ||= '
|
2210
|
+
singular ||= 'gluster_server_hook'
|
2211
|
+
plural ||= 'gluster_server_hooks'
|
2123
2212
|
writer.write_start(plural)
|
2124
2213
|
if list.is_a?(List)
|
2125
2214
|
href = list.href
|
@@ -2136,7 +2225,7 @@ module OvirtSDK4
|
|
2136
2225
|
class GlusterVolumeWriter < Writer # :nodoc:
|
2137
2226
|
|
2138
2227
|
def self.write_one(object, writer, singular = nil)
|
2139
|
-
singular ||= '
|
2228
|
+
singular ||= 'gluster_volume'
|
2140
2229
|
writer.write_start(singular)
|
2141
2230
|
href = object.href
|
2142
2231
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2160,12 +2249,13 @@ module OvirtSDK4
|
|
2160
2249
|
Writer.write_string(writer, 'volume_type', object.volume_type) unless object.volume_type.nil?
|
2161
2250
|
GlusterBrickWriter.write_many(object.bricks, writer, 'brick', 'bricks') unless object.bricks.nil?
|
2162
2251
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
2252
|
+
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
2163
2253
|
writer.write_end
|
2164
2254
|
end
|
2165
2255
|
|
2166
2256
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2167
|
-
singular ||= '
|
2168
|
-
plural ||= '
|
2257
|
+
singular ||= 'gluster_volume'
|
2258
|
+
plural ||= 'gluster_volumes'
|
2169
2259
|
writer.write_start(plural)
|
2170
2260
|
if list.is_a?(List)
|
2171
2261
|
href = list.href
|
@@ -2182,7 +2272,7 @@ module OvirtSDK4
|
|
2182
2272
|
class GlusterVolumeProfileDetailsWriter < Writer # :nodoc:
|
2183
2273
|
|
2184
2274
|
def self.write_one(object, writer, singular = nil)
|
2185
|
-
singular ||= '
|
2275
|
+
singular ||= 'gluster_volume_profile_details'
|
2186
2276
|
writer.write_start(singular)
|
2187
2277
|
href = object.href
|
2188
2278
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2196,8 +2286,8 @@ module OvirtSDK4
|
|
2196
2286
|
end
|
2197
2287
|
|
2198
2288
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2199
|
-
singular ||= '
|
2200
|
-
plural ||= '
|
2289
|
+
singular ||= 'gluster_volume_profile_details'
|
2290
|
+
plural ||= 'gluster_volume_profile_detailss'
|
2201
2291
|
writer.write_start(plural)
|
2202
2292
|
if list.is_a?(List)
|
2203
2293
|
href = list.href
|
@@ -2214,7 +2304,7 @@ module OvirtSDK4
|
|
2214
2304
|
class GracePeriodWriter < Writer # :nodoc:
|
2215
2305
|
|
2216
2306
|
def self.write_one(object, writer, singular = nil)
|
2217
|
-
singular ||= '
|
2307
|
+
singular ||= 'grace_period'
|
2218
2308
|
writer.write_start(singular)
|
2219
2309
|
href = object.href
|
2220
2310
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2223,8 +2313,8 @@ module OvirtSDK4
|
|
2223
2313
|
end
|
2224
2314
|
|
2225
2315
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2226
|
-
singular ||= '
|
2227
|
-
plural ||= '
|
2316
|
+
singular ||= 'grace_period'
|
2317
|
+
plural ||= 'grace_periods'
|
2228
2318
|
writer.write_start(plural)
|
2229
2319
|
if list.is_a?(List)
|
2230
2320
|
href = list.href
|
@@ -2241,7 +2331,7 @@ module OvirtSDK4
|
|
2241
2331
|
class GraphicsConsoleWriter < Writer # :nodoc:
|
2242
2332
|
|
2243
2333
|
def self.write_one(object, writer, singular = nil)
|
2244
|
-
singular ||= '
|
2334
|
+
singular ||= 'graphics_console'
|
2245
2335
|
writer.write_start(singular)
|
2246
2336
|
href = object.href
|
2247
2337
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2260,8 +2350,8 @@ module OvirtSDK4
|
|
2260
2350
|
end
|
2261
2351
|
|
2262
2352
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2263
|
-
singular ||= '
|
2264
|
-
plural ||= '
|
2353
|
+
singular ||= 'graphics_console'
|
2354
|
+
plural ||= 'graphics_consoles'
|
2265
2355
|
writer.write_start(plural)
|
2266
2356
|
if list.is_a?(List)
|
2267
2357
|
href = list.href
|
@@ -2289,7 +2379,9 @@ module OvirtSDK4
|
|
2289
2379
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
2290
2380
|
Writer.write_string(writer, 'namespace', object.namespace) unless object.namespace.nil?
|
2291
2381
|
DomainWriter.write_one(object.domain, writer, 'domain') unless object.domain.nil?
|
2382
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
2292
2383
|
RoleWriter.write_many(object.roles, writer, 'role', 'roles') unless object.roles.nil?
|
2384
|
+
TagWriter.write_many(object.tags, writer, 'tag', 'tags') unless object.tags.nil?
|
2293
2385
|
writer.write_end
|
2294
2386
|
end
|
2295
2387
|
|
@@ -2312,7 +2404,7 @@ module OvirtSDK4
|
|
2312
2404
|
class GuestOperatingSystemWriter < Writer # :nodoc:
|
2313
2405
|
|
2314
2406
|
def self.write_one(object, writer, singular = nil)
|
2315
|
-
singular ||= '
|
2407
|
+
singular ||= 'guest_operating_system'
|
2316
2408
|
writer.write_start(singular)
|
2317
2409
|
href = object.href
|
2318
2410
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2326,8 +2418,8 @@ module OvirtSDK4
|
|
2326
2418
|
end
|
2327
2419
|
|
2328
2420
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2329
|
-
singular ||= '
|
2330
|
-
plural ||= '
|
2421
|
+
singular ||= 'guest_operating_system'
|
2422
|
+
plural ||= 'guest_operating_systems'
|
2331
2423
|
writer.write_start(plural)
|
2332
2424
|
if list.is_a?(List)
|
2333
2425
|
href = list.href
|
@@ -2344,7 +2436,7 @@ module OvirtSDK4
|
|
2344
2436
|
class HardwareInformationWriter < Writer # :nodoc:
|
2345
2437
|
|
2346
2438
|
def self.write_one(object, writer, singular = nil)
|
2347
|
-
singular ||= '
|
2439
|
+
singular ||= 'hardware_information'
|
2348
2440
|
writer.write_start(singular)
|
2349
2441
|
href = object.href
|
2350
2442
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2365,8 +2457,8 @@ module OvirtSDK4
|
|
2365
2457
|
end
|
2366
2458
|
|
2367
2459
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2368
|
-
singular ||= '
|
2369
|
-
plural ||= '
|
2460
|
+
singular ||= 'hardware_information'
|
2461
|
+
plural ||= 'hardware_informations'
|
2370
2462
|
writer.write_start(plural)
|
2371
2463
|
if list.is_a?(List)
|
2372
2464
|
href = list.href
|
@@ -2383,7 +2475,7 @@ module OvirtSDK4
|
|
2383
2475
|
class HighAvailabilityWriter < Writer # :nodoc:
|
2384
2476
|
|
2385
2477
|
def self.write_one(object, writer, singular = nil)
|
2386
|
-
singular ||= '
|
2478
|
+
singular ||= 'high_availability'
|
2387
2479
|
writer.write_start(singular)
|
2388
2480
|
href = object.href
|
2389
2481
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2393,8 +2485,8 @@ module OvirtSDK4
|
|
2393
2485
|
end
|
2394
2486
|
|
2395
2487
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2396
|
-
singular ||= '
|
2397
|
-
plural ||= '
|
2488
|
+
singular ||= 'high_availability'
|
2489
|
+
plural ||= 'high_availabilities'
|
2398
2490
|
writer.write_start(plural)
|
2399
2491
|
if list.is_a?(List)
|
2400
2492
|
href = list.href
|
@@ -2461,7 +2553,6 @@ module OvirtSDK4
|
|
2461
2553
|
HardwareInformationWriter.write_one(object.hardware_information, writer, 'hardware_information') unless object.hardware_information.nil?
|
2462
2554
|
HostedEngineWriter.write_one(object.hosted_engine, writer, 'hosted_engine') unless object.hosted_engine.nil?
|
2463
2555
|
IscsiDetailsWriter.write_one(object.iscsi, writer, 'iscsi') unless object.iscsi.nil?
|
2464
|
-
KatelloErratumWriter.write_many(object.katello_errata, writer, 'katello_erratum', 'katello_errata') unless object.katello_errata.nil?
|
2465
2556
|
Writer.write_string(writer, 'kdump_status', object.kdump_status) unless object.kdump_status.nil?
|
2466
2557
|
KsmWriter.write_one(object.ksm, writer, 'ksm') unless object.ksm.nil?
|
2467
2558
|
VersionWriter.write_one(object.libvirt_version, writer, 'libvirt_version') unless object.libvirt_version.nil?
|
@@ -2478,7 +2569,6 @@ module OvirtSDK4
|
|
2478
2569
|
SeLinuxWriter.write_one(object.se_linux, writer, 'se_linux') unless object.se_linux.nil?
|
2479
2570
|
SpmWriter.write_one(object.spm, writer, 'spm') unless object.spm.nil?
|
2480
2571
|
SshWriter.write_one(object.ssh, writer, 'ssh') unless object.ssh.nil?
|
2481
|
-
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
2482
2572
|
Writer.write_string(writer, 'status', object.status) unless object.status.nil?
|
2483
2573
|
Writer.write_string(writer, 'status_detail', object.status_detail) unless object.status_detail.nil?
|
2484
2574
|
VmSummaryWriter.write_one(object.summary, writer, 'summary') unless object.summary.nil?
|
@@ -2486,10 +2576,22 @@ module OvirtSDK4
|
|
2486
2576
|
Writer.write_string(writer, 'type', object.type) unless object.type.nil?
|
2487
2577
|
Writer.write_boolean(writer, 'update_available', object.update_available) unless object.update_available.nil?
|
2488
2578
|
VersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
|
2579
|
+
AffinityLabelWriter.write_many(object.affinity_labels, writer, 'affinity_label', 'affinity_labels') unless object.affinity_labels.nil?
|
2580
|
+
AgentWriter.write_many(object.agents, writer, 'agent', 'agents') unless object.agents.nil?
|
2489
2581
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
2582
|
+
DeviceWriter.write_many(object.devices, writer, 'device', 'devices') unless object.devices.nil?
|
2490
2583
|
ExternalHostProviderWriter.write_one(object.external_host_provider, writer, 'external_host_provider') unless object.external_host_provider.nil?
|
2491
2584
|
HookWriter.write_many(object.hooks, writer, 'hook', 'hooks') unless object.hooks.nil?
|
2585
|
+
KatelloErratumWriter.write_many(object.katello_errata, writer, 'katello_erratum', 'katello_errata') unless object.katello_errata.nil?
|
2586
|
+
NetworkAttachmentWriter.write_many(object.network_attachments, writer, 'network_attachment', 'network_attachments') unless object.network_attachments.nil?
|
2587
|
+
NicWriter.write_many(object.nics, writer, 'nic', 'nics') unless object.nics.nil?
|
2588
|
+
NumaNodeWriter.write_many(object.numa_nodes, writer, 'host_numa_node', 'host_numa_nodes') unless object.numa_nodes.nil?
|
2589
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
2590
|
+
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
2492
2591
|
StorageConnectionExtensionWriter.write_many(object.storage_connection_extensions, writer, 'storage_connection_extension', 'storage_connection_extensions') unless object.storage_connection_extensions.nil?
|
2592
|
+
HostStorageWriter.write_many(object.storages, writer, 'storage', 'storages') unless object.storages.nil?
|
2593
|
+
TagWriter.write_many(object.tags, writer, 'tag', 'tags') unless object.tags.nil?
|
2594
|
+
UnmanagedNetworkWriter.write_many(object.unmanaged_networks, writer, 'unmanaged_network', 'unmanaged_networks') unless object.unmanaged_networks.nil?
|
2493
2595
|
writer.write_end
|
2494
2596
|
end
|
2495
2597
|
|
@@ -2512,7 +2614,7 @@ module OvirtSDK4
|
|
2512
2614
|
class HostDeviceWriter < Writer # :nodoc:
|
2513
2615
|
|
2514
2616
|
def self.write_one(object, writer, singular = nil)
|
2515
|
-
singular ||= '
|
2617
|
+
singular ||= 'host_device'
|
2516
2618
|
writer.write_start(singular)
|
2517
2619
|
href = object.href
|
2518
2620
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2534,8 +2636,8 @@ module OvirtSDK4
|
|
2534
2636
|
end
|
2535
2637
|
|
2536
2638
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2537
|
-
singular ||= '
|
2538
|
-
plural ||= '
|
2639
|
+
singular ||= 'host_device'
|
2640
|
+
plural ||= 'host_devices'
|
2539
2641
|
writer.write_start(plural)
|
2540
2642
|
if list.is_a?(List)
|
2541
2643
|
href = list.href
|
@@ -2552,7 +2654,7 @@ module OvirtSDK4
|
|
2552
2654
|
class HostDevicePassthroughWriter < Writer # :nodoc:
|
2553
2655
|
|
2554
2656
|
def self.write_one(object, writer, singular = nil)
|
2555
|
-
singular ||= '
|
2657
|
+
singular ||= 'host_device_passthrough'
|
2556
2658
|
writer.write_start(singular)
|
2557
2659
|
href = object.href
|
2558
2660
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2561,8 +2663,8 @@ module OvirtSDK4
|
|
2561
2663
|
end
|
2562
2664
|
|
2563
2665
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2564
|
-
singular ||= '
|
2565
|
-
plural ||= '
|
2666
|
+
singular ||= 'host_device_passthrough'
|
2667
|
+
plural ||= 'host_device_passthroughs'
|
2566
2668
|
writer.write_start(plural)
|
2567
2669
|
if list.is_a?(List)
|
2568
2670
|
href = list.href
|
@@ -2579,7 +2681,7 @@ module OvirtSDK4
|
|
2579
2681
|
class HostNicWriter < Writer # :nodoc:
|
2580
2682
|
|
2581
2683
|
def self.write_one(object, writer, singular = nil)
|
2582
|
-
singular ||= '
|
2684
|
+
singular ||= 'host_nic'
|
2583
2685
|
writer.write_start(singular)
|
2584
2686
|
href = object.href
|
2585
2687
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2614,8 +2716,8 @@ module OvirtSDK4
|
|
2614
2716
|
end
|
2615
2717
|
|
2616
2718
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2617
|
-
singular ||= '
|
2618
|
-
plural ||= '
|
2719
|
+
singular ||= 'host_nic'
|
2720
|
+
plural ||= 'host_nics'
|
2619
2721
|
writer.write_start(plural)
|
2620
2722
|
if list.is_a?(List)
|
2621
2723
|
href = list.href
|
@@ -2632,7 +2734,7 @@ module OvirtSDK4
|
|
2632
2734
|
class HostNicVirtualFunctionsConfigurationWriter < Writer # :nodoc:
|
2633
2735
|
|
2634
2736
|
def self.write_one(object, writer, singular = nil)
|
2635
|
-
singular ||= '
|
2737
|
+
singular ||= 'host_nic_virtual_functions_configuration'
|
2636
2738
|
writer.write_start(singular)
|
2637
2739
|
href = object.href
|
2638
2740
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2643,8 +2745,8 @@ module OvirtSDK4
|
|
2643
2745
|
end
|
2644
2746
|
|
2645
2747
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2646
|
-
singular ||= '
|
2647
|
-
plural ||= '
|
2748
|
+
singular ||= 'host_nic_virtual_functions_configuration'
|
2749
|
+
plural ||= 'host_nic_virtual_functions_configurations'
|
2648
2750
|
writer.write_start(plural)
|
2649
2751
|
if list.is_a?(List)
|
2650
2752
|
href = list.href
|
@@ -2661,7 +2763,7 @@ module OvirtSDK4
|
|
2661
2763
|
class HostStorageWriter < Writer # :nodoc:
|
2662
2764
|
|
2663
2765
|
def self.write_one(object, writer, singular = nil)
|
2664
|
-
singular ||= '
|
2766
|
+
singular ||= 'host_storage'
|
2665
2767
|
writer.write_start(singular)
|
2666
2768
|
href = object.href
|
2667
2769
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2690,8 +2792,8 @@ module OvirtSDK4
|
|
2690
2792
|
end
|
2691
2793
|
|
2692
2794
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2693
|
-
singular ||= '
|
2694
|
-
plural ||= '
|
2795
|
+
singular ||= 'host_storage'
|
2796
|
+
plural ||= 'host_storages'
|
2695
2797
|
writer.write_start(plural)
|
2696
2798
|
if list.is_a?(List)
|
2697
2799
|
href = list.href
|
@@ -2708,7 +2810,7 @@ module OvirtSDK4
|
|
2708
2810
|
class HostedEngineWriter < Writer # :nodoc:
|
2709
2811
|
|
2710
2812
|
def self.write_one(object, writer, singular = nil)
|
2711
|
-
singular ||= '
|
2813
|
+
singular ||= 'hosted_engine'
|
2712
2814
|
writer.write_start(singular)
|
2713
2815
|
href = object.href
|
2714
2816
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2721,8 +2823,8 @@ module OvirtSDK4
|
|
2721
2823
|
end
|
2722
2824
|
|
2723
2825
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2724
|
-
singular ||= '
|
2725
|
-
plural ||= '
|
2826
|
+
singular ||= 'hosted_engine'
|
2827
|
+
plural ||= 'hosted_engines'
|
2726
2828
|
writer.write_start(plural)
|
2727
2829
|
if list.is_a?(List)
|
2728
2830
|
href = list.href
|
@@ -2879,7 +2981,7 @@ module OvirtSDK4
|
|
2879
2981
|
class InstanceTypeWriter < Writer # :nodoc:
|
2880
2982
|
|
2881
2983
|
def self.write_one(object, writer, singular = nil)
|
2882
|
-
singular ||= '
|
2984
|
+
singular ||= 'instance_type'
|
2883
2985
|
writer.write_start(singular)
|
2884
2986
|
href = object.href
|
2885
2987
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -2924,15 +3026,22 @@ module OvirtSDK4
|
|
2924
3026
|
TemplateVersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
|
2925
3027
|
VirtioScsiWriter.write_one(object.virtio_scsi, writer, 'virtio_scsi') unless object.virtio_scsi.nil?
|
2926
3028
|
VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
|
3029
|
+
CdromWriter.write_many(object.cdroms, writer, 'cdrom', 'cdroms') unless object.cdroms.nil?
|
2927
3030
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
2928
3031
|
CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
|
3032
|
+
DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
|
3033
|
+
GraphicsConsoleWriter.write_many(object.graphics_consoles, writer, 'graphics_console', 'graphics_consoles') unless object.graphics_consoles.nil?
|
3034
|
+
NicWriter.write_many(object.nics, writer, 'nic', 'nics') unless object.nics.nil?
|
3035
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
2929
3036
|
StorageDomainWriter.write_one(object.storage_domain, writer, 'storage_domain') unless object.storage_domain.nil?
|
3037
|
+
TagWriter.write_many(object.tags, writer, 'tag', 'tags') unless object.tags.nil?
|
3038
|
+
WatchdogWriter.write_many(object.watchdogs, writer, 'watchdog', 'watchdogs') unless object.watchdogs.nil?
|
2930
3039
|
writer.write_end
|
2931
3040
|
end
|
2932
3041
|
|
2933
3042
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
2934
|
-
singular ||= '
|
2935
|
-
plural ||= '
|
3043
|
+
singular ||= 'instance_type'
|
3044
|
+
plural ||= 'instance_types'
|
2936
3045
|
writer.write_start(plural)
|
2937
3046
|
if list.is_a?(List)
|
2938
3047
|
href = list.href
|
@@ -3006,7 +3115,7 @@ module OvirtSDK4
|
|
3006
3115
|
class IpAddressAssignmentWriter < Writer # :nodoc:
|
3007
3116
|
|
3008
3117
|
def self.write_one(object, writer, singular = nil)
|
3009
|
-
singular ||= '
|
3118
|
+
singular ||= 'ip_address_assignment'
|
3010
3119
|
writer.write_start(singular)
|
3011
3120
|
href = object.href
|
3012
3121
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3016,8 +3125,8 @@ module OvirtSDK4
|
|
3016
3125
|
end
|
3017
3126
|
|
3018
3127
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3019
|
-
singular ||= '
|
3020
|
-
plural ||= '
|
3128
|
+
singular ||= 'ip_address_assignment'
|
3129
|
+
plural ||= 'ip_address_assignments'
|
3021
3130
|
writer.write_start(plural)
|
3022
3131
|
if list.is_a?(List)
|
3023
3132
|
href = list.href
|
@@ -3034,7 +3143,7 @@ module OvirtSDK4
|
|
3034
3143
|
class IscsiBondWriter < Writer # :nodoc:
|
3035
3144
|
|
3036
3145
|
def self.write_one(object, writer, singular = nil)
|
3037
|
-
singular ||= '
|
3146
|
+
singular ||= 'iscsi_bond'
|
3038
3147
|
writer.write_start(singular)
|
3039
3148
|
href = object.href
|
3040
3149
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3049,8 +3158,8 @@ module OvirtSDK4
|
|
3049
3158
|
end
|
3050
3159
|
|
3051
3160
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3052
|
-
singular ||= '
|
3053
|
-
plural ||= '
|
3161
|
+
singular ||= 'iscsi_bond'
|
3162
|
+
plural ||= 'iscsi_bonds'
|
3054
3163
|
writer.write_start(plural)
|
3055
3164
|
if list.is_a?(List)
|
3056
3165
|
href = list.href
|
@@ -3067,7 +3176,7 @@ module OvirtSDK4
|
|
3067
3176
|
class IscsiDetailsWriter < Writer # :nodoc:
|
3068
3177
|
|
3069
3178
|
def self.write_one(object, writer, singular = nil)
|
3070
|
-
singular ||= '
|
3179
|
+
singular ||= 'iscsi_details'
|
3071
3180
|
writer.write_start(singular)
|
3072
3181
|
href = object.href
|
3073
3182
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3092,8 +3201,8 @@ module OvirtSDK4
|
|
3092
3201
|
end
|
3093
3202
|
|
3094
3203
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3095
|
-
singular ||= '
|
3096
|
-
plural ||= '
|
3204
|
+
singular ||= 'iscsi_details'
|
3205
|
+
plural ||= 'iscsi_detailss'
|
3097
3206
|
writer.write_start(plural)
|
3098
3207
|
if list.is_a?(List)
|
3099
3208
|
href = list.href
|
@@ -3125,6 +3234,7 @@ module OvirtSDK4
|
|
3125
3234
|
Writer.write_date(writer, 'start_time', object.start_time) unless object.start_time.nil?
|
3126
3235
|
Writer.write_string(writer, 'status', object.status) unless object.status.nil?
|
3127
3236
|
UserWriter.write_one(object.owner, writer, 'owner') unless object.owner.nil?
|
3237
|
+
StepWriter.write_many(object.steps, writer, 'step', 'steps') unless object.steps.nil?
|
3128
3238
|
writer.write_end
|
3129
3239
|
end
|
3130
3240
|
|
@@ -3147,7 +3257,7 @@ module OvirtSDK4
|
|
3147
3257
|
class KatelloErratumWriter < Writer # :nodoc:
|
3148
3258
|
|
3149
3259
|
def self.write_one(object, writer, singular = nil)
|
3150
|
-
singular ||= '
|
3260
|
+
singular ||= 'katello_erratum'
|
3151
3261
|
writer.write_start(singular)
|
3152
3262
|
href = object.href
|
3153
3263
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3168,8 +3278,8 @@ module OvirtSDK4
|
|
3168
3278
|
end
|
3169
3279
|
|
3170
3280
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3171
|
-
singular ||= '
|
3172
|
-
plural ||= '
|
3281
|
+
singular ||= 'katello_erratum'
|
3282
|
+
plural ||= 'katello_errata'
|
3173
3283
|
writer.write_start(plural)
|
3174
3284
|
if list.is_a?(List)
|
3175
3285
|
href = list.href
|
@@ -3241,7 +3351,7 @@ module OvirtSDK4
|
|
3241
3351
|
class LogicalUnitWriter < Writer # :nodoc:
|
3242
3352
|
|
3243
3353
|
def self.write_one(object, writer, singular = nil)
|
3244
|
-
singular ||= '
|
3354
|
+
singular ||= 'logical_unit'
|
3245
3355
|
writer.write_start(singular)
|
3246
3356
|
href = object.href
|
3247
3357
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3266,8 +3376,8 @@ module OvirtSDK4
|
|
3266
3376
|
end
|
3267
3377
|
|
3268
3378
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3269
|
-
singular ||= '
|
3270
|
-
plural ||= '
|
3379
|
+
singular ||= 'logical_unit'
|
3380
|
+
plural ||= 'logical_units'
|
3271
3381
|
writer.write_start(plural)
|
3272
3382
|
if list.is_a?(List)
|
3273
3383
|
href = list.href
|
@@ -3311,7 +3421,7 @@ module OvirtSDK4
|
|
3311
3421
|
class MacPoolWriter < Writer # :nodoc:
|
3312
3422
|
|
3313
3423
|
def self.write_one(object, writer, singular = nil)
|
3314
|
-
singular ||= '
|
3424
|
+
singular ||= 'mac_pool'
|
3315
3425
|
writer.write_start(singular)
|
3316
3426
|
href = object.href
|
3317
3427
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3326,8 +3436,8 @@ module OvirtSDK4
|
|
3326
3436
|
end
|
3327
3437
|
|
3328
3438
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3329
|
-
singular ||= '
|
3330
|
-
plural ||= '
|
3439
|
+
singular ||= 'mac_pool'
|
3440
|
+
plural ||= 'mac_pools'
|
3331
3441
|
writer.write_start(plural)
|
3332
3442
|
if list.is_a?(List)
|
3333
3443
|
href = list.href
|
@@ -3344,7 +3454,7 @@ module OvirtSDK4
|
|
3344
3454
|
class MemoryOverCommitWriter < Writer # :nodoc:
|
3345
3455
|
|
3346
3456
|
def self.write_one(object, writer, singular = nil)
|
3347
|
-
singular ||= '
|
3457
|
+
singular ||= 'memory_over_commit'
|
3348
3458
|
writer.write_start(singular)
|
3349
3459
|
href = object.href
|
3350
3460
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3353,8 +3463,8 @@ module OvirtSDK4
|
|
3353
3463
|
end
|
3354
3464
|
|
3355
3465
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3356
|
-
singular ||= '
|
3357
|
-
plural ||= '
|
3466
|
+
singular ||= 'memory_over_commit'
|
3467
|
+
plural ||= 'memory_over_commits'
|
3358
3468
|
writer.write_start(plural)
|
3359
3469
|
if list.is_a?(List)
|
3360
3470
|
href = list.href
|
@@ -3371,7 +3481,7 @@ module OvirtSDK4
|
|
3371
3481
|
class MemoryPolicyWriter < Writer # :nodoc:
|
3372
3482
|
|
3373
3483
|
def self.write_one(object, writer, singular = nil)
|
3374
|
-
singular ||= '
|
3484
|
+
singular ||= 'memory_policy'
|
3375
3485
|
writer.write_start(singular)
|
3376
3486
|
href = object.href
|
3377
3487
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3383,8 +3493,8 @@ module OvirtSDK4
|
|
3383
3493
|
end
|
3384
3494
|
|
3385
3495
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3386
|
-
singular ||= '
|
3387
|
-
plural ||= '
|
3496
|
+
singular ||= 'memory_policy'
|
3497
|
+
plural ||= 'memory_policies'
|
3388
3498
|
writer.write_start(plural)
|
3389
3499
|
if list.is_a?(List)
|
3390
3500
|
href = list.href
|
@@ -3428,7 +3538,7 @@ module OvirtSDK4
|
|
3428
3538
|
class MigrationBandwidthWriter < Writer # :nodoc:
|
3429
3539
|
|
3430
3540
|
def self.write_one(object, writer, singular = nil)
|
3431
|
-
singular ||= '
|
3541
|
+
singular ||= 'migration_bandwidth'
|
3432
3542
|
writer.write_start(singular)
|
3433
3543
|
href = object.href
|
3434
3544
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3438,8 +3548,8 @@ module OvirtSDK4
|
|
3438
3548
|
end
|
3439
3549
|
|
3440
3550
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3441
|
-
singular ||= '
|
3442
|
-
plural ||= '
|
3551
|
+
singular ||= 'migration_bandwidth'
|
3552
|
+
plural ||= 'migration_bandwidths'
|
3443
3553
|
writer.write_start(plural)
|
3444
3554
|
if list.is_a?(List)
|
3445
3555
|
href = list.href
|
@@ -3456,7 +3566,7 @@ module OvirtSDK4
|
|
3456
3566
|
class MigrationOptionsWriter < Writer # :nodoc:
|
3457
3567
|
|
3458
3568
|
def self.write_one(object, writer, singular = nil)
|
3459
|
-
singular ||= '
|
3569
|
+
singular ||= 'migration_options'
|
3460
3570
|
writer.write_start(singular)
|
3461
3571
|
href = object.href
|
3462
3572
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3468,8 +3578,8 @@ module OvirtSDK4
|
|
3468
3578
|
end
|
3469
3579
|
|
3470
3580
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3471
|
-
singular ||= '
|
3472
|
-
plural ||= '
|
3581
|
+
singular ||= 'migration_options'
|
3582
|
+
plural ||= 'migration_optionss'
|
3473
3583
|
writer.write_start(plural)
|
3474
3584
|
if list.is_a?(List)
|
3475
3585
|
href = list.href
|
@@ -3486,7 +3596,7 @@ module OvirtSDK4
|
|
3486
3596
|
class MigrationPolicyWriter < Writer # :nodoc:
|
3487
3597
|
|
3488
3598
|
def self.write_one(object, writer, singular = nil)
|
3489
|
-
singular ||= '
|
3599
|
+
singular ||= 'migration_policy'
|
3490
3600
|
writer.write_start(singular)
|
3491
3601
|
href = object.href
|
3492
3602
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3498,8 +3608,8 @@ module OvirtSDK4
|
|
3498
3608
|
end
|
3499
3609
|
|
3500
3610
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3501
|
-
singular ||= '
|
3502
|
-
plural ||= '
|
3611
|
+
singular ||= 'migration_policy'
|
3612
|
+
plural ||= 'migration_policies'
|
3503
3613
|
writer.write_start(plural)
|
3504
3614
|
if list.is_a?(List)
|
3505
3615
|
href = list.href
|
@@ -3527,7 +3637,6 @@ module OvirtSDK4
|
|
3527
3637
|
IpWriter.write_one(object.ip, writer, 'ip') unless object.ip.nil?
|
3528
3638
|
Writer.write_integer(writer, 'mtu', object.mtu) unless object.mtu.nil?
|
3529
3639
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
3530
|
-
NetworkLabelWriter.write_many(object.network_labels, writer, 'network_label', 'network_labels') unless object.network_labels.nil?
|
3531
3640
|
Writer.write_boolean(writer, 'profile_required', object.profile_required) unless object.profile_required.nil?
|
3532
3641
|
Writer.write_boolean(writer, 'required', object.required) unless object.required.nil?
|
3533
3642
|
Writer.write_string(writer, 'status', object.status) unless object.status.nil?
|
@@ -3542,7 +3651,10 @@ module OvirtSDK4
|
|
3542
3651
|
VlanWriter.write_one(object.vlan, writer, 'vlan') unless object.vlan.nil?
|
3543
3652
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
3544
3653
|
DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
|
3654
|
+
NetworkLabelWriter.write_many(object.network_labels, writer, 'network_label', 'network_labels') unless object.network_labels.nil?
|
3655
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
3545
3656
|
QosWriter.write_one(object.qos, writer, 'qos') unless object.qos.nil?
|
3657
|
+
VnicProfileWriter.write_many(object.vnic_profiles, writer, 'vnic_profile', 'vnic_profiles') unless object.vnic_profiles.nil?
|
3546
3658
|
writer.write_end
|
3547
3659
|
end
|
3548
3660
|
|
@@ -3565,7 +3677,7 @@ module OvirtSDK4
|
|
3565
3677
|
class NetworkAttachmentWriter < Writer # :nodoc:
|
3566
3678
|
|
3567
3679
|
def self.write_one(object, writer, singular = nil)
|
3568
|
-
singular ||= '
|
3680
|
+
singular ||= 'network_attachment'
|
3569
3681
|
writer.write_start(singular)
|
3570
3682
|
href = object.href
|
3571
3683
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3585,8 +3697,8 @@ module OvirtSDK4
|
|
3585
3697
|
end
|
3586
3698
|
|
3587
3699
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3588
|
-
singular ||= '
|
3589
|
-
plural ||= '
|
3700
|
+
singular ||= 'network_attachment'
|
3701
|
+
plural ||= 'network_attachments'
|
3590
3702
|
writer.write_start(plural)
|
3591
3703
|
if list.is_a?(List)
|
3592
3704
|
href = list.href
|
@@ -3603,7 +3715,7 @@ module OvirtSDK4
|
|
3603
3715
|
class NetworkConfigurationWriter < Writer # :nodoc:
|
3604
3716
|
|
3605
3717
|
def self.write_one(object, writer, singular = nil)
|
3606
|
-
singular ||= '
|
3718
|
+
singular ||= 'network_configuration'
|
3607
3719
|
writer.write_start(singular)
|
3608
3720
|
href = object.href
|
3609
3721
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3613,8 +3725,8 @@ module OvirtSDK4
|
|
3613
3725
|
end
|
3614
3726
|
|
3615
3727
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3616
|
-
singular ||= '
|
3617
|
-
plural ||= '
|
3728
|
+
singular ||= 'network_configuration'
|
3729
|
+
plural ||= 'network_configurations'
|
3618
3730
|
writer.write_start(plural)
|
3619
3731
|
if list.is_a?(List)
|
3620
3732
|
href = list.href
|
@@ -3631,7 +3743,7 @@ module OvirtSDK4
|
|
3631
3743
|
class NetworkFilterWriter < Writer # :nodoc:
|
3632
3744
|
|
3633
3745
|
def self.write_one(object, writer, singular = nil)
|
3634
|
-
singular ||= '
|
3746
|
+
singular ||= 'network_filter'
|
3635
3747
|
writer.write_start(singular)
|
3636
3748
|
href = object.href
|
3637
3749
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3644,8 +3756,8 @@ module OvirtSDK4
|
|
3644
3756
|
end
|
3645
3757
|
|
3646
3758
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3647
|
-
singular ||= '
|
3648
|
-
plural ||= '
|
3759
|
+
singular ||= 'network_filter'
|
3760
|
+
plural ||= 'network_filters'
|
3649
3761
|
writer.write_start(plural)
|
3650
3762
|
if list.is_a?(List)
|
3651
3763
|
href = list.href
|
@@ -3662,7 +3774,7 @@ module OvirtSDK4
|
|
3662
3774
|
class NetworkLabelWriter < Writer # :nodoc:
|
3663
3775
|
|
3664
3776
|
def self.write_one(object, writer, singular = nil)
|
3665
|
-
singular ||= '
|
3777
|
+
singular ||= 'network_label'
|
3666
3778
|
writer.write_start(singular)
|
3667
3779
|
href = object.href
|
3668
3780
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3676,8 +3788,8 @@ module OvirtSDK4
|
|
3676
3788
|
end
|
3677
3789
|
|
3678
3790
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3679
|
-
singular ||= '
|
3680
|
-
plural ||= '
|
3791
|
+
singular ||= 'network_label'
|
3792
|
+
plural ||= 'network_labels'
|
3681
3793
|
writer.write_start(plural)
|
3682
3794
|
if list.is_a?(List)
|
3683
3795
|
href = list.href
|
@@ -3694,7 +3806,7 @@ module OvirtSDK4
|
|
3694
3806
|
class NfsProfileDetailWriter < Writer # :nodoc:
|
3695
3807
|
|
3696
3808
|
def self.write_one(object, writer, singular = nil)
|
3697
|
-
singular ||= '
|
3809
|
+
singular ||= 'nfs_profile_detail'
|
3698
3810
|
writer.write_start(singular)
|
3699
3811
|
href = object.href
|
3700
3812
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3704,8 +3816,8 @@ module OvirtSDK4
|
|
3704
3816
|
end
|
3705
3817
|
|
3706
3818
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3707
|
-
singular ||= '
|
3708
|
-
plural ||= '
|
3819
|
+
singular ||= 'nfs_profile_detail'
|
3820
|
+
plural ||= 'nfs_profile_details'
|
3709
3821
|
writer.write_start(plural)
|
3710
3822
|
if list.is_a?(List)
|
3711
3823
|
href = list.href
|
@@ -3736,11 +3848,15 @@ module OvirtSDK4
|
|
3736
3848
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
3737
3849
|
Writer.write_boolean(writer, 'on_boot', object.on_boot) unless object.on_boot.nil?
|
3738
3850
|
Writer.write_boolean(writer, 'plugged', object.plugged) unless object.plugged.nil?
|
3739
|
-
ReportedDeviceWriter.write_many(object.reported_devices, writer, 'reported_device', 'reported_devices') unless object.reported_devices.nil?
|
3740
3851
|
InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
|
3741
3852
|
NetworkWriter.write_one(object.network, writer, 'network') unless object.network.nil?
|
3853
|
+
NetworkAttachmentWriter.write_many(object.network_attachments, writer, 'network_attachment', 'network_attachments') unless object.network_attachments.nil?
|
3854
|
+
NetworkLabelWriter.write_many(object.network_labels, writer, 'network_label', 'network_labels') unless object.network_labels.nil?
|
3855
|
+
ReportedDeviceWriter.write_many(object.reported_devices, writer, 'reported_device', 'reported_devices') unless object.reported_devices.nil?
|
3742
3856
|
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
3743
3857
|
TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
|
3858
|
+
NetworkLabelWriter.write_many(object.virtual_function_allowed_labels, writer, 'virtual_function_allowed_label', 'virtual_function_allowed_labels') unless object.virtual_function_allowed_labels.nil?
|
3859
|
+
NetworkWriter.write_many(object.virtual_function_allowed_networks, writer, 'virtual_function_allowed_network', 'virtual_function_allowed_networks') unless object.virtual_function_allowed_networks.nil?
|
3744
3860
|
VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
|
3745
3861
|
VmWriter.write_many(object.vms, writer, 'vm', 'vms') unless object.vms.nil?
|
3746
3862
|
VnicProfileWriter.write_one(object.vnic_profile, writer, 'vnic_profile') unless object.vnic_profile.nil?
|
@@ -3766,7 +3882,7 @@ module OvirtSDK4
|
|
3766
3882
|
class NicConfigurationWriter < Writer # :nodoc:
|
3767
3883
|
|
3768
3884
|
def self.write_one(object, writer, singular = nil)
|
3769
|
-
singular ||= '
|
3885
|
+
singular ||= 'nic_configuration'
|
3770
3886
|
writer.write_start(singular)
|
3771
3887
|
href = object.href
|
3772
3888
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3778,8 +3894,8 @@ module OvirtSDK4
|
|
3778
3894
|
end
|
3779
3895
|
|
3780
3896
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3781
|
-
singular ||= '
|
3782
|
-
plural ||= '
|
3897
|
+
singular ||= 'nic_configuration'
|
3898
|
+
plural ||= 'nic_configurations'
|
3783
3899
|
writer.write_start(plural)
|
3784
3900
|
if list.is_a?(List)
|
3785
3901
|
href = list.href
|
@@ -3796,7 +3912,7 @@ module OvirtSDK4
|
|
3796
3912
|
class NumaNodeWriter < Writer # :nodoc:
|
3797
3913
|
|
3798
3914
|
def self.write_one(object, writer, singular = nil)
|
3799
|
-
singular ||= '
|
3915
|
+
singular ||= 'numa_node'
|
3800
3916
|
writer.write_start(singular)
|
3801
3917
|
href = object.href
|
3802
3918
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3814,8 +3930,8 @@ module OvirtSDK4
|
|
3814
3930
|
end
|
3815
3931
|
|
3816
3932
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3817
|
-
singular ||= '
|
3818
|
-
plural ||= '
|
3933
|
+
singular ||= 'numa_node'
|
3934
|
+
plural ||= 'numa_nodes'
|
3819
3935
|
writer.write_start(plural)
|
3820
3936
|
if list.is_a?(List)
|
3821
3937
|
href = list.href
|
@@ -3832,7 +3948,7 @@ module OvirtSDK4
|
|
3832
3948
|
class NumaNodePinWriter < Writer # :nodoc:
|
3833
3949
|
|
3834
3950
|
def self.write_one(object, writer, singular = nil)
|
3835
|
-
singular ||= '
|
3951
|
+
singular ||= 'numa_node_pin'
|
3836
3952
|
writer.write_start(singular)
|
3837
3953
|
href = object.href
|
3838
3954
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3843,8 +3959,8 @@ module OvirtSDK4
|
|
3843
3959
|
end
|
3844
3960
|
|
3845
3961
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3846
|
-
singular ||= '
|
3847
|
-
plural ||= '
|
3962
|
+
singular ||= 'numa_node_pin'
|
3963
|
+
plural ||= 'numa_node_pins'
|
3848
3964
|
writer.write_start(plural)
|
3849
3965
|
if list.is_a?(List)
|
3850
3966
|
href = list.href
|
@@ -3861,7 +3977,7 @@ module OvirtSDK4
|
|
3861
3977
|
class OpenStackImageWriter < Writer # :nodoc:
|
3862
3978
|
|
3863
3979
|
def self.write_one(object, writer, singular = nil)
|
3864
|
-
singular ||= '
|
3980
|
+
singular ||= 'open_stack_image'
|
3865
3981
|
writer.write_start(singular)
|
3866
3982
|
href = object.href
|
3867
3983
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3874,8 +3990,8 @@ module OvirtSDK4
|
|
3874
3990
|
end
|
3875
3991
|
|
3876
3992
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3877
|
-
singular ||= '
|
3878
|
-
plural ||= '
|
3993
|
+
singular ||= 'open_stack_image'
|
3994
|
+
plural ||= 'open_stack_images'
|
3879
3995
|
writer.write_start(plural)
|
3880
3996
|
if list.is_a?(List)
|
3881
3997
|
href = list.href
|
@@ -3892,7 +4008,7 @@ module OvirtSDK4
|
|
3892
4008
|
class OpenStackImageProviderWriter < Writer # :nodoc:
|
3893
4009
|
|
3894
4010
|
def self.write_one(object, writer, singular = nil)
|
3895
|
-
singular ||= '
|
4011
|
+
singular ||= 'open_stack_image_provider'
|
3896
4012
|
writer.write_start(singular)
|
3897
4013
|
href = object.href
|
3898
4014
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3907,12 +4023,14 @@ module OvirtSDK4
|
|
3907
4023
|
Writer.write_string(writer, 'tenant_name', object.tenant_name) unless object.tenant_name.nil?
|
3908
4024
|
Writer.write_string(writer, 'url', object.url) unless object.url.nil?
|
3909
4025
|
Writer.write_string(writer, 'username', object.username) unless object.username.nil?
|
4026
|
+
CertificateWriter.write_many(object.certificates, writer, 'certificate', 'certificates') unless object.certificates.nil?
|
4027
|
+
OpenStackImageWriter.write_many(object.images, writer, 'image', 'images') unless object.images.nil?
|
3910
4028
|
writer.write_end
|
3911
4029
|
end
|
3912
4030
|
|
3913
4031
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3914
|
-
singular ||= '
|
3915
|
-
plural ||= '
|
4032
|
+
singular ||= 'open_stack_image_provider'
|
4033
|
+
plural ||= 'open_stack_image_providers'
|
3916
4034
|
writer.write_start(plural)
|
3917
4035
|
if list.is_a?(List)
|
3918
4036
|
href = list.href
|
@@ -3929,7 +4047,7 @@ module OvirtSDK4
|
|
3929
4047
|
class OpenStackNetworkWriter < Writer # :nodoc:
|
3930
4048
|
|
3931
4049
|
def self.write_one(object, writer, singular = nil)
|
3932
|
-
singular ||= '
|
4050
|
+
singular ||= 'open_stack_network'
|
3933
4051
|
writer.write_start(singular)
|
3934
4052
|
href = object.href
|
3935
4053
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3942,8 +4060,8 @@ module OvirtSDK4
|
|
3942
4060
|
end
|
3943
4061
|
|
3944
4062
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3945
|
-
singular ||= '
|
3946
|
-
plural ||= '
|
4063
|
+
singular ||= 'open_stack_network'
|
4064
|
+
plural ||= 'open_stack_networks'
|
3947
4065
|
writer.write_start(plural)
|
3948
4066
|
if list.is_a?(List)
|
3949
4067
|
href = list.href
|
@@ -3960,7 +4078,7 @@ module OvirtSDK4
|
|
3960
4078
|
class OpenStackNetworkProviderWriter < Writer # :nodoc:
|
3961
4079
|
|
3962
4080
|
def self.write_one(object, writer, singular = nil)
|
3963
|
-
singular ||= '
|
4081
|
+
singular ||= 'open_stack_network_provider'
|
3964
4082
|
writer.write_start(singular)
|
3965
4083
|
href = object.href
|
3966
4084
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -3979,12 +4097,15 @@ module OvirtSDK4
|
|
3979
4097
|
Writer.write_string(writer, 'type', object.type) unless object.type.nil?
|
3980
4098
|
Writer.write_string(writer, 'url', object.url) unless object.url.nil?
|
3981
4099
|
Writer.write_string(writer, 'username', object.username) unless object.username.nil?
|
4100
|
+
CertificateWriter.write_many(object.certificates, writer, 'certificate', 'certificates') unless object.certificates.nil?
|
4101
|
+
OpenStackNetworkWriter.write_many(object.networks, writer, 'network', 'networks') unless object.networks.nil?
|
4102
|
+
OpenStackSubnetWriter.write_many(object.subnets, writer, 'subnet', 'subnets') unless object.subnets.nil?
|
3982
4103
|
writer.write_end
|
3983
4104
|
end
|
3984
4105
|
|
3985
4106
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
3986
|
-
singular ||= '
|
3987
|
-
plural ||= '
|
4107
|
+
singular ||= 'open_stack_network_provider'
|
4108
|
+
plural ||= 'open_stack_network_providers'
|
3988
4109
|
writer.write_start(plural)
|
3989
4110
|
if list.is_a?(List)
|
3990
4111
|
href = list.href
|
@@ -4001,7 +4122,7 @@ module OvirtSDK4
|
|
4001
4122
|
class OpenStackProviderWriter < Writer # :nodoc:
|
4002
4123
|
|
4003
4124
|
def self.write_one(object, writer, singular = nil)
|
4004
|
-
singular ||= '
|
4125
|
+
singular ||= 'open_stack_provider'
|
4005
4126
|
writer.write_start(singular)
|
4006
4127
|
href = object.href
|
4007
4128
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4020,8 +4141,8 @@ module OvirtSDK4
|
|
4020
4141
|
end
|
4021
4142
|
|
4022
4143
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4023
|
-
singular ||= '
|
4024
|
-
plural ||= '
|
4144
|
+
singular ||= 'open_stack_provider'
|
4145
|
+
plural ||= 'open_stack_providers'
|
4025
4146
|
writer.write_start(plural)
|
4026
4147
|
if list.is_a?(List)
|
4027
4148
|
href = list.href
|
@@ -4038,7 +4159,7 @@ module OvirtSDK4
|
|
4038
4159
|
class OpenStackSubnetWriter < Writer # :nodoc:
|
4039
4160
|
|
4040
4161
|
def self.write_one(object, writer, singular = nil)
|
4041
|
-
singular ||= '
|
4162
|
+
singular ||= 'open_stack_subnet'
|
4042
4163
|
writer.write_start(singular)
|
4043
4164
|
href = object.href
|
4044
4165
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4061,8 +4182,8 @@ module OvirtSDK4
|
|
4061
4182
|
end
|
4062
4183
|
|
4063
4184
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4064
|
-
singular ||= '
|
4065
|
-
plural ||= '
|
4185
|
+
singular ||= 'open_stack_subnet'
|
4186
|
+
plural ||= 'open_stack_subnets'
|
4066
4187
|
writer.write_start(plural)
|
4067
4188
|
if list.is_a?(List)
|
4068
4189
|
href = list.href
|
@@ -4079,7 +4200,7 @@ module OvirtSDK4
|
|
4079
4200
|
class OpenStackVolumeProviderWriter < Writer # :nodoc:
|
4080
4201
|
|
4081
4202
|
def self.write_one(object, writer, singular = nil)
|
4082
|
-
singular ||= '
|
4203
|
+
singular ||= 'open_stack_volume_provider'
|
4083
4204
|
writer.write_start(singular)
|
4084
4205
|
href = object.href
|
4085
4206
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4094,13 +4215,16 @@ module OvirtSDK4
|
|
4094
4215
|
Writer.write_string(writer, 'tenant_name', object.tenant_name) unless object.tenant_name.nil?
|
4095
4216
|
Writer.write_string(writer, 'url', object.url) unless object.url.nil?
|
4096
4217
|
Writer.write_string(writer, 'username', object.username) unless object.username.nil?
|
4218
|
+
OpenstackVolumeAuthenticationKeyWriter.write_many(object.authentication_keys, writer, 'authentication_key', 'authentication_keys') unless object.authentication_keys.nil?
|
4219
|
+
CertificateWriter.write_many(object.certificates, writer, 'certificate', 'certificates') unless object.certificates.nil?
|
4097
4220
|
DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
|
4221
|
+
OpenStackVolumeTypeWriter.write_many(object.volume_types, writer, 'volume_type', 'volume_types') unless object.volume_types.nil?
|
4098
4222
|
writer.write_end
|
4099
4223
|
end
|
4100
4224
|
|
4101
4225
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4102
|
-
singular ||= '
|
4103
|
-
plural ||= '
|
4226
|
+
singular ||= 'open_stack_volume_provider'
|
4227
|
+
plural ||= 'open_stack_volume_providers'
|
4104
4228
|
writer.write_start(plural)
|
4105
4229
|
if list.is_a?(List)
|
4106
4230
|
href = list.href
|
@@ -4117,7 +4241,7 @@ module OvirtSDK4
|
|
4117
4241
|
class OpenStackVolumeTypeWriter < Writer # :nodoc:
|
4118
4242
|
|
4119
4243
|
def self.write_one(object, writer, singular = nil)
|
4120
|
-
singular ||= '
|
4244
|
+
singular ||= 'open_stack_volume_type'
|
4121
4245
|
writer.write_start(singular)
|
4122
4246
|
href = object.href
|
4123
4247
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4131,8 +4255,8 @@ module OvirtSDK4
|
|
4131
4255
|
end
|
4132
4256
|
|
4133
4257
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4134
|
-
singular ||= '
|
4135
|
-
plural ||= '
|
4258
|
+
singular ||= 'open_stack_volume_type'
|
4259
|
+
plural ||= 'open_stack_volume_types'
|
4136
4260
|
writer.write_start(plural)
|
4137
4261
|
if list.is_a?(List)
|
4138
4262
|
href = list.href
|
@@ -4149,7 +4273,7 @@ module OvirtSDK4
|
|
4149
4273
|
class OpenstackVolumeAuthenticationKeyWriter < Writer # :nodoc:
|
4150
4274
|
|
4151
4275
|
def self.write_one(object, writer, singular = nil)
|
4152
|
-
singular ||= '
|
4276
|
+
singular ||= 'openstack_volume_authentication_key'
|
4153
4277
|
writer.write_start(singular)
|
4154
4278
|
href = object.href
|
4155
4279
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4166,8 +4290,8 @@ module OvirtSDK4
|
|
4166
4290
|
end
|
4167
4291
|
|
4168
4292
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4169
|
-
singular ||= '
|
4170
|
-
plural ||= '
|
4293
|
+
singular ||= 'openstack_volume_authentication_key'
|
4294
|
+
plural ||= 'openstack_volume_authentication_keys'
|
4171
4295
|
writer.write_start(plural)
|
4172
4296
|
if list.is_a?(List)
|
4173
4297
|
href = list.href
|
@@ -4184,22 +4308,24 @@ module OvirtSDK4
|
|
4184
4308
|
class OperatingSystemWriter < Writer # :nodoc:
|
4185
4309
|
|
4186
4310
|
def self.write_one(object, writer, singular = nil)
|
4187
|
-
singular ||= '
|
4311
|
+
singular ||= 'operating_system'
|
4188
4312
|
writer.write_start(singular)
|
4189
4313
|
href = object.href
|
4190
4314
|
writer.write_attribute('href', href) unless href.nil?
|
4191
4315
|
BootWriter.write_one(object.boot, writer, 'boot') unless object.boot.nil?
|
4192
4316
|
Writer.write_string(writer, 'cmdline', object.cmdline) unless object.cmdline.nil?
|
4317
|
+
Writer.write_string(writer, 'custom_kernel_cmdline', object.custom_kernel_cmdline) unless object.custom_kernel_cmdline.nil?
|
4193
4318
|
Writer.write_string(writer, 'initrd', object.initrd) unless object.initrd.nil?
|
4194
4319
|
Writer.write_string(writer, 'kernel', object.kernel) unless object.kernel.nil?
|
4320
|
+
Writer.write_string(writer, 'reported_kernel_cmdline', object.reported_kernel_cmdline) unless object.reported_kernel_cmdline.nil?
|
4195
4321
|
Writer.write_string(writer, 'type', object.type) unless object.type.nil?
|
4196
4322
|
VersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
|
4197
4323
|
writer.write_end
|
4198
4324
|
end
|
4199
4325
|
|
4200
4326
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4201
|
-
singular ||= '
|
4202
|
-
plural ||= '
|
4327
|
+
singular ||= 'operating_system'
|
4328
|
+
plural ||= 'operating_systems'
|
4203
4329
|
writer.write_start(plural)
|
4204
4330
|
if list.is_a?(List)
|
4205
4331
|
href = list.href
|
@@ -4216,7 +4342,7 @@ module OvirtSDK4
|
|
4216
4342
|
class OperatingSystemInfoWriter < Writer # :nodoc:
|
4217
4343
|
|
4218
4344
|
def self.write_one(object, writer, singular = nil)
|
4219
|
-
singular ||= '
|
4345
|
+
singular ||= 'operating_system_info'
|
4220
4346
|
writer.write_start(singular)
|
4221
4347
|
href = object.href
|
4222
4348
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4230,8 +4356,8 @@ module OvirtSDK4
|
|
4230
4356
|
end
|
4231
4357
|
|
4232
4358
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4233
|
-
singular ||= '
|
4234
|
-
plural ||= '
|
4359
|
+
singular ||= 'operating_system_info'
|
4360
|
+
plural ||= 'operating_system_infos'
|
4235
4361
|
writer.write_start(plural)
|
4236
4362
|
if list.is_a?(List)
|
4237
4363
|
href = list.href
|
@@ -4406,7 +4532,7 @@ module OvirtSDK4
|
|
4406
4532
|
class PmProxyWriter < Writer # :nodoc:
|
4407
4533
|
|
4408
4534
|
def self.write_one(object, writer, singular = nil)
|
4409
|
-
singular ||= '
|
4535
|
+
singular ||= 'pm_proxy'
|
4410
4536
|
writer.write_start(singular)
|
4411
4537
|
href = object.href
|
4412
4538
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4415,8 +4541,8 @@ module OvirtSDK4
|
|
4415
4541
|
end
|
4416
4542
|
|
4417
4543
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4418
|
-
singular ||= '
|
4419
|
-
plural ||= '
|
4544
|
+
singular ||= 'pm_proxy'
|
4545
|
+
plural ||= 'pm_proxies'
|
4420
4546
|
writer.write_start(plural)
|
4421
4547
|
if list.is_a?(List)
|
4422
4548
|
href = list.href
|
@@ -4433,7 +4559,7 @@ module OvirtSDK4
|
|
4433
4559
|
class PortMirroringWriter < Writer # :nodoc:
|
4434
4560
|
|
4435
4561
|
def self.write_one(object, writer, singular = nil)
|
4436
|
-
singular ||= '
|
4562
|
+
singular ||= 'port_mirroring'
|
4437
4563
|
writer.write_start(singular)
|
4438
4564
|
href = object.href
|
4439
4565
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4441,8 +4567,8 @@ module OvirtSDK4
|
|
4441
4567
|
end
|
4442
4568
|
|
4443
4569
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4444
|
-
singular ||= '
|
4445
|
-
plural ||= '
|
4570
|
+
singular ||= 'port_mirroring'
|
4571
|
+
plural ||= 'port_mirrorings'
|
4446
4572
|
writer.write_start(plural)
|
4447
4573
|
if list.is_a?(List)
|
4448
4574
|
href = list.href
|
@@ -4459,7 +4585,7 @@ module OvirtSDK4
|
|
4459
4585
|
class PowerManagementWriter < Writer # :nodoc:
|
4460
4586
|
|
4461
4587
|
def self.write_one(object, writer, singular = nil)
|
4462
|
-
singular ||= '
|
4588
|
+
singular ||= 'power_management'
|
4463
4589
|
writer.write_start(singular)
|
4464
4590
|
href = object.href
|
4465
4591
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4478,8 +4604,8 @@ module OvirtSDK4
|
|
4478
4604
|
end
|
4479
4605
|
|
4480
4606
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4481
|
-
singular ||= '
|
4482
|
-
plural ||= '
|
4607
|
+
singular ||= 'power_management'
|
4608
|
+
plural ||= 'power_managements'
|
4483
4609
|
writer.write_start(plural)
|
4484
4610
|
if list.is_a?(List)
|
4485
4611
|
href = list.href
|
@@ -4526,7 +4652,7 @@ module OvirtSDK4
|
|
4526
4652
|
class ProductInfoWriter < Writer # :nodoc:
|
4527
4653
|
|
4528
4654
|
def self.write_one(object, writer, singular = nil)
|
4529
|
-
singular ||= '
|
4655
|
+
singular ||= 'product_info'
|
4530
4656
|
writer.write_start(singular)
|
4531
4657
|
href = object.href
|
4532
4658
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4537,8 +4663,8 @@ module OvirtSDK4
|
|
4537
4663
|
end
|
4538
4664
|
|
4539
4665
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4540
|
-
singular ||= '
|
4541
|
-
plural ||= '
|
4666
|
+
singular ||= 'product_info'
|
4667
|
+
plural ||= 'product_infos'
|
4542
4668
|
writer.write_start(plural)
|
4543
4669
|
if list.is_a?(List)
|
4544
4670
|
href = list.href
|
@@ -4555,7 +4681,7 @@ module OvirtSDK4
|
|
4555
4681
|
class ProfileDetailWriter < Writer # :nodoc:
|
4556
4682
|
|
4557
4683
|
def self.write_one(object, writer, singular = nil)
|
4558
|
-
singular ||= '
|
4684
|
+
singular ||= 'profile_detail'
|
4559
4685
|
writer.write_start(singular)
|
4560
4686
|
href = object.href
|
4561
4687
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4568,8 +4694,8 @@ module OvirtSDK4
|
|
4568
4694
|
end
|
4569
4695
|
|
4570
4696
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4571
|
-
singular ||= '
|
4572
|
-
plural ||= '
|
4697
|
+
singular ||= 'profile_detail'
|
4698
|
+
plural ||= 'profile_details'
|
4573
4699
|
writer.write_start(plural)
|
4574
4700
|
if list.is_a?(List)
|
4575
4701
|
href = list.href
|
@@ -4614,7 +4740,7 @@ module OvirtSDK4
|
|
4614
4740
|
class ProxyTicketWriter < Writer # :nodoc:
|
4615
4741
|
|
4616
4742
|
def self.write_one(object, writer, singular = nil)
|
4617
|
-
singular ||= '
|
4743
|
+
singular ||= 'proxy_ticket'
|
4618
4744
|
writer.write_start(singular)
|
4619
4745
|
href = object.href
|
4620
4746
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4623,8 +4749,8 @@ module OvirtSDK4
|
|
4623
4749
|
end
|
4624
4750
|
|
4625
4751
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4626
|
-
singular ||= '
|
4627
|
-
plural ||= '
|
4752
|
+
singular ||= 'proxy_ticket'
|
4753
|
+
plural ||= 'proxy_tickets'
|
4628
4754
|
writer.write_start(plural)
|
4629
4755
|
if list.is_a?(List)
|
4630
4756
|
href = list.href
|
@@ -4705,6 +4831,9 @@ module OvirtSDK4
|
|
4705
4831
|
Writer.write_integer(writer, 'storage_soft_limit_pct', object.storage_soft_limit_pct) unless object.storage_soft_limit_pct.nil?
|
4706
4832
|
UserWriter.write_many(object.users, writer, 'user', 'users') unless object.users.nil?
|
4707
4833
|
VmWriter.write_many(object.vms, writer, 'vm', 'vms') unless object.vms.nil?
|
4834
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
4835
|
+
QuotaClusterLimitWriter.write_many(object.quota_cluster_limits, writer, 'quota_cluster_limit', 'quota_cluster_limits') unless object.quota_cluster_limits.nil?
|
4836
|
+
QuotaStorageLimitWriter.write_many(object.quota_storage_limits, writer, 'quota_storage_limit', 'quota_storage_limits') unless object.quota_storage_limits.nil?
|
4708
4837
|
writer.write_end
|
4709
4838
|
end
|
4710
4839
|
|
@@ -4727,7 +4856,7 @@ module OvirtSDK4
|
|
4727
4856
|
class QuotaClusterLimitWriter < Writer # :nodoc:
|
4728
4857
|
|
4729
4858
|
def self.write_one(object, writer, singular = nil)
|
4730
|
-
singular ||= '
|
4859
|
+
singular ||= 'quota_cluster_limit'
|
4731
4860
|
writer.write_start(singular)
|
4732
4861
|
href = object.href
|
4733
4862
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4745,8 +4874,8 @@ module OvirtSDK4
|
|
4745
4874
|
end
|
4746
4875
|
|
4747
4876
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4748
|
-
singular ||= '
|
4749
|
-
plural ||= '
|
4877
|
+
singular ||= 'quota_cluster_limit'
|
4878
|
+
plural ||= 'quota_cluster_limits'
|
4750
4879
|
writer.write_start(plural)
|
4751
4880
|
if list.is_a?(List)
|
4752
4881
|
href = list.href
|
@@ -4763,7 +4892,7 @@ module OvirtSDK4
|
|
4763
4892
|
class QuotaStorageLimitWriter < Writer # :nodoc:
|
4764
4893
|
|
4765
4894
|
def self.write_one(object, writer, singular = nil)
|
4766
|
-
singular ||= '
|
4895
|
+
singular ||= 'quota_storage_limit'
|
4767
4896
|
writer.write_start(singular)
|
4768
4897
|
href = object.href
|
4769
4898
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4779,8 +4908,8 @@ module OvirtSDK4
|
|
4779
4908
|
end
|
4780
4909
|
|
4781
4910
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4782
|
-
singular ||= '
|
4783
|
-
plural ||= '
|
4911
|
+
singular ||= 'quota_storage_limit'
|
4912
|
+
plural ||= 'quota_storage_limits'
|
4784
4913
|
writer.write_start(plural)
|
4785
4914
|
if list.is_a?(List)
|
4786
4915
|
href = list.href
|
@@ -4853,7 +4982,7 @@ module OvirtSDK4
|
|
4853
4982
|
class ReportedConfigurationWriter < Writer # :nodoc:
|
4854
4983
|
|
4855
4984
|
def self.write_one(object, writer, singular = nil)
|
4856
|
-
singular ||= '
|
4985
|
+
singular ||= 'reported_configuration'
|
4857
4986
|
writer.write_start(singular)
|
4858
4987
|
href = object.href
|
4859
4988
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4865,8 +4994,8 @@ module OvirtSDK4
|
|
4865
4994
|
end
|
4866
4995
|
|
4867
4996
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4868
|
-
singular ||= '
|
4869
|
-
plural ||= '
|
4997
|
+
singular ||= 'reported_configuration'
|
4998
|
+
plural ||= 'reported_configurations'
|
4870
4999
|
writer.write_start(plural)
|
4871
5000
|
if list.is_a?(List)
|
4872
5001
|
href = list.href
|
@@ -4883,7 +5012,7 @@ module OvirtSDK4
|
|
4883
5012
|
class ReportedDeviceWriter < Writer # :nodoc:
|
4884
5013
|
|
4885
5014
|
def self.write_one(object, writer, singular = nil)
|
4886
|
-
singular ||= '
|
5015
|
+
singular ||= 'reported_device'
|
4887
5016
|
writer.write_start(singular)
|
4888
5017
|
href = object.href
|
4889
5018
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4899,8 +5028,8 @@ module OvirtSDK4
|
|
4899
5028
|
end
|
4900
5029
|
|
4901
5030
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4902
|
-
singular ||= '
|
4903
|
-
plural ||= '
|
5031
|
+
singular ||= 'reported_device'
|
5032
|
+
plural ||= 'reported_devices'
|
4904
5033
|
writer.write_start(plural)
|
4905
5034
|
if list.is_a?(List)
|
4906
5035
|
href = list.href
|
@@ -4917,7 +5046,7 @@ module OvirtSDK4
|
|
4917
5046
|
class RngDeviceWriter < Writer # :nodoc:
|
4918
5047
|
|
4919
5048
|
def self.write_one(object, writer, singular = nil)
|
4920
|
-
singular ||= '
|
5049
|
+
singular ||= 'rng_device'
|
4921
5050
|
writer.write_start(singular)
|
4922
5051
|
href = object.href
|
4923
5052
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4927,8 +5056,8 @@ module OvirtSDK4
|
|
4927
5056
|
end
|
4928
5057
|
|
4929
5058
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4930
|
-
singular ||= '
|
4931
|
-
plural ||= '
|
5059
|
+
singular ||= 'rng_device'
|
5060
|
+
plural ||= 'rng_devices'
|
4932
5061
|
writer.write_start(plural)
|
4933
5062
|
if list.is_a?(List)
|
4934
5063
|
href = list.href
|
@@ -4979,7 +5108,7 @@ module OvirtSDK4
|
|
4979
5108
|
class SchedulingPolicyWriter < Writer # :nodoc:
|
4980
5109
|
|
4981
5110
|
def self.write_one(object, writer, singular = nil)
|
4982
|
-
singular ||= '
|
5111
|
+
singular ||= 'scheduling_policy'
|
4983
5112
|
writer.write_start(singular)
|
4984
5113
|
href = object.href
|
4985
5114
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -4990,12 +5119,15 @@ module OvirtSDK4
|
|
4990
5119
|
Writer.write_boolean(writer, 'locked', object.locked) unless object.locked.nil?
|
4991
5120
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
4992
5121
|
PropertyWriter.write_many(object.properties, writer, 'property', 'properties') unless object.properties.nil?
|
5122
|
+
BalanceWriter.write_many(object.balances, writer, 'balance', 'balances') unless object.balances.nil?
|
5123
|
+
FilterWriter.write_many(object.filters, writer, 'filter', 'filters') unless object.filters.nil?
|
5124
|
+
WeightWriter.write_many(object.weight, writer, 'weight', 'weight') unless object.weight.nil?
|
4993
5125
|
writer.write_end
|
4994
5126
|
end
|
4995
5127
|
|
4996
5128
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
4997
|
-
singular ||= '
|
4998
|
-
plural ||= '
|
5129
|
+
singular ||= 'scheduling_policy'
|
5130
|
+
plural ||= 'scheduling_policies'
|
4999
5131
|
writer.write_start(plural)
|
5000
5132
|
if list.is_a?(List)
|
5001
5133
|
href = list.href
|
@@ -5012,7 +5144,7 @@ module OvirtSDK4
|
|
5012
5144
|
class SchedulingPolicyUnitWriter < Writer # :nodoc:
|
5013
5145
|
|
5014
5146
|
def self.write_one(object, writer, singular = nil)
|
5015
|
-
singular ||= '
|
5147
|
+
singular ||= 'scheduling_policy_unit'
|
5016
5148
|
writer.write_start(singular)
|
5017
5149
|
href = object.href
|
5018
5150
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -5028,8 +5160,8 @@ module OvirtSDK4
|
|
5028
5160
|
end
|
5029
5161
|
|
5030
5162
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
5031
|
-
singular ||= '
|
5032
|
-
plural ||= '
|
5163
|
+
singular ||= 'scheduling_policy_unit'
|
5164
|
+
plural ||= 'scheduling_policy_units'
|
5033
5165
|
writer.write_start(plural)
|
5034
5166
|
if list.is_a?(List)
|
5035
5167
|
href = list.href
|
@@ -5046,7 +5178,7 @@ module OvirtSDK4
|
|
5046
5178
|
class SeLinuxWriter < Writer # :nodoc:
|
5047
5179
|
|
5048
5180
|
def self.write_one(object, writer, singular = nil)
|
5049
|
-
singular ||= '
|
5181
|
+
singular ||= 'se_linux'
|
5050
5182
|
writer.write_start(singular)
|
5051
5183
|
href = object.href
|
5052
5184
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -5055,8 +5187,8 @@ module OvirtSDK4
|
|
5055
5187
|
end
|
5056
5188
|
|
5057
5189
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
5058
|
-
singular ||= '
|
5059
|
-
plural ||= '
|
5190
|
+
singular ||= 'se_linux'
|
5191
|
+
plural ||= 'se_linuxs'
|
5060
5192
|
writer.write_start(plural)
|
5061
5193
|
if list.is_a?(List)
|
5062
5194
|
href = list.href
|
@@ -5073,7 +5205,7 @@ module OvirtSDK4
|
|
5073
5205
|
class SerialNumberWriter < Writer # :nodoc:
|
5074
5206
|
|
5075
5207
|
def self.write_one(object, writer, singular = nil)
|
5076
|
-
singular ||= '
|
5208
|
+
singular ||= 'serial_number'
|
5077
5209
|
writer.write_start(singular)
|
5078
5210
|
href = object.href
|
5079
5211
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -5083,8 +5215,8 @@ module OvirtSDK4
|
|
5083
5215
|
end
|
5084
5216
|
|
5085
5217
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
5086
|
-
singular ||= '
|
5087
|
-
plural ||= '
|
5218
|
+
singular ||= 'serial_number'
|
5219
|
+
plural ||= 'serial_numbers'
|
5088
5220
|
writer.write_start(plural)
|
5089
5221
|
if list.is_a?(List)
|
5090
5222
|
href = list.href
|
@@ -5136,7 +5268,7 @@ module OvirtSDK4
|
|
5136
5268
|
class SkipIfConnectivityBrokenWriter < Writer # :nodoc:
|
5137
5269
|
|
5138
5270
|
def self.write_one(object, writer, singular = nil)
|
5139
|
-
singular ||= '
|
5271
|
+
singular ||= 'skip_if_connectivity_broken'
|
5140
5272
|
writer.write_start(singular)
|
5141
5273
|
href = object.href
|
5142
5274
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -5146,8 +5278,8 @@ module OvirtSDK4
|
|
5146
5278
|
end
|
5147
5279
|
|
5148
5280
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
5149
|
-
singular ||= '
|
5150
|
-
plural ||= '
|
5281
|
+
singular ||= 'skip_if_connectivity_broken'
|
5282
|
+
plural ||= 'skip_if_connectivity_brokens'
|
5151
5283
|
writer.write_start(plural)
|
5152
5284
|
if list.is_a?(List)
|
5153
5285
|
href = list.href
|
@@ -5164,7 +5296,7 @@ module OvirtSDK4
|
|
5164
5296
|
class SkipIfSdActiveWriter < Writer # :nodoc:
|
5165
5297
|
|
5166
5298
|
def self.write_one(object, writer, singular = nil)
|
5167
|
-
singular ||= '
|
5299
|
+
singular ||= 'skip_if_sd_active'
|
5168
5300
|
writer.write_start(singular)
|
5169
5301
|
href = object.href
|
5170
5302
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -5173,8 +5305,8 @@ module OvirtSDK4
|
|
5173
5305
|
end
|
5174
5306
|
|
5175
5307
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
5176
|
-
singular ||= '
|
5177
|
-
plural ||= '
|
5308
|
+
singular ||= 'skip_if_sd_active'
|
5309
|
+
plural ||= 'skip_if_sd_actives'
|
5178
5310
|
writer.write_start(plural)
|
5179
5311
|
if list.is_a?(List)
|
5180
5312
|
href = list.href
|
@@ -5241,33 +5373,40 @@ module OvirtSDK4
|
|
5241
5373
|
Writer.write_boolean(writer, 'start_paused', object.start_paused) unless object.start_paused.nil?
|
5242
5374
|
Writer.write_date(writer, 'start_time', object.start_time) unless object.start_time.nil?
|
5243
5375
|
Writer.write_boolean(writer, 'stateless', object.stateless) unless object.stateless.nil?
|
5244
|
-
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
5245
5376
|
Writer.write_string(writer, 'status', object.status) unless object.status.nil?
|
5246
5377
|
Writer.write_string(writer, 'status_detail', object.status_detail) unless object.status_detail.nil?
|
5247
5378
|
Writer.write_string(writer, 'stop_reason', object.stop_reason) unless object.stop_reason.nil?
|
5248
5379
|
Writer.write_date(writer, 'stop_time', object.stop_time) unless object.stop_time.nil?
|
5249
|
-
TagWriter.write_many(object.tags, writer, 'tag', 'tags') unless object.tags.nil?
|
5250
5380
|
TimeZoneWriter.write_one(object.time_zone, writer, 'time_zone') unless object.time_zone.nil?
|
5251
5381
|
Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
|
5252
5382
|
Writer.write_string(writer, 'type', object.type) unless object.type.nil?
|
5253
5383
|
UsbWriter.write_one(object.usb, writer, 'usb') unless object.usb.nil?
|
5254
5384
|
Writer.write_boolean(writer, 'use_latest_template_version', object.use_latest_template_version) unless object.use_latest_template_version.nil?
|
5255
5385
|
VirtioScsiWriter.write_one(object.virtio_scsi, writer, 'virtio_scsi') unless object.virtio_scsi.nil?
|
5386
|
+
AffinityLabelWriter.write_many(object.affinity_labels, writer, 'affinity_label', 'affinity_labels') unless object.affinity_labels.nil?
|
5387
|
+
ApplicationWriter.write_many(object.applications, writer, 'application', 'applications') unless object.applications.nil?
|
5256
5388
|
CdromWriter.write_many(object.cdroms, writer, 'cdrom', 'cdroms') unless object.cdroms.nil?
|
5257
5389
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
5258
5390
|
CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
|
5391
|
+
DiskAttachmentWriter.write_many(object.disk_attachments, writer, 'disk_attachment', 'disk_attachments') unless object.disk_attachments.nil?
|
5259
5392
|
DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
|
5260
5393
|
ExternalHostProviderWriter.write_one(object.external_host_provider, writer, 'external_host_provider') unless object.external_host_provider.nil?
|
5261
5394
|
FloppyWriter.write_many(object.floppies, writer, 'floppy', 'floppies') unless object.floppies.nil?
|
5395
|
+
GraphicsConsoleWriter.write_many(object.graphics_consoles, writer, 'graphics_console', 'graphics_consoles') unless object.graphics_consoles.nil?
|
5262
5396
|
HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
|
5397
|
+
HostDeviceWriter.write_many(object.host_devices, writer, 'host_device', 'host_devices') unless object.host_devices.nil?
|
5263
5398
|
InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
|
5264
5399
|
KatelloErratumWriter.write_many(object.katello_errata, writer, 'katello_erratum', 'katello_errata') unless object.katello_errata.nil?
|
5265
5400
|
NicWriter.write_many(object.nics, writer, 'nic', 'nics') unless object.nics.nil?
|
5401
|
+
NumaNodeWriter.write_many(object.numa_nodes, writer, 'host_numa_node', 'host_numa_nodes') unless object.numa_nodes.nil?
|
5266
5402
|
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
5267
5403
|
QuotaWriter.write_one(object.quota, writer, 'quota') unless object.quota.nil?
|
5268
5404
|
ReportedDeviceWriter.write_many(object.reported_devices, writer, 'reported_device', 'reported_devices') unless object.reported_devices.nil?
|
5405
|
+
SessionWriter.write_many(object.sessions, writer, 'session', 'sessions') unless object.sessions.nil?
|
5269
5406
|
SnapshotWriter.write_many(object.snapshots, writer, 'snapshot', 'snapshots') unless object.snapshots.nil?
|
5407
|
+
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
5270
5408
|
StorageDomainWriter.write_one(object.storage_domain, writer, 'storage_domain') unless object.storage_domain.nil?
|
5409
|
+
TagWriter.write_many(object.tags, writer, 'tag', 'tags') unless object.tags.nil?
|
5271
5410
|
TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
|
5272
5411
|
VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
|
5273
5412
|
VmPoolWriter.write_one(object.vm_pool, writer, 'vm_pool') unless object.vm_pool.nil?
|
@@ -5294,7 +5433,7 @@ module OvirtSDK4
|
|
5294
5433
|
class SpecialObjectsWriter < Writer # :nodoc:
|
5295
5434
|
|
5296
5435
|
def self.write_one(object, writer, singular = nil)
|
5297
|
-
singular ||= '
|
5436
|
+
singular ||= 'special_objects'
|
5298
5437
|
writer.write_start(singular)
|
5299
5438
|
href = object.href
|
5300
5439
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -5304,8 +5443,8 @@ module OvirtSDK4
|
|
5304
5443
|
end
|
5305
5444
|
|
5306
5445
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
5307
|
-
singular ||= '
|
5308
|
-
plural ||= '
|
5446
|
+
singular ||= 'special_objects'
|
5447
|
+
plural ||= 'special_objectss'
|
5309
5448
|
writer.write_start(plural)
|
5310
5449
|
if list.is_a?(List)
|
5311
5450
|
href = list.href
|
@@ -5384,7 +5523,7 @@ module OvirtSDK4
|
|
5384
5523
|
class SshPublicKeyWriter < Writer # :nodoc:
|
5385
5524
|
|
5386
5525
|
def self.write_one(object, writer, singular = nil)
|
5387
|
-
singular ||= '
|
5526
|
+
singular ||= 'ssh_public_key'
|
5388
5527
|
writer.write_start(singular)
|
5389
5528
|
href = object.href
|
5390
5529
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -5398,8 +5537,8 @@ module OvirtSDK4
|
|
5398
5537
|
end
|
5399
5538
|
|
5400
5539
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
5401
|
-
singular ||= '
|
5402
|
-
plural ||= '
|
5540
|
+
singular ||= 'ssh_public_key'
|
5541
|
+
plural ||= 'ssh_public_keys'
|
5403
5542
|
writer.write_start(plural)
|
5404
5543
|
if list.is_a?(List)
|
5405
5544
|
href = list.href
|
@@ -5503,6 +5642,7 @@ module OvirtSDK4
|
|
5503
5642
|
Writer.write_string(writer, 'type', object.type) unless object.type.nil?
|
5504
5643
|
JobWriter.write_one(object.job, writer, 'job') unless object.job.nil?
|
5505
5644
|
StepWriter.write_one(object.parent_step, writer, 'parent_step') unless object.parent_step.nil?
|
5645
|
+
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
5506
5646
|
writer.write_end
|
5507
5647
|
end
|
5508
5648
|
|
@@ -5525,7 +5665,7 @@ module OvirtSDK4
|
|
5525
5665
|
class StorageConnectionWriter < Writer # :nodoc:
|
5526
5666
|
|
5527
5667
|
def self.write_one(object, writer, singular = nil)
|
5528
|
-
singular ||= '
|
5668
|
+
singular ||= 'storage_connection'
|
5529
5669
|
writer.write_start(singular)
|
5530
5670
|
href = object.href
|
5531
5671
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -5551,8 +5691,8 @@ module OvirtSDK4
|
|
5551
5691
|
end
|
5552
5692
|
|
5553
5693
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
5554
|
-
singular ||= '
|
5555
|
-
plural ||= '
|
5694
|
+
singular ||= 'storage_connection'
|
5695
|
+
plural ||= 'storage_connections'
|
5556
5696
|
writer.write_start(plural)
|
5557
5697
|
if list.is_a?(List)
|
5558
5698
|
href = list.href
|
@@ -5569,7 +5709,7 @@ module OvirtSDK4
|
|
5569
5709
|
class StorageConnectionExtensionWriter < Writer # :nodoc:
|
5570
5710
|
|
5571
5711
|
def self.write_one(object, writer, singular = nil)
|
5572
|
-
singular ||= '
|
5712
|
+
singular ||= 'storage_connection_extension'
|
5573
5713
|
writer.write_start(singular)
|
5574
5714
|
href = object.href
|
5575
5715
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -5585,8 +5725,8 @@ module OvirtSDK4
|
|
5585
5725
|
end
|
5586
5726
|
|
5587
5727
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
5588
|
-
singular ||= '
|
5589
|
-
plural ||= '
|
5728
|
+
singular ||= 'storage_connection_extension'
|
5729
|
+
plural ||= 'storage_connection_extensions'
|
5590
5730
|
writer.write_start(plural)
|
5591
5731
|
if list.is_a?(List)
|
5592
5732
|
href = list.href
|
@@ -5603,7 +5743,7 @@ module OvirtSDK4
|
|
5603
5743
|
class StorageDomainWriter < Writer # :nodoc:
|
5604
5744
|
|
5605
5745
|
def self.write_one(object, writer, singular = nil)
|
5606
|
-
singular ||= '
|
5746
|
+
singular ||= 'storage_domain'
|
5607
5747
|
writer.write_start(singular)
|
5608
5748
|
href = object.href
|
5609
5749
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -5626,13 +5766,22 @@ module OvirtSDK4
|
|
5626
5766
|
Writer.write_boolean(writer, 'wipe_after_delete', object.wipe_after_delete) unless object.wipe_after_delete.nil?
|
5627
5767
|
DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
|
5628
5768
|
DataCenterWriter.write_many(object.data_centers, writer, 'data_center', 'data_centers') unless object.data_centers.nil?
|
5769
|
+
DiskProfileWriter.write_many(object.disk_profiles, writer, 'disk_profile', 'disk_profiles') unless object.disk_profiles.nil?
|
5770
|
+
DiskSnapshotWriter.write_many(object.disk_snapshots, writer, 'disk_snapshot', 'disk_snapshots') unless object.disk_snapshots.nil?
|
5771
|
+
DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
|
5772
|
+
FileWriter.write_many(object.files, writer, 'file', 'files') unless object.files.nil?
|
5629
5773
|
HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
|
5774
|
+
ImageWriter.write_many(object.images, writer, 'image', 'images') unless object.images.nil?
|
5775
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
5776
|
+
StorageConnectionWriter.write_many(object.storage_connections, writer, 'storage_connection', 'storage_connections') unless object.storage_connections.nil?
|
5777
|
+
TemplateWriter.write_many(object.templates, writer, 'template', 'templates') unless object.templates.nil?
|
5778
|
+
VmWriter.write_many(object.vms, writer, 'vm', 'vms') unless object.vms.nil?
|
5630
5779
|
writer.write_end
|
5631
5780
|
end
|
5632
5781
|
|
5633
5782
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
5634
|
-
singular ||= '
|
5635
|
-
plural ||= '
|
5783
|
+
singular ||= 'storage_domain'
|
5784
|
+
plural ||= 'storage_domains'
|
5636
5785
|
writer.write_start(plural)
|
5637
5786
|
if list.is_a?(List)
|
5638
5787
|
href = list.href
|
@@ -5730,9 +5879,16 @@ module OvirtSDK4
|
|
5730
5879
|
TemplateVersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
|
5731
5880
|
VirtioScsiWriter.write_one(object.virtio_scsi, writer, 'virtio_scsi') unless object.virtio_scsi.nil?
|
5732
5881
|
VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
|
5882
|
+
CdromWriter.write_many(object.cdroms, writer, 'cdrom', 'cdroms') unless object.cdroms.nil?
|
5733
5883
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
5734
5884
|
CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
|
5885
|
+
DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
|
5886
|
+
GraphicsConsoleWriter.write_many(object.graphics_consoles, writer, 'graphics_console', 'graphics_consoles') unless object.graphics_consoles.nil?
|
5887
|
+
NicWriter.write_many(object.nics, writer, 'nic', 'nics') unless object.nics.nil?
|
5888
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
5735
5889
|
StorageDomainWriter.write_one(object.storage_domain, writer, 'storage_domain') unless object.storage_domain.nil?
|
5890
|
+
TagWriter.write_many(object.tags, writer, 'tag', 'tags') unless object.tags.nil?
|
5891
|
+
WatchdogWriter.write_many(object.watchdogs, writer, 'watchdog', 'watchdogs') unless object.watchdogs.nil?
|
5736
5892
|
writer.write_end
|
5737
5893
|
end
|
5738
5894
|
|
@@ -5755,7 +5911,7 @@ module OvirtSDK4
|
|
5755
5911
|
class TemplateVersionWriter < Writer # :nodoc:
|
5756
5912
|
|
5757
5913
|
def self.write_one(object, writer, singular = nil)
|
5758
|
-
singular ||= '
|
5914
|
+
singular ||= 'template_version'
|
5759
5915
|
writer.write_start(singular)
|
5760
5916
|
href = object.href
|
5761
5917
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -5766,8 +5922,8 @@ module OvirtSDK4
|
|
5766
5922
|
end
|
5767
5923
|
|
5768
5924
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
5769
|
-
singular ||= '
|
5770
|
-
plural ||= '
|
5925
|
+
singular ||= 'template_version'
|
5926
|
+
plural ||= 'template_versions'
|
5771
5927
|
writer.write_start(plural)
|
5772
5928
|
if list.is_a?(List)
|
5773
5929
|
href = list.href
|
@@ -5812,7 +5968,7 @@ module OvirtSDK4
|
|
5812
5968
|
class TimeZoneWriter < Writer # :nodoc:
|
5813
5969
|
|
5814
5970
|
def self.write_one(object, writer, singular = nil)
|
5815
|
-
singular ||= '
|
5971
|
+
singular ||= 'time_zone'
|
5816
5972
|
writer.write_start(singular)
|
5817
5973
|
href = object.href
|
5818
5974
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -5822,8 +5978,8 @@ module OvirtSDK4
|
|
5822
5978
|
end
|
5823
5979
|
|
5824
5980
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
5825
|
-
singular ||= '
|
5826
|
-
plural ||= '
|
5981
|
+
singular ||= 'time_zone'
|
5982
|
+
plural ||= 'time_zones'
|
5827
5983
|
writer.write_start(plural)
|
5828
5984
|
if list.is_a?(List)
|
5829
5985
|
href = list.href
|
@@ -5840,7 +5996,7 @@ module OvirtSDK4
|
|
5840
5996
|
class TransparentHugePagesWriter < Writer # :nodoc:
|
5841
5997
|
|
5842
5998
|
def self.write_one(object, writer, singular = nil)
|
5843
|
-
singular ||= '
|
5999
|
+
singular ||= 'transparent_huge_pages'
|
5844
6000
|
writer.write_start(singular)
|
5845
6001
|
href = object.href
|
5846
6002
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -5849,8 +6005,8 @@ module OvirtSDK4
|
|
5849
6005
|
end
|
5850
6006
|
|
5851
6007
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
5852
|
-
singular ||= '
|
5853
|
-
plural ||= '
|
6008
|
+
singular ||= 'transparent_huge_pages'
|
6009
|
+
plural ||= 'transparent_huge_pagess'
|
5854
6010
|
writer.write_start(plural)
|
5855
6011
|
if list.is_a?(List)
|
5856
6012
|
href = list.href
|
@@ -5867,7 +6023,7 @@ module OvirtSDK4
|
|
5867
6023
|
class UnmanagedNetworkWriter < Writer # :nodoc:
|
5868
6024
|
|
5869
6025
|
def self.write_one(object, writer, singular = nil)
|
5870
|
-
singular ||= '
|
6026
|
+
singular ||= 'unmanaged_network'
|
5871
6027
|
writer.write_start(singular)
|
5872
6028
|
href = object.href
|
5873
6029
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -5881,8 +6037,8 @@ module OvirtSDK4
|
|
5881
6037
|
end
|
5882
6038
|
|
5883
6039
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
5884
|
-
singular ||= '
|
5885
|
-
plural ||= '
|
6040
|
+
singular ||= 'unmanaged_network'
|
6041
|
+
plural ||= 'unmanaged_networks'
|
5886
6042
|
writer.write_start(plural)
|
5887
6043
|
if list.is_a?(List)
|
5888
6044
|
href = list.href
|
@@ -5946,7 +6102,10 @@ module OvirtSDK4
|
|
5946
6102
|
Writer.write_string(writer, 'user_name', object.user_name) unless object.user_name.nil?
|
5947
6103
|
DomainWriter.write_one(object.domain, writer, 'domain') unless object.domain.nil?
|
5948
6104
|
GroupWriter.write_many(object.groups, writer, 'group', 'groups') unless object.groups.nil?
|
6105
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
5949
6106
|
RoleWriter.write_many(object.roles, writer, 'role', 'roles') unless object.roles.nil?
|
6107
|
+
SshPublicKeyWriter.write_many(object.ssh_public_keys, writer, 'ssh_public_key', 'ssh_public_keys') unless object.ssh_public_keys.nil?
|
6108
|
+
TagWriter.write_many(object.tags, writer, 'tag', 'tags') unless object.tags.nil?
|
5950
6109
|
writer.write_end
|
5951
6110
|
end
|
5952
6111
|
|
@@ -5997,7 +6156,7 @@ module OvirtSDK4
|
|
5997
6156
|
class VcpuPinWriter < Writer # :nodoc:
|
5998
6157
|
|
5999
6158
|
def self.write_one(object, writer, singular = nil)
|
6000
|
-
singular ||= '
|
6159
|
+
singular ||= 'vcpu_pin'
|
6001
6160
|
writer.write_start(singular)
|
6002
6161
|
href = object.href
|
6003
6162
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -6007,8 +6166,8 @@ module OvirtSDK4
|
|
6007
6166
|
end
|
6008
6167
|
|
6009
6168
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
6010
|
-
singular ||= '
|
6011
|
-
plural ||= '
|
6169
|
+
singular ||= 'vcpu_pin'
|
6170
|
+
plural ||= 'vcpu_pins'
|
6012
6171
|
writer.write_start(plural)
|
6013
6172
|
if list.is_a?(List)
|
6014
6173
|
href = list.href
|
@@ -6090,7 +6249,7 @@ module OvirtSDK4
|
|
6090
6249
|
class VirtioScsiWriter < Writer # :nodoc:
|
6091
6250
|
|
6092
6251
|
def self.write_one(object, writer, singular = nil)
|
6093
|
-
singular ||= '
|
6252
|
+
singular ||= 'virtio_scsi'
|
6094
6253
|
writer.write_start(singular)
|
6095
6254
|
href = object.href
|
6096
6255
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -6099,8 +6258,8 @@ module OvirtSDK4
|
|
6099
6258
|
end
|
6100
6259
|
|
6101
6260
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
6102
|
-
singular ||= '
|
6103
|
-
plural ||= '
|
6261
|
+
singular ||= 'virtio_scsi'
|
6262
|
+
plural ||= 'virtio_scsis'
|
6104
6263
|
writer.write_start(plural)
|
6105
6264
|
if list.is_a?(List)
|
6106
6265
|
href = list.href
|
@@ -6117,7 +6276,7 @@ module OvirtSDK4
|
|
6117
6276
|
class VirtualNumaNodeWriter < Writer # :nodoc:
|
6118
6277
|
|
6119
6278
|
def self.write_one(object, writer, singular = nil)
|
6120
|
-
singular ||= '
|
6279
|
+
singular ||= 'virtual_numa_node'
|
6121
6280
|
writer.write_start(singular)
|
6122
6281
|
href = object.href
|
6123
6282
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -6137,8 +6296,8 @@ module OvirtSDK4
|
|
6137
6296
|
end
|
6138
6297
|
|
6139
6298
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
6140
|
-
singular ||= '
|
6141
|
-
plural ||= '
|
6299
|
+
singular ||= 'virtual_numa_node'
|
6300
|
+
plural ||= 'virtual_numa_nodes'
|
6142
6301
|
writer.write_start(plural)
|
6143
6302
|
if list.is_a?(List)
|
6144
6303
|
href = list.href
|
@@ -6228,33 +6387,40 @@ module OvirtSDK4
|
|
6228
6387
|
Writer.write_boolean(writer, 'start_paused', object.start_paused) unless object.start_paused.nil?
|
6229
6388
|
Writer.write_date(writer, 'start_time', object.start_time) unless object.start_time.nil?
|
6230
6389
|
Writer.write_boolean(writer, 'stateless', object.stateless) unless object.stateless.nil?
|
6231
|
-
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
6232
6390
|
Writer.write_string(writer, 'status', object.status) unless object.status.nil?
|
6233
6391
|
Writer.write_string(writer, 'status_detail', object.status_detail) unless object.status_detail.nil?
|
6234
6392
|
Writer.write_string(writer, 'stop_reason', object.stop_reason) unless object.stop_reason.nil?
|
6235
6393
|
Writer.write_date(writer, 'stop_time', object.stop_time) unless object.stop_time.nil?
|
6236
|
-
TagWriter.write_many(object.tags, writer, 'tag', 'tags') unless object.tags.nil?
|
6237
6394
|
TimeZoneWriter.write_one(object.time_zone, writer, 'time_zone') unless object.time_zone.nil?
|
6238
6395
|
Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
|
6239
6396
|
Writer.write_string(writer, 'type', object.type) unless object.type.nil?
|
6240
6397
|
UsbWriter.write_one(object.usb, writer, 'usb') unless object.usb.nil?
|
6241
6398
|
Writer.write_boolean(writer, 'use_latest_template_version', object.use_latest_template_version) unless object.use_latest_template_version.nil?
|
6242
6399
|
VirtioScsiWriter.write_one(object.virtio_scsi, writer, 'virtio_scsi') unless object.virtio_scsi.nil?
|
6400
|
+
AffinityLabelWriter.write_many(object.affinity_labels, writer, 'affinity_label', 'affinity_labels') unless object.affinity_labels.nil?
|
6401
|
+
ApplicationWriter.write_many(object.applications, writer, 'application', 'applications') unless object.applications.nil?
|
6243
6402
|
CdromWriter.write_many(object.cdroms, writer, 'cdrom', 'cdroms') unless object.cdroms.nil?
|
6244
6403
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
6245
6404
|
CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
|
6405
|
+
DiskAttachmentWriter.write_many(object.disk_attachments, writer, 'disk_attachment', 'disk_attachments') unless object.disk_attachments.nil?
|
6246
6406
|
DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
|
6247
6407
|
ExternalHostProviderWriter.write_one(object.external_host_provider, writer, 'external_host_provider') unless object.external_host_provider.nil?
|
6248
6408
|
FloppyWriter.write_many(object.floppies, writer, 'floppy', 'floppies') unless object.floppies.nil?
|
6409
|
+
GraphicsConsoleWriter.write_many(object.graphics_consoles, writer, 'graphics_console', 'graphics_consoles') unless object.graphics_consoles.nil?
|
6249
6410
|
HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
|
6411
|
+
HostDeviceWriter.write_many(object.host_devices, writer, 'host_device', 'host_devices') unless object.host_devices.nil?
|
6250
6412
|
InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
|
6251
6413
|
KatelloErratumWriter.write_many(object.katello_errata, writer, 'katello_erratum', 'katello_errata') unless object.katello_errata.nil?
|
6252
6414
|
NicWriter.write_many(object.nics, writer, 'nic', 'nics') unless object.nics.nil?
|
6415
|
+
NumaNodeWriter.write_many(object.numa_nodes, writer, 'host_numa_node', 'host_numa_nodes') unless object.numa_nodes.nil?
|
6253
6416
|
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
6254
6417
|
QuotaWriter.write_one(object.quota, writer, 'quota') unless object.quota.nil?
|
6255
6418
|
ReportedDeviceWriter.write_many(object.reported_devices, writer, 'reported_device', 'reported_devices') unless object.reported_devices.nil?
|
6419
|
+
SessionWriter.write_many(object.sessions, writer, 'session', 'sessions') unless object.sessions.nil?
|
6256
6420
|
SnapshotWriter.write_many(object.snapshots, writer, 'snapshot', 'snapshots') unless object.snapshots.nil?
|
6421
|
+
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
6257
6422
|
StorageDomainWriter.write_one(object.storage_domain, writer, 'storage_domain') unless object.storage_domain.nil?
|
6423
|
+
TagWriter.write_many(object.tags, writer, 'tag', 'tags') unless object.tags.nil?
|
6258
6424
|
TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
|
6259
6425
|
VmPoolWriter.write_one(object.vm_pool, writer, 'vm_pool') unless object.vm_pool.nil?
|
6260
6426
|
WatchdogWriter.write_many(object.watchdogs, writer, 'watchdog', 'watchdogs') unless object.watchdogs.nil?
|
@@ -6280,7 +6446,7 @@ module OvirtSDK4
|
|
6280
6446
|
class VmBaseWriter < Writer # :nodoc:
|
6281
6447
|
|
6282
6448
|
def self.write_one(object, writer, singular = nil)
|
6283
|
-
singular ||= '
|
6449
|
+
singular ||= 'vm_base'
|
6284
6450
|
writer.write_start(singular)
|
6285
6451
|
href = object.href
|
6286
6452
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -6329,8 +6495,8 @@ module OvirtSDK4
|
|
6329
6495
|
end
|
6330
6496
|
|
6331
6497
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
6332
|
-
singular ||= '
|
6333
|
-
plural ||= '
|
6498
|
+
singular ||= 'vm_base'
|
6499
|
+
plural ||= 'vm_bases'
|
6334
6500
|
writer.write_start(plural)
|
6335
6501
|
if list.is_a?(List)
|
6336
6502
|
href = list.href
|
@@ -6347,7 +6513,7 @@ module OvirtSDK4
|
|
6347
6513
|
class VmPlacementPolicyWriter < Writer # :nodoc:
|
6348
6514
|
|
6349
6515
|
def self.write_one(object, writer, singular = nil)
|
6350
|
-
singular ||= '
|
6516
|
+
singular ||= 'vm_placement_policy'
|
6351
6517
|
writer.write_start(singular)
|
6352
6518
|
href = object.href
|
6353
6519
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -6357,8 +6523,8 @@ module OvirtSDK4
|
|
6357
6523
|
end
|
6358
6524
|
|
6359
6525
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
6360
|
-
singular ||= '
|
6361
|
-
plural ||= '
|
6526
|
+
singular ||= 'vm_placement_policy'
|
6527
|
+
plural ||= 'vm_placement_policies'
|
6362
6528
|
writer.write_start(plural)
|
6363
6529
|
if list.is_a?(List)
|
6364
6530
|
href = list.href
|
@@ -6375,7 +6541,7 @@ module OvirtSDK4
|
|
6375
6541
|
class VmPoolWriter < Writer # :nodoc:
|
6376
6542
|
|
6377
6543
|
def self.write_one(object, writer, singular = nil)
|
6378
|
-
singular ||= '
|
6544
|
+
singular ||= 'vm_pool'
|
6379
6545
|
writer.write_start(singular)
|
6380
6546
|
href = object.href
|
6381
6547
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -6389,18 +6555,20 @@ module OvirtSDK4
|
|
6389
6555
|
RngDeviceWriter.write_one(object.rng_device, writer, 'rng_device') unless object.rng_device.nil?
|
6390
6556
|
Writer.write_integer(writer, 'size', object.size) unless object.size.nil?
|
6391
6557
|
Writer.write_boolean(writer, 'soundcard_enabled', object.soundcard_enabled) unless object.soundcard_enabled.nil?
|
6558
|
+
Writer.write_boolean(writer, 'stateful', object.stateful) unless object.stateful.nil?
|
6392
6559
|
Writer.write_string(writer, 'type', object.type) unless object.type.nil?
|
6393
6560
|
Writer.write_boolean(writer, 'use_latest_template_version', object.use_latest_template_version) unless object.use_latest_template_version.nil?
|
6394
6561
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
6395
6562
|
InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
|
6563
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
6396
6564
|
TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
|
6397
6565
|
VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
|
6398
6566
|
writer.write_end
|
6399
6567
|
end
|
6400
6568
|
|
6401
6569
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
6402
|
-
singular ||= '
|
6403
|
-
plural ||= '
|
6570
|
+
singular ||= 'vm_pool'
|
6571
|
+
plural ||= 'vm_pools'
|
6404
6572
|
writer.write_start(plural)
|
6405
6573
|
if list.is_a?(List)
|
6406
6574
|
href = list.href
|
@@ -6417,7 +6585,7 @@ module OvirtSDK4
|
|
6417
6585
|
class VmSummaryWriter < Writer # :nodoc:
|
6418
6586
|
|
6419
6587
|
def self.write_one(object, writer, singular = nil)
|
6420
|
-
singular ||= '
|
6588
|
+
singular ||= 'vm_summary'
|
6421
6589
|
writer.write_start(singular)
|
6422
6590
|
href = object.href
|
6423
6591
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -6428,8 +6596,8 @@ module OvirtSDK4
|
|
6428
6596
|
end
|
6429
6597
|
|
6430
6598
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
6431
|
-
singular ||= '
|
6432
|
-
plural ||= '
|
6599
|
+
singular ||= 'vm_summary'
|
6600
|
+
plural ||= 'vm_summaries'
|
6433
6601
|
writer.write_start(plural)
|
6434
6602
|
if list.is_a?(List)
|
6435
6603
|
href = list.href
|
@@ -6446,7 +6614,7 @@ module OvirtSDK4
|
|
6446
6614
|
class VnicPassThroughWriter < Writer # :nodoc:
|
6447
6615
|
|
6448
6616
|
def self.write_one(object, writer, singular = nil)
|
6449
|
-
singular ||= '
|
6617
|
+
singular ||= 'vnic_pass_through'
|
6450
6618
|
writer.write_start(singular)
|
6451
6619
|
href = object.href
|
6452
6620
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -6455,8 +6623,8 @@ module OvirtSDK4
|
|
6455
6623
|
end
|
6456
6624
|
|
6457
6625
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
6458
|
-
singular ||= '
|
6459
|
-
plural ||= '
|
6626
|
+
singular ||= 'vnic_pass_through'
|
6627
|
+
plural ||= 'vnic_pass_throughs'
|
6460
6628
|
writer.write_start(plural)
|
6461
6629
|
if list.is_a?(List)
|
6462
6630
|
href = list.href
|
@@ -6473,7 +6641,7 @@ module OvirtSDK4
|
|
6473
6641
|
class VnicProfileWriter < Writer # :nodoc:
|
6474
6642
|
|
6475
6643
|
def self.write_one(object, writer, singular = nil)
|
6476
|
-
singular ||= '
|
6644
|
+
singular ||= 'vnic_profile'
|
6477
6645
|
writer.write_start(singular)
|
6478
6646
|
href = object.href
|
6479
6647
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -6486,13 +6654,14 @@ module OvirtSDK4
|
|
6486
6654
|
Writer.write_boolean(writer, 'port_mirroring', object.port_mirroring) unless object.port_mirroring.nil?
|
6487
6655
|
NetworkWriter.write_one(object.network, writer, 'network') unless object.network.nil?
|
6488
6656
|
NetworkFilterWriter.write_one(object.network_filter, writer, 'network_filter') unless object.network_filter.nil?
|
6657
|
+
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
6489
6658
|
QosWriter.write_one(object.qos, writer, 'qos') unless object.qos.nil?
|
6490
6659
|
writer.write_end
|
6491
6660
|
end
|
6492
6661
|
|
6493
6662
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
6494
|
-
singular ||= '
|
6495
|
-
plural ||= '
|
6663
|
+
singular ||= 'vnic_profile'
|
6664
|
+
plural ||= 'vnic_profiles'
|
6496
6665
|
writer.write_start(plural)
|
6497
6666
|
if list.is_a?(List)
|
6498
6667
|
href = list.href
|
@@ -6509,7 +6678,7 @@ module OvirtSDK4
|
|
6509
6678
|
class VolumeGroupWriter < Writer # :nodoc:
|
6510
6679
|
|
6511
6680
|
def self.write_one(object, writer, singular = nil)
|
6512
|
-
singular ||= '
|
6681
|
+
singular ||= 'volume_group'
|
6513
6682
|
writer.write_start(singular)
|
6514
6683
|
href = object.href
|
6515
6684
|
writer.write_attribute('href', href) unless href.nil?
|
@@ -6520,8 +6689,8 @@ module OvirtSDK4
|
|
6520
6689
|
end
|
6521
6690
|
|
6522
6691
|
def self.write_many(list, writer, singular = nil, plural = nil)
|
6523
|
-
singular ||= '
|
6524
|
-
plural ||= '
|
6692
|
+
singular ||= 'volume_group'
|
6693
|
+
plural ||= 'volume_groups'
|
6525
6694
|
writer.write_start(plural)
|
6526
6695
|
if list.is_a?(List)
|
6527
6696
|
href = list.href
|