ovirt-engine-sdk 4.0.0.alpha19 → 4.0.0.alpha20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.adoc +27 -0
- data/lib/ovirtsdk4/http.rb +21 -5
- data/lib/ovirtsdk4/readers.rb +106 -0
- data/lib/ovirtsdk4/services.rb +1905 -350
- data/lib/ovirtsdk4/types.rb +797 -380
- data/lib/ovirtsdk4/version.rb +1 -1
- data/lib/ovirtsdk4/writers.rb +42 -0
- metadata +2 -2
data/lib/ovirtsdk4/version.rb
CHANGED
data/lib/ovirtsdk4/writers.rb
CHANGED
@@ -496,6 +496,7 @@ module OvirtSDK4
|
|
496
496
|
writer.write_start(singular)
|
497
497
|
href = object.href
|
498
498
|
writer.write_attribute('href', href) unless href.nil?
|
499
|
+
MacWriter.write_one(object.ad_partner_mac, writer, 'ad_partner_mac') unless object.ad_partner_mac.nil?
|
499
500
|
OptionWriter.write_many(object.options, writer, 'option', 'options') unless object.options.nil?
|
500
501
|
HostNicWriter.write_many(object.slaves, writer, 'slave', 'slaves') unless object.slaves.nil?
|
501
502
|
writer.write_end
|
@@ -1254,6 +1255,7 @@ module OvirtSDK4
|
|
1254
1255
|
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
1255
1256
|
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
1256
1257
|
Writer.write_string(writer, 'interface', object.interface) unless object.interface.nil?
|
1258
|
+
Writer.write_string(writer, 'logical_name', object.logical_name) unless object.logical_name.nil?
|
1257
1259
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
1258
1260
|
DiskWriter.write_one(object.disk, writer, 'disk') unless object.disk.nil?
|
1259
1261
|
TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
|
@@ -1785,6 +1787,45 @@ module OvirtSDK4
|
|
1785
1787
|
|
1786
1788
|
end
|
1787
1789
|
|
1790
|
+
class ExternalVmImportWriter < Writer # :nodoc:
|
1791
|
+
|
1792
|
+
def self.write_one(object, writer, singular = nil)
|
1793
|
+
singular ||= 'external_vm_import'
|
1794
|
+
writer.write_start(singular)
|
1795
|
+
href = object.href
|
1796
|
+
writer.write_attribute('href', href) unless href.nil?
|
1797
|
+
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
1798
|
+
Writer.write_string(writer, 'password', object.password) unless object.password.nil?
|
1799
|
+
Writer.write_string(writer, 'provider', object.provider) unless object.provider.nil?
|
1800
|
+
Writer.write_boolean(writer, 'sparse', object.sparse) unless object.sparse.nil?
|
1801
|
+
Writer.write_string(writer, 'url', object.url) unless object.url.nil?
|
1802
|
+
Writer.write_string(writer, 'username', object.username) unless object.username.nil?
|
1803
|
+
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
1804
|
+
CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
|
1805
|
+
FileWriter.write_one(object.drivers_iso, writer, 'drivers_iso') unless object.drivers_iso.nil?
|
1806
|
+
HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
|
1807
|
+
QuotaWriter.write_one(object.quota, writer, 'quota') unless object.quota.nil?
|
1808
|
+
StorageDomainWriter.write_one(object.storage_domain, writer, 'storage_domain') unless object.storage_domain.nil?
|
1809
|
+
VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
|
1810
|
+
writer.write_end
|
1811
|
+
end
|
1812
|
+
|
1813
|
+
def self.write_many(list, writer, singular = nil, plural = nil)
|
1814
|
+
singular ||= 'external_vm_import'
|
1815
|
+
plural ||= 'external_vm_imports'
|
1816
|
+
writer.write_start(plural)
|
1817
|
+
if list.is_a?(List)
|
1818
|
+
href = list.href
|
1819
|
+
writer.write_attribute('href', href) unless href.nil?
|
1820
|
+
end
|
1821
|
+
list.each do |item|
|
1822
|
+
write_one(item, writer, singular)
|
1823
|
+
end
|
1824
|
+
writer.write_end
|
1825
|
+
end
|
1826
|
+
|
1827
|
+
end
|
1828
|
+
|
1788
1829
|
class FaultWriter < Writer # :nodoc:
|
1789
1830
|
|
1790
1831
|
def self.write_one(object, writer, singular = nil)
|
@@ -2690,6 +2731,7 @@ module OvirtSDK4
|
|
2690
2731
|
href = object.href
|
2691
2732
|
writer.write_attribute('href', href) unless href.nil?
|
2692
2733
|
writer.write_attribute('id', object.id) unless object.id.nil?
|
2734
|
+
Writer.write_integer(writer, 'ad_aggregator_id', object.ad_aggregator_id) unless object.ad_aggregator_id.nil?
|
2693
2735
|
Writer.write_string(writer, 'base_interface', object.base_interface) unless object.base_interface.nil?
|
2694
2736
|
BondingWriter.write_one(object.bonding, writer, 'bonding') unless object.bonding.nil?
|
2695
2737
|
Writer.write_string(writer, 'boot_protocol', object.boot_protocol) unless object.boot_protocol.nil?
|
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.0.0.
|
4
|
+
version: 4.0.0.alpha20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Hernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curb
|