ovirt-engine-sdk 4.1.3 → 4.1.4

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: 22a7c855a53c1b32e3b9df0d0bf25db956967687
4
- data.tar.gz: 6c544a7ea75375a633031bd53e5a5be3619ac3b8
3
+ metadata.gz: 62921d04bdc973cf71e556d3218dfb7217aeba49
4
+ data.tar.gz: 38ea175b2b105f2a767df329c9ce3a8476b7c5da
5
5
  SHA512:
6
- metadata.gz: e6cd47aa648b9c8bc799388842c4f84aa4e87e8835c8d041f2745c9610890945cb16c0f188fc935fda7bf9b0a1aa799c268e3cb3b49b929e4b76c0820795f7c2
7
- data.tar.gz: 220d61015ea7dda94db7d5a410c29f1b1187fc5a281d84a12b0832a6181243c7f6fdce434b94d81de43b66e81d892ac742bbeef3a0395cbb440e39925529e8e3
6
+ metadata.gz: 021f308491b6ec73382ac4f729f977762195cffaee9cc360a0c1f1788b62a1ffb584e511520fe58ccf6724a23b93a40d23f33001553c54a447468e2e660a6210
7
+ data.tar.gz: 3e028852f638ea2e9706b740a0c9a2d0404e730bf08f825c57931eecc137732645f21cc82f940ef0355c242e461613602cd96835849f0a3ccca7418674844b10
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.1.4 / 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.1.3 / Mar 2 2017
6
15
 
7
16
  Update to model 4.1.31:
@@ -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
  #
@@ -708,7 +708,7 @@ module OvirtSDK4
708
708
  when 'address'
709
709
  object.address = Reader.read_string(reader)
710
710
  when 'broker_type'
711
- object.broker_type = Reader.read_enum(BrokerType, reader)
711
+ object.broker_type = Reader.read_enum(MessageBrokerType, reader)
712
712
  when 'network_mappings'
713
713
  object.network_mappings = Reader.read_string(reader)
714
714
  when 'password'
@@ -2202,7 +2202,7 @@ module OvirtSDK4
2202
2202
  when 'data'
2203
2203
  object.data = Reader.read_string(reader)
2204
2204
  when 'type'
2205
- object.type = Reader.read_enum(Type, reader)
2205
+ object.type = Reader.read_enum(ConfigurationType, reader)
2206
2206
  else
2207
2207
  reader.next_element
2208
2208
  end
@@ -2410,7 +2410,7 @@ module OvirtSDK4
2410
2410
  when 'level'
2411
2411
  object.level = Reader.read_integer(reader)
2412
2412
  when 'mode'
2413
- object.mode = Reader.read_enum(Mode, reader)
2413
+ object.mode = Reader.read_enum(CpuMode, reader)
2414
2414
  when 'name'
2415
2415
  object.name = Reader.read_string(reader)
2416
2416
  when 'speed'
@@ -2873,9 +2873,9 @@ module OvirtSDK4
2873
2873
  when 'name'
2874
2874
  object.name = Reader.read_string(reader)
2875
2875
  when 'quota_mode'
2876
- object.quota_mode = Reader.read_enum(QuotaMode, reader)
2876
+ object.quota_mode = Reader.read_enum(QuotaModeType, reader)
2877
2877
  when 'status'
2878
- object.status = Reader.read_enum(Status, reader)
2878
+ object.status = Reader.read_enum(DataCenterStatus, reader)
2879
2879
  when 'storage_format'
2880
2880
  object.storage_format = Reader.read_enum(StorageFormat, reader)
2881
2881
  when 'supported_versions'
@@ -3149,7 +3149,7 @@ module OvirtSDK4
3149
3149
  when 'description'
3150
3150
  object.description = Reader.read_string(reader)
3151
3151
  when 'format'
3152
- object.format = Reader.read_enum(Format, reader)
3152
+ object.format = Reader.read_enum(DiskFormat, reader)
3153
3153
  when 'id'
3154
3154
  object.id = Reader.read_string(reader)
3155
3155
  when 'image_id'
@@ -3157,7 +3157,7 @@ module OvirtSDK4
3157
3157
  when 'initial_size'
3158
3158
  object.initial_size = Reader.read_integer(reader)
3159
3159
  when 'interface'
3160
- object.interface = Reader.read_enum(Interface, reader)
3160
+ object.interface = Reader.read_enum(DiskInterface, reader)
3161
3161
  when 'logical_name'
3162
3162
  object.logical_name = Reader.read_string(reader)
3163
3163
  when 'lun_storage'
@@ -3173,15 +3173,15 @@ module OvirtSDK4
3173
3173
  when 'read_only'
3174
3174
  object.read_only = Reader.read_boolean(reader)
3175
3175
  when 'sgio'
3176
- object.sgio = Reader.read_enum(Sgio, reader)
3176
+ object.sgio = Reader.read_enum(ScsiGenericIO, reader)
3177
3177
  when 'shareable'
3178
3178
  object.shareable = Reader.read_boolean(reader)
3179
3179
  when 'sparse'
3180
3180
  object.sparse = Reader.read_boolean(reader)
3181
3181
  when 'status'
3182
- object.status = Reader.read_enum(Status, reader)
3182
+ object.status = Reader.read_enum(DiskStatus, reader)
3183
3183
  when 'storage_type'
3184
- object.storage_type = Reader.read_enum(StorageType, reader)
3184
+ object.storage_type = Reader.read_enum(DiskStorageType, reader)
3185
3185
  when 'uses_scsi_reservation'
3186
3186
  object.uses_scsi_reservation = Reader.read_boolean(reader)
3187
3187
  when 'wipe_after_delete'
@@ -3324,7 +3324,7 @@ module OvirtSDK4
3324
3324
  when 'id'
3325
3325
  object.id = Reader.read_string(reader)
3326
3326
  when 'interface'
3327
- object.interface = Reader.read_enum(Interface, reader)
3327
+ object.interface = Reader.read_enum(DiskInterface, reader)
3328
3328
  when 'logical_name'
3329
3329
  object.logical_name = Reader.read_string(reader)
3330
3330
  when 'name'
@@ -3557,7 +3557,7 @@ module OvirtSDK4
3557
3557
  when 'description'
3558
3558
  object.description = Reader.read_string(reader)
3559
3559
  when 'format'
3560
- object.format = Reader.read_enum(Format, reader)
3560
+ object.format = Reader.read_enum(DiskFormat, reader)
3561
3561
  when 'id'
3562
3562
  object.id = Reader.read_string(reader)
3563
3563
  when 'image_id'
@@ -3565,7 +3565,7 @@ module OvirtSDK4
3565
3565
  when 'initial_size'
3566
3566
  object.initial_size = Reader.read_integer(reader)
3567
3567
  when 'interface'
3568
- object.interface = Reader.read_enum(Interface, reader)
3568
+ object.interface = Reader.read_enum(DiskInterface, reader)
3569
3569
  when 'logical_name'
3570
3570
  object.logical_name = Reader.read_string(reader)
3571
3571
  when 'lun_storage'
@@ -3581,15 +3581,15 @@ module OvirtSDK4
3581
3581
  when 'read_only'
3582
3582
  object.read_only = Reader.read_boolean(reader)
3583
3583
  when 'sgio'
3584
- object.sgio = Reader.read_enum(Sgio, reader)
3584
+ object.sgio = Reader.read_enum(ScsiGenericIO, reader)
3585
3585
  when 'shareable'
3586
3586
  object.shareable = Reader.read_boolean(reader)
3587
3587
  when 'sparse'
3588
3588
  object.sparse = Reader.read_boolean(reader)
3589
3589
  when 'status'
3590
- object.status = Reader.read_enum(Status, reader)
3590
+ object.status = Reader.read_enum(DiskStatus, reader)
3591
3591
  when 'storage_type'
3592
- object.storage_type = Reader.read_enum(StorageType, reader)
3592
+ object.storage_type = Reader.read_enum(DiskStorageType, reader)
3593
3593
  when 'uses_scsi_reservation'
3594
3594
  object.uses_scsi_reservation = Reader.read_boolean(reader)
3595
3595
  when 'wipe_after_delete'
@@ -3756,7 +3756,7 @@ module OvirtSDK4
3756
3756
  when 'smartcard_enabled'
3757
3757
  object.smartcard_enabled = Reader.read_boolean(reader)
3758
3758
  when 'type'
3759
- object.type = Reader.read_enum(Type, reader)
3759
+ object.type = Reader.read_enum(DisplayType, reader)
3760
3760
  else
3761
3761
  reader.next_element
3762
3762
  end
@@ -4101,7 +4101,7 @@ module OvirtSDK4
4101
4101
  while reader.forward do
4102
4102
  case reader.node_name
4103
4103
  when 'on_error'
4104
- object.on_error = Reader.read_enum(OnError, reader)
4104
+ object.on_error = Reader.read_enum(MigrateOnError, reader)
4105
4105
  else
4106
4106
  reader.next_element
4107
4107
  end
@@ -4205,7 +4205,7 @@ module OvirtSDK4
4205
4205
  when 'origin'
4206
4206
  object.origin = Reader.read_string(reader)
4207
4207
  when 'severity'
4208
- object.severity = Reader.read_enum(Severity, reader)
4208
+ object.severity = Reader.read_enum(LogSeverity, reader)
4209
4209
  when 'time'
4210
4210
  object.time = Reader.read_date(reader)
4211
4211
  when 'cluster'
@@ -4878,7 +4878,7 @@ module OvirtSDK4
4878
4878
  when 'password'
4879
4879
  object.password = Reader.read_string(reader)
4880
4880
  when 'provider'
4881
- object.provider = Reader.read_enum(Provider, reader)
4881
+ object.provider = Reader.read_enum(ExternalVmProviderType, reader)
4882
4882
  when 'sparse'
4883
4883
  object.sparse = Reader.read_boolean(reader)
4884
4884
  when 'url'
@@ -5479,7 +5479,7 @@ module OvirtSDK4
5479
5479
  when 'server_id'
5480
5480
  object.server_id = Reader.read_string(reader)
5481
5481
  when 'status'
5482
- object.status = Reader.read_enum(Status, reader)
5482
+ object.status = Reader.read_enum(GlusterBrickStatus, reader)
5483
5483
  when 'gluster_volume'
5484
5484
  object.gluster_volume = GlusterVolumeReader.read_one(reader)
5485
5485
  when 'instance_type'
@@ -5865,7 +5865,7 @@ module OvirtSDK4
5865
5865
  when 'content'
5866
5866
  object.content = Reader.read_string(reader)
5867
5867
  when 'content_type'
5868
- object.content_type = Reader.read_enum(ContentType, reader)
5868
+ object.content_type = Reader.read_enum(HookContentType, reader)
5869
5869
  when 'description'
5870
5870
  object.description = Reader.read_string(reader)
5871
5871
  when 'gluster_command'
@@ -5875,9 +5875,9 @@ module OvirtSDK4
5875
5875
  when 'name'
5876
5876
  object.name = Reader.read_string(reader)
5877
5877
  when 'stage'
5878
- object.stage = Reader.read_enum(Stage, reader)
5878
+ object.stage = Reader.read_enum(HookStage, reader)
5879
5879
  when 'status'
5880
- object.status = Reader.read_enum(Status, reader)
5880
+ object.status = Reader.read_enum(GlusterHookStatus, reader)
5881
5881
  when 'cluster'
5882
5882
  object.cluster = ClusterReader.read_one(reader)
5883
5883
  when 'server_hooks'
@@ -6084,7 +6084,7 @@ module OvirtSDK4
6084
6084
  when 'comment'
6085
6085
  object.comment = Reader.read_string(reader)
6086
6086
  when 'content_type'
6087
- object.content_type = Reader.read_enum(ContentType, reader)
6087
+ object.content_type = Reader.read_enum(HookContentType, reader)
6088
6088
  when 'description'
6089
6089
  object.description = Reader.read_string(reader)
6090
6090
  when 'id'
@@ -6092,7 +6092,7 @@ module OvirtSDK4
6092
6092
  when 'name'
6093
6093
  object.name = Reader.read_string(reader)
6094
6094
  when 'status'
6095
- object.status = Reader.read_enum(Status, reader)
6095
+ object.status = Reader.read_enum(GlusterHookStatus, reader)
6096
6096
  when 'host'
6097
6097
  object.host = HostReader.read_one(reader)
6098
6098
  else
@@ -6190,13 +6190,13 @@ module OvirtSDK4
6190
6190
  when 'replica_count'
6191
6191
  object.replica_count = Reader.read_integer(reader)
6192
6192
  when 'status'
6193
- object.status = Reader.read_enum(Status, reader)
6193
+ object.status = Reader.read_enum(GlusterVolumeStatus, reader)
6194
6194
  when 'stripe_count'
6195
6195
  object.stripe_count = Reader.read_integer(reader)
6196
6196
  when 'transport_types'
6197
6197
  object.transport_types = Reader.read_enums(TransportType, reader)
6198
6198
  when 'volume_type'
6199
- object.volume_type = Reader.read_enum(VolumeType, reader)
6199
+ object.volume_type = Reader.read_enum(GlusterVolumeType, reader)
6200
6200
  when 'bricks'
6201
6201
  object.bricks = GlusterBrickReader.read_many(reader)
6202
6202
  when 'cluster'
@@ -6451,7 +6451,7 @@ module OvirtSDK4
6451
6451
  when 'port'
6452
6452
  object.port = Reader.read_integer(reader)
6453
6453
  when 'protocol'
6454
- object.protocol = Reader.read_enum(Protocol, reader)
6454
+ object.protocol = Reader.read_enum(GraphicsType, reader)
6455
6455
  when 'tls_port'
6456
6456
  object.tls_port = Reader.read_integer(reader)
6457
6457
  when 'instance_type'
@@ -7030,7 +7030,7 @@ module OvirtSDK4
7030
7030
  when 'power_management'
7031
7031
  object.power_management = PowerManagementReader.read_one(reader)
7032
7032
  when 'protocol'
7033
- object.protocol = Reader.read_enum(Protocol, reader)
7033
+ object.protocol = Reader.read_enum(HostProtocol, reader)
7034
7034
  when 'root_password'
7035
7035
  object.root_password = Reader.read_string(reader)
7036
7036
  when 'se_linux'
@@ -7040,7 +7040,7 @@ module OvirtSDK4
7040
7040
  when 'ssh'
7041
7041
  object.ssh = SshReader.read_one(reader)
7042
7042
  when 'status'
7043
- object.status = Reader.read_enum(Status, reader)
7043
+ object.status = Reader.read_enum(HostStatus, reader)
7044
7044
  when 'status_detail'
7045
7045
  object.status_detail = Reader.read_string(reader)
7046
7046
  when 'summary'
@@ -7048,7 +7048,7 @@ module OvirtSDK4
7048
7048
  when 'transparent_hugepages'
7049
7049
  object.transparent_huge_pages = TransparentHugePagesReader.read_one(reader)
7050
7050
  when 'type'
7051
- object.type = Reader.read_enum(Type, reader)
7051
+ object.type = Reader.read_enum(HostType, reader)
7052
7052
  when 'update_available'
7053
7053
  object.update_available = Reader.read_boolean(reader)
7054
7054
  when 'version'
@@ -7407,7 +7407,7 @@ module OvirtSDK4
7407
7407
  when 'ipv6'
7408
7408
  object.ipv6 = IpReader.read_one(reader)
7409
7409
  when 'ipv6_boot_protocol'
7410
- object.ipv6_boot_protocol = Reader.read_enum(Ipv6BootProtocol, reader)
7410
+ object.ipv6_boot_protocol = Reader.read_enum(BootProtocol, reader)
7411
7411
  when 'mac'
7412
7412
  object.mac = MacReader.read_one(reader)
7413
7413
  when 'mtu'
@@ -7425,7 +7425,7 @@ module OvirtSDK4
7425
7425
  when 'statistics'
7426
7426
  object.statistics = StatisticReader.read_many(reader)
7427
7427
  when 'status'
7428
- object.status = Reader.read_enum(Status, reader)
7428
+ object.status = Reader.read_enum(NicStatus, reader)
7429
7429
  when 'virtual_functions_configuration'
7430
7430
  object.virtual_functions_configuration = HostNicVirtualFunctionsConfigurationReader.read_one(reader)
7431
7431
  when 'vlan'
@@ -7635,7 +7635,7 @@ module OvirtSDK4
7635
7635
  when 'target'
7636
7636
  object.target = Reader.read_string(reader)
7637
7637
  when 'type'
7638
- object.type = Reader.read_enum(Type, reader)
7638
+ object.type = Reader.read_enum(StorageType, reader)
7639
7639
  when 'username'
7640
7640
  object.username = Reader.read_string(reader)
7641
7641
  when 'vfs_type'
@@ -8033,13 +8033,13 @@ module OvirtSDK4
8033
8033
  when 'description'
8034
8034
  object.description = Reader.read_string(reader)
8035
8035
  when 'direction'
8036
- object.direction = Reader.read_enum(Direction, reader)
8036
+ object.direction = Reader.read_enum(ImageTransferDirection, reader)
8037
8037
  when 'id'
8038
8038
  object.id = Reader.read_string(reader)
8039
8039
  when 'name'
8040
8040
  object.name = Reader.read_string(reader)
8041
8041
  when 'phase'
8042
- object.phase = Reader.read_enum(Phase, reader)
8042
+ object.phase = Reader.read_enum(ImageTransferPhase, reader)
8043
8043
  when 'proxy_url'
8044
8044
  object.proxy_url = Reader.read_string(reader)
8045
8045
  when 'signed_ticket'
@@ -8347,13 +8347,13 @@ module OvirtSDK4
8347
8347
  when 'stateless'
8348
8348
  object.stateless = Reader.read_boolean(reader)
8349
8349
  when 'status'
8350
- object.status = Reader.read_enum(Status, reader)
8350
+ object.status = Reader.read_enum(TemplateStatus, reader)
8351
8351
  when 'time_zone'
8352
8352
  object.time_zone = TimeZoneReader.read_one(reader)
8353
8353
  when 'tunnel_migration'
8354
8354
  object.tunnel_migration = Reader.read_boolean(reader)
8355
8355
  when 'type'
8356
- object.type = Reader.read_enum(Type, reader)
8356
+ object.type = Reader.read_enum(VmType, reader)
8357
8357
  when 'usb'
8358
8358
  object.usb = UsbReader.read_one(reader)
8359
8359
  when 'version'
@@ -8550,7 +8550,7 @@ module OvirtSDK4
8550
8550
  when 'netmask'
8551
8551
  object.netmask = Reader.read_string(reader)
8552
8552
  when 'version'
8553
- object.version = Reader.read_enum(Version, reader)
8553
+ object.version = Reader.read_enum(IpVersion, reader)
8554
8554
  else
8555
8555
  reader.next_element
8556
8556
  end
@@ -8612,7 +8612,7 @@ module OvirtSDK4
8612
8612
  while reader.forward do
8613
8613
  case reader.node_name
8614
8614
  when 'assignment_method'
8615
- object.assignment_method = Reader.read_enum(AssignmentMethod, reader)
8615
+ object.assignment_method = Reader.read_enum(BootProtocol, reader)
8616
8616
  when 'ip'
8617
8617
  object.ip = IpReader.read_one(reader)
8618
8618
  else
@@ -8939,7 +8939,7 @@ module OvirtSDK4
8939
8939
  when 'start_time'
8940
8940
  object.start_time = Reader.read_date(reader)
8941
8941
  when 'status'
8942
- object.status = Reader.read_enum(Status, reader)
8942
+ object.status = Reader.read_enum(JobStatus, reader)
8943
8943
  when 'owner'
8944
8944
  object.owner = UserReader.read_one(reader)
8945
8945
  when 'steps'
@@ -9316,7 +9316,7 @@ module OvirtSDK4
9316
9316
  when 'size'
9317
9317
  object.size = Reader.read_integer(reader)
9318
9318
  when 'status'
9319
- object.status = Reader.read_enum(Status, reader)
9319
+ object.status = Reader.read_enum(LunStatus, reader)
9320
9320
  when 'storage_domain_id'
9321
9321
  object.storage_domain_id = Reader.read_string(reader)
9322
9322
  when 'target'
@@ -9670,7 +9670,7 @@ module OvirtSDK4
9670
9670
  while reader.forward do
9671
9671
  case reader.node_name
9672
9672
  when 'id'
9673
- object.id = Reader.read_enum(Id, reader)
9673
+ object.id = Reader.read_enum(SsoMethod, reader)
9674
9674
  else
9675
9675
  reader.next_element
9676
9676
  end
@@ -9734,7 +9734,7 @@ module OvirtSDK4
9734
9734
  while reader.forward do
9735
9735
  case reader.node_name
9736
9736
  when 'assignment_method'
9737
- object.assignment_method = Reader.read_enum(AssignmentMethod, reader)
9737
+ object.assignment_method = Reader.read_enum(MigrationBandwidthAssignmentMethod, reader)
9738
9738
  when 'custom_value'
9739
9739
  object.custom_value = Reader.read_integer(reader)
9740
9740
  else
@@ -9800,11 +9800,11 @@ module OvirtSDK4
9800
9800
  while reader.forward do
9801
9801
  case reader.node_name
9802
9802
  when 'auto_converge'
9803
- object.auto_converge = Reader.read_enum(AutoConverge, reader)
9803
+ object.auto_converge = Reader.read_enum(InheritableBoolean, reader)
9804
9804
  when 'bandwidth'
9805
9805
  object.bandwidth = MigrationBandwidthReader.read_one(reader)
9806
9806
  when 'compressed'
9807
- object.compressed = Reader.read_enum(Compressed, reader)
9807
+ object.compressed = Reader.read_enum(InheritableBoolean, reader)
9808
9808
  when 'policy'
9809
9809
  object.policy = MigrationPolicyReader.read_one(reader)
9810
9810
  else
@@ -9980,7 +9980,7 @@ module OvirtSDK4
9980
9980
  when 'required'
9981
9981
  object.required = Reader.read_boolean(reader)
9982
9982
  when 'status'
9983
- object.status = Reader.read_enum(Status, reader)
9983
+ object.status = Reader.read_enum(NetworkStatus, reader)
9984
9984
  when 'stp'
9985
9985
  object.stp = Reader.read_boolean(reader)
9986
9986
  when 'usages'
@@ -10481,7 +10481,7 @@ module OvirtSDK4
10481
10481
  when 'id'
10482
10482
  object.id = Reader.read_string(reader)
10483
10483
  when 'interface'
10484
- object.interface = Reader.read_enum(Interface, reader)
10484
+ object.interface = Reader.read_enum(NicInterface, reader)
10485
10485
  when 'linked'
10486
10486
  object.linked = Reader.read_boolean(reader)
10487
10487
  when 'mac'
@@ -11174,7 +11174,7 @@ module OvirtSDK4
11174
11174
  when 'password'
11175
11175
  object.password = Reader.read_string(reader)
11176
11176
  when 'plugin_type'
11177
- object.plugin_type = Reader.read_enum(PluginType, reader)
11177
+ object.plugin_type = Reader.read_enum(NetworkPluginType, reader)
11178
11178
  when 'properties'
11179
11179
  object.properties = PropertyReader.read_many(reader)
11180
11180
  when 'read_only'
@@ -11184,7 +11184,7 @@ module OvirtSDK4
11184
11184
  when 'tenant_name'
11185
11185
  object.tenant_name = Reader.read_string(reader)
11186
11186
  when 'type'
11187
- object.type = Reader.read_enum(Type, reader)
11187
+ object.type = Reader.read_enum(OpenStackNetworkProviderType, reader)
11188
11188
  when 'url'
11189
11189
  object.url = Reader.read_string(reader)
11190
11190
  when 'username'
@@ -11702,7 +11702,7 @@ module OvirtSDK4
11702
11702
  when 'name'
11703
11703
  object.name = Reader.read_string(reader)
11704
11704
  when 'usage_type'
11705
- object.usage_type = Reader.read_enum(UsageType, reader)
11705
+ object.usage_type = Reader.read_enum(OpenstackVolumeAuthenticationKeyUsageType, reader)
11706
11706
  when 'uuid'
11707
11707
  object.uuid = Reader.read_string(reader)
11708
11708
  when 'value'
@@ -12070,7 +12070,7 @@ module OvirtSDK4
12070
12070
  when 'files'
12071
12071
  object.files = FileReader.read_many(reader)
12072
12072
  when 'type'
12073
- object.type = Reader.read_enum(Type, reader)
12073
+ object.type = Reader.read_enum(VmDeviceType, reader)
12074
12074
  when 'volume_id'
12075
12075
  object.volume_id = Reader.read_string(reader)
12076
12076
  else
@@ -12310,7 +12310,7 @@ module OvirtSDK4
12310
12310
  while reader.forward do
12311
12311
  case reader.node_name
12312
12312
  when 'type'
12313
- object.type = Reader.read_enum(Type, reader)
12313
+ object.type = Reader.read_enum(PmProxyType, reader)
12314
12314
  else
12315
12315
  reader.next_element
12316
12316
  end
@@ -12455,7 +12455,7 @@ module OvirtSDK4
12455
12455
  when 'pm_proxies'
12456
12456
  object.pm_proxies = PmProxyReader.read_many(reader)
12457
12457
  when 'status'
12458
- object.status = Reader.read_enum(Status, reader)
12458
+ object.status = Reader.read_enum(PowerManagementStatus, reader)
12459
12459
  when 'type'
12460
12460
  object.type = Reader.read_string(reader)
12461
12461
  when 'username'
@@ -12943,7 +12943,7 @@ module OvirtSDK4
12943
12943
  when 'outbound_peak'
12944
12944
  object.outbound_peak = Reader.read_integer(reader)
12945
12945
  when 'type'
12946
- object.type = Reader.read_enum(Type, reader)
12946
+ object.type = Reader.read_enum(QosType, reader)
12947
12947
  when 'data_center'
12948
12948
  object.data_center = DataCenterReader.read_one(reader)
12949
12949
  else
@@ -13540,7 +13540,7 @@ module OvirtSDK4
13540
13540
  when 'name'
13541
13541
  object.name = Reader.read_string(reader)
13542
13542
  when 'type'
13543
- object.type = Reader.read_enum(Type, reader)
13543
+ object.type = Reader.read_enum(ReportedDeviceType, reader)
13544
13544
  when 'vm'
13545
13545
  object.vm = VmReader.read_one(reader)
13546
13546
  else
@@ -13606,7 +13606,7 @@ module OvirtSDK4
13606
13606
  when 'rate'
13607
13607
  object.rate = RateReader.read_one(reader)
13608
13608
  when 'source'
13609
- object.source = Reader.read_enum(Source, reader)
13609
+ object.source = Reader.read_enum(RngSource, reader)
13610
13610
  else
13611
13611
  reader.next_element
13612
13612
  end
@@ -13912,7 +13912,7 @@ module OvirtSDK4
13912
13912
  when 'properties'
13913
13913
  object.properties = PropertyReader.read_many(reader)
13914
13914
  when 'type'
13915
- object.type = Reader.read_enum(Type, reader)
13915
+ object.type = Reader.read_enum(PolicyUnitType, reader)
13916
13916
  else
13917
13917
  reader.next_element
13918
13918
  end
@@ -13974,7 +13974,7 @@ module OvirtSDK4
13974
13974
  while reader.forward do
13975
13975
  case reader.node_name
13976
13976
  when 'mode'
13977
- object.mode = Reader.read_enum(Mode, reader)
13977
+ object.mode = Reader.read_enum(SeLinuxMode, reader)
13978
13978
  else
13979
13979
  reader.next_element
13980
13980
  end
@@ -14038,7 +14038,7 @@ module OvirtSDK4
14038
14038
  while reader.forward do
14039
14039
  case reader.node_name
14040
14040
  when 'policy'
14041
- object.policy = Reader.read_enum(Policy, reader)
14041
+ object.policy = Reader.read_enum(SerialNumberPolicy, reader)
14042
14042
  when 'value'
14043
14043
  object.value = Reader.read_string(reader)
14044
14044
  else
@@ -14472,7 +14472,7 @@ module OvirtSDK4
14472
14472
  when 'stateless'
14473
14473
  object.stateless = Reader.read_boolean(reader)
14474
14474
  when 'status'
14475
- object.status = Reader.read_enum(Status, reader)
14475
+ object.status = Reader.read_enum(VmStatus, reader)
14476
14476
  when 'status_detail'
14477
14477
  object.status_detail = Reader.read_string(reader)
14478
14478
  when 'stop_reason'
@@ -14484,7 +14484,7 @@ module OvirtSDK4
14484
14484
  when 'tunnel_migration'
14485
14485
  object.tunnel_migration = Reader.read_boolean(reader)
14486
14486
  when 'type'
14487
- object.type = Reader.read_enum(Type, reader)
14487
+ object.type = Reader.read_enum(VmType, reader)
14488
14488
  when 'usb'
14489
14489
  object.usb = UsbReader.read_one(reader)
14490
14490
  when 'use_latest_template_version'
@@ -14725,7 +14725,7 @@ module OvirtSDK4
14725
14725
  when 'priority'
14726
14726
  object.priority = Reader.read_integer(reader)
14727
14727
  when 'status'
14728
- object.status = Reader.read_enum(Status, reader)
14728
+ object.status = Reader.read_enum(SpmStatus, reader)
14729
14729
  else
14730
14730
  reader.next_element
14731
14731
  end
@@ -14799,7 +14799,7 @@ module OvirtSDK4
14799
14799
  while reader.forward do
14800
14800
  case reader.node_name
14801
14801
  when 'authentication_method'
14802
- object.authentication_method = Reader.read_enum(AuthenticationMethod, reader)
14802
+ object.authentication_method = Reader.read_enum(SshAuthenticationMethod, reader)
14803
14803
  when 'comment'
14804
14804
  object.comment = Reader.read_string(reader)
14805
14805
  when 'description'
@@ -15033,13 +15033,13 @@ module OvirtSDK4
15033
15033
  when 'id'
15034
15034
  object.id = Reader.read_string(reader)
15035
15035
  when 'kind'
15036
- object.kind = Reader.read_enum(Kind, reader)
15036
+ object.kind = Reader.read_enum(StatisticKind, reader)
15037
15037
  when 'name'
15038
15038
  object.name = Reader.read_string(reader)
15039
15039
  when 'type'
15040
- object.type = Reader.read_enum(Type, reader)
15040
+ object.type = Reader.read_enum(ValueType, reader)
15041
15041
  when 'unit'
15042
- object.unit = Reader.read_enum(Unit, reader)
15042
+ object.unit = Reader.read_enum(StatisticUnit, reader)
15043
15043
  when 'values'
15044
15044
  object.values = ValueReader.read_many(reader)
15045
15045
  when 'brick'
@@ -15151,7 +15151,7 @@ module OvirtSDK4
15151
15151
  when 'external'
15152
15152
  object.external = Reader.read_boolean(reader)
15153
15153
  when 'external_type'
15154
- object.external_type = Reader.read_enum(ExternalType, reader)
15154
+ object.external_type = Reader.read_enum(ExternalSystemType, reader)
15155
15155
  when 'id'
15156
15156
  object.id = Reader.read_string(reader)
15157
15157
  when 'name'
@@ -15163,9 +15163,9 @@ module OvirtSDK4
15163
15163
  when 'start_time'
15164
15164
  object.start_time = Reader.read_date(reader)
15165
15165
  when 'status'
15166
- object.status = Reader.read_enum(Status, reader)
15166
+ object.status = Reader.read_enum(StepStatus, reader)
15167
15167
  when 'type'
15168
- object.type = Reader.read_enum(Type, reader)
15168
+ object.type = Reader.read_enum(StepEnum, reader)
15169
15169
  when 'execution_host'
15170
15170
  object.execution_host = HostReader.read_one(reader)
15171
15171
  when 'job'
@@ -15314,7 +15314,7 @@ module OvirtSDK4
15314
15314
  when 'target'
15315
15315
  object.target = Reader.read_string(reader)
15316
15316
  when 'type'
15317
- object.type = Reader.read_enum(Type, reader)
15317
+ object.type = Reader.read_enum(StorageType, reader)
15318
15318
  when 'username'
15319
15319
  object.username = Reader.read_string(reader)
15320
15320
  when 'vfs_type'
@@ -15528,7 +15528,7 @@ module OvirtSDK4
15528
15528
  when 'name'
15529
15529
  object.name = Reader.read_string(reader)
15530
15530
  when 'status'
15531
- object.status = Reader.read_enum(Status, reader)
15531
+ object.status = Reader.read_enum(StorageDomainStatus, reader)
15532
15532
  when 'storage'
15533
15533
  object.storage = HostStorageReader.read_one(reader)
15534
15534
  when 'storage_format'
@@ -15538,7 +15538,7 @@ module OvirtSDK4
15538
15538
  when 'supports_discard_zeroes_data'
15539
15539
  object.supports_discard_zeroes_data = Reader.read_boolean(reader)
15540
15540
  when 'type'
15541
- object.type = Reader.read_enum(Type, reader)
15541
+ object.type = Reader.read_enum(StorageDomainType, reader)
15542
15542
  when 'used'
15543
15543
  object.used = Reader.read_integer(reader)
15544
15544
  when 'warning_low_space_indicator'
@@ -15915,13 +15915,13 @@ module OvirtSDK4
15915
15915
  when 'stateless'
15916
15916
  object.stateless = Reader.read_boolean(reader)
15917
15917
  when 'status'
15918
- object.status = Reader.read_enum(Status, reader)
15918
+ object.status = Reader.read_enum(TemplateStatus, reader)
15919
15919
  when 'time_zone'
15920
15920
  object.time_zone = TimeZoneReader.read_one(reader)
15921
15921
  when 'tunnel_migration'
15922
15922
  object.tunnel_migration = Reader.read_boolean(reader)
15923
15923
  when 'type'
15924
- object.type = Reader.read_enum(Type, reader)
15924
+ object.type = Reader.read_enum(VmType, reader)
15925
15925
  when 'usb'
15926
15926
  object.usb = UsbReader.read_one(reader)
15927
15927
  when 'version'
@@ -16388,7 +16388,7 @@ module OvirtSDK4
16388
16388
  when 'enabled'
16389
16389
  object.enabled = Reader.read_boolean(reader)
16390
16390
  when 'type'
16391
- object.type = Reader.read_enum(Type, reader)
16391
+ object.type = Reader.read_enum(UsbType, reader)
16392
16392
  else
16393
16393
  reader.next_element
16394
16394
  end
@@ -17276,7 +17276,7 @@ module OvirtSDK4
17276
17276
  when 'stateless'
17277
17277
  object.stateless = Reader.read_boolean(reader)
17278
17278
  when 'status'
17279
- object.status = Reader.read_enum(Status, reader)
17279
+ object.status = Reader.read_enum(VmStatus, reader)
17280
17280
  when 'status_detail'
17281
17281
  object.status_detail = Reader.read_string(reader)
17282
17282
  when 'stop_reason'
@@ -17288,7 +17288,7 @@ module OvirtSDK4
17288
17288
  when 'tunnel_migration'
17289
17289
  object.tunnel_migration = Reader.read_boolean(reader)
17290
17290
  when 'type'
17291
- object.type = Reader.read_enum(Type, reader)
17291
+ object.type = Reader.read_enum(VmType, reader)
17292
17292
  when 'usb'
17293
17293
  object.usb = UsbReader.read_one(reader)
17294
17294
  when 'use_latest_template_version'
@@ -17565,7 +17565,7 @@ module OvirtSDK4
17565
17565
  when 'tunnel_migration'
17566
17566
  object.tunnel_migration = Reader.read_boolean(reader)
17567
17567
  when 'type'
17568
- object.type = Reader.read_enum(Type, reader)
17568
+ object.type = Reader.read_enum(VmType, reader)
17569
17569
  when 'usb'
17570
17570
  object.usb = UsbReader.read_one(reader)
17571
17571
  when 'virtio_scsi'
@@ -17639,7 +17639,7 @@ module OvirtSDK4
17639
17639
  while reader.forward do
17640
17640
  case reader.node_name
17641
17641
  when 'affinity'
17642
- object.affinity = Reader.read_enum(Affinity, reader)
17642
+ object.affinity = Reader.read_enum(VmAffinity, reader)
17643
17643
  when 'hosts'
17644
17644
  object.hosts = HostReader.read_many(reader)
17645
17645
  when 'link'
@@ -17768,7 +17768,7 @@ module OvirtSDK4
17768
17768
  when 'stateful'
17769
17769
  object.stateful = Reader.read_boolean(reader)
17770
17770
  when 'type'
17771
- object.type = Reader.read_enum(Type, reader)
17771
+ object.type = Reader.read_enum(VmPoolType, reader)
17772
17772
  when 'use_latest_template_version'
17773
17773
  object.use_latest_template_version = Reader.read_boolean(reader)
17774
17774
  when 'cluster'
@@ -17931,7 +17931,7 @@ module OvirtSDK4
17931
17931
  while reader.forward do
17932
17932
  case reader.node_name
17933
17933
  when 'mode'
17934
- object.mode = Reader.read_enum(Mode, reader)
17934
+ object.mode = Reader.read_enum(VnicPassThroughMode, reader)
17935
17935
  else
17936
17936
  reader.next_element
17937
17937
  end
@@ -18252,7 +18252,7 @@ module OvirtSDK4
18252
18252
  while reader.forward do
18253
18253
  case reader.node_name
18254
18254
  when 'action'
18255
- object.action = Reader.read_enum(Action, reader)
18255
+ object.action = Reader.read_enum(WatchdogAction, reader)
18256
18256
  when 'comment'
18257
18257
  object.comment = Reader.read_string(reader)
18258
18258
  when 'description'
@@ -18260,7 +18260,7 @@ module OvirtSDK4
18260
18260
  when 'id'
18261
18261
  object.id = Reader.read_string(reader)
18262
18262
  when 'model'
18263
- object.model = Reader.read_enum(Model, reader)
18263
+ object.model = Reader.read_enum(WatchdogModel, reader)
18264
18264
  when 'name'
18265
18265
  object.name = Reader.read_string(reader)
18266
18266
  when 'instance_type'
@@ -52098,9 +52098,9 @@ module OvirtSDK4
52098
52098
  end
52099
52099
 
52100
52100
  module InheritableBoolean
52101
- FALSE = 'false_'.freeze
52101
+ FALSE = 'false'.freeze
52102
52102
  INHERIT = 'inherit'.freeze
52103
- TRUE = 'true_'.freeze
52103
+ TRUE = 'true'.freeze
52104
52104
  end
52105
52105
 
52106
52106
  module IpVersion
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module OvirtSDK4
19
- VERSION = '4.1.3'.freeze
19
+ VERSION = '4.1.4'.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.1.3
4
+ version: 4.1.4
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