ovirt-engine-sdk 4.3.1 → 4.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module OvirtSDK4
19
- VERSION = '4.3.1'.freeze
19
+ VERSION = '4.4.0'.freeze
20
20
  end
@@ -75,6 +75,7 @@ module OvirtSDK4
75
75
  JobWriter.write_one(object.job, writer, 'job') unless object.job.nil?
76
76
  StorageDomainLeaseWriter.write_one(object.lease, writer, 'lease') unless object.lease.nil?
77
77
  LogicalUnitWriter.write_many(object.logical_units, writer, 'logical_unit', 'logical_units') unless object.logical_units.nil?
78
+ Writer.write_boolean(writer, 'maintenance_after_restart', object.maintenance_after_restart) unless object.maintenance_after_restart.nil?
78
79
  Writer.write_boolean(writer, 'maintenance_enabled', object.maintenance_enabled) unless object.maintenance_enabled.nil?
79
80
  Writer.write_boolean(writer, 'migrate_vms_in_affinity_closure', object.migrate_vms_in_affinity_closure) unless object.migrate_vms_in_affinity_closure.nil?
80
81
  HostNicWriter.write_many(object.modified_bonds, writer, 'host_nic', 'modified_bonds') unless object.modified_bonds.nil?
@@ -100,6 +101,7 @@ module OvirtSDK4
100
101
  Writer.write_string(writer, 'root_password', object.root_password) unless object.root_password.nil?
101
102
  Writer.write_boolean(writer, 'seal', object.seal) unless object.seal.nil?
102
103
  SnapshotWriter.write_one(object.snapshot, writer, 'snapshot') unless object.snapshot.nil?
104
+ HostWriter.write_one(object.source_host, writer, 'source_host') unless object.source_host.nil?
103
105
  SshWriter.write_one(object.ssh, writer, 'ssh') unless object.ssh.nil?
104
106
  Writer.write_string(writer, 'status', object.status) unless object.status.nil?
105
107
  Writer.write_boolean(writer, 'stop_gluster_service', object.stop_gluster_service) unless object.stop_gluster_service.nil?
@@ -113,6 +115,7 @@ module OvirtSDK4
113
115
  Writer.write_boolean(writer, 'undeploy_hosted_engine', object.undeploy_hosted_engine) unless object.undeploy_hosted_engine.nil?
114
116
  Writer.write_string(writer, 'upgrade_action', object.upgrade_action) unless object.upgrade_action.nil?
115
117
  Writer.write_boolean(writer, 'use_cloud_init', object.use_cloud_init) unless object.use_cloud_init.nil?
118
+ Writer.write_boolean(writer, 'use_ignition', object.use_ignition) unless object.use_ignition.nil?
116
119
  Writer.write_boolean(writer, 'use_initialization', object.use_initialization) unless object.use_initialization.nil?
117
120
  Writer.write_boolean(writer, 'use_sysprep', object.use_sysprep) unless object.use_sysprep.nil?
118
121
  HostNicVirtualFunctionsConfigurationWriter.write_one(object.virtual_functions_configuration, writer, 'virtual_functions_configuration') unless object.virtual_functions_configuration.nil?
@@ -848,6 +851,7 @@ module OvirtSDK4
848
851
  writer.write_attribute('href', href) unless href.nil?
849
852
  writer.write_attribute('id', object.id) unless object.id.nil?
850
853
  Writer.write_boolean(writer, 'ballooning_enabled', object.ballooning_enabled) unless object.ballooning_enabled.nil?
854
+ Writer.write_string(writer, 'bios_type', object.bios_type) unless object.bios_type.nil?
851
855
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
852
856
  CpuWriter.write_one(object.cpu, writer, 'cpu') unless object.cpu.nil?
853
857
  PropertyWriter.write_many(object.custom_scheduling_policy_properties, writer, 'property', 'custom_scheduling_policy_properties') unless object.custom_scheduling_policy_properties.nil?
@@ -1731,6 +1735,7 @@ module OvirtSDK4
1731
1735
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
1732
1736
  Writer.write_integer(writer, 'flood_rate', object.flood_rate) unless object.flood_rate.nil?
1733
1737
  Writer.write_integer(writer, 'index', object.index) unless object.index.nil?
1738
+ Writer.write_boolean(writer, 'log_on_host', object.log_on_host) unless object.log_on_host.nil?
1734
1739
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
1735
1740
  Writer.write_string(writer, 'origin', object.origin) unless object.origin.nil?
1736
1741
  Writer.write_string(writer, 'severity', object.severity) unless object.severity.nil?
@@ -1761,6 +1766,40 @@ module OvirtSDK4
1761
1766
 
1762
1767
  end
1763
1768
 
1769
+ class EventSubscriptionWriter < Writer
1770
+
1771
+ def self.write_one(object, writer, singular = nil)
1772
+ singular ||= 'event_subscription'
1773
+ writer.write_start(singular)
1774
+ href = object.href
1775
+ writer.write_attribute('href', href) unless href.nil?
1776
+ writer.write_attribute('id', object.id) unless object.id.nil?
1777
+ Writer.write_string(writer, 'address', object.address) unless object.address.nil?
1778
+ Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
1779
+ Writer.write_string(writer, 'description', object.description) unless object.description.nil?
1780
+ Writer.write_string(writer, 'event', object.event) unless object.event.nil?
1781
+ Writer.write_string(writer, 'name', object.name) unless object.name.nil?
1782
+ Writer.write_string(writer, 'notification_method', object.notification_method) unless object.notification_method.nil?
1783
+ UserWriter.write_one(object.user, writer, 'user') unless object.user.nil?
1784
+ writer.write_end
1785
+ end
1786
+
1787
+ def self.write_many(list, writer, singular = nil, plural = nil)
1788
+ singular ||= 'event_subscription'
1789
+ plural ||= 'event_subscriptions'
1790
+ writer.write_start(plural)
1791
+ if list.is_a?(List)
1792
+ href = list.href
1793
+ writer.write_attribute('href', href) unless href.nil?
1794
+ end
1795
+ list.each do |item|
1796
+ write_one(item, writer, singular)
1797
+ end
1798
+ writer.write_end
1799
+ end
1800
+
1801
+ end
1802
+
1764
1803
  class ExternalComputeResourceWriter < Writer
1765
1804
 
1766
1805
  def self.write_one(object, writer, singular = nil)
@@ -2847,7 +2886,7 @@ module OvirtSDK4
2847
2886
  AffinityLabelWriter.write_many(object.affinity_labels, writer, 'affinity_label', 'affinity_labels') unless object.affinity_labels.nil?
2848
2887
  AgentWriter.write_many(object.agents, writer, 'agent', 'agents') unless object.agents.nil?
2849
2888
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
2850
- DeviceWriter.write_many(object.devices, writer, 'device', 'devices') unless object.devices.nil?
2889
+ HostDeviceWriter.write_many(object.devices, writer, 'host_device', 'devices') unless object.devices.nil?
2851
2890
  ExternalHostProviderWriter.write_one(object.external_host_provider, writer, 'external_host_provider') unless object.external_host_provider.nil?
2852
2891
  ExternalNetworkProviderConfigurationWriter.write_many(object.external_network_provider_configurations, writer, 'external_network_provider_configuration', 'external_network_provider_configurations') unless object.external_network_provider_configurations.nil?
2853
2892
  HookWriter.write_many(object.hooks, writer, 'hook', 'hooks') unless object.hooks.nil?
@@ -2893,6 +2932,7 @@ module OvirtSDK4
2893
2932
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
2894
2933
  Writer.write_string(writer, 'driver', object.driver) unless object.driver.nil?
2895
2934
  Writer.write_integer(writer, 'iommu_group', object.iommu_group) unless object.iommu_group.nil?
2935
+ MDevTypeWriter.write_many(object.m_dev_types, writer, 'm_dev_type', 'm_dev_types') unless object.m_dev_types.nil?
2896
2936
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
2897
2937
  HostDeviceWriter.write_one(object.physical_function, writer, 'physical_function') unless object.physical_function.nil?
2898
2938
  Writer.write_boolean(writer, 'placeholder', object.placeholder) unless object.placeholder.nil?
@@ -3752,6 +3792,35 @@ module OvirtSDK4
3752
3792
 
3753
3793
  end
3754
3794
 
3795
+ class MDevTypeWriter < Writer
3796
+
3797
+ def self.write_one(object, writer, singular = nil)
3798
+ singular ||= 'm_dev_type'
3799
+ writer.write_start(singular)
3800
+ href = object.href
3801
+ writer.write_attribute('href', href) unless href.nil?
3802
+ Writer.write_integer(writer, 'available_instances', object.available_instances) unless object.available_instances.nil?
3803
+ Writer.write_string(writer, 'description', object.description) unless object.description.nil?
3804
+ Writer.write_string(writer, 'name', object.name) unless object.name.nil?
3805
+ writer.write_end
3806
+ end
3807
+
3808
+ def self.write_many(list, writer, singular = nil, plural = nil)
3809
+ singular ||= 'm_dev_type'
3810
+ plural ||= 'm_dev_types'
3811
+ writer.write_start(plural)
3812
+ if list.is_a?(List)
3813
+ href = list.href
3814
+ writer.write_attribute('href', href) unless href.nil?
3815
+ end
3816
+ list.each do |item|
3817
+ write_one(item, writer, singular)
3818
+ end
3819
+ writer.write_end
3820
+ end
3821
+
3822
+ end
3823
+
3755
3824
  class MacWriter < Writer
3756
3825
 
3757
3826
  def self.write_one(object, writer, singular = nil)
@@ -3935,6 +4004,7 @@ module OvirtSDK4
3935
4004
  Writer.write_string(writer, 'auto_converge', object.auto_converge) unless object.auto_converge.nil?
3936
4005
  MigrationBandwidthWriter.write_one(object.bandwidth, writer, 'bandwidth') unless object.bandwidth.nil?
3937
4006
  Writer.write_string(writer, 'compressed', object.compressed) unless object.compressed.nil?
4007
+ Writer.write_string(writer, 'encrypted', object.encrypted) unless object.encrypted.nil?
3938
4008
  MigrationPolicyWriter.write_one(object.policy, writer, 'policy') unless object.policy.nil?
3939
4009
  writer.write_end
3940
4010
  end
@@ -4011,6 +4081,7 @@ module OvirtSDK4
4011
4081
  end
4012
4082
  writer.write_end
4013
4083
  end
4084
+ Writer.write_string(writer, 'vdsm_name', object.vdsm_name) unless object.vdsm_name.nil?
4014
4085
  VlanWriter.write_one(object.vlan, writer, 'vlan') unless object.vlan.nil?
4015
4086
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
4016
4087
  DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
@@ -6841,6 +6912,7 @@ module OvirtSDK4
6841
6912
  Writer.write_string(writer, 'password', object.password) unless object.password.nil?
6842
6913
  Writer.write_string(writer, 'principal', object.principal) unless object.principal.nil?
6843
6914
  Writer.write_string(writer, 'user_name', object.user_name) unless object.user_name.nil?
6915
+ PropertyWriter.write_many(object.user_options, writer, 'property', 'user_options') unless object.user_options.nil?
6844
6916
  DomainWriter.write_one(object.domain, writer, 'domain') unless object.domain.nil?
6845
6917
  GroupWriter.write_many(object.groups, writer, 'group', 'groups') unless object.groups.nil?
6846
6918
  PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
@@ -7602,6 +7674,7 @@ module OvirtSDK4
7602
7674
  Writer.register(EntityProfileDetail, EntityProfileDetailWriter.method(:write_one))
7603
7675
  Writer.register(ErrorHandling, ErrorHandlingWriter.method(:write_one))
7604
7676
  Writer.register(Event, EventWriter.method(:write_one))
7677
+ Writer.register(EventSubscription, EventSubscriptionWriter.method(:write_one))
7605
7678
  Writer.register(ExternalComputeResource, ExternalComputeResourceWriter.method(:write_one))
7606
7679
  Writer.register(ExternalDiscoveredHost, ExternalDiscoveredHostWriter.method(:write_one))
7607
7680
  Writer.register(ExternalHost, ExternalHostWriter.method(:write_one))
@@ -7656,6 +7729,7 @@ module OvirtSDK4
7656
7729
  Writer.register(Ksm, KsmWriter.method(:write_one))
7657
7730
  Writer.register(LinkLayerDiscoveryProtocolElement, LinkLayerDiscoveryProtocolElementWriter.method(:write_one))
7658
7731
  Writer.register(LogicalUnit, LogicalUnitWriter.method(:write_one))
7732
+ Writer.register(MDevType, MDevTypeWriter.method(:write_one))
7659
7733
  Writer.register(Mac, MacWriter.method(:write_one))
7660
7734
  Writer.register(MacPool, MacPoolWriter.method(:write_one))
7661
7735
  Writer.register(MemoryOverCommit, MemoryOverCommitWriter.method(:write_one))
metadata CHANGED
@@ -1,109 +1,109 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ovirt-engine-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 4.4.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: 2020-04-23 00:00:00.000000000 Z
11
+ date: 2020-04-08 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: '12.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: '12.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: '1.0'
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: '1.0'
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.7'
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.7'
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
- version: '0.52'
61
+ version: 0.79.0
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.79.0
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.9'
76
- - - '>='
76
+ - - ">="
77
77
  - !ruby/object:Gem::Version
78
78
  version: 0.9.12
79
79
  type: :development
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - ~>
83
+ - - "~>"
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0.9'
86
- - - '>='
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: 0.9.12
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: json
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - '>='
93
+ - - ">="
94
94
  - !ruby/object:Gem::Version
95
95
  version: '1'
96
- - - <
96
+ - - "<"
97
97
  - !ruby/object:Gem::Version
98
98
  version: '3'
99
99
  type: :runtime
100
100
  prerelease: false
101
101
  version_requirements: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - '>='
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: '1'
106
- - - <
106
+ - - "<"
107
107
  - !ruby/object:Gem::Version
108
108
  version: '3'
109
109
  description: Ruby SDK for the oVirt Engine API.
@@ -114,43 +114,43 @@ extensions:
114
114
  - ext/ovirtsdk4c/extconf.rb
115
115
  extra_rdoc_files: []
116
116
  files:
117
- - .yardopts
117
+ - ".yardopts"
118
118
  - CHANGES.adoc
119
119
  - LICENSE.txt
120
120
  - README.adoc
121
121
  - ext/ovirtsdk4c/extconf.rb
122
122
  - ext/ovirtsdk4c/ov_error.c
123
- - ext/ovirtsdk4c/ov_http_client.c
124
- - ext/ovirtsdk4c/ov_http_request.c
125
- - ext/ovirtsdk4c/ov_http_response.c
126
- - ext/ovirtsdk4c/ov_http_transfer.c
127
- - ext/ovirtsdk4c/ov_module.c
128
- - ext/ovirtsdk4c/ov_string.c
129
- - ext/ovirtsdk4c/ov_xml_reader.c
130
- - ext/ovirtsdk4c/ov_xml_writer.c
131
- - ext/ovirtsdk4c/ovirtsdk4c.c
132
123
  - ext/ovirtsdk4c/ov_error.h
124
+ - ext/ovirtsdk4c/ov_http_client.c
133
125
  - ext/ovirtsdk4c/ov_http_client.h
126
+ - ext/ovirtsdk4c/ov_http_request.c
134
127
  - ext/ovirtsdk4c/ov_http_request.h
128
+ - ext/ovirtsdk4c/ov_http_response.c
135
129
  - ext/ovirtsdk4c/ov_http_response.h
130
+ - ext/ovirtsdk4c/ov_http_transfer.c
136
131
  - ext/ovirtsdk4c/ov_http_transfer.h
132
+ - ext/ovirtsdk4c/ov_module.c
137
133
  - ext/ovirtsdk4c/ov_module.h
134
+ - ext/ovirtsdk4c/ov_string.c
138
135
  - ext/ovirtsdk4c/ov_string.h
136
+ - ext/ovirtsdk4c/ov_xml_reader.c
139
137
  - ext/ovirtsdk4c/ov_xml_reader.h
138
+ - ext/ovirtsdk4c/ov_xml_writer.c
140
139
  - ext/ovirtsdk4c/ov_xml_writer.h
140
+ - ext/ovirtsdk4c/ovirtsdk4c.c
141
141
  - lib/ovirtsdk4.rb
142
142
  - lib/ovirtsdk4/connection.rb
143
143
  - lib/ovirtsdk4/errors.rb
144
144
  - lib/ovirtsdk4/probe.rb
145
145
  - lib/ovirtsdk4/reader.rb
146
+ - lib/ovirtsdk4/readers.rb
146
147
  - lib/ovirtsdk4/service.rb
148
+ - lib/ovirtsdk4/services.rb
147
149
  - lib/ovirtsdk4/type.rb
148
- - lib/ovirtsdk4/writer.rb
149
- - lib/ovirtsdk4/readers.rb
150
+ - lib/ovirtsdk4/types.rb
150
151
  - lib/ovirtsdk4/version.rb
152
+ - lib/ovirtsdk4/writer.rb
151
153
  - lib/ovirtsdk4/writers.rb
152
- - lib/ovirtsdk4/services.rb
153
- - lib/ovirtsdk4/types.rb
154
154
  homepage: http://ovirt.org
155
155
  licenses:
156
156
  - Apache-2.0
@@ -161,17 +161,17 @@ require_paths:
161
161
  - lib
162
162
  required_ruby_version: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: '2.1'
166
+ version: '2.5'
167
167
  required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  requirements:
169
- - - '>='
169
+ - - ">="
170
170
  - !ruby/object:Gem::Version
171
171
  version: '0'
172
172
  requirements: []
173
173
  rubyforge_project:
174
- rubygems_version: 2.0.14.1
174
+ rubygems_version: 2.7.6.2
175
175
  signing_key:
176
176
  specification_version: 4
177
177
  summary: oVirt SDK