ovirt-engine-sdk 4.2.5 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.adoc +37 -0
- data/lib/ovirtsdk4/readers.rb +194 -4
- data/lib/ovirtsdk4/services.rb +613 -63
- data/lib/ovirtsdk4/types.rb +717 -39
- data/lib/ovirtsdk4/version.rb +1 -1
- data/lib/ovirtsdk4/writers.rb +54 -2
- metadata +6 -6
data/lib/ovirtsdk4/version.rb
CHANGED
data/lib/ovirtsdk4/writers.rb
CHANGED
@@ -25,6 +25,7 @@ module OvirtSDK4
|
|
25
25
|
href = object.href
|
26
26
|
writer.write_attribute('href', href) unless href.nil?
|
27
27
|
writer.write_attribute('id', object.id) unless object.id.nil?
|
28
|
+
Writer.write_boolean(writer, 'activate', object.activate) unless object.activate.nil?
|
28
29
|
Writer.write_boolean(writer, 'allow_partial_import', object.allow_partial_import) unless object.allow_partial_import.nil?
|
29
30
|
Writer.write_boolean(writer, 'async', object.async) unless object.async.nil?
|
30
31
|
DiskAttachmentWriter.write_one(object.attachment, writer, 'attachment') unless object.attachment.nil?
|
@@ -37,6 +38,7 @@ module OvirtSDK4
|
|
37
38
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
38
39
|
Writer.write_boolean(writer, 'collapse_snapshots', object.collapse_snapshots) unless object.collapse_snapshots.nil?
|
39
40
|
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
41
|
+
Writer.write_boolean(writer, 'commit_on_success', object.commit_on_success) unless object.commit_on_success.nil?
|
40
42
|
StorageConnectionWriter.write_one(object.connection, writer, 'connection') unless object.connection.nil?
|
41
43
|
Writer.write_integer(writer, 'connectivity_timeout', object.connectivity_timeout) unless object.connectivity_timeout.nil?
|
42
44
|
DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
|
@@ -456,6 +458,42 @@ module OvirtSDK4
|
|
456
458
|
|
457
459
|
end
|
458
460
|
|
461
|
+
class BackupWriter < Writer
|
462
|
+
|
463
|
+
def self.write_one(object, writer, singular = nil)
|
464
|
+
singular ||= 'backup'
|
465
|
+
writer.write_start(singular)
|
466
|
+
href = object.href
|
467
|
+
writer.write_attribute('href', href) unless href.nil?
|
468
|
+
writer.write_attribute('id', object.id) unless object.id.nil?
|
469
|
+
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
470
|
+
Writer.write_date(writer, 'creation_date', object.creation_date) unless object.creation_date.nil?
|
471
|
+
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
472
|
+
Writer.write_string(writer, 'from_checkpoint_id', object.from_checkpoint_id) unless object.from_checkpoint_id.nil?
|
473
|
+
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
474
|
+
Writer.write_string(writer, 'phase', object.phase) unless object.phase.nil?
|
475
|
+
Writer.write_string(writer, 'to_checkpoint_id', object.to_checkpoint_id) unless object.to_checkpoint_id.nil?
|
476
|
+
DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
|
477
|
+
VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
|
478
|
+
writer.write_end
|
479
|
+
end
|
480
|
+
|
481
|
+
def self.write_many(list, writer, singular = nil, plural = nil)
|
482
|
+
singular ||= 'backup'
|
483
|
+
plural ||= 'backups'
|
484
|
+
writer.write_start(plural)
|
485
|
+
if list.is_a?(List)
|
486
|
+
href = list.href
|
487
|
+
writer.write_attribute('href', href) unless href.nil?
|
488
|
+
end
|
489
|
+
list.each do |item|
|
490
|
+
write_one(item, writer, singular)
|
491
|
+
end
|
492
|
+
writer.write_end
|
493
|
+
end
|
494
|
+
|
495
|
+
end
|
496
|
+
|
459
497
|
class BalanceWriter < Writer
|
460
498
|
|
461
499
|
def self.write_one(object, writer, singular = nil)
|
@@ -496,6 +534,7 @@ module OvirtSDK4
|
|
496
534
|
href = object.href
|
497
535
|
writer.write_attribute('href', href) unless href.nil?
|
498
536
|
BootMenuWriter.write_one(object.boot_menu, writer, 'boot_menu') unless object.boot_menu.nil?
|
537
|
+
Writer.write_string(writer, 'type', object.type) unless object.type.nil?
|
499
538
|
writer.write_end
|
500
539
|
end
|
501
540
|
|
@@ -813,6 +852,8 @@ module OvirtSDK4
|
|
813
852
|
Writer.write_string(writer, 'gluster_tuned_profile', object.gluster_tuned_profile) unless object.gluster_tuned_profile.nil?
|
814
853
|
Writer.write_boolean(writer, 'ha_reservation', object.ha_reservation) unless object.ha_reservation.nil?
|
815
854
|
KsmWriter.write_one(object.ksm, writer, 'ksm') unless object.ksm.nil?
|
855
|
+
Writer.write_integer(writer, 'log_max_memory_used_threshold', object.log_max_memory_used_threshold) unless object.log_max_memory_used_threshold.nil?
|
856
|
+
Writer.write_string(writer, 'log_max_memory_used_threshold_type', object.log_max_memory_used_threshold_type) unless object.log_max_memory_used_threshold_type.nil?
|
816
857
|
Writer.write_boolean(writer, 'maintenance_reason_required', object.maintenance_reason_required) unless object.maintenance_reason_required.nil?
|
817
858
|
MemoryPolicyWriter.write_one(object.memory_policy, writer, 'memory_policy') unless object.memory_policy.nil?
|
818
859
|
MigrationOptionsWriter.write_one(object.migration, writer, 'migration') unless object.migration.nil?
|
@@ -1283,6 +1324,7 @@ module OvirtSDK4
|
|
1283
1324
|
Writer.write_boolean(writer, 'active', object.active) unless object.active.nil?
|
1284
1325
|
Writer.write_integer(writer, 'actual_size', object.actual_size) unless object.actual_size.nil?
|
1285
1326
|
Writer.write_string(writer, 'alias', object.alias_) unless object.alias_.nil?
|
1327
|
+
Writer.write_string(writer, 'backup', object.backup) unless object.backup.nil?
|
1286
1328
|
Writer.write_boolean(writer, 'bootable', object.bootable) unless object.bootable.nil?
|
1287
1329
|
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
1288
1330
|
Writer.write_string(writer, 'content_type', object.content_type) unless object.content_type.nil?
|
@@ -1421,6 +1463,7 @@ module OvirtSDK4
|
|
1421
1463
|
Writer.write_boolean(writer, 'active', object.active) unless object.active.nil?
|
1422
1464
|
Writer.write_integer(writer, 'actual_size', object.actual_size) unless object.actual_size.nil?
|
1423
1465
|
Writer.write_string(writer, 'alias', object.alias_) unless object.alias_.nil?
|
1466
|
+
Writer.write_string(writer, 'backup', object.backup) unless object.backup.nil?
|
1424
1467
|
Writer.write_boolean(writer, 'bootable', object.bootable) unless object.bootable.nil?
|
1425
1468
|
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
1426
1469
|
Writer.write_string(writer, 'content_type', object.content_type) unless object.content_type.nil?
|
@@ -2792,6 +2835,7 @@ module OvirtSDK4
|
|
2792
2835
|
Writer.write_string(writer, 'type', object.type) unless object.type.nil?
|
2793
2836
|
Writer.write_boolean(writer, 'update_available', object.update_available) unless object.update_available.nil?
|
2794
2837
|
VersionWriter.write_one(object.version, writer, 'version') unless object.version.nil?
|
2838
|
+
Writer.write_string(writer, 'vgpu_placement', object.vgpu_placement) unless object.vgpu_placement.nil?
|
2795
2839
|
AffinityLabelWriter.write_many(object.affinity_labels, writer, 'affinity_label', 'affinity_labels') unless object.affinity_labels.nil?
|
2796
2840
|
AgentWriter.write_many(object.agents, writer, 'agent', 'agents') unless object.agents.nil?
|
2797
2841
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
@@ -2919,18 +2963,18 @@ module OvirtSDK4
|
|
2919
2963
|
MacWriter.write_one(object.mac, writer, 'mac') unless object.mac.nil?
|
2920
2964
|
Writer.write_integer(writer, 'mtu', object.mtu) unless object.mtu.nil?
|
2921
2965
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
2922
|
-
NetworkLabelWriter.write_many(object.network_labels, writer, 'network_label', 'network_labels') unless object.network_labels.nil?
|
2923
2966
|
Writer.write_boolean(writer, 'override_configuration', object.override_configuration) unless object.override_configuration.nil?
|
2924
2967
|
PropertyWriter.write_many(object.properties, writer, 'property', 'properties') unless object.properties.nil?
|
2925
2968
|
Writer.write_integer(writer, 'speed', object.speed) unless object.speed.nil?
|
2926
|
-
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
2927
2969
|
Writer.write_string(writer, 'status', object.status) unless object.status.nil?
|
2928
2970
|
HostNicVirtualFunctionsConfigurationWriter.write_one(object.virtual_functions_configuration, writer, 'virtual_functions_configuration') unless object.virtual_functions_configuration.nil?
|
2929
2971
|
VlanWriter.write_one(object.vlan, writer, 'vlan') unless object.vlan.nil?
|
2930
2972
|
HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
|
2931
2973
|
NetworkWriter.write_one(object.network, writer, 'network') unless object.network.nil?
|
2974
|
+
NetworkLabelWriter.write_many(object.network_labels, writer, 'network_label', 'network_labels') unless object.network_labels.nil?
|
2932
2975
|
HostNicWriter.write_one(object.physical_function, writer, 'physical_function') unless object.physical_function.nil?
|
2933
2976
|
QosWriter.write_one(object.qos, writer, 'qos') unless object.qos.nil?
|
2977
|
+
StatisticWriter.write_many(object.statistics, writer, 'statistic', 'statistics') unless object.statistics.nil?
|
2934
2978
|
writer.write_end
|
2935
2979
|
end
|
2936
2980
|
|
@@ -2990,6 +3034,8 @@ module OvirtSDK4
|
|
2990
3034
|
Writer.write_string(writer, 'address', object.address) unless object.address.nil?
|
2991
3035
|
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
2992
3036
|
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
3037
|
+
PropertyWriter.write_many(object.driver_options, writer, 'property', 'driver_options') unless object.driver_options.nil?
|
3038
|
+
PropertyWriter.write_many(object.driver_sensitive_options, writer, 'property', 'driver_sensitive_options') unless object.driver_sensitive_options.nil?
|
2993
3039
|
LogicalUnitWriter.write_many(object.logical_units, writer, 'logical_unit', 'logical_units') unless object.logical_units.nil?
|
2994
3040
|
Writer.write_string(writer, 'mount_options', object.mount_options) unless object.mount_options.nil?
|
2995
3041
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
@@ -3164,6 +3210,7 @@ module OvirtSDK4
|
|
3164
3210
|
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
3165
3211
|
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
|
3166
3212
|
Writer.write_string(writer, 'direction', object.direction) unless object.direction.nil?
|
3213
|
+
Writer.write_string(writer, 'format', object.format) unless object.format.nil?
|
3167
3214
|
Writer.write_integer(writer, 'inactivity_timeout', object.inactivity_timeout) unless object.inactivity_timeout.nil?
|
3168
3215
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
3169
3216
|
Writer.write_string(writer, 'phase', object.phase) unless object.phase.nil?
|
@@ -3171,6 +3218,7 @@ module OvirtSDK4
|
|
3171
3218
|
Writer.write_string(writer, 'signed_ticket', object.signed_ticket) unless object.signed_ticket.nil?
|
3172
3219
|
Writer.write_string(writer, 'transfer_url', object.transfer_url) unless object.transfer_url.nil?
|
3173
3220
|
Writer.write_integer(writer, 'transferred', object.transferred) unless object.transferred.nil?
|
3221
|
+
BackupWriter.write_one(object.backup, writer, 'backup') unless object.backup.nil?
|
3174
3222
|
DiskWriter.write_one(object.disk, writer, 'disk') unless object.disk.nil?
|
3175
3223
|
HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
|
3176
3224
|
ImageWriter.write_one(object.image, writer, 'image') unless object.image.nil?
|
@@ -3204,6 +3252,7 @@ module OvirtSDK4
|
|
3204
3252
|
Writer.write_string(writer, 'active_directory_ou', object.active_directory_ou) unless object.active_directory_ou.nil?
|
3205
3253
|
Writer.write_string(writer, 'authorized_ssh_keys', object.authorized_ssh_keys) unless object.authorized_ssh_keys.nil?
|
3206
3254
|
CloudInitWriter.write_one(object.cloud_init, writer, 'cloud_init') unless object.cloud_init.nil?
|
3255
|
+
Writer.write_string(writer, 'cloud_init_network_protocol', object.cloud_init_network_protocol) unless object.cloud_init_network_protocol.nil?
|
3207
3256
|
ConfigurationWriter.write_one(object.configuration, writer, 'configuration') unless object.configuration.nil?
|
3208
3257
|
Writer.write_string(writer, 'custom_script', object.custom_script) unless object.custom_script.nil?
|
3209
3258
|
Writer.write_string(writer, 'dns_search', object.dns_search) unless object.dns_search.nil?
|
@@ -5973,6 +6022,7 @@ module OvirtSDK4
|
|
5973
6022
|
ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
|
5974
6023
|
CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
|
5975
6024
|
DiskAttachmentWriter.write_many(object.disk_attachments, writer, 'disk_attachment', 'disk_attachments') unless object.disk_attachments.nil?
|
6025
|
+
DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
|
5976
6026
|
ExternalHostProviderWriter.write_one(object.external_host_provider, writer, 'external_host_provider') unless object.external_host_provider.nil?
|
5977
6027
|
FloppyWriter.write_many(object.floppies, writer, 'floppy', 'floppies') unless object.floppies.nil?
|
5978
6028
|
GraphicsConsoleWriter.write_many(object.graphics_consoles, writer, 'graphics_console', 'graphics_consoles') unless object.graphics_consoles.nil?
|
@@ -6337,6 +6387,7 @@ module OvirtSDK4
|
|
6337
6387
|
writer.write_attribute('id', object.id) unless object.id.nil?
|
6338
6388
|
Writer.write_integer(writer, 'available', object.available) unless object.available.nil?
|
6339
6389
|
Writer.write_boolean(writer, 'backup', object.backup) unless object.backup.nil?
|
6390
|
+
Writer.write_integer(writer, 'block_size', object.block_size) unless object.block_size.nil?
|
6340
6391
|
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
|
6341
6392
|
Writer.write_integer(writer, 'committed', object.committed) unless object.committed.nil?
|
6342
6393
|
Writer.write_integer(writer, 'critical_space_action_blocker', object.critical_space_action_blocker) unless object.critical_space_action_blocker.nil?
|
@@ -7506,6 +7557,7 @@ module OvirtSDK4
|
|
7506
7557
|
Writer.register(ApiSummaryItem, ApiSummaryItemWriter.method(:write_one))
|
7507
7558
|
Writer.register(Application, ApplicationWriter.method(:write_one))
|
7508
7559
|
Writer.register(AuthorizedKey, AuthorizedKeyWriter.method(:write_one))
|
7560
|
+
Writer.register(Backup, BackupWriter.method(:write_one))
|
7509
7561
|
Writer.register(Balance, BalanceWriter.method(:write_one))
|
7510
7562
|
Writer.register(Bios, BiosWriter.method(:write_one))
|
7511
7563
|
Writer.register(BlockStatistic, BlockStatisticWriter.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.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Hernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.52
|
61
|
+
version: '0.52'
|
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
|
-
version: 0.52
|
68
|
+
version: '0.52'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: yard
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|