ovirt-engine-sdk 4.2.0.alpha3 → 4.2.0.alpha4

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.2.0.alpha3'.freeze
19
+ VERSION = '4.2.0.alpha4'.freeze
20
20
  end
@@ -80,6 +80,8 @@ module OvirtSDK4
80
80
  ProxyTicketWriter.write_one(object.proxy_ticket, writer, 'proxy_ticket') unless object.proxy_ticket.nil?
81
81
  Writer.write_string(writer, 'reason', object.reason) unless object.reason.nil?
82
82
  Writer.write_boolean(writer, 'reassign_bad_macs', object.reassign_bad_macs) unless object.reassign_bad_macs.nil?
83
+ Writer.write_boolean(writer, 'reboot', object.reboot) unless object.reboot.nil?
84
+ RegistrationConfigurationWriter.write_one(object.registration_configuration, writer, 'registration_configuration') unless object.registration_configuration.nil?
83
85
  Writer.write_string(writer, 'remote_viewer_connection_file', object.remote_viewer_connection_file) unless object.remote_viewer_connection_file.nil?
84
86
  HostNicWriter.write_many(object.removed_bonds, writer, 'host_nic', 'removed_bonds') unless object.removed_bonds.nil?
85
87
  NetworkLabelWriter.write_many(object.removed_labels, writer, 'network_label', 'removed_labels') unless object.removed_labels.nil?
@@ -826,6 +828,7 @@ module OvirtSDK4
826
828
  CpuProfileWriter.write_many(object.cpu_profiles, writer, 'cpu_profile', 'cpu_profiles') unless object.cpu_profiles.nil?
827
829
  DataCenterWriter.write_one(object.data_center, writer, 'data_center') unless object.data_center.nil?
828
830
  ClusterFeatureWriter.write_many(object.enabled_features, writer, 'cluster_feature', 'enabled_features') unless object.enabled_features.nil?
831
+ ExternalProviderWriter.write_many(object.external_network_providers, writer, 'external_provider', 'external_network_providers') unless object.external_network_providers.nil?
829
832
  GlusterHookWriter.write_many(object.gluster_hooks, writer, 'gluster_hook', 'gluster_hooks') unless object.gluster_hooks.nil?
830
833
  GlusterVolumeWriter.write_many(object.gluster_volumes, writer, 'gluster_volume', 'gluster_volumes') unless object.gluster_volumes.nil?
831
834
  MacPoolWriter.write_one(object.mac_pool, writer, 'mac_pool') unless object.mac_pool.nil?
@@ -1873,6 +1876,38 @@ module OvirtSDK4
1873
1876
 
1874
1877
  end
1875
1878
 
1879
+ class ExternalNetworkProviderConfigurationWriter < Writer
1880
+
1881
+ def self.write_one(object, writer, singular = nil)
1882
+ singular ||= 'external_network_provider_configuration'
1883
+ writer.write_start(singular)
1884
+ href = object.href
1885
+ writer.write_attribute('href', href) unless href.nil?
1886
+ writer.write_attribute('id', object.id) unless object.id.nil?
1887
+ Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
1888
+ Writer.write_string(writer, 'description', object.description) unless object.description.nil?
1889
+ Writer.write_string(writer, 'name', object.name) unless object.name.nil?
1890
+ ExternalProviderWriter.write_one(object.external_network_provider, writer, 'external_network_provider') unless object.external_network_provider.nil?
1891
+ HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
1892
+ writer.write_end
1893
+ end
1894
+
1895
+ def self.write_many(list, writer, singular = nil, plural = nil)
1896
+ singular ||= 'external_network_provider_configuration'
1897
+ plural ||= 'external_network_provider_configurations'
1898
+ writer.write_start(plural)
1899
+ if list.is_a?(List)
1900
+ href = list.href
1901
+ writer.write_attribute('href', href) unless href.nil?
1902
+ end
1903
+ list.each do |item|
1904
+ write_one(item, writer, singular)
1905
+ end
1906
+ writer.write_end
1907
+ end
1908
+
1909
+ end
1910
+
1876
1911
  class ExternalProviderWriter < Writer
1877
1912
 
1878
1913
  def self.write_one(object, writer, singular = nil)
@@ -2750,6 +2785,7 @@ module OvirtSDK4
2750
2785
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
2751
2786
  DeviceWriter.write_many(object.devices, writer, 'device', 'devices') unless object.devices.nil?
2752
2787
  ExternalHostProviderWriter.write_one(object.external_host_provider, writer, 'external_host_provider') unless object.external_host_provider.nil?
2788
+ ExternalNetworkProviderConfigurationWriter.write_many(object.external_network_provider_configurations, writer, 'external_network_provider_configuration', 'external_network_provider_configurations') unless object.external_network_provider_configurations.nil?
2753
2789
  HookWriter.write_many(object.hooks, writer, 'hook', 'hooks') unless object.hooks.nil?
2754
2790
  KatelloErratumWriter.write_many(object.katello_errata, writer, 'katello_erratum', 'katello_errata') unless object.katello_errata.nil?
2755
2791
  NetworkAttachmentWriter.write_many(object.network_attachments, writer, 'network_attachment', 'network_attachments') unless object.network_attachments.nil?
@@ -3231,6 +3267,7 @@ module OvirtSDK4
3231
3267
  Writer.write_boolean(writer, 'start_paused', object.start_paused) unless object.start_paused.nil?
3232
3268
  Writer.write_boolean(writer, 'stateless', object.stateless) unless object.stateless.nil?
3233
3269
  Writer.write_string(writer, 'status', object.status) unless object.status.nil?
3270
+ Writer.write_string(writer, 'storage_error_resume_behaviour', object.storage_error_resume_behaviour) unless object.storage_error_resume_behaviour.nil?
3234
3271
  TimeZoneWriter.write_one(object.time_zone, writer, 'time_zone') unless object.time_zone.nil?
3235
3272
  Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
3236
3273
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
@@ -5266,6 +5303,206 @@ module OvirtSDK4
5266
5303
 
5267
5304
  end
5268
5305
 
5306
+ class RegistrationAffinityGroupMappingWriter < Writer
5307
+
5308
+ def self.write_one(object, writer, singular = nil)
5309
+ singular ||= 'registration_affinity_group_mapping'
5310
+ writer.write_start(singular)
5311
+ href = object.href
5312
+ writer.write_attribute('href', href) unless href.nil?
5313
+ AffinityGroupWriter.write_one(object.from, writer, 'from') unless object.from.nil?
5314
+ AffinityGroupWriter.write_one(object.to, writer, 'to') unless object.to.nil?
5315
+ writer.write_end
5316
+ end
5317
+
5318
+ def self.write_many(list, writer, singular = nil, plural = nil)
5319
+ singular ||= 'registration_affinity_group_mapping'
5320
+ plural ||= 'registration_affinity_group_mappings'
5321
+ writer.write_start(plural)
5322
+ if list.is_a?(List)
5323
+ href = list.href
5324
+ writer.write_attribute('href', href) unless href.nil?
5325
+ end
5326
+ list.each do |item|
5327
+ write_one(item, writer, singular)
5328
+ end
5329
+ writer.write_end
5330
+ end
5331
+
5332
+ end
5333
+
5334
+ class RegistrationAffinityLabelMappingWriter < Writer
5335
+
5336
+ def self.write_one(object, writer, singular = nil)
5337
+ singular ||= 'registration_affinity_label_mapping'
5338
+ writer.write_start(singular)
5339
+ href = object.href
5340
+ writer.write_attribute('href', href) unless href.nil?
5341
+ AffinityLabelWriter.write_one(object.from, writer, 'from') unless object.from.nil?
5342
+ AffinityLabelWriter.write_one(object.to, writer, 'to') unless object.to.nil?
5343
+ writer.write_end
5344
+ end
5345
+
5346
+ def self.write_many(list, writer, singular = nil, plural = nil)
5347
+ singular ||= 'registration_affinity_label_mapping'
5348
+ plural ||= 'registration_affinity_label_mappings'
5349
+ writer.write_start(plural)
5350
+ if list.is_a?(List)
5351
+ href = list.href
5352
+ writer.write_attribute('href', href) unless href.nil?
5353
+ end
5354
+ list.each do |item|
5355
+ write_one(item, writer, singular)
5356
+ end
5357
+ writer.write_end
5358
+ end
5359
+
5360
+ end
5361
+
5362
+ class RegistrationClusterMappingWriter < Writer
5363
+
5364
+ def self.write_one(object, writer, singular = nil)
5365
+ singular ||= 'registration_cluster_mapping'
5366
+ writer.write_start(singular)
5367
+ href = object.href
5368
+ writer.write_attribute('href', href) unless href.nil?
5369
+ ClusterWriter.write_one(object.from, writer, 'from') unless object.from.nil?
5370
+ ClusterWriter.write_one(object.to, writer, 'to') unless object.to.nil?
5371
+ writer.write_end
5372
+ end
5373
+
5374
+ def self.write_many(list, writer, singular = nil, plural = nil)
5375
+ singular ||= 'registration_cluster_mapping'
5376
+ plural ||= 'registration_cluster_mappings'
5377
+ writer.write_start(plural)
5378
+ if list.is_a?(List)
5379
+ href = list.href
5380
+ writer.write_attribute('href', href) unless href.nil?
5381
+ end
5382
+ list.each do |item|
5383
+ write_one(item, writer, singular)
5384
+ end
5385
+ writer.write_end
5386
+ end
5387
+
5388
+ end
5389
+
5390
+ class RegistrationConfigurationWriter < Writer
5391
+
5392
+ def self.write_one(object, writer, singular = nil)
5393
+ singular ||= 'registration_configuration'
5394
+ writer.write_start(singular)
5395
+ href = object.href
5396
+ writer.write_attribute('href', href) unless href.nil?
5397
+ RegistrationAffinityGroupMappingWriter.write_many(object.affinity_group_mappings, writer, 'registration_affinity_group_mapping', 'affinity_group_mappings') unless object.affinity_group_mappings.nil?
5398
+ RegistrationAffinityLabelMappingWriter.write_many(object.affinity_label_mappings, writer, 'registration_affinity_label_mapping', 'affinity_label_mappings') unless object.affinity_label_mappings.nil?
5399
+ RegistrationClusterMappingWriter.write_many(object.cluster_mappings, writer, 'registration_cluster_mapping', 'cluster_mappings') unless object.cluster_mappings.nil?
5400
+ RegistrationDomainMappingWriter.write_many(object.domain_mappings, writer, 'registration_domain_mapping', 'domain_mappings') unless object.domain_mappings.nil?
5401
+ RegistrationLunMappingWriter.write_many(object.lun_mappings, writer, 'registration_lun_mapping', 'lun_mappings') unless object.lun_mappings.nil?
5402
+ RegistrationRoleMappingWriter.write_many(object.role_mappings, writer, 'registration_role_mapping', 'role_mappings') unless object.role_mappings.nil?
5403
+ writer.write_end
5404
+ end
5405
+
5406
+ def self.write_many(list, writer, singular = nil, plural = nil)
5407
+ singular ||= 'registration_configuration'
5408
+ plural ||= 'registration_configurations'
5409
+ writer.write_start(plural)
5410
+ if list.is_a?(List)
5411
+ href = list.href
5412
+ writer.write_attribute('href', href) unless href.nil?
5413
+ end
5414
+ list.each do |item|
5415
+ write_one(item, writer, singular)
5416
+ end
5417
+ writer.write_end
5418
+ end
5419
+
5420
+ end
5421
+
5422
+ class RegistrationDomainMappingWriter < Writer
5423
+
5424
+ def self.write_one(object, writer, singular = nil)
5425
+ singular ||= 'registration_domain_mapping'
5426
+ writer.write_start(singular)
5427
+ href = object.href
5428
+ writer.write_attribute('href', href) unless href.nil?
5429
+ DomainWriter.write_one(object.from, writer, 'from') unless object.from.nil?
5430
+ DomainWriter.write_one(object.to, writer, 'to') unless object.to.nil?
5431
+ writer.write_end
5432
+ end
5433
+
5434
+ def self.write_many(list, writer, singular = nil, plural = nil)
5435
+ singular ||= 'registration_domain_mapping'
5436
+ plural ||= 'registration_domain_mappings'
5437
+ writer.write_start(plural)
5438
+ if list.is_a?(List)
5439
+ href = list.href
5440
+ writer.write_attribute('href', href) unless href.nil?
5441
+ end
5442
+ list.each do |item|
5443
+ write_one(item, writer, singular)
5444
+ end
5445
+ writer.write_end
5446
+ end
5447
+
5448
+ end
5449
+
5450
+ class RegistrationLunMappingWriter < Writer
5451
+
5452
+ def self.write_one(object, writer, singular = nil)
5453
+ singular ||= 'registration_lun_mapping'
5454
+ writer.write_start(singular)
5455
+ href = object.href
5456
+ writer.write_attribute('href', href) unless href.nil?
5457
+ DiskWriter.write_one(object.from, writer, 'from') unless object.from.nil?
5458
+ DiskWriter.write_one(object.to, writer, 'to') unless object.to.nil?
5459
+ writer.write_end
5460
+ end
5461
+
5462
+ def self.write_many(list, writer, singular = nil, plural = nil)
5463
+ singular ||= 'registration_lun_mapping'
5464
+ plural ||= 'registration_lun_mappings'
5465
+ writer.write_start(plural)
5466
+ if list.is_a?(List)
5467
+ href = list.href
5468
+ writer.write_attribute('href', href) unless href.nil?
5469
+ end
5470
+ list.each do |item|
5471
+ write_one(item, writer, singular)
5472
+ end
5473
+ writer.write_end
5474
+ end
5475
+
5476
+ end
5477
+
5478
+ class RegistrationRoleMappingWriter < Writer
5479
+
5480
+ def self.write_one(object, writer, singular = nil)
5481
+ singular ||= 'registration_role_mapping'
5482
+ writer.write_start(singular)
5483
+ href = object.href
5484
+ writer.write_attribute('href', href) unless href.nil?
5485
+ RoleWriter.write_one(object.from, writer, 'from') unless object.from.nil?
5486
+ RoleWriter.write_one(object.to, writer, 'to') unless object.to.nil?
5487
+ writer.write_end
5488
+ end
5489
+
5490
+ def self.write_many(list, writer, singular = nil, plural = nil)
5491
+ singular ||= 'registration_role_mapping'
5492
+ plural ||= 'registration_role_mappings'
5493
+ writer.write_start(plural)
5494
+ if list.is_a?(List)
5495
+ href = list.href
5496
+ writer.write_attribute('href', href) unless href.nil?
5497
+ end
5498
+ list.each do |item|
5499
+ write_one(item, writer, singular)
5500
+ end
5501
+ writer.write_end
5502
+ end
5503
+
5504
+ end
5505
+
5269
5506
  class ReportedConfigurationWriter < Writer
5270
5507
 
5271
5508
  def self.write_one(object, writer, singular = nil)
@@ -5666,6 +5903,7 @@ module OvirtSDK4
5666
5903
  Writer.write_string(writer, 'status_detail', object.status_detail) unless object.status_detail.nil?
5667
5904
  Writer.write_string(writer, 'stop_reason', object.stop_reason) unless object.stop_reason.nil?
5668
5905
  Writer.write_date(writer, 'stop_time', object.stop_time) unless object.stop_time.nil?
5906
+ Writer.write_string(writer, 'storage_error_resume_behaviour', object.storage_error_resume_behaviour) unless object.storage_error_resume_behaviour.nil?
5669
5907
  TimeZoneWriter.write_one(object.time_zone, writer, 'time_zone') unless object.time_zone.nil?
5670
5908
  Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
5671
5909
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
@@ -6254,6 +6492,7 @@ module OvirtSDK4
6254
6492
  Writer.write_boolean(writer, 'start_paused', object.start_paused) unless object.start_paused.nil?
6255
6493
  Writer.write_boolean(writer, 'stateless', object.stateless) unless object.stateless.nil?
6256
6494
  Writer.write_string(writer, 'status', object.status) unless object.status.nil?
6495
+ Writer.write_string(writer, 'storage_error_resume_behaviour', object.storage_error_resume_behaviour) unless object.storage_error_resume_behaviour.nil?
6257
6496
  TimeZoneWriter.write_one(object.time_zone, writer, 'time_zone') unless object.time_zone.nil?
6258
6497
  Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
6259
6498
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
@@ -6776,6 +7015,7 @@ module OvirtSDK4
6776
7015
  Writer.write_string(writer, 'status_detail', object.status_detail) unless object.status_detail.nil?
6777
7016
  Writer.write_string(writer, 'stop_reason', object.stop_reason) unless object.stop_reason.nil?
6778
7017
  Writer.write_date(writer, 'stop_time', object.stop_time) unless object.stop_time.nil?
7018
+ Writer.write_string(writer, 'storage_error_resume_behaviour', object.storage_error_resume_behaviour) unless object.storage_error_resume_behaviour.nil?
6779
7019
  TimeZoneWriter.write_one(object.time_zone, writer, 'time_zone') unless object.time_zone.nil?
6780
7020
  Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
6781
7021
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
@@ -6869,6 +7109,7 @@ module OvirtSDK4
6869
7109
  SsoWriter.write_one(object.sso, writer, 'sso') unless object.sso.nil?
6870
7110
  Writer.write_boolean(writer, 'start_paused', object.start_paused) unless object.start_paused.nil?
6871
7111
  Writer.write_boolean(writer, 'stateless', object.stateless) unless object.stateless.nil?
7112
+ Writer.write_string(writer, 'storage_error_resume_behaviour', object.storage_error_resume_behaviour) unless object.storage_error_resume_behaviour.nil?
6872
7113
  TimeZoneWriter.write_one(object.time_zone, writer, 'time_zone') unless object.time_zone.nil?
6873
7114
  Writer.write_boolean(writer, 'tunnel_migration', object.tunnel_migration) unless object.tunnel_migration.nil?
6874
7115
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
@@ -7243,6 +7484,7 @@ module OvirtSDK4
7243
7484
  Writer.register(ExternalHost, ExternalHostWriter.method(:write_one))
7244
7485
  Writer.register(ExternalHostGroup, ExternalHostGroupWriter.method(:write_one))
7245
7486
  Writer.register(ExternalHostProvider, ExternalHostProviderWriter.method(:write_one))
7487
+ Writer.register(ExternalNetworkProviderConfiguration, ExternalNetworkProviderConfigurationWriter.method(:write_one))
7246
7488
  Writer.register(ExternalProvider, ExternalProviderWriter.method(:write_one))
7247
7489
  Writer.register(ExternalVmImport, ExternalVmImportWriter.method(:write_one))
7248
7490
  Writer.register(Fault, FaultWriter.method(:write_one))
@@ -7340,6 +7582,13 @@ module OvirtSDK4
7340
7582
  Writer.register(QuotaStorageLimit, QuotaStorageLimitWriter.method(:write_one))
7341
7583
  Writer.register(Range, RangeWriter.method(:write_one))
7342
7584
  Writer.register(Rate, RateWriter.method(:write_one))
7585
+ Writer.register(RegistrationAffinityGroupMapping, RegistrationAffinityGroupMappingWriter.method(:write_one))
7586
+ Writer.register(RegistrationAffinityLabelMapping, RegistrationAffinityLabelMappingWriter.method(:write_one))
7587
+ Writer.register(RegistrationClusterMapping, RegistrationClusterMappingWriter.method(:write_one))
7588
+ Writer.register(RegistrationConfiguration, RegistrationConfigurationWriter.method(:write_one))
7589
+ Writer.register(RegistrationDomainMapping, RegistrationDomainMappingWriter.method(:write_one))
7590
+ Writer.register(RegistrationLunMapping, RegistrationLunMappingWriter.method(:write_one))
7591
+ Writer.register(RegistrationRoleMapping, RegistrationRoleMappingWriter.method(:write_one))
7343
7592
  Writer.register(ReportedConfiguration, ReportedConfigurationWriter.method(:write_one))
7344
7593
  Writer.register(ReportedDevice, ReportedDeviceWriter.method(:write_one))
7345
7594
  Writer.register(RngDevice, RngDeviceWriter.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.2.0.alpha3
4
+ version: 4.2.0.alpha4
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-09-25 00:00:00.000000000 Z
11
+ date: 2017-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake