ovirt-engine-sdk 4.2.0.alpha2 → 4.2.0.alpha3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.adoc +67 -0
- data/README.adoc +66 -23
- data/ext/ovirtsdk4c/ov_error.c +9 -2
- data/ext/ovirtsdk4c/ov_error.h +3 -1
- data/ext/ovirtsdk4c/ov_http_client.c +26 -7
- data/lib/ovirtsdk4.rb +2 -2
- data/lib/ovirtsdk4/connection.rb +169 -140
- data/lib/ovirtsdk4/{error.rb → errors.rb} +33 -1
- data/lib/ovirtsdk4/probe.rb +2 -2
- data/lib/ovirtsdk4/reader.rb +3 -3
- data/lib/ovirtsdk4/readers.rb +408 -1
- data/lib/ovirtsdk4/service.rb +65 -30
- data/lib/ovirtsdk4/services.rb +4788 -1598
- data/lib/ovirtsdk4/types.rb +1196 -10
- data/lib/ovirtsdk4/version.rb +1 -1
- data/lib/ovirtsdk4/writers.rb +152 -1
- metadata +32 -32
data/lib/ovirtsdk4/version.rb
CHANGED
data/lib/ovirtsdk4/writers.rb
CHANGED
@@ -27,13 +27,17 @@ module OvirtSDK4
|
|
27
27
|
writer.write_attribute('id', object.id) unless object.id.nil?
|
28
28
|
Writer.write_boolean(writer, 'allow_partial_import', object.allow_partial_import) unless object.allow_partial_import.nil?
|
29
29
|
Writer.write_boolean(writer, 'async', object.async) unless object.async.nil?
|
30
|
+
DiskAttachmentWriter.write_one(object.attachment, writer, 'attachment') unless object.attachment.nil?
|
31
|
+
AuthorizedKeyWriter.write_one(object.authorized_key, writer, 'authorized_key') unless object.authorized_key.nil?
|
30
32
|
GlusterBrickWriter.write_many(object.bricks, writer, 'brick', 'bricks') unless object.bricks.nil?
|
31
33
|
CertificateWriter.write_many(object.certificates, writer, 'certificate', 'certificates') unless object.certificates.nil?
|
32
34
|
Writer.write_boolean(writer, 'check_connectivity', object.check_connectivity) unless object.check_connectivity.nil?
|
33
35
|
Writer.write_boolean(writer, 'clone', object.clone) unless object.clone.nil?
|
36
|
+
Writer.write_boolean(writer, 'clone_permissions', object.clone_permissions) unless object.clone_permissions.nil?
|
34
37
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
35
38
|
Writer.write_boolean(writer, 'collapse_snapshots', object.collapse_snapshots) unless object.collapse_snapshots.nil?
|
36
39
|
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
40
|
+
StorageConnectionWriter.write_one(object.connection, writer, 'connection') unless object.connection.nil?
|
37
41
|
Writer.write_integer(writer, 'connectivity_timeout', object.connectivity_timeout) unless object.connectivity_timeout.nil?
|
38
42
|
DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
|
39
43
|
Writer.write_boolean(writer, 'deploy_hosted_engine', object.deploy_hosted_engine) unless object.deploy_hosted_engine.nil?
|
@@ -51,6 +55,7 @@ module OvirtSDK4
|
|
51
55
|
GracePeriodWriter.write_one(object.grace_period, writer, 'grace_period') unless object.grace_period.nil?
|
52
56
|
HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
|
53
57
|
Writer.write_string(writer, 'image', object.image) unless object.image.nil?
|
58
|
+
ImageTransferWriter.write_one(object.image_transfer, writer, 'image_transfer') unless object.image_transfer.nil?
|
54
59
|
Writer.write_boolean(writer, 'import_as_template', object.import_as_template) unless object.import_as_template.nil?
|
55
60
|
Writer.write_boolean(writer, 'is_attached', object.is_attached) unless object.is_attached.nil?
|
56
61
|
IscsiDetailsWriter.write_one(object.iscsi, writer, 'iscsi') unless object.iscsi.nil?
|
@@ -70,6 +75,7 @@ module OvirtSDK4
|
|
70
75
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
71
76
|
OptionWriter.write_one(object.option, writer, 'option') unless object.option.nil?
|
72
77
|
Writer.write_boolean(writer, 'pause', object.pause) unless object.pause.nil?
|
78
|
+
PermissionWriter.write_one(object.permission, writer, 'permission') unless object.permission.nil?
|
73
79
|
PowerManagementWriter.write_one(object.power_management, writer, 'power_management') unless object.power_management.nil?
|
74
80
|
ProxyTicketWriter.write_one(object.proxy_ticket, writer, 'proxy_ticket') unless object.proxy_ticket.nil?
|
75
81
|
Writer.write_string(writer, 'reason', object.reason) unless object.reason.nil?
|
@@ -97,6 +103,7 @@ module OvirtSDK4
|
|
97
103
|
HostNicVirtualFunctionsConfigurationWriter.write_one(object.virtual_functions_configuration, writer, 'virtual_functions_configuration') unless object.virtual_functions_configuration.nil?
|
98
104
|
VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
|
99
105
|
VnicProfileMappingWriter.write_many(object.vnic_profile_mappings, writer, 'vnic_profile_mapping', 'vnic_profile_mappings') unless object.vnic_profile_mappings.nil?
|
106
|
+
Writer.write_boolean(writer, 'volatile', object.volatile) unless object.volatile.nil?
|
100
107
|
writer.write_end
|
101
108
|
end
|
102
109
|
|
@@ -790,6 +797,7 @@ module OvirtSDK4
|
|
790
797
|
DisplayWriter.write_one(object.display, writer, 'display') unless object.display.nil?
|
791
798
|
ErrorHandlingWriter.write_one(object.error_handling, writer, 'error_handling') unless object.error_handling.nil?
|
792
799
|
FencingPolicyWriter.write_one(object.fencing_policy, writer, 'fencing_policy') unless object.fencing_policy.nil?
|
800
|
+
Writer.write_string(writer, 'firewall_type', object.firewall_type) unless object.firewall_type.nil?
|
793
801
|
Writer.write_boolean(writer, 'gluster_service', object.gluster_service) unless object.gluster_service.nil?
|
794
802
|
Writer.write_string(writer, 'gluster_tuned_profile', object.gluster_tuned_profile) unless object.gluster_tuned_profile.nil?
|
795
803
|
Writer.write_boolean(writer, 'ha_reservation', object.ha_reservation) unless object.ha_reservation.nil?
|
@@ -817,6 +825,7 @@ module OvirtSDK4
|
|
817
825
|
AffinityGroupWriter.write_many(object.affinity_groups, writer, 'affinity_group', 'affinity_groups') unless object.affinity_groups.nil?
|
818
826
|
CpuProfileWriter.write_many(object.cpu_profiles, writer, 'cpu_profile', 'cpu_profiles') unless object.cpu_profiles.nil?
|
819
827
|
DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
|
828
|
+
ClusterFeatureWriter.write_many(object.enabled_features, writer, 'cluster_feature', 'enabled_features') unless object.enabled_features.nil?
|
820
829
|
GlusterHookWriter.write_many(object.gluster_hooks, writer, 'gluster_hook', 'gluster_hooks') unless object.gluster_hooks.nil?
|
821
830
|
GlusterVolumeWriter.write_many(object.gluster_volumes, writer, 'gluster_volume', 'gluster_volumes') unless object.gluster_volumes.nil?
|
822
831
|
MacPoolWriter.write_one(object.mac_pool, writer, 'mac_pool') unless object.mac_pool.nil?
|
@@ -844,6 +853,37 @@ module OvirtSDK4
|
|
844
853
|
|
845
854
|
end
|
846
855
|
|
856
|
+
class ClusterFeatureWriter < Writer
|
857
|
+
|
858
|
+
def self.write_one(object, writer, singular = nil)
|
859
|
+
singular ||= 'cluster_feature'
|
860
|
+
writer.write_start(singular)
|
861
|
+
href = object.href
|
862
|
+
writer.write_attribute('href', href) unless href.nil?
|
863
|
+
writer.write_attribute('id', object.id) unless object.id.nil?
|
864
|
+
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
865
|
+
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
866
|
+
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
867
|
+
ClusterLevelWriter.write_one(object.cluster_level, writer, 'cluster_level') unless object.cluster_level.nil?
|
868
|
+
writer.write_end
|
869
|
+
end
|
870
|
+
|
871
|
+
def self.write_many(list, writer, singular = nil, plural = nil)
|
872
|
+
singular ||= 'cluster_feature'
|
873
|
+
plural ||= 'cluster_features'
|
874
|
+
writer.write_start(plural)
|
875
|
+
if list.is_a?(List)
|
876
|
+
href = list.href
|
877
|
+
writer.write_attribute('href', href) unless href.nil?
|
878
|
+
end
|
879
|
+
list.each do |item|
|
880
|
+
write_one(item, writer, singular)
|
881
|
+
end
|
882
|
+
writer.write_end
|
883
|
+
end
|
884
|
+
|
885
|
+
end
|
886
|
+
|
847
887
|
class ClusterLevelWriter < Writer
|
848
888
|
|
849
889
|
def self.write_one(object, writer, singular = nil)
|
@@ -857,6 +897,7 @@ module OvirtSDK4
|
|
857
897
|
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
858
898
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
859
899
|
PermitWriter.write_many(object.permits, writer, 'permit', 'permits') unless object.permits.nil?
|
900
|
+
ClusterFeatureWriter.write_many(object.cluster_features, writer, 'cluster_feature', 'cluster_features') unless object.cluster_features.nil?
|
860
901
|
writer.write_end
|
861
902
|
end
|
862
903
|
|
@@ -1249,6 +1290,7 @@ module OvirtSDK4
|
|
1249
1290
|
Writer.write_boolean(writer, 'sparse', object.sparse) unless object.sparse.nil?
|
1250
1291
|
Writer.write_string(writer, 'status', object.status) unless object.status.nil?
|
1251
1292
|
Writer.write_string(writer, 'storage_type', object.storage_type) unless object.storage_type.nil?
|
1293
|
+
Writer.write_integer(writer, 'total_size', object.total_size) unless object.total_size.nil?
|
1252
1294
|
Writer.write_boolean(writer, 'uses_scsi_reservation', object.uses_scsi_reservation) unless object.uses_scsi_reservation.nil?
|
1253
1295
|
Writer.write_boolean(writer, 'wipe_after_delete', object.wipe_after_delete) unless object.wipe_after_delete.nil?
|
1254
1296
|
DiskProfileWriter.write_one(object.disk_profile, writer, 'disk_profile') unless object.disk_profile.nil?
|
@@ -1298,6 +1340,7 @@ module OvirtSDK4
|
|
1298
1340
|
Writer.write_string(writer, 'logical_name', object.logical_name) unless object.logical_name.nil?
|
1299
1341
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
1300
1342
|
Writer.write_boolean(writer, 'pass_discard', object.pass_discard) unless object.pass_discard.nil?
|
1343
|
+
Writer.write_boolean(writer, 'read_only', object.read_only) unless object.read_only.nil?
|
1301
1344
|
Writer.write_boolean(writer, 'uses_scsi_reservation', object.uses_scsi_reservation) unless object.uses_scsi_reservation.nil?
|
1302
1345
|
DiskWriter.write_one(object.disk, writer, 'disk') unless object.disk.nil?
|
1303
1346
|
TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
|
@@ -1384,6 +1427,7 @@ module OvirtSDK4
|
|
1384
1427
|
Writer.write_boolean(writer, 'sparse', object.sparse) unless object.sparse.nil?
|
1385
1428
|
Writer.write_string(writer, 'status', object.status) unless object.status.nil?
|
1386
1429
|
Writer.write_string(writer, 'storage_type', object.storage_type) unless object.storage_type.nil?
|
1430
|
+
Writer.write_integer(writer, 'total_size', object.total_size) unless object.total_size.nil?
|
1387
1431
|
Writer.write_boolean(writer, 'uses_scsi_reservation', object.uses_scsi_reservation) unless object.uses_scsi_reservation.nil?
|
1388
1432
|
Writer.write_boolean(writer, 'wipe_after_delete', object.wipe_after_delete) unless object.wipe_after_delete.nil?
|
1389
1433
|
DiskWriter.write_one(object.disk, writer, 'disk') unless object.disk.nil?
|
@@ -1621,6 +1665,7 @@ module OvirtSDK4
|
|
1621
1665
|
Writer.write_integer(writer, 'custom_id', object.custom_id) unless object.custom_id.nil?
|
1622
1666
|
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
1623
1667
|
Writer.write_integer(writer, 'flood_rate', object.flood_rate) unless object.flood_rate.nil?
|
1668
|
+
Writer.write_integer(writer, 'index', object.index) unless object.index.nil?
|
1624
1669
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
1625
1670
|
Writer.write_string(writer, 'origin', object.origin) unless object.origin.nil?
|
1626
1671
|
Writer.write_string(writer, 'severity', object.severity) unless object.severity.nil?
|
@@ -2708,7 +2753,7 @@ module OvirtSDK4
|
|
2708
2753
|
HookWriter.write_many(object.hooks, writer, 'hook', 'hooks') unless object.hooks.nil?
|
2709
2754
|
KatelloErratumWriter.write_many(object.katello_errata, writer, 'katello_erratum', 'katello_errata') unless object.katello_errata.nil?
|
2710
2755
|
NetworkAttachmentWriter.write_many(object.network_attachments, writer, 'network_attachment', 'network_attachments') unless object.network_attachments.nil?
|
2711
|
-
|
2756
|
+
HostNicWriter.write_many(object.nics, writer, 'host_nic', 'nics') unless object.nics.nil?
|
2712
2757
|
NumaNodeWriter.write_many(object.numa_nodes, writer, 'host_numa_node', 'host_numa_nodes') unless object.numa_nodes.nil?
|
2713
2758
|
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
2714
2759
|
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
@@ -2746,6 +2791,7 @@ module OvirtSDK4
|
|
2746
2791
|
Writer.write_string(writer, 'capability', object.capability) unless object.capability.nil?
|
2747
2792
|
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
2748
2793
|
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
2794
|
+
Writer.write_string(writer, 'driver', object.driver) unless object.driver.nil?
|
2749
2795
|
Writer.write_integer(writer, 'iommu_group', object.iommu_group) unless object.iommu_group.nil?
|
2750
2796
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
2751
2797
|
HostDeviceWriter.write_one(object.physical_function, writer, 'physical_function') unless object.physical_function.nil?
|
@@ -3036,6 +3082,8 @@ module OvirtSDK4
|
|
3036
3082
|
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
3037
3083
|
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
3038
3084
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
3085
|
+
Writer.write_integer(writer, 'size', object.size) unless object.size.nil?
|
3086
|
+
Writer.write_string(writer, 'type', object.type) unless object.type.nil?
|
3039
3087
|
StorageDomainWriter.write_one(object.storage_domain, writer, 'storage_domain') unless object.storage_domain.nil?
|
3040
3088
|
writer.write_end
|
3041
3089
|
end
|
@@ -3071,8 +3119,10 @@ module OvirtSDK4
|
|
3071
3119
|
Writer.write_string(writer, 'phase', object.phase) unless object.phase.nil?
|
3072
3120
|
Writer.write_string(writer, 'proxy_url', object.proxy_url) unless object.proxy_url.nil?
|
3073
3121
|
Writer.write_string(writer, 'signed_ticket', object.signed_ticket) unless object.signed_ticket.nil?
|
3122
|
+
DiskWriter.write_one(object.disk, writer, 'disk') unless object.disk.nil?
|
3074
3123
|
HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
|
3075
3124
|
ImageWriter.write_one(object.image, writer, 'image') unless object.image.nil?
|
3125
|
+
DiskSnapshotWriter.write_one(object.snapshot, writer, 'snapshot') unless object.snapshot.nil?
|
3076
3126
|
writer.write_end
|
3077
3127
|
end
|
3078
3128
|
|
@@ -3511,6 +3561,40 @@ module OvirtSDK4
|
|
3511
3561
|
|
3512
3562
|
end
|
3513
3563
|
|
3564
|
+
class LinkLayerDiscoveryProtocolElementWriter < Writer
|
3565
|
+
|
3566
|
+
def self.write_one(object, writer, singular = nil)
|
3567
|
+
singular ||= 'link_layer_discovery_protocol_element'
|
3568
|
+
writer.write_start(singular)
|
3569
|
+
href = object.href
|
3570
|
+
writer.write_attribute('href', href) unless href.nil?
|
3571
|
+
writer.write_attribute('id', object.id) unless object.id.nil?
|
3572
|
+
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
3573
|
+
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
3574
|
+
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
3575
|
+
Writer.write_integer(writer, 'oui', object.oui) unless object.oui.nil?
|
3576
|
+
PropertyWriter.write_many(object.properties, writer, 'property', 'properties') unless object.properties.nil?
|
3577
|
+
Writer.write_integer(writer, 'subtype', object.subtype) unless object.subtype.nil?
|
3578
|
+
Writer.write_integer(writer, 'type', object.type) unless object.type.nil?
|
3579
|
+
writer.write_end
|
3580
|
+
end
|
3581
|
+
|
3582
|
+
def self.write_many(list, writer, singular = nil, plural = nil)
|
3583
|
+
singular ||= 'link_layer_discovery_protocol_element'
|
3584
|
+
plural ||= 'link_layer_discovery_protocol_elements'
|
3585
|
+
writer.write_start(plural)
|
3586
|
+
if list.is_a?(List)
|
3587
|
+
href = list.href
|
3588
|
+
writer.write_attribute('href', href) unless href.nil?
|
3589
|
+
end
|
3590
|
+
list.each do |item|
|
3591
|
+
write_one(item, writer, singular)
|
3592
|
+
end
|
3593
|
+
writer.write_end
|
3594
|
+
end
|
3595
|
+
|
3596
|
+
end
|
3597
|
+
|
3514
3598
|
class LogicalUnitWriter < Writer
|
3515
3599
|
|
3516
3600
|
def self.write_one(object, writer, singular = nil)
|
@@ -3951,6 +4035,7 @@ module OvirtSDK4
|
|
3951
4035
|
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
3952
4036
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
3953
4037
|
Writer.write_string(writer, 'value', object.value) unless object.value.nil?
|
4038
|
+
NicWriter.write_one(object.nic, writer, 'nic') unless object.nic.nil?
|
3954
4039
|
writer.write_end
|
3955
4040
|
end
|
3956
4041
|
|
@@ -5548,6 +5633,7 @@ module OvirtSDK4
|
|
5548
5633
|
Writer.write_string(writer, 'fqdn', object.fqdn) unless object.fqdn.nil?
|
5549
5634
|
GuestOperatingSystemWriter.write_one(object.guest_operating_system, writer, 'guest_operating_system') unless object.guest_operating_system.nil?
|
5550
5635
|
TimeZoneWriter.write_one(object.guest_time_zone, writer, 'guest_time_zone') unless object.guest_time_zone.nil?
|
5636
|
+
Writer.write_boolean(writer, 'has_illegal_images', object.has_illegal_images) unless object.has_illegal_images.nil?
|
5551
5637
|
HighAvailabilityWriter.write_one(object.high_availability, writer, 'high_availability') unless object.high_availability.nil?
|
5552
5638
|
InitializationWriter.write_one(object.initialization, writer, 'initialization') unless object.initialization.nil?
|
5553
5639
|
IoWriter.write_one(object.io, writer, 'io') unless object.io.nil?
|
@@ -5954,6 +6040,7 @@ module OvirtSDK4
|
|
5954
6040
|
writer.write_attribute('href', href) unless href.nil?
|
5955
6041
|
writer.write_attribute('id', object.id) unless object.id.nil?
|
5956
6042
|
Writer.write_integer(writer, 'available', object.available) unless object.available.nil?
|
6043
|
+
Writer.write_boolean(writer, 'backup', object.backup) unless object.backup.nil?
|
5957
6044
|
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
5958
6045
|
Writer.write_integer(writer, 'committed', object.committed) unless object.committed.nil?
|
5959
6046
|
Writer.write_integer(writer, 'critical_space_action_blocker', object.critical_space_action_blocker) unless object.critical_space_action_blocker.nil?
|
@@ -6030,6 +6117,65 @@ module OvirtSDK4
|
|
6030
6117
|
|
6031
6118
|
end
|
6032
6119
|
|
6120
|
+
class SystemOptionWriter < Writer
|
6121
|
+
|
6122
|
+
def self.write_one(object, writer, singular = nil)
|
6123
|
+
singular ||= 'system_option'
|
6124
|
+
writer.write_start(singular)
|
6125
|
+
href = object.href
|
6126
|
+
writer.write_attribute('href', href) unless href.nil?
|
6127
|
+
writer.write_attribute('id', object.id) unless object.id.nil?
|
6128
|
+
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
6129
|
+
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
6130
|
+
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
6131
|
+
SystemOptionValueWriter.write_many(object.values, writer, 'system_option_value', 'values') unless object.values.nil?
|
6132
|
+
writer.write_end
|
6133
|
+
end
|
6134
|
+
|
6135
|
+
def self.write_many(list, writer, singular = nil, plural = nil)
|
6136
|
+
singular ||= 'system_option'
|
6137
|
+
plural ||= 'system_options'
|
6138
|
+
writer.write_start(plural)
|
6139
|
+
if list.is_a?(List)
|
6140
|
+
href = list.href
|
6141
|
+
writer.write_attribute('href', href) unless href.nil?
|
6142
|
+
end
|
6143
|
+
list.each do |item|
|
6144
|
+
write_one(item, writer, singular)
|
6145
|
+
end
|
6146
|
+
writer.write_end
|
6147
|
+
end
|
6148
|
+
|
6149
|
+
end
|
6150
|
+
|
6151
|
+
class SystemOptionValueWriter < Writer
|
6152
|
+
|
6153
|
+
def self.write_one(object, writer, singular = nil)
|
6154
|
+
singular ||= 'system_option_value'
|
6155
|
+
writer.write_start(singular)
|
6156
|
+
href = object.href
|
6157
|
+
writer.write_attribute('href', href) unless href.nil?
|
6158
|
+
Writer.write_string(writer, 'value', object.value) unless object.value.nil?
|
6159
|
+
Writer.write_string(writer, 'version', object.version) unless object.version.nil?
|
6160
|
+
writer.write_end
|
6161
|
+
end
|
6162
|
+
|
6163
|
+
def self.write_many(list, writer, singular = nil, plural = nil)
|
6164
|
+
singular ||= 'system_option_value'
|
6165
|
+
plural ||= 'system_option_values'
|
6166
|
+
writer.write_start(plural)
|
6167
|
+
if list.is_a?(List)
|
6168
|
+
href = list.href
|
6169
|
+
writer.write_attribute('href', href) unless href.nil?
|
6170
|
+
end
|
6171
|
+
list.each do |item|
|
6172
|
+
write_one(item, writer, singular)
|
6173
|
+
end
|
6174
|
+
writer.write_end
|
6175
|
+
end
|
6176
|
+
|
6177
|
+
end
|
6178
|
+
|
6033
6179
|
class TagWriter < Writer
|
6034
6180
|
|
6035
6181
|
def self.write_one(object, writer, singular = nil)
|
@@ -6600,6 +6746,7 @@ module OvirtSDK4
|
|
6600
6746
|
Writer.write_string(writer, 'fqdn', object.fqdn) unless object.fqdn.nil?
|
6601
6747
|
GuestOperatingSystemWriter.write_one(object.guest_operating_system, writer, 'guest_operating_system') unless object.guest_operating_system.nil?
|
6602
6748
|
TimeZoneWriter.write_one(object.guest_time_zone, writer, 'guest_time_zone') unless object.guest_time_zone.nil?
|
6749
|
+
Writer.write_boolean(writer, 'has_illegal_images', object.has_illegal_images) unless object.has_illegal_images.nil?
|
6603
6750
|
HighAvailabilityWriter.write_one(object.high_availability, writer, 'high_availability') unless object.high_availability.nil?
|
6604
6751
|
InitializationWriter.write_one(object.initialization, writer, 'initialization') unless object.initialization.nil?
|
6605
6752
|
IoWriter.write_one(object.io, writer, 'io') unless object.io.nil?
|
@@ -7067,6 +7214,7 @@ module OvirtSDK4
|
|
7067
7214
|
Writer.register(Certificate, CertificateWriter.method(:write_one))
|
7068
7215
|
Writer.register(CloudInit, CloudInitWriter.method(:write_one))
|
7069
7216
|
Writer.register(Cluster, ClusterWriter.method(:write_one))
|
7217
|
+
Writer.register(ClusterFeature, ClusterFeatureWriter.method(:write_one))
|
7070
7218
|
Writer.register(ClusterLevel, ClusterLevelWriter.method(:write_one))
|
7071
7219
|
Writer.register(Configuration, ConfigurationWriter.method(:write_one))
|
7072
7220
|
Writer.register(Console, ConsoleWriter.method(:write_one))
|
@@ -7141,6 +7289,7 @@ module OvirtSDK4
|
|
7141
7289
|
Writer.register(KatelloErratum, KatelloErratumWriter.method(:write_one))
|
7142
7290
|
Writer.register(Kernel, KernelWriter.method(:write_one))
|
7143
7291
|
Writer.register(Ksm, KsmWriter.method(:write_one))
|
7292
|
+
Writer.register(LinkLayerDiscoveryProtocolElement, LinkLayerDiscoveryProtocolElementWriter.method(:write_one))
|
7144
7293
|
Writer.register(LogicalUnit, LogicalUnitWriter.method(:write_one))
|
7145
7294
|
Writer.register(Mac, MacWriter.method(:write_one))
|
7146
7295
|
Writer.register(MacPool, MacPoolWriter.method(:write_one))
|
@@ -7214,6 +7363,8 @@ module OvirtSDK4
|
|
7214
7363
|
Writer.register(StorageConnectionExtension, StorageConnectionExtensionWriter.method(:write_one))
|
7215
7364
|
Writer.register(StorageDomain, StorageDomainWriter.method(:write_one))
|
7216
7365
|
Writer.register(StorageDomainLease, StorageDomainLeaseWriter.method(:write_one))
|
7366
|
+
Writer.register(SystemOption, SystemOptionWriter.method(:write_one))
|
7367
|
+
Writer.register(SystemOptionValue, SystemOptionValueWriter.method(:write_one))
|
7217
7368
|
Writer.register(Tag, TagWriter.method(:write_one))
|
7218
7369
|
Writer.register(Template, TemplateWriter.method(:write_one))
|
7219
7370
|
Writer.register(TemplateVersion, TemplateVersionWriter.method(:write_one))
|
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ovirt-engine-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.0.
|
4
|
+
version: 4.2.0.alpha3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Hernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '11.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '11.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake-compiler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0.9'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.9'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0.44'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.44'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: yard
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0.8'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0.8'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: json
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
description: Ruby SDK for the oVirt Engine API.
|
@@ -102,43 +102,43 @@ extensions:
|
|
102
102
|
- ext/ovirtsdk4c/extconf.rb
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
|
-
- .yardopts
|
105
|
+
- ".yardopts"
|
106
106
|
- CHANGES.adoc
|
107
107
|
- LICENSE.txt
|
108
108
|
- README.adoc
|
109
109
|
- ext/ovirtsdk4c/extconf.rb
|
110
110
|
- ext/ovirtsdk4c/ov_error.c
|
111
|
-
- ext/ovirtsdk4c/ov_http_client.c
|
112
|
-
- ext/ovirtsdk4c/ov_http_request.c
|
113
|
-
- ext/ovirtsdk4c/ov_http_response.c
|
114
|
-
- ext/ovirtsdk4c/ov_http_transfer.c
|
115
|
-
- ext/ovirtsdk4c/ov_module.c
|
116
|
-
- ext/ovirtsdk4c/ov_string.c
|
117
|
-
- ext/ovirtsdk4c/ov_xml_reader.c
|
118
|
-
- ext/ovirtsdk4c/ov_xml_writer.c
|
119
|
-
- ext/ovirtsdk4c/ovirtsdk4c.c
|
120
111
|
- ext/ovirtsdk4c/ov_error.h
|
112
|
+
- ext/ovirtsdk4c/ov_http_client.c
|
121
113
|
- ext/ovirtsdk4c/ov_http_client.h
|
114
|
+
- ext/ovirtsdk4c/ov_http_request.c
|
122
115
|
- ext/ovirtsdk4c/ov_http_request.h
|
116
|
+
- ext/ovirtsdk4c/ov_http_response.c
|
123
117
|
- ext/ovirtsdk4c/ov_http_response.h
|
118
|
+
- ext/ovirtsdk4c/ov_http_transfer.c
|
124
119
|
- ext/ovirtsdk4c/ov_http_transfer.h
|
120
|
+
- ext/ovirtsdk4c/ov_module.c
|
125
121
|
- ext/ovirtsdk4c/ov_module.h
|
122
|
+
- ext/ovirtsdk4c/ov_string.c
|
126
123
|
- ext/ovirtsdk4c/ov_string.h
|
124
|
+
- ext/ovirtsdk4c/ov_xml_reader.c
|
127
125
|
- ext/ovirtsdk4c/ov_xml_reader.h
|
126
|
+
- ext/ovirtsdk4c/ov_xml_writer.c
|
128
127
|
- ext/ovirtsdk4c/ov_xml_writer.h
|
128
|
+
- ext/ovirtsdk4c/ovirtsdk4c.c
|
129
129
|
- lib/ovirtsdk4.rb
|
130
130
|
- lib/ovirtsdk4/connection.rb
|
131
|
-
- lib/ovirtsdk4/
|
131
|
+
- lib/ovirtsdk4/errors.rb
|
132
132
|
- lib/ovirtsdk4/probe.rb
|
133
133
|
- lib/ovirtsdk4/reader.rb
|
134
|
+
- lib/ovirtsdk4/readers.rb
|
134
135
|
- lib/ovirtsdk4/service.rb
|
135
|
-
- lib/ovirtsdk4/type.rb
|
136
|
-
- lib/ovirtsdk4/writer.rb
|
137
|
-
- lib/ovirtsdk4/version.rb
|
138
136
|
- lib/ovirtsdk4/services.rb
|
137
|
+
- lib/ovirtsdk4/type.rb
|
139
138
|
- lib/ovirtsdk4/types.rb
|
139
|
+
- lib/ovirtsdk4/version.rb
|
140
|
+
- lib/ovirtsdk4/writer.rb
|
140
141
|
- lib/ovirtsdk4/writers.rb
|
141
|
-
- lib/ovirtsdk4/readers.rb
|
142
142
|
homepage: http://ovirt.org
|
143
143
|
licenses:
|
144
144
|
- Apache-2.0
|
@@ -149,17 +149,17 @@ require_paths:
|
|
149
149
|
- lib
|
150
150
|
required_ruby_version: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- -
|
152
|
+
- - ">="
|
153
153
|
- !ruby/object:Gem::Version
|
154
154
|
version: '2.0'
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ">"
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: 1.3.1
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.
|
162
|
+
rubygems_version: 2.6.11
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: oVirt SDK
|