ovirt-engine-sdk 4.0.11 → 4.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef3151a5a4fdf9357755606aa19a21ac6190df9e
4
- data.tar.gz: e3a3afbb4b946fe05f8fc51147d56d1dea1bb0cd
3
+ metadata.gz: 47b9f2b19a80d7bbe6e9d6b8b6872221d338dbb7
4
+ data.tar.gz: 7aff41222648ebb5773f883a4e403d484968e509
5
5
  SHA512:
6
- metadata.gz: 3195ac3fc190a9ce0aae6a0ccc89ae4a53bcc6fcd9c1fbe8c64b7727d1a5dddda50a16084e3136bafc5089a5296382ec69fd1bd4352072e15eb583afa72df7e1
7
- data.tar.gz: e3ee355131e9bef66cf67fab83f493155b614ac31083271c41def40fef19d8ffa1b4e4932f5b5ff818796f74cdf720c12048b8cc15552e1b4d734d3516b2196e
6
+ metadata.gz: 60d56c33e999b1bcc53ac3dc3d8585bcccedc22968084b47f00f979e5e968155657954c81e5f7bd76d98f62d9f790987156f9164822c8cb48c0a09605c45aae2
7
+ data.tar.gz: 8941c7e72a6073f32e7d650b03ce2e504a11ccccea94dbf869a3757f8a69d40ac8066e14bc45da8eff854a7a1705144926f34aa050594b765277e0f13fe82734
data/CHANGES.adoc CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  This document describes the relevant changes between releases of the SDK.
4
4
 
5
+ == 4.0.12 / Mar 3 2017
6
+
7
+ Bug fixes:
8
+
9
+ * Don't avoid reserved words in enum values text.
10
+
11
+ * Red correctly attributes with enum values
12
+ https://bugzilla.redhat.com/1428642[#1428642].
13
+
5
14
  == 4.0.11 / Mar 2 2017
6
15
 
7
16
  New features:
@@ -192,41 +192,38 @@ module OvirtSDK4
192
192
  #
193
193
  # Converts the given text to an enum.
194
194
  #
195
- # @param enum_type [module]
195
+ # @param enum_module [Module]
196
196
  # @param text [String]
197
197
  # @return [String]
198
198
  #
199
- def self.parse_enum(enum_type, text)
199
+ def self.parse_enum(enum_module, text)
200
200
  return nil unless text
201
- begin
202
- text if enum_type.constants.map(&:downcase).include?(text.to_sym)
203
- rescue
204
- nil
205
- end
201
+ values = enum_module.constants.map { |const| enum_module.const_get(const) }
202
+ values.detect { |value| value.casecmp(text).zero? }
206
203
  end
207
204
 
208
205
  #
209
206
  # Reads a enum value, assuming that the cursor is positioned at the
210
207
  # start element that contains the value.
211
208
  #
212
- # @param enum_type [module]
209
+ # @param enum_module [Module]
213
210
  # @param reader [XmlReader]
214
211
  # @return [Array<String>]
215
212
  #
216
- def self.read_enum(enum_type, reader)
217
- Reader.parse_enum(enum_type, reader.read_element)
213
+ def self.read_enum(enum_module, reader)
214
+ Reader.parse_enum(enum_module, reader.read_element)
218
215
  end
219
216
 
220
217
  #
221
218
  # Reads a list of enum values, assuming that the cursor is positioned
222
219
  # at the start element of the element that contains the first value.
223
220
  #
224
- # @param enum_type [module]
221
+ # @param enum_module [Module]
225
222
  # @param reader [XmlReader]
226
223
  # @return [Array<String>]
227
224
  #
228
- def self.read_enums(enum_type, reader)
229
- reader.read_elements.map { |text| Reader.parse_enum(enum_type, text) }
225
+ def self.read_enums(enum_module, reader)
226
+ reader.read_elements.map { |text| Reader.parse_enum(enum_module, text) }
230
227
  end
231
228
 
232
229
  #
@@ -616,7 +616,7 @@ module OvirtSDK4
616
616
  when 'address'
617
617
  object.address = Reader.read_string(reader)
618
618
  when 'broker_type'
619
- object.broker_type = Reader.read_enum(BrokerType, reader)
619
+ object.broker_type = Reader.read_enum(MessageBrokerType, reader)
620
620
  when 'network_mappings'
621
621
  object.network_mappings = Reader.read_string(reader)
622
622
  when 'password'
@@ -2102,7 +2102,7 @@ module OvirtSDK4
2102
2102
  when 'data'
2103
2103
  object.data = Reader.read_string(reader)
2104
2104
  when 'type'
2105
- object.type = Reader.read_enum(Type, reader)
2105
+ object.type = Reader.read_enum(ConfigurationType, reader)
2106
2106
  else
2107
2107
  reader.next_element
2108
2108
  end
@@ -2310,7 +2310,7 @@ module OvirtSDK4
2310
2310
  when 'level'
2311
2311
  object.level = Reader.read_integer(reader)
2312
2312
  when 'mode'
2313
- object.mode = Reader.read_enum(Mode, reader)
2313
+ object.mode = Reader.read_enum(CpuMode, reader)
2314
2314
  when 'name'
2315
2315
  object.name = Reader.read_string(reader)
2316
2316
  when 'speed'
@@ -2773,9 +2773,9 @@ module OvirtSDK4
2773
2773
  when 'name'
2774
2774
  object.name = Reader.read_string(reader)
2775
2775
  when 'quota_mode'
2776
- object.quota_mode = Reader.read_enum(QuotaMode, reader)
2776
+ object.quota_mode = Reader.read_enum(QuotaModeType, reader)
2777
2777
  when 'status'
2778
- object.status = Reader.read_enum(Status, reader)
2778
+ object.status = Reader.read_enum(DataCenterStatus, reader)
2779
2779
  when 'storage_format'
2780
2780
  object.storage_format = Reader.read_enum(StorageFormat, reader)
2781
2781
  when 'supported_versions'
@@ -3047,7 +3047,7 @@ module OvirtSDK4
3047
3047
  when 'description'
3048
3048
  object.description = Reader.read_string(reader)
3049
3049
  when 'format'
3050
- object.format = Reader.read_enum(Format, reader)
3050
+ object.format = Reader.read_enum(DiskFormat, reader)
3051
3051
  when 'id'
3052
3052
  object.id = Reader.read_string(reader)
3053
3053
  when 'image_id'
@@ -3055,7 +3055,7 @@ module OvirtSDK4
3055
3055
  when 'initial_size'
3056
3056
  object.initial_size = Reader.read_integer(reader)
3057
3057
  when 'interface'
3058
- object.interface = Reader.read_enum(Interface, reader)
3058
+ object.interface = Reader.read_enum(DiskInterface, reader)
3059
3059
  when 'logical_name'
3060
3060
  object.logical_name = Reader.read_string(reader)
3061
3061
  when 'lun_storage'
@@ -3069,15 +3069,15 @@ module OvirtSDK4
3069
3069
  when 'read_only'
3070
3070
  object.read_only = Reader.read_boolean(reader)
3071
3071
  when 'sgio'
3072
- object.sgio = Reader.read_enum(Sgio, reader)
3072
+ object.sgio = Reader.read_enum(ScsiGenericIO, reader)
3073
3073
  when 'shareable'
3074
3074
  object.shareable = Reader.read_boolean(reader)
3075
3075
  when 'sparse'
3076
3076
  object.sparse = Reader.read_boolean(reader)
3077
3077
  when 'status'
3078
- object.status = Reader.read_enum(Status, reader)
3078
+ object.status = Reader.read_enum(DiskStatus, reader)
3079
3079
  when 'storage_type'
3080
- object.storage_type = Reader.read_enum(StorageType, reader)
3080
+ object.storage_type = Reader.read_enum(DiskStorageType, reader)
3081
3081
  when 'uses_scsi_reservation'
3082
3082
  object.uses_scsi_reservation = Reader.read_boolean(reader)
3083
3083
  when 'wipe_after_delete'
@@ -3216,7 +3216,7 @@ module OvirtSDK4
3216
3216
  when 'id'
3217
3217
  object.id = Reader.read_string(reader)
3218
3218
  when 'interface'
3219
- object.interface = Reader.read_enum(Interface, reader)
3219
+ object.interface = Reader.read_enum(DiskInterface, reader)
3220
3220
  when 'logical_name'
3221
3221
  object.logical_name = Reader.read_string(reader)
3222
3222
  when 'name'
@@ -3443,7 +3443,7 @@ module OvirtSDK4
3443
3443
  when 'description'
3444
3444
  object.description = Reader.read_string(reader)
3445
3445
  when 'format'
3446
- object.format = Reader.read_enum(Format, reader)
3446
+ object.format = Reader.read_enum(DiskFormat, reader)
3447
3447
  when 'id'
3448
3448
  object.id = Reader.read_string(reader)
3449
3449
  when 'image_id'
@@ -3451,7 +3451,7 @@ module OvirtSDK4
3451
3451
  when 'initial_size'
3452
3452
  object.initial_size = Reader.read_integer(reader)
3453
3453
  when 'interface'
3454
- object.interface = Reader.read_enum(Interface, reader)
3454
+ object.interface = Reader.read_enum(DiskInterface, reader)
3455
3455
  when 'logical_name'
3456
3456
  object.logical_name = Reader.read_string(reader)
3457
3457
  when 'lun_storage'
@@ -3465,15 +3465,15 @@ module OvirtSDK4
3465
3465
  when 'read_only'
3466
3466
  object.read_only = Reader.read_boolean(reader)
3467
3467
  when 'sgio'
3468
- object.sgio = Reader.read_enum(Sgio, reader)
3468
+ object.sgio = Reader.read_enum(ScsiGenericIO, reader)
3469
3469
  when 'shareable'
3470
3470
  object.shareable = Reader.read_boolean(reader)
3471
3471
  when 'sparse'
3472
3472
  object.sparse = Reader.read_boolean(reader)
3473
3473
  when 'status'
3474
- object.status = Reader.read_enum(Status, reader)
3474
+ object.status = Reader.read_enum(DiskStatus, reader)
3475
3475
  when 'storage_type'
3476
- object.storage_type = Reader.read_enum(StorageType, reader)
3476
+ object.storage_type = Reader.read_enum(DiskStorageType, reader)
3477
3477
  when 'uses_scsi_reservation'
3478
3478
  object.uses_scsi_reservation = Reader.read_boolean(reader)
3479
3479
  when 'wipe_after_delete'
@@ -3640,7 +3640,7 @@ module OvirtSDK4
3640
3640
  when 'smartcard_enabled'
3641
3641
  object.smartcard_enabled = Reader.read_boolean(reader)
3642
3642
  when 'type'
3643
- object.type = Reader.read_enum(Type, reader)
3643
+ object.type = Reader.read_enum(DisplayType, reader)
3644
3644
  else
3645
3645
  reader.next_element
3646
3646
  end
@@ -3925,7 +3925,7 @@ module OvirtSDK4
3925
3925
  while reader.forward do
3926
3926
  case reader.node_name
3927
3927
  when 'on_error'
3928
- object.on_error = Reader.read_enum(OnError, reader)
3928
+ object.on_error = Reader.read_enum(MigrateOnError, reader)
3929
3929
  else
3930
3930
  reader.next_element
3931
3931
  end
@@ -4029,7 +4029,7 @@ module OvirtSDK4
4029
4029
  when 'origin'
4030
4030
  object.origin = Reader.read_string(reader)
4031
4031
  when 'severity'
4032
- object.severity = Reader.read_enum(Severity, reader)
4032
+ object.severity = Reader.read_enum(LogSeverity, reader)
4033
4033
  when 'time'
4034
4034
  object.time = Reader.read_date(reader)
4035
4035
  when 'cluster'
@@ -4702,7 +4702,7 @@ module OvirtSDK4
4702
4702
  when 'password'
4703
4703
  object.password = Reader.read_string(reader)
4704
4704
  when 'provider'
4705
- object.provider = Reader.read_enum(Provider, reader)
4705
+ object.provider = Reader.read_enum(ExternalVmProviderType, reader)
4706
4706
  when 'sparse'
4707
4707
  object.sparse = Reader.read_boolean(reader)
4708
4708
  when 'url'
@@ -5295,7 +5295,7 @@ module OvirtSDK4
5295
5295
  when 'server_id'
5296
5296
  object.server_id = Reader.read_string(reader)
5297
5297
  when 'status'
5298
- object.status = Reader.read_enum(Status, reader)
5298
+ object.status = Reader.read_enum(GlusterBrickStatus, reader)
5299
5299
  when 'gluster_volume'
5300
5300
  object.gluster_volume = GlusterVolumeReader.read_one(reader)
5301
5301
  when 'instance_type'
@@ -5681,7 +5681,7 @@ module OvirtSDK4
5681
5681
  when 'content'
5682
5682
  object.content = Reader.read_string(reader)
5683
5683
  when 'content_type'
5684
- object.content_type = Reader.read_enum(ContentType, reader)
5684
+ object.content_type = Reader.read_enum(HookContentType, reader)
5685
5685
  when 'description'
5686
5686
  object.description = Reader.read_string(reader)
5687
5687
  when 'gluster_command'
@@ -5691,9 +5691,9 @@ module OvirtSDK4
5691
5691
  when 'name'
5692
5692
  object.name = Reader.read_string(reader)
5693
5693
  when 'stage'
5694
- object.stage = Reader.read_enum(Stage, reader)
5694
+ object.stage = Reader.read_enum(HookStage, reader)
5695
5695
  when 'status'
5696
- object.status = Reader.read_enum(Status, reader)
5696
+ object.status = Reader.read_enum(GlusterHookStatus, reader)
5697
5697
  when 'cluster'
5698
5698
  object.cluster = ClusterReader.read_one(reader)
5699
5699
  when 'server_hooks'
@@ -5900,7 +5900,7 @@ module OvirtSDK4
5900
5900
  when 'comment'
5901
5901
  object.comment = Reader.read_string(reader)
5902
5902
  when 'content_type'
5903
- object.content_type = Reader.read_enum(ContentType, reader)
5903
+ object.content_type = Reader.read_enum(HookContentType, reader)
5904
5904
  when 'description'
5905
5905
  object.description = Reader.read_string(reader)
5906
5906
  when 'id'
@@ -5908,7 +5908,7 @@ module OvirtSDK4
5908
5908
  when 'name'
5909
5909
  object.name = Reader.read_string(reader)
5910
5910
  when 'status'
5911
- object.status = Reader.read_enum(Status, reader)
5911
+ object.status = Reader.read_enum(GlusterHookStatus, reader)
5912
5912
  when 'host'
5913
5913
  object.host = HostReader.read_one(reader)
5914
5914
  else
@@ -6006,13 +6006,13 @@ module OvirtSDK4
6006
6006
  when 'replica_count'
6007
6007
  object.replica_count = Reader.read_integer(reader)
6008
6008
  when 'status'
6009
- object.status = Reader.read_enum(Status, reader)
6009
+ object.status = Reader.read_enum(GlusterVolumeStatus, reader)
6010
6010
  when 'stripe_count'
6011
6011
  object.stripe_count = Reader.read_integer(reader)
6012
6012
  when 'transport_types'
6013
6013
  object.transport_types = Reader.read_enums(TransportType, reader)
6014
6014
  when 'volume_type'
6015
- object.volume_type = Reader.read_enum(VolumeType, reader)
6015
+ object.volume_type = Reader.read_enum(GlusterVolumeType, reader)
6016
6016
  when 'bricks'
6017
6017
  object.bricks = GlusterBrickReader.read_many(reader)
6018
6018
  when 'cluster'
@@ -6267,7 +6267,7 @@ module OvirtSDK4
6267
6267
  when 'port'
6268
6268
  object.port = Reader.read_integer(reader)
6269
6269
  when 'protocol'
6270
- object.protocol = Reader.read_enum(Protocol, reader)
6270
+ object.protocol = Reader.read_enum(GraphicsType, reader)
6271
6271
  when 'tls_port'
6272
6272
  object.tls_port = Reader.read_integer(reader)
6273
6273
  when 'instance_type'
@@ -6846,7 +6846,7 @@ module OvirtSDK4
6846
6846
  when 'power_management'
6847
6847
  object.power_management = PowerManagementReader.read_one(reader)
6848
6848
  when 'protocol'
6849
- object.protocol = Reader.read_enum(Protocol, reader)
6849
+ object.protocol = Reader.read_enum(HostProtocol, reader)
6850
6850
  when 'root_password'
6851
6851
  object.root_password = Reader.read_string(reader)
6852
6852
  when 'se_linux'
@@ -6856,7 +6856,7 @@ module OvirtSDK4
6856
6856
  when 'ssh'
6857
6857
  object.ssh = SshReader.read_one(reader)
6858
6858
  when 'status'
6859
- object.status = Reader.read_enum(Status, reader)
6859
+ object.status = Reader.read_enum(HostStatus, reader)
6860
6860
  when 'status_detail'
6861
6861
  object.status_detail = Reader.read_string(reader)
6862
6862
  when 'summary'
@@ -6864,7 +6864,7 @@ module OvirtSDK4
6864
6864
  when 'transparent_hugepages'
6865
6865
  object.transparent_huge_pages = TransparentHugePagesReader.read_one(reader)
6866
6866
  when 'type'
6867
- object.type = Reader.read_enum(Type, reader)
6867
+ object.type = Reader.read_enum(HostType, reader)
6868
6868
  when 'update_available'
6869
6869
  object.update_available = Reader.read_boolean(reader)
6870
6870
  when 'version'
@@ -7223,7 +7223,7 @@ module OvirtSDK4
7223
7223
  when 'ipv6'
7224
7224
  object.ipv6 = IpReader.read_one(reader)
7225
7225
  when 'ipv6_boot_protocol'
7226
- object.ipv6_boot_protocol = Reader.read_enum(Ipv6BootProtocol, reader)
7226
+ object.ipv6_boot_protocol = Reader.read_enum(BootProtocol, reader)
7227
7227
  when 'mac'
7228
7228
  object.mac = MacReader.read_one(reader)
7229
7229
  when 'mtu'
@@ -7241,7 +7241,7 @@ module OvirtSDK4
7241
7241
  when 'statistics'
7242
7242
  object.statistics = StatisticReader.read_many(reader)
7243
7243
  when 'status'
7244
- object.status = Reader.read_enum(Status, reader)
7244
+ object.status = Reader.read_enum(NicStatus, reader)
7245
7245
  when 'virtual_functions_configuration'
7246
7246
  object.virtual_functions_configuration = HostNicVirtualFunctionsConfigurationReader.read_one(reader)
7247
7247
  when 'vlan'
@@ -7451,7 +7451,7 @@ module OvirtSDK4
7451
7451
  when 'target'
7452
7452
  object.target = Reader.read_string(reader)
7453
7453
  when 'type'
7454
- object.type = Reader.read_enum(Type, reader)
7454
+ object.type = Reader.read_enum(StorageType, reader)
7455
7455
  when 'username'
7456
7456
  object.username = Reader.read_string(reader)
7457
7457
  when 'vfs_type'
@@ -7851,7 +7851,7 @@ module OvirtSDK4
7851
7851
  when 'name'
7852
7852
  object.name = Reader.read_string(reader)
7853
7853
  when 'phase'
7854
- object.phase = Reader.read_enum(Phase, reader)
7854
+ object.phase = Reader.read_enum(ImageTransferPhase, reader)
7855
7855
  when 'proxy_url'
7856
7856
  object.proxy_url = Reader.read_string(reader)
7857
7857
  when 'signed_ticket'
@@ -8157,13 +8157,13 @@ module OvirtSDK4
8157
8157
  when 'stateless'
8158
8158
  object.stateless = Reader.read_boolean(reader)
8159
8159
  when 'status'
8160
- object.status = Reader.read_enum(Status, reader)
8160
+ object.status = Reader.read_enum(TemplateStatus, reader)
8161
8161
  when 'time_zone'
8162
8162
  object.time_zone = TimeZoneReader.read_one(reader)
8163
8163
  when 'tunnel_migration'
8164
8164
  object.tunnel_migration = Reader.read_boolean(reader)
8165
8165
  when 'type'
8166
- object.type = Reader.read_enum(Type, reader)
8166
+ object.type = Reader.read_enum(VmType, reader)
8167
8167
  when 'usb'
8168
8168
  object.usb = UsbReader.read_one(reader)
8169
8169
  when 'version'
@@ -8360,7 +8360,7 @@ module OvirtSDK4
8360
8360
  when 'netmask'
8361
8361
  object.netmask = Reader.read_string(reader)
8362
8362
  when 'version'
8363
- object.version = Reader.read_enum(Version, reader)
8363
+ object.version = Reader.read_enum(IpVersion, reader)
8364
8364
  else
8365
8365
  reader.next_element
8366
8366
  end
@@ -8422,7 +8422,7 @@ module OvirtSDK4
8422
8422
  while reader.forward do
8423
8423
  case reader.node_name
8424
8424
  when 'assignment_method'
8425
- object.assignment_method = Reader.read_enum(AssignmentMethod, reader)
8425
+ object.assignment_method = Reader.read_enum(BootProtocol, reader)
8426
8426
  when 'ip'
8427
8427
  object.ip = IpReader.read_one(reader)
8428
8428
  else
@@ -8749,7 +8749,7 @@ module OvirtSDK4
8749
8749
  when 'start_time'
8750
8750
  object.start_time = Reader.read_date(reader)
8751
8751
  when 'status'
8752
- object.status = Reader.read_enum(Status, reader)
8752
+ object.status = Reader.read_enum(JobStatus, reader)
8753
8753
  when 'owner'
8754
8754
  object.owner = UserReader.read_one(reader)
8755
8755
  when 'steps'
@@ -9118,7 +9118,7 @@ module OvirtSDK4
9118
9118
  when 'size'
9119
9119
  object.size = Reader.read_integer(reader)
9120
9120
  when 'status'
9121
- object.status = Reader.read_enum(Status, reader)
9121
+ object.status = Reader.read_enum(LunStatus, reader)
9122
9122
  when 'storage_domain_id'
9123
9123
  object.storage_domain_id = Reader.read_string(reader)
9124
9124
  when 'target'
@@ -9468,7 +9468,7 @@ module OvirtSDK4
9468
9468
  while reader.forward do
9469
9469
  case reader.node_name
9470
9470
  when 'id'
9471
- object.id = Reader.read_enum(Id, reader)
9471
+ object.id = Reader.read_enum(SsoMethod, reader)
9472
9472
  else
9473
9473
  reader.next_element
9474
9474
  end
@@ -9532,7 +9532,7 @@ module OvirtSDK4
9532
9532
  while reader.forward do
9533
9533
  case reader.node_name
9534
9534
  when 'assignment_method'
9535
- object.assignment_method = Reader.read_enum(AssignmentMethod, reader)
9535
+ object.assignment_method = Reader.read_enum(MigrationBandwidthAssignmentMethod, reader)
9536
9536
  when 'custom_value'
9537
9537
  object.custom_value = Reader.read_integer(reader)
9538
9538
  else
@@ -9598,11 +9598,11 @@ module OvirtSDK4
9598
9598
  while reader.forward do
9599
9599
  case reader.node_name
9600
9600
  when 'auto_converge'
9601
- object.auto_converge = Reader.read_enum(AutoConverge, reader)
9601
+ object.auto_converge = Reader.read_enum(InheritableBoolean, reader)
9602
9602
  when 'bandwidth'
9603
9603
  object.bandwidth = MigrationBandwidthReader.read_one(reader)
9604
9604
  when 'compressed'
9605
- object.compressed = Reader.read_enum(Compressed, reader)
9605
+ object.compressed = Reader.read_enum(InheritableBoolean, reader)
9606
9606
  when 'policy'
9607
9607
  object.policy = MigrationPolicyReader.read_one(reader)
9608
9608
  else
@@ -9776,7 +9776,7 @@ module OvirtSDK4
9776
9776
  when 'required'
9777
9777
  object.required = Reader.read_boolean(reader)
9778
9778
  when 'status'
9779
- object.status = Reader.read_enum(Status, reader)
9779
+ object.status = Reader.read_enum(NetworkStatus, reader)
9780
9780
  when 'stp'
9781
9781
  object.stp = Reader.read_boolean(reader)
9782
9782
  when 'usages'
@@ -10275,7 +10275,7 @@ module OvirtSDK4
10275
10275
  when 'id'
10276
10276
  object.id = Reader.read_string(reader)
10277
10277
  when 'interface'
10278
- object.interface = Reader.read_enum(Interface, reader)
10278
+ object.interface = Reader.read_enum(NicInterface, reader)
10279
10279
  when 'linked'
10280
10280
  object.linked = Reader.read_boolean(reader)
10281
10281
  when 'mac'
@@ -10968,7 +10968,7 @@ module OvirtSDK4
10968
10968
  when 'password'
10969
10969
  object.password = Reader.read_string(reader)
10970
10970
  when 'plugin_type'
10971
- object.plugin_type = Reader.read_enum(PluginType, reader)
10971
+ object.plugin_type = Reader.read_enum(NetworkPluginType, reader)
10972
10972
  when 'properties'
10973
10973
  object.properties = PropertyReader.read_many(reader)
10974
10974
  when 'read_only'
@@ -10978,7 +10978,7 @@ module OvirtSDK4
10978
10978
  when 'tenant_name'
10979
10979
  object.tenant_name = Reader.read_string(reader)
10980
10980
  when 'type'
10981
- object.type = Reader.read_enum(Type, reader)
10981
+ object.type = Reader.read_enum(OpenStackNetworkProviderType, reader)
10982
10982
  when 'url'
10983
10983
  object.url = Reader.read_string(reader)
10984
10984
  when 'username'
@@ -11496,7 +11496,7 @@ module OvirtSDK4
11496
11496
  when 'name'
11497
11497
  object.name = Reader.read_string(reader)
11498
11498
  when 'usage_type'
11499
- object.usage_type = Reader.read_enum(UsageType, reader)
11499
+ object.usage_type = Reader.read_enum(OpenstackVolumeAuthenticationKeyUsageType, reader)
11500
11500
  when 'uuid'
11501
11501
  object.uuid = Reader.read_string(reader)
11502
11502
  when 'value'
@@ -11864,7 +11864,7 @@ module OvirtSDK4
11864
11864
  when 'files'
11865
11865
  object.files = FileReader.read_many(reader)
11866
11866
  when 'type'
11867
- object.type = Reader.read_enum(Type, reader)
11867
+ object.type = Reader.read_enum(VmDeviceType, reader)
11868
11868
  when 'volume_id'
11869
11869
  object.volume_id = Reader.read_string(reader)
11870
11870
  else
@@ -12104,7 +12104,7 @@ module OvirtSDK4
12104
12104
  while reader.forward do
12105
12105
  case reader.node_name
12106
12106
  when 'type'
12107
- object.type = Reader.read_enum(Type, reader)
12107
+ object.type = Reader.read_enum(PmProxyType, reader)
12108
12108
  else
12109
12109
  reader.next_element
12110
12110
  end
@@ -12249,7 +12249,7 @@ module OvirtSDK4
12249
12249
  when 'pm_proxies'
12250
12250
  object.pm_proxies = PmProxyReader.read_many(reader)
12251
12251
  when 'status'
12252
- object.status = Reader.read_enum(Status, reader)
12252
+ object.status = Reader.read_enum(PowerManagementStatus, reader)
12253
12253
  when 'type'
12254
12254
  object.type = Reader.read_string(reader)
12255
12255
  when 'username'
@@ -12737,7 +12737,7 @@ module OvirtSDK4
12737
12737
  when 'outbound_peak'
12738
12738
  object.outbound_peak = Reader.read_integer(reader)
12739
12739
  when 'type'
12740
- object.type = Reader.read_enum(Type, reader)
12740
+ object.type = Reader.read_enum(QosType, reader)
12741
12741
  when 'data_center'
12742
12742
  object.data_center = DataCenterReader.read_one(reader)
12743
12743
  else
@@ -13334,7 +13334,7 @@ module OvirtSDK4
13334
13334
  when 'name'
13335
13335
  object.name = Reader.read_string(reader)
13336
13336
  when 'type'
13337
- object.type = Reader.read_enum(Type, reader)
13337
+ object.type = Reader.read_enum(ReportedDeviceType, reader)
13338
13338
  when 'vm'
13339
13339
  object.vm = VmReader.read_one(reader)
13340
13340
  else
@@ -13400,7 +13400,7 @@ module OvirtSDK4
13400
13400
  when 'rate'
13401
13401
  object.rate = RateReader.read_one(reader)
13402
13402
  when 'source'
13403
- object.source = Reader.read_enum(Source, reader)
13403
+ object.source = Reader.read_enum(RngSource, reader)
13404
13404
  else
13405
13405
  reader.next_element
13406
13406
  end
@@ -13706,7 +13706,7 @@ module OvirtSDK4
13706
13706
  when 'properties'
13707
13707
  object.properties = PropertyReader.read_many(reader)
13708
13708
  when 'type'
13709
- object.type = Reader.read_enum(Type, reader)
13709
+ object.type = Reader.read_enum(PolicyUnitType, reader)
13710
13710
  else
13711
13711
  reader.next_element
13712
13712
  end
@@ -13768,7 +13768,7 @@ module OvirtSDK4
13768
13768
  while reader.forward do
13769
13769
  case reader.node_name
13770
13770
  when 'mode'
13771
- object.mode = Reader.read_enum(Mode, reader)
13771
+ object.mode = Reader.read_enum(SeLinuxMode, reader)
13772
13772
  else
13773
13773
  reader.next_element
13774
13774
  end
@@ -13832,7 +13832,7 @@ module OvirtSDK4
13832
13832
  while reader.forward do
13833
13833
  case reader.node_name
13834
13834
  when 'policy'
13835
- object.policy = Reader.read_enum(Policy, reader)
13835
+ object.policy = Reader.read_enum(SerialNumberPolicy, reader)
13836
13836
  when 'value'
13837
13837
  object.value = Reader.read_string(reader)
13838
13838
  else
@@ -14264,7 +14264,7 @@ module OvirtSDK4
14264
14264
  when 'stateless'
14265
14265
  object.stateless = Reader.read_boolean(reader)
14266
14266
  when 'status'
14267
- object.status = Reader.read_enum(Status, reader)
14267
+ object.status = Reader.read_enum(VmStatus, reader)
14268
14268
  when 'status_detail'
14269
14269
  object.status_detail = Reader.read_string(reader)
14270
14270
  when 'stop_reason'
@@ -14276,7 +14276,7 @@ module OvirtSDK4
14276
14276
  when 'tunnel_migration'
14277
14277
  object.tunnel_migration = Reader.read_boolean(reader)
14278
14278
  when 'type'
14279
- object.type = Reader.read_enum(Type, reader)
14279
+ object.type = Reader.read_enum(VmType, reader)
14280
14280
  when 'usb'
14281
14281
  object.usb = UsbReader.read_one(reader)
14282
14282
  when 'use_latest_template_version'
@@ -14515,7 +14515,7 @@ module OvirtSDK4
14515
14515
  when 'priority'
14516
14516
  object.priority = Reader.read_integer(reader)
14517
14517
  when 'status'
14518
- object.status = Reader.read_enum(Status, reader)
14518
+ object.status = Reader.read_enum(SpmStatus, reader)
14519
14519
  else
14520
14520
  reader.next_element
14521
14521
  end
@@ -14589,7 +14589,7 @@ module OvirtSDK4
14589
14589
  while reader.forward do
14590
14590
  case reader.node_name
14591
14591
  when 'authentication_method'
14592
- object.authentication_method = Reader.read_enum(AuthenticationMethod, reader)
14592
+ object.authentication_method = Reader.read_enum(SshAuthenticationMethod, reader)
14593
14593
  when 'comment'
14594
14594
  object.comment = Reader.read_string(reader)
14595
14595
  when 'description'
@@ -14823,13 +14823,13 @@ module OvirtSDK4
14823
14823
  when 'id'
14824
14824
  object.id = Reader.read_string(reader)
14825
14825
  when 'kind'
14826
- object.kind = Reader.read_enum(Kind, reader)
14826
+ object.kind = Reader.read_enum(StatisticKind, reader)
14827
14827
  when 'name'
14828
14828
  object.name = Reader.read_string(reader)
14829
14829
  when 'type'
14830
- object.type = Reader.read_enum(Type, reader)
14830
+ object.type = Reader.read_enum(ValueType, reader)
14831
14831
  when 'unit'
14832
- object.unit = Reader.read_enum(Unit, reader)
14832
+ object.unit = Reader.read_enum(StatisticUnit, reader)
14833
14833
  when 'values'
14834
14834
  object.values = ValueReader.read_many(reader)
14835
14835
  when 'brick'
@@ -14939,7 +14939,7 @@ module OvirtSDK4
14939
14939
  when 'external'
14940
14940
  object.external = Reader.read_boolean(reader)
14941
14941
  when 'external_type'
14942
- object.external_type = Reader.read_enum(ExternalType, reader)
14942
+ object.external_type = Reader.read_enum(ExternalSystemType, reader)
14943
14943
  when 'id'
14944
14944
  object.id = Reader.read_string(reader)
14945
14945
  when 'name'
@@ -14949,9 +14949,9 @@ module OvirtSDK4
14949
14949
  when 'start_time'
14950
14950
  object.start_time = Reader.read_date(reader)
14951
14951
  when 'status'
14952
- object.status = Reader.read_enum(Status, reader)
14952
+ object.status = Reader.read_enum(StepStatus, reader)
14953
14953
  when 'type'
14954
- object.type = Reader.read_enum(Type, reader)
14954
+ object.type = Reader.read_enum(StepEnum, reader)
14955
14955
  when 'job'
14956
14956
  object.job = JobReader.read_one(reader)
14957
14957
  when 'parent_step'
@@ -15098,7 +15098,7 @@ module OvirtSDK4
15098
15098
  when 'target'
15099
15099
  object.target = Reader.read_string(reader)
15100
15100
  when 'type'
15101
- object.type = Reader.read_enum(Type, reader)
15101
+ object.type = Reader.read_enum(StorageType, reader)
15102
15102
  when 'username'
15103
15103
  object.username = Reader.read_string(reader)
15104
15104
  when 'vfs_type'
@@ -15304,13 +15304,13 @@ module OvirtSDK4
15304
15304
  when 'name'
15305
15305
  object.name = Reader.read_string(reader)
15306
15306
  when 'status'
15307
- object.status = Reader.read_enum(Status, reader)
15307
+ object.status = Reader.read_enum(StorageDomainStatus, reader)
15308
15308
  when 'storage'
15309
15309
  object.storage = HostStorageReader.read_one(reader)
15310
15310
  when 'storage_format'
15311
15311
  object.storage_format = Reader.read_enum(StorageFormat, reader)
15312
15312
  when 'type'
15313
- object.type = Reader.read_enum(Type, reader)
15313
+ object.type = Reader.read_enum(StorageDomainType, reader)
15314
15314
  when 'used'
15315
15315
  object.used = Reader.read_integer(reader)
15316
15316
  when 'warning_low_space_indicator'
@@ -15625,13 +15625,13 @@ module OvirtSDK4
15625
15625
  when 'stateless'
15626
15626
  object.stateless = Reader.read_boolean(reader)
15627
15627
  when 'status'
15628
- object.status = Reader.read_enum(Status, reader)
15628
+ object.status = Reader.read_enum(TemplateStatus, reader)
15629
15629
  when 'time_zone'
15630
15630
  object.time_zone = TimeZoneReader.read_one(reader)
15631
15631
  when 'tunnel_migration'
15632
15632
  object.tunnel_migration = Reader.read_boolean(reader)
15633
15633
  when 'type'
15634
- object.type = Reader.read_enum(Type, reader)
15634
+ object.type = Reader.read_enum(VmType, reader)
15635
15635
  when 'usb'
15636
15636
  object.usb = UsbReader.read_one(reader)
15637
15637
  when 'version'
@@ -16098,7 +16098,7 @@ module OvirtSDK4
16098
16098
  when 'enabled'
16099
16099
  object.enabled = Reader.read_boolean(reader)
16100
16100
  when 'type'
16101
- object.type = Reader.read_enum(Type, reader)
16101
+ object.type = Reader.read_enum(UsbType, reader)
16102
16102
  else
16103
16103
  reader.next_element
16104
16104
  end
@@ -16984,7 +16984,7 @@ module OvirtSDK4
16984
16984
  when 'stateless'
16985
16985
  object.stateless = Reader.read_boolean(reader)
16986
16986
  when 'status'
16987
- object.status = Reader.read_enum(Status, reader)
16987
+ object.status = Reader.read_enum(VmStatus, reader)
16988
16988
  when 'status_detail'
16989
16989
  object.status_detail = Reader.read_string(reader)
16990
16990
  when 'stop_reason'
@@ -16996,7 +16996,7 @@ module OvirtSDK4
16996
16996
  when 'tunnel_migration'
16997
16997
  object.tunnel_migration = Reader.read_boolean(reader)
16998
16998
  when 'type'
16999
- object.type = Reader.read_enum(Type, reader)
16999
+ object.type = Reader.read_enum(VmType, reader)
17000
17000
  when 'usb'
17001
17001
  object.usb = UsbReader.read_one(reader)
17002
17002
  when 'use_latest_template_version'
@@ -17269,7 +17269,7 @@ module OvirtSDK4
17269
17269
  when 'tunnel_migration'
17270
17270
  object.tunnel_migration = Reader.read_boolean(reader)
17271
17271
  when 'type'
17272
- object.type = Reader.read_enum(Type, reader)
17272
+ object.type = Reader.read_enum(VmType, reader)
17273
17273
  when 'usb'
17274
17274
  object.usb = UsbReader.read_one(reader)
17275
17275
  when 'virtio_scsi'
@@ -17343,7 +17343,7 @@ module OvirtSDK4
17343
17343
  while reader.forward do
17344
17344
  case reader.node_name
17345
17345
  when 'affinity'
17346
- object.affinity = Reader.read_enum(Affinity, reader)
17346
+ object.affinity = Reader.read_enum(VmAffinity, reader)
17347
17347
  when 'hosts'
17348
17348
  object.hosts = HostReader.read_many(reader)
17349
17349
  when 'link'
@@ -17468,7 +17468,7 @@ module OvirtSDK4
17468
17468
  when 'stateful'
17469
17469
  object.stateful = Reader.read_boolean(reader)
17470
17470
  when 'type'
17471
- object.type = Reader.read_enum(Type, reader)
17471
+ object.type = Reader.read_enum(VmPoolType, reader)
17472
17472
  when 'use_latest_template_version'
17473
17473
  object.use_latest_template_version = Reader.read_boolean(reader)
17474
17474
  when 'cluster'
@@ -17631,7 +17631,7 @@ module OvirtSDK4
17631
17631
  while reader.forward do
17632
17632
  case reader.node_name
17633
17633
  when 'mode'
17634
- object.mode = Reader.read_enum(Mode, reader)
17634
+ object.mode = Reader.read_enum(VnicPassThroughMode, reader)
17635
17635
  else
17636
17636
  reader.next_element
17637
17637
  end
@@ -17880,7 +17880,7 @@ module OvirtSDK4
17880
17880
  while reader.forward do
17881
17881
  case reader.node_name
17882
17882
  when 'action'
17883
- object.action = Reader.read_enum(Action, reader)
17883
+ object.action = Reader.read_enum(WatchdogAction, reader)
17884
17884
  when 'comment'
17885
17885
  object.comment = Reader.read_string(reader)
17886
17886
  when 'description'
@@ -17888,7 +17888,7 @@ module OvirtSDK4
17888
17888
  when 'id'
17889
17889
  object.id = Reader.read_string(reader)
17890
17890
  when 'model'
17891
- object.model = Reader.read_enum(Model, reader)
17891
+ object.model = Reader.read_enum(WatchdogModel, reader)
17892
17892
  when 'name'
17893
17893
  object.name = Reader.read_string(reader)
17894
17894
  when 'instance_type'
@@ -50839,9 +50839,9 @@ module OvirtSDK4
50839
50839
  end
50840
50840
 
50841
50841
  module InheritableBoolean
50842
- FALSE = 'false_'.freeze
50842
+ FALSE = 'false'.freeze
50843
50843
  INHERIT = 'inherit'.freeze
50844
- TRUE = 'true_'.freeze
50844
+ TRUE = 'true'.freeze
50845
50845
  end
50846
50846
 
50847
50847
  module IpVersion
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module OvirtSDK4
19
- VERSION = '4.0.11'.freeze
19
+ VERSION = '4.0.12'.freeze
20
20
  end
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.11
4
+ version: 4.0.12
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-03-02 00:00:00.000000000 Z
11
+ date: 2017-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake