ovirt-engine-sdk 4.1.13 → 4.2.0.alpha1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.adoc +2 -96
- data/README.adoc +22 -74
- data/ext/ovirtsdk4c/ov_http_client.c +27 -140
- data/ext/ovirtsdk4c/ov_http_client.h +1 -6
- data/ext/ovirtsdk4c/ov_http_request.c +40 -79
- data/ext/ovirtsdk4c/ov_http_request.h +10 -11
- data/ext/ovirtsdk4c/ov_http_response.c +0 -14
- data/ext/ovirtsdk4c/ov_http_transfer.c +0 -11
- data/ext/ovirtsdk4c/ov_module.h +2 -2
- data/lib/ovirtsdk4/connection.rb +57 -122
- data/lib/ovirtsdk4/probe.rb +2 -55
- data/lib/ovirtsdk4/reader.rb +3 -3
- data/lib/ovirtsdk4/readers.rb +91 -206
- data/lib/ovirtsdk4/service.rb +31 -104
- data/lib/ovirtsdk4/services.rb +9612 -7822
- data/lib/ovirtsdk4/types.rb +225 -491
- data/lib/ovirtsdk4/version.rb +1 -1
- data/lib/ovirtsdk4/writers.rb +36 -73
- metadata +5 -5
data/lib/ovirtsdk4/version.rb
CHANGED
data/lib/ovirtsdk4/writers.rb
CHANGED
@@ -817,7 +817,6 @@ module OvirtSDK4
|
|
817
817
|
AffinityGroupWriter.write_many(object.affinity_groups, writer, 'affinity_group', 'affinity_groups') unless object.affinity_groups.nil?
|
818
818
|
CpuProfileWriter.write_many(object.cpu_profiles, writer, 'cpu_profile', 'cpu_profiles') unless object.cpu_profiles.nil?
|
819
819
|
DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
|
820
|
-
ClusterFeatureWriter.write_many(object.enabled_features, writer, 'cluster_feature', 'enabled_features') unless object.enabled_features.nil?
|
821
820
|
GlusterHookWriter.write_many(object.gluster_hooks, writer, 'gluster_hook', 'gluster_hooks') unless object.gluster_hooks.nil?
|
822
821
|
GlusterVolumeWriter.write_many(object.gluster_volumes, writer, 'gluster_volume', 'gluster_volumes') unless object.gluster_volumes.nil?
|
823
822
|
MacPoolWriter.write_one(object.mac_pool, writer, 'mac_pool') unless object.mac_pool.nil?
|
@@ -845,37 +844,6 @@ module OvirtSDK4
|
|
845
844
|
|
846
845
|
end
|
847
846
|
|
848
|
-
class ClusterFeatureWriter < Writer
|
849
|
-
|
850
|
-
def self.write_one(object, writer, singular = nil)
|
851
|
-
singular ||= 'cluster_feature'
|
852
|
-
writer.write_start(singular)
|
853
|
-
href = object.href
|
854
|
-
writer.write_attribute('href', href) unless href.nil?
|
855
|
-
writer.write_attribute('id', object.id) unless object.id.nil?
|
856
|
-
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
857
|
-
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
858
|
-
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
859
|
-
ClusterLevelWriter.write_one(object.cluster_level, writer, 'cluster_level') unless object.cluster_level.nil?
|
860
|
-
writer.write_end
|
861
|
-
end
|
862
|
-
|
863
|
-
def self.write_many(list, writer, singular = nil, plural = nil)
|
864
|
-
singular ||= 'cluster_feature'
|
865
|
-
plural ||= 'cluster_features'
|
866
|
-
writer.write_start(plural)
|
867
|
-
if list.is_a?(List)
|
868
|
-
href = list.href
|
869
|
-
writer.write_attribute('href', href) unless href.nil?
|
870
|
-
end
|
871
|
-
list.each do |item|
|
872
|
-
write_one(item, writer, singular)
|
873
|
-
end
|
874
|
-
writer.write_end
|
875
|
-
end
|
876
|
-
|
877
|
-
end
|
878
|
-
|
879
847
|
class ClusterLevelWriter < Writer
|
880
848
|
|
881
849
|
def self.write_one(object, writer, singular = nil)
|
@@ -889,7 +857,6 @@ module OvirtSDK4
|
|
889
857
|
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
890
858
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
891
859
|
PermitWriter.write_many(object.permits, writer, 'permit', 'permits') unless object.permits.nil?
|
892
|
-
ClusterFeatureWriter.write_many(object.cluster_features, writer, 'cluster_feature', 'cluster_features') unless object.cluster_features.nil?
|
893
860
|
writer.write_end
|
894
861
|
end
|
895
862
|
|
@@ -1331,7 +1298,6 @@ module OvirtSDK4
|
|
1331
1298
|
Writer.write_string(writer, 'logical_name', object.logical_name) unless object.logical_name.nil?
|
1332
1299
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
1333
1300
|
Writer.write_boolean(writer, 'pass_discard', object.pass_discard) unless object.pass_discard.nil?
|
1334
|
-
Writer.write_boolean(writer, 'read_only', object.read_only) unless object.read_only.nil?
|
1335
1301
|
Writer.write_boolean(writer, 'uses_scsi_reservation', object.uses_scsi_reservation) unless object.uses_scsi_reservation.nil?
|
1336
1302
|
DiskWriter.write_one(object.disk, writer, 'disk') unless object.disk.nil?
|
1337
1303
|
TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
|
@@ -1655,7 +1621,6 @@ module OvirtSDK4
|
|
1655
1621
|
Writer.write_integer(writer, 'custom_id', object.custom_id) unless object.custom_id.nil?
|
1656
1622
|
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
1657
1623
|
Writer.write_integer(writer, 'flood_rate', object.flood_rate) unless object.flood_rate.nil?
|
1658
|
-
Writer.write_integer(writer, 'index', object.index) unless object.index.nil?
|
1659
1624
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
1660
1625
|
Writer.write_string(writer, 'origin', object.origin) unless object.origin.nil?
|
1661
1626
|
Writer.write_string(writer, 'severity', object.severity) unless object.severity.nil?
|
@@ -2743,7 +2708,7 @@ module OvirtSDK4
|
|
2743
2708
|
HookWriter.write_many(object.hooks, writer, 'hook', 'hooks') unless object.hooks.nil?
|
2744
2709
|
KatelloErratumWriter.write_many(object.katello_errata, writer, 'katello_erratum', 'katello_errata') unless object.katello_errata.nil?
|
2745
2710
|
NetworkAttachmentWriter.write_many(object.network_attachments, writer, 'network_attachment', 'network_attachments') unless object.network_attachments.nil?
|
2746
|
-
|
2711
|
+
NicWriter.write_many(object.nics, writer, 'nic', 'nics') unless object.nics.nil?
|
2747
2712
|
NumaNodeWriter.write_many(object.numa_nodes, writer, 'host_numa_node', 'host_numa_nodes') unless object.numa_nodes.nil?
|
2748
2713
|
PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
|
2749
2714
|
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
@@ -2781,7 +2746,6 @@ module OvirtSDK4
|
|
2781
2746
|
Writer.write_string(writer, 'capability', object.capability) unless object.capability.nil?
|
2782
2747
|
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
2783
2748
|
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
2784
|
-
Writer.write_string(writer, 'driver', object.driver) unless object.driver.nil?
|
2785
2749
|
Writer.write_integer(writer, 'iommu_group', object.iommu_group) unless object.iommu_group.nil?
|
2786
2750
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
2787
2751
|
HostDeviceWriter.write_one(object.physical_function, writer, 'physical_function') unless object.physical_function.nil?
|
@@ -3547,40 +3511,6 @@ module OvirtSDK4
|
|
3547
3511
|
|
3548
3512
|
end
|
3549
3513
|
|
3550
|
-
class LinkLayerDiscoveryProtocolElementWriter < Writer
|
3551
|
-
|
3552
|
-
def self.write_one(object, writer, singular = nil)
|
3553
|
-
singular ||= 'link_layer_discovery_protocol_element'
|
3554
|
-
writer.write_start(singular)
|
3555
|
-
href = object.href
|
3556
|
-
writer.write_attribute('href', href) unless href.nil?
|
3557
|
-
writer.write_attribute('id', object.id) unless object.id.nil?
|
3558
|
-
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
3559
|
-
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
3560
|
-
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
3561
|
-
Writer.write_integer(writer, 'oui', object.oui) unless object.oui.nil?
|
3562
|
-
PropertyWriter.write_many(object.properties, writer, 'property', 'properties') unless object.properties.nil?
|
3563
|
-
Writer.write_integer(writer, 'subtype', object.subtype) unless object.subtype.nil?
|
3564
|
-
Writer.write_integer(writer, 'type', object.type) unless object.type.nil?
|
3565
|
-
writer.write_end
|
3566
|
-
end
|
3567
|
-
|
3568
|
-
def self.write_many(list, writer, singular = nil, plural = nil)
|
3569
|
-
singular ||= 'link_layer_discovery_protocol_element'
|
3570
|
-
plural ||= 'link_layer_discovery_protocol_elements'
|
3571
|
-
writer.write_start(plural)
|
3572
|
-
if list.is_a?(List)
|
3573
|
-
href = list.href
|
3574
|
-
writer.write_attribute('href', href) unless href.nil?
|
3575
|
-
end
|
3576
|
-
list.each do |item|
|
3577
|
-
write_one(item, writer, singular)
|
3578
|
-
end
|
3579
|
-
writer.write_end
|
3580
|
-
end
|
3581
|
-
|
3582
|
-
end
|
3583
|
-
|
3584
3514
|
class LogicalUnitWriter < Writer
|
3585
3515
|
|
3586
3516
|
def self.write_one(object, writer, singular = nil)
|
@@ -4009,6 +3939,37 @@ module OvirtSDK4
|
|
4009
3939
|
|
4010
3940
|
end
|
4011
3941
|
|
3942
|
+
class NetworkFilterParameterWriter < Writer
|
3943
|
+
|
3944
|
+
def self.write_one(object, writer, singular = nil)
|
3945
|
+
singular ||= 'network_filter_parameter'
|
3946
|
+
writer.write_start(singular)
|
3947
|
+
href = object.href
|
3948
|
+
writer.write_attribute('href', href) unless href.nil?
|
3949
|
+
writer.write_attribute('id', object.id) unless object.id.nil?
|
3950
|
+
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
3951
|
+
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
3952
|
+
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
3953
|
+
Writer.write_string(writer, 'value', object.value) unless object.value.nil?
|
3954
|
+
writer.write_end
|
3955
|
+
end
|
3956
|
+
|
3957
|
+
def self.write_many(list, writer, singular = nil, plural = nil)
|
3958
|
+
singular ||= 'network_filter_parameter'
|
3959
|
+
plural ||= 'network_filter_parameters'
|
3960
|
+
writer.write_start(plural)
|
3961
|
+
if list.is_a?(List)
|
3962
|
+
href = list.href
|
3963
|
+
writer.write_attribute('href', href) unless href.nil?
|
3964
|
+
end
|
3965
|
+
list.each do |item|
|
3966
|
+
write_one(item, writer, singular)
|
3967
|
+
end
|
3968
|
+
writer.write_end
|
3969
|
+
end
|
3970
|
+
|
3971
|
+
end
|
3972
|
+
|
4012
3973
|
class NetworkLabelWriter < Writer
|
4013
3974
|
|
4014
3975
|
def self.write_one(object, writer, singular = nil)
|
@@ -4089,6 +4050,7 @@ module OvirtSDK4
|
|
4089
4050
|
InstanceTypeWriter.write_one(object.instance_type, writer, 'instance_type') unless object.instance_type.nil?
|
4090
4051
|
NetworkWriter.write_one(object.network, writer, 'network') unless object.network.nil?
|
4091
4052
|
NetworkAttachmentWriter.write_many(object.network_attachments, writer, 'network_attachment', 'network_attachments') unless object.network_attachments.nil?
|
4053
|
+
NetworkFilterParameterWriter.write_many(object.network_filter_parameters, writer, 'network_filter_parameter', 'network_filter_parameters') unless object.network_filter_parameters.nil?
|
4092
4054
|
NetworkLabelWriter.write_many(object.network_labels, writer, 'network_label', 'network_labels') unless object.network_labels.nil?
|
4093
4055
|
ReportedDeviceWriter.write_many(object.reported_devices, writer, 'reported_device', 'reported_devices') unless object.reported_devices.nil?
|
4094
4056
|
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
@@ -4126,6 +4088,8 @@ module OvirtSDK4
|
|
4126
4088
|
writer.write_attribute('href', href) unless href.nil?
|
4127
4089
|
Writer.write_string(writer, 'boot_protocol', object.boot_protocol) unless object.boot_protocol.nil?
|
4128
4090
|
IpWriter.write_one(object.ip, writer, 'ip') unless object.ip.nil?
|
4091
|
+
IpWriter.write_one(object.ipv6, writer, 'ipv6') unless object.ipv6.nil?
|
4092
|
+
Writer.write_string(writer, 'ipv6_boot_protocol', object.ipv6_boot_protocol) unless object.ipv6_boot_protocol.nil?
|
4129
4093
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
4130
4094
|
Writer.write_boolean(writer, 'on_boot', object.on_boot) unless object.on_boot.nil?
|
4131
4095
|
writer.write_end
|
@@ -7103,7 +7067,6 @@ module OvirtSDK4
|
|
7103
7067
|
Writer.register(Certificate, CertificateWriter.method(:write_one))
|
7104
7068
|
Writer.register(CloudInit, CloudInitWriter.method(:write_one))
|
7105
7069
|
Writer.register(Cluster, ClusterWriter.method(:write_one))
|
7106
|
-
Writer.register(ClusterFeature, ClusterFeatureWriter.method(:write_one))
|
7107
7070
|
Writer.register(ClusterLevel, ClusterLevelWriter.method(:write_one))
|
7108
7071
|
Writer.register(Configuration, ConfigurationWriter.method(:write_one))
|
7109
7072
|
Writer.register(Console, ConsoleWriter.method(:write_one))
|
@@ -7178,7 +7141,6 @@ module OvirtSDK4
|
|
7178
7141
|
Writer.register(KatelloErratum, KatelloErratumWriter.method(:write_one))
|
7179
7142
|
Writer.register(Kernel, KernelWriter.method(:write_one))
|
7180
7143
|
Writer.register(Ksm, KsmWriter.method(:write_one))
|
7181
|
-
Writer.register(LinkLayerDiscoveryProtocolElement, LinkLayerDiscoveryProtocolElementWriter.method(:write_one))
|
7182
7144
|
Writer.register(LogicalUnit, LogicalUnitWriter.method(:write_one))
|
7183
7145
|
Writer.register(Mac, MacWriter.method(:write_one))
|
7184
7146
|
Writer.register(MacPool, MacPoolWriter.method(:write_one))
|
@@ -7192,6 +7154,7 @@ module OvirtSDK4
|
|
7192
7154
|
Writer.register(NetworkAttachment, NetworkAttachmentWriter.method(:write_one))
|
7193
7155
|
Writer.register(NetworkConfiguration, NetworkConfigurationWriter.method(:write_one))
|
7194
7156
|
Writer.register(NetworkFilter, NetworkFilterWriter.method(:write_one))
|
7157
|
+
Writer.register(NetworkFilterParameter, NetworkFilterParameterWriter.method(:write_one))
|
7195
7158
|
Writer.register(NetworkLabel, NetworkLabelWriter.method(:write_one))
|
7196
7159
|
Writer.register(NfsProfileDetail, NfsProfileDetailWriter.method(:write_one))
|
7197
7160
|
Writer.register(Nic, NicWriter.method(:write_one))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ovirt-engine-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0.alpha1
|
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-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -154,12 +154,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
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
|
-
version:
|
159
|
+
version: 1.3.1
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.
|
162
|
+
rubygems_version: 2.5.1
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: oVirt SDK
|