ovirt-engine-sdk 4.3.0 → 4.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -28257,6 +28257,24 @@ module OvirtSDK4
28257
28257
  @maintenance_enabled = value
28258
28258
  end
28259
28259
 
28260
+ #
28261
+ # Returns the value of the `migrate_vms_in_affinity_closure` attribute.
28262
+ #
28263
+ # @return [Boolean]
28264
+ #
28265
+ def migrate_vms_in_affinity_closure
28266
+ @migrate_vms_in_affinity_closure
28267
+ end
28268
+
28269
+ #
28270
+ # Sets the value of the `migrate_vms_in_affinity_closure` attribute.
28271
+ #
28272
+ # @param value [Boolean]
28273
+ #
28274
+ def migrate_vms_in_affinity_closure=(value)
28275
+ @migrate_vms_in_affinity_closure = value
28276
+ end
28277
+
28260
28278
  #
28261
28279
  # Returns the value of the `modified_bonds` attribute.
28262
28280
  #
@@ -28974,6 +28992,24 @@ module OvirtSDK4
28974
28992
  @ticket = value
28975
28993
  end
28976
28994
 
28995
+ #
28996
+ # Returns the value of the `timeout` attribute.
28997
+ #
28998
+ # @return [Integer]
28999
+ #
29000
+ def timeout
29001
+ @timeout
29002
+ end
29003
+
29004
+ #
29005
+ # Sets the value of the `timeout` attribute.
29006
+ #
29007
+ # @param value [Integer]
29008
+ #
29009
+ def timeout=(value)
29010
+ @timeout = value
29011
+ end
29012
+
28977
29013
  #
28978
29014
  # Returns the value of the `undeploy_hosted_engine` attribute.
28979
29015
  #
@@ -28992,6 +29028,24 @@ module OvirtSDK4
28992
29028
  @undeploy_hosted_engine = value
28993
29029
  end
28994
29030
 
29031
+ #
29032
+ # Returns the value of the `upgrade_action` attribute.
29033
+ #
29034
+ # @return [ClusterUpgradeAction]
29035
+ #
29036
+ def upgrade_action
29037
+ @upgrade_action
29038
+ end
29039
+
29040
+ #
29041
+ # Sets the value of the `upgrade_action` attribute.
29042
+ #
29043
+ # @param value [ClusterUpgradeAction]
29044
+ #
29045
+ def upgrade_action=(value)
29046
+ @upgrade_action = value
29047
+ end
29048
+
28995
29049
  #
28996
29050
  # Returns the value of the `use_cloud_init` attribute.
28997
29051
  #
@@ -29010,6 +29064,24 @@ module OvirtSDK4
29010
29064
  @use_cloud_init = value
29011
29065
  end
29012
29066
 
29067
+ #
29068
+ # Returns the value of the `use_initialization` attribute.
29069
+ #
29070
+ # @return [Boolean]
29071
+ #
29072
+ def use_initialization
29073
+ @use_initialization
29074
+ end
29075
+
29076
+ #
29077
+ # Sets the value of the `use_initialization` attribute.
29078
+ #
29079
+ # @param value [Boolean]
29080
+ #
29081
+ def use_initialization=(value)
29082
+ @use_initialization = value
29083
+ end
29084
+
29013
29085
  #
29014
29086
  # Returns the value of the `use_sysprep` attribute.
29015
29087
  #
@@ -29221,6 +29293,8 @@ module OvirtSDK4
29221
29293
  #
29222
29294
  # @option opts [Boolean] :maintenance_enabled The value of attribute `maintenance_enabled`.
29223
29295
  #
29296
+ # @option opts [Boolean] :migrate_vms_in_affinity_closure The value of attribute `migrate_vms_in_affinity_closure`.
29297
+ #
29224
29298
  # @option opts [Array<HostNic>, Array<Hash>] :modified_bonds The values of attribute `modified_bonds`.
29225
29299
  #
29226
29300
  # @option opts [Array<NetworkLabel>, Array<Hash>] :modified_labels The values of attribute `modified_labels`.
@@ -29285,10 +29359,16 @@ module OvirtSDK4
29285
29359
  #
29286
29360
  # @option opts [Ticket, Hash] :ticket The value of attribute `ticket`.
29287
29361
  #
29362
+ # @option opts [Integer] :timeout The value of attribute `timeout`.
29363
+ #
29288
29364
  # @option opts [Boolean] :undeploy_hosted_engine The value of attribute `undeploy_hosted_engine`.
29289
29365
  #
29366
+ # @option opts [ClusterUpgradeAction] :upgrade_action The value of attribute `upgrade_action`.
29367
+ #
29290
29368
  # @option opts [Boolean] :use_cloud_init The value of attribute `use_cloud_init`.
29291
29369
  #
29370
+ # @option opts [Boolean] :use_initialization The value of attribute `use_initialization`.
29371
+ #
29292
29372
  # @option opts [Boolean] :use_sysprep The value of attribute `use_sysprep`.
29293
29373
  #
29294
29374
  # @option opts [HostNicVirtualFunctionsConfiguration, Hash] :virtual_functions_configuration The value of attribute `virtual_functions_configuration`.
@@ -29345,6 +29425,7 @@ module OvirtSDK4
29345
29425
  self.lease = opts[:lease]
29346
29426
  self.logical_units = opts[:logical_units]
29347
29427
  self.maintenance_enabled = opts[:maintenance_enabled]
29428
+ self.migrate_vms_in_affinity_closure = opts[:migrate_vms_in_affinity_closure]
29348
29429
  self.modified_bonds = opts[:modified_bonds]
29349
29430
  self.modified_labels = opts[:modified_labels]
29350
29431
  self.modified_network_attachments = opts[:modified_network_attachments]
@@ -29376,8 +29457,11 @@ module OvirtSDK4
29376
29457
  self.synchronized_network_attachments = opts[:synchronized_network_attachments]
29377
29458
  self.template = opts[:template]
29378
29459
  self.ticket = opts[:ticket]
29460
+ self.timeout = opts[:timeout]
29379
29461
  self.undeploy_hosted_engine = opts[:undeploy_hosted_engine]
29462
+ self.upgrade_action = opts[:upgrade_action]
29380
29463
  self.use_cloud_init = opts[:use_cloud_init]
29464
+ self.use_initialization = opts[:use_initialization]
29381
29465
  self.use_sysprep = opts[:use_sysprep]
29382
29466
  self.virtual_functions_configuration = opts[:virtual_functions_configuration]
29383
29467
  self.vm = opts[:vm]
@@ -29433,6 +29517,7 @@ module OvirtSDK4
29433
29517
  @lease == other.lease &&
29434
29518
  @logical_units == other.logical_units &&
29435
29519
  @maintenance_enabled == other.maintenance_enabled &&
29520
+ @migrate_vms_in_affinity_closure == other.migrate_vms_in_affinity_closure &&
29436
29521
  @modified_bonds == other.modified_bonds &&
29437
29522
  @modified_labels == other.modified_labels &&
29438
29523
  @modified_network_attachments == other.modified_network_attachments &&
@@ -29464,8 +29549,11 @@ module OvirtSDK4
29464
29549
  @synchronized_network_attachments == other.synchronized_network_attachments &&
29465
29550
  @template == other.template &&
29466
29551
  @ticket == other.ticket &&
29552
+ @timeout == other.timeout &&
29467
29553
  @undeploy_hosted_engine == other.undeploy_hosted_engine &&
29554
+ @upgrade_action == other.upgrade_action &&
29468
29555
  @use_cloud_init == other.use_cloud_init &&
29556
+ @use_initialization == other.use_initialization &&
29469
29557
  @use_sysprep == other.use_sysprep &&
29470
29558
  @virtual_functions_configuration == other.virtual_functions_configuration &&
29471
29559
  @vm == other.vm &&
@@ -29521,6 +29609,7 @@ module OvirtSDK4
29521
29609
  @lease.hash +
29522
29610
  @logical_units.hash +
29523
29611
  @maintenance_enabled.hash +
29612
+ @migrate_vms_in_affinity_closure.hash +
29524
29613
  @modified_bonds.hash +
29525
29614
  @modified_labels.hash +
29526
29615
  @modified_network_attachments.hash +
@@ -29552,8 +29641,11 @@ module OvirtSDK4
29552
29641
  @synchronized_network_attachments.hash +
29553
29642
  @template.hash +
29554
29643
  @ticket.hash +
29644
+ @timeout.hash +
29555
29645
  @undeploy_hosted_engine.hash +
29646
+ @upgrade_action.hash +
29556
29647
  @use_cloud_init.hash +
29648
+ @use_initialization.hash +
29557
29649
  @use_sysprep.hash +
29558
29650
  @virtual_functions_configuration.hash +
29559
29651
  @vm.hash +
@@ -29644,6 +29736,32 @@ module OvirtSDK4
29644
29736
  @enforcing = value
29645
29737
  end
29646
29738
 
29739
+ #
29740
+ # Returns the value of the `host_labels` attribute.
29741
+ #
29742
+ # @return [Array<AffinityLabel>]
29743
+ #
29744
+ def host_labels
29745
+ @host_labels
29746
+ end
29747
+
29748
+ #
29749
+ # Sets the value of the `host_labels` attribute.
29750
+ #
29751
+ # @param list [Array<AffinityLabel>]
29752
+ #
29753
+ def host_labels=(list)
29754
+ if list.class == Array
29755
+ list = List.new(list)
29756
+ list.each_with_index do |value, index|
29757
+ if value.is_a?(Hash)
29758
+ list[index] = AffinityLabel.new(value)
29759
+ end
29760
+ end
29761
+ end
29762
+ @host_labels = list
29763
+ end
29764
+
29647
29765
  #
29648
29766
  # Returns the value of the `hosts` attribute.
29649
29767
  #
@@ -29749,6 +29867,50 @@ module OvirtSDK4
29749
29867
  @positive = value
29750
29868
  end
29751
29869
 
29870
+ #
29871
+ # Returns the value of the `priority` attribute.
29872
+ #
29873
+ # @return [Float]
29874
+ #
29875
+ def priority
29876
+ @priority
29877
+ end
29878
+
29879
+ #
29880
+ # Sets the value of the `priority` attribute.
29881
+ #
29882
+ # @param value [Float]
29883
+ #
29884
+ def priority=(value)
29885
+ @priority = value
29886
+ end
29887
+
29888
+ #
29889
+ # Returns the value of the `vm_labels` attribute.
29890
+ #
29891
+ # @return [Array<AffinityLabel>]
29892
+ #
29893
+ def vm_labels
29894
+ @vm_labels
29895
+ end
29896
+
29897
+ #
29898
+ # Sets the value of the `vm_labels` attribute.
29899
+ #
29900
+ # @param list [Array<AffinityLabel>]
29901
+ #
29902
+ def vm_labels=(list)
29903
+ if list.class == Array
29904
+ list = List.new(list)
29905
+ list.each_with_index do |value, index|
29906
+ if value.is_a?(Hash)
29907
+ list[index] = AffinityLabel.new(value)
29908
+ end
29909
+ end
29910
+ end
29911
+ @vm_labels = list
29912
+ end
29913
+
29752
29914
  #
29753
29915
  # Returns the value of the `vms` attribute.
29754
29916
  #
@@ -29815,6 +29977,8 @@ module OvirtSDK4
29815
29977
  #
29816
29978
  # @option opts [Boolean] :enforcing The value of attribute `enforcing`.
29817
29979
  #
29980
+ # @option opts [Array<AffinityLabel>, Array<Hash>] :host_labels The values of attribute `host_labels`.
29981
+ #
29818
29982
  # @option opts [Array<Host>, Array<Hash>] :hosts The values of attribute `hosts`.
29819
29983
  #
29820
29984
  # @option opts [AffinityRule, Hash] :hosts_rule The value of attribute `hosts_rule`.
@@ -29825,6 +29989,10 @@ module OvirtSDK4
29825
29989
  #
29826
29990
  # @option opts [Boolean] :positive The value of attribute `positive`.
29827
29991
  #
29992
+ # @option opts [Float] :priority The value of attribute `priority`.
29993
+ #
29994
+ # @option opts [Array<AffinityLabel>, Array<Hash>] :vm_labels The values of attribute `vm_labels`.
29995
+ #
29828
29996
  # @option opts [Array<Vm>, Array<Hash>] :vms The values of attribute `vms`.
29829
29997
  #
29830
29998
  # @option opts [AffinityRule, Hash] :vms_rule The value of attribute `vms_rule`.
@@ -29834,9 +30002,12 @@ module OvirtSDK4
29834
30002
  super(opts)
29835
30003
  self.cluster = opts[:cluster]
29836
30004
  self.enforcing = opts[:enforcing]
30005
+ self.host_labels = opts[:host_labels]
29837
30006
  self.hosts = opts[:hosts]
29838
30007
  self.hosts_rule = opts[:hosts_rule]
29839
30008
  self.positive = opts[:positive]
30009
+ self.priority = opts[:priority]
30010
+ self.vm_labels = opts[:vm_labels]
29840
30011
  self.vms = opts[:vms]
29841
30012
  self.vms_rule = opts[:vms_rule]
29842
30013
  end
@@ -29848,9 +30019,12 @@ module OvirtSDK4
29848
30019
  super &&
29849
30020
  @cluster == other.cluster &&
29850
30021
  @enforcing == other.enforcing &&
30022
+ @host_labels == other.host_labels &&
29851
30023
  @hosts == other.hosts &&
29852
30024
  @hosts_rule == other.hosts_rule &&
29853
30025
  @positive == other.positive &&
30026
+ @priority == other.priority &&
30027
+ @vm_labels == other.vm_labels &&
29854
30028
  @vms == other.vms &&
29855
30029
  @vms_rule == other.vms_rule
29856
30030
  end
@@ -29862,9 +30036,12 @@ module OvirtSDK4
29862
30036
  super +
29863
30037
  @cluster.hash +
29864
30038
  @enforcing.hash +
30039
+ @host_labels.hash +
29865
30040
  @hosts.hash +
29866
30041
  @hosts_rule.hash +
29867
30042
  @positive.hash +
30043
+ @priority.hash +
30044
+ @vm_labels.hash +
29868
30045
  @vms.hash +
29869
30046
  @vms_rule.hash
29870
30047
  end
@@ -29909,6 +30086,24 @@ module OvirtSDK4
29909
30086
  @description = value
29910
30087
  end
29911
30088
 
30089
+ #
30090
+ # Returns the value of the `has_implicit_affinity_group` attribute.
30091
+ #
30092
+ # @return [Boolean]
30093
+ #
30094
+ def has_implicit_affinity_group
30095
+ @has_implicit_affinity_group
30096
+ end
30097
+
30098
+ #
30099
+ # Sets the value of the `has_implicit_affinity_group` attribute.
30100
+ #
30101
+ # @param value [Boolean]
30102
+ #
30103
+ def has_implicit_affinity_group=(value)
30104
+ @has_implicit_affinity_group = value
30105
+ end
30106
+
29912
30107
  #
29913
30108
  # Returns the value of the `hosts` attribute.
29914
30109
  #
@@ -30026,6 +30221,8 @@ module OvirtSDK4
30026
30221
  #
30027
30222
  # @option opts [String] :description The value of attribute `description`.
30028
30223
  #
30224
+ # @option opts [Boolean] :has_implicit_affinity_group The value of attribute `has_implicit_affinity_group`.
30225
+ #
30029
30226
  # @option opts [Array<Host>, Array<Hash>] :hosts The values of attribute `hosts`.
30030
30227
  #
30031
30228
  # @option opts [String] :id The value of attribute `id`.
@@ -30039,6 +30236,7 @@ module OvirtSDK4
30039
30236
  #
30040
30237
  def initialize(opts = {})
30041
30238
  super(opts)
30239
+ self.has_implicit_affinity_group = opts[:has_implicit_affinity_group]
30042
30240
  self.hosts = opts[:hosts]
30043
30241
  self.read_only = opts[:read_only]
30044
30242
  self.vms = opts[:vms]
@@ -30049,6 +30247,7 @@ module OvirtSDK4
30049
30247
  #
30050
30248
  def ==(other)
30051
30249
  super &&
30250
+ @has_implicit_affinity_group == other.has_implicit_affinity_group &&
30052
30251
  @hosts == other.hosts &&
30053
30252
  @read_only == other.read_only &&
30054
30253
  @vms == other.vms
@@ -30059,6 +30258,7 @@ module OvirtSDK4
30059
30258
  #
30060
30259
  def hash
30061
30260
  super +
30261
+ @has_implicit_affinity_group.hash +
30062
30262
  @hosts.hash +
30063
30263
  @read_only.hash +
30064
30264
  @vms.hash
@@ -56085,6 +56285,11 @@ module OvirtSDK4
56085
56285
  OPENSTACK_METADATA = 'openstack_metadata'.freeze
56086
56286
  end
56087
56287
 
56288
+ module ClusterUpgradeAction
56289
+ FINISH = 'finish'.freeze
56290
+ START = 'start'.freeze
56291
+ end
56292
+
56088
56293
  module ConfigurationType
56089
56294
  OVA = 'ova'.freeze
56090
56295
  OVF = 'ovf'.freeze
@@ -56119,6 +56324,10 @@ module OvirtSDK4
56119
56324
 
56120
56325
  module DiskContentType
56121
56326
  DATA = 'data'.freeze
56327
+ HOSTED_ENGINE = 'hosted_engine'.freeze
56328
+ HOSTED_ENGINE_CONFIGURATION = 'hosted_engine_configuration'.freeze
56329
+ HOSTED_ENGINE_METADATA = 'hosted_engine_metadata'.freeze
56330
+ HOSTED_ENGINE_SANLOCK = 'hosted_engine_sanlock'.freeze
56122
56331
  ISO = 'iso'.freeze
56123
56332
  MEMORY_DUMP_VOLUME = 'memory_dump_volume'.freeze
56124
56333
  MEMORY_METADATA_VOLUME = 'memory_metadata_volume'.freeze
@@ -56301,8 +56510,12 @@ module OvirtSDK4
56301
56510
 
56302
56511
  module ImageTransferPhase
56303
56512
  CANCELLED = 'cancelled'.freeze
56513
+ CANCELLED_SYSTEM = 'cancelled_system'.freeze
56514
+ CANCELLED_USER = 'cancelled_user'.freeze
56515
+ FINALIZING_CLEANUP = 'finalizing_cleanup'.freeze
56304
56516
  FINALIZING_FAILURE = 'finalizing_failure'.freeze
56305
56517
  FINALIZING_SUCCESS = 'finalizing_success'.freeze
56518
+ FINISHED_CLEANUP = 'finished_cleanup'.freeze
56306
56519
  FINISHED_FAILURE = 'finished_failure'.freeze
56307
56520
  FINISHED_SUCCESS = 'finished_success'.freeze
56308
56521
  INITIALIZING = 'initializing'.freeze
@@ -56395,6 +56608,7 @@ module OvirtSDK4
56395
56608
  AUTO = 'auto'.freeze
56396
56609
  V3 = 'v3'.freeze
56397
56610
  V4 = 'v4'.freeze
56611
+ V4_0 = 'v4_0'.freeze
56398
56612
  V4_1 = 'v4_1'.freeze
56399
56613
  V4_2 = 'v4_2'.freeze
56400
56614
  end
@@ -56515,6 +56729,7 @@ module OvirtSDK4
56515
56729
  end
56516
56730
 
56517
56731
  module ScsiGenericIO
56732
+ DISABLED = 'disabled'.freeze
56518
56733
  FILTERED = 'filtered'.freeze
56519
56734
  UNFILTERED = 'unfiltered'.freeze
56520
56735
  end
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module OvirtSDK4
19
- VERSION = '4.3.0'.freeze
19
+ VERSION = '4.3.1'.freeze
20
20
  end
@@ -76,6 +76,7 @@ module OvirtSDK4
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
78
  Writer.write_boolean(writer, 'maintenance_enabled', object.maintenance_enabled) unless object.maintenance_enabled.nil?
79
+ Writer.write_boolean(writer, 'migrate_vms_in_affinity_closure', object.migrate_vms_in_affinity_closure) unless object.migrate_vms_in_affinity_closure.nil?
79
80
  HostNicWriter.write_many(object.modified_bonds, writer, 'host_nic', 'modified_bonds') unless object.modified_bonds.nil?
80
81
  NetworkLabelWriter.write_many(object.modified_labels, writer, 'network_label', 'modified_labels') unless object.modified_labels.nil?
81
82
  NetworkAttachmentWriter.write_many(object.modified_network_attachments, writer, 'network_attachment', 'modified_network_attachments') unless object.modified_network_attachments.nil?
@@ -108,8 +109,11 @@ module OvirtSDK4
108
109
  NetworkAttachmentWriter.write_many(object.synchronized_network_attachments, writer, 'network_attachment', 'synchronized_network_attachments') unless object.synchronized_network_attachments.nil?
109
110
  TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
110
111
  TicketWriter.write_one(object.ticket, writer, 'ticket') unless object.ticket.nil?
112
+ Writer.write_integer(writer, 'timeout', object.timeout) unless object.timeout.nil?
111
113
  Writer.write_boolean(writer, 'undeploy_hosted_engine', object.undeploy_hosted_engine) unless object.undeploy_hosted_engine.nil?
114
+ Writer.write_string(writer, 'upgrade_action', object.upgrade_action) unless object.upgrade_action.nil?
112
115
  Writer.write_boolean(writer, 'use_cloud_init', object.use_cloud_init) unless object.use_cloud_init.nil?
116
+ Writer.write_boolean(writer, 'use_initialization', object.use_initialization) unless object.use_initialization.nil?
113
117
  Writer.write_boolean(writer, 'use_sysprep', object.use_sysprep) unless object.use_sysprep.nil?
114
118
  HostNicVirtualFunctionsConfigurationWriter.write_one(object.virtual_functions_configuration, writer, 'virtual_functions_configuration') unless object.virtual_functions_configuration.nil?
115
119
  VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
@@ -148,9 +152,12 @@ module OvirtSDK4
148
152
  AffinityRuleWriter.write_one(object.hosts_rule, writer, 'hosts_rule') unless object.hosts_rule.nil?
149
153
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
150
154
  Writer.write_boolean(writer, 'positive', object.positive) unless object.positive.nil?
155
+ Writer.write_decimal(writer, 'priority', object.priority) unless object.priority.nil?
151
156
  AffinityRuleWriter.write_one(object.vms_rule, writer, 'vms_rule') unless object.vms_rule.nil?
152
157
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
158
+ AffinityLabelWriter.write_many(object.host_labels, writer, 'affinity_label', 'host_labels') unless object.host_labels.nil?
153
159
  HostWriter.write_many(object.hosts, writer, 'host', 'hosts') unless object.hosts.nil?
160
+ AffinityLabelWriter.write_many(object.vm_labels, writer, 'affinity_label', 'vm_labels') unless object.vm_labels.nil?
154
161
  VmWriter.write_many(object.vms, writer, 'vm', 'vms') unless object.vms.nil?
155
162
  writer.write_end
156
163
  end
@@ -181,6 +188,7 @@ module OvirtSDK4
181
188
  writer.write_attribute('id', object.id) unless object.id.nil?
182
189
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
183
190
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
191
+ Writer.write_boolean(writer, 'has_implicit_affinity_group', object.has_implicit_affinity_group) unless object.has_implicit_affinity_group.nil?
184
192
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
185
193
  Writer.write_boolean(writer, 'read_only', object.read_only) unless object.read_only.nil?
186
194
  HostWriter.write_many(object.hosts, writer, 'host', 'hosts') unless object.hosts.nil?