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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -308,6 +308,27 @@ module OvirtSDK4
308
308
  class Rate < Struct
309
309
  end
310
310
 
311
+ class RegistrationAffinityGroupMapping < Struct
312
+ end
313
+
314
+ class RegistrationAffinityLabelMapping < Struct
315
+ end
316
+
317
+ class RegistrationClusterMapping < Struct
318
+ end
319
+
320
+ class RegistrationConfiguration < Struct
321
+ end
322
+
323
+ class RegistrationDomainMapping < Struct
324
+ end
325
+
326
+ class RegistrationLunMapping < Struct
327
+ end
328
+
329
+ class RegistrationRoleMapping < Struct
330
+ end
331
+
311
332
  class ReportedConfiguration < Struct
312
333
  end
313
334
 
@@ -530,6 +551,9 @@ module OvirtSDK4
530
551
  class ExternalHostGroup < Identified
531
552
  end
532
553
 
554
+ class ExternalNetworkProviderConfiguration < Identified
555
+ end
556
+
533
557
  class ExternalProvider < Identified
534
558
  end
535
559
 
@@ -15983,60 +16007,816 @@ module OvirtSDK4
15983
16007
 
15984
16008
  end
15985
16009
 
15986
- class Rate < Struct
16010
+ class Rate < Struct
16011
+
16012
+ #
16013
+ # Returns the value of the `bytes` attribute.
16014
+ #
16015
+ # @return [Integer]
16016
+ #
16017
+ def bytes
16018
+ @bytes
16019
+ end
16020
+
16021
+ #
16022
+ # Sets the value of the `bytes` attribute.
16023
+ #
16024
+ # @param value [Integer]
16025
+ #
16026
+ def bytes=(value)
16027
+ @bytes = value
16028
+ end
16029
+
16030
+ #
16031
+ # Returns the value of the `period` attribute.
16032
+ #
16033
+ # @return [Integer]
16034
+ #
16035
+ def period
16036
+ @period
16037
+ end
16038
+
16039
+ #
16040
+ # Sets the value of the `period` attribute.
16041
+ #
16042
+ # @param value [Integer]
16043
+ #
16044
+ def period=(value)
16045
+ @period = value
16046
+ end
16047
+
16048
+ #
16049
+ # Creates a new instance of the {Rate} class.
16050
+ #
16051
+ # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
16052
+ # should be symbols corresponding to the names of the attributes. The values of the hash
16053
+ # should be the values of the attributes.
16054
+ #
16055
+ # @option opts [Integer] :bytes The value of attribute `bytes`.
16056
+ #
16057
+ # @option opts [Integer] :period The value of attribute `period`.
16058
+ #
16059
+ #
16060
+ def initialize(opts = {})
16061
+ super(opts)
16062
+ self.bytes = opts[:bytes]
16063
+ self.period = opts[:period]
16064
+ end
16065
+
16066
+ #
16067
+ # Returns `true` if `self` and `other` have the same attributes and values.
16068
+ #
16069
+ def ==(other)
16070
+ super &&
16071
+ @bytes == other.bytes &&
16072
+ @period == other.period
16073
+ end
16074
+
16075
+ #
16076
+ # Generates a hash value for this object.
16077
+ #
16078
+ def hash
16079
+ super +
16080
+ @bytes.hash +
16081
+ @period.hash
16082
+ end
16083
+
16084
+ end
16085
+
16086
+ class RegistrationAffinityGroupMapping < Struct
16087
+
16088
+ #
16089
+ # Returns the value of the `from` attribute.
16090
+ #
16091
+ # @return [AffinityGroup]
16092
+ #
16093
+ def from
16094
+ @from
16095
+ end
16096
+
16097
+ #
16098
+ # Sets the value of the `from` attribute.
16099
+ #
16100
+ # @param value [AffinityGroup, Hash]
16101
+ #
16102
+ # The `value` parameter can be an instance of {OvirtSDK4::AffinityGroup} or a hash.
16103
+ # If it is a hash then a new instance will be created passing the hash as the
16104
+ # `opts` parameter to the constructor.
16105
+ #
16106
+ def from=(value)
16107
+ if value.is_a?(Hash)
16108
+ value = AffinityGroup.new(value)
16109
+ end
16110
+ @from = value
16111
+ end
16112
+
16113
+ #
16114
+ # Returns the value of the `to` attribute.
16115
+ #
16116
+ # @return [AffinityGroup]
16117
+ #
16118
+ def to
16119
+ @to
16120
+ end
16121
+
16122
+ #
16123
+ # Sets the value of the `to` attribute.
16124
+ #
16125
+ # @param value [AffinityGroup, Hash]
16126
+ #
16127
+ # The `value` parameter can be an instance of {OvirtSDK4::AffinityGroup} or a hash.
16128
+ # If it is a hash then a new instance will be created passing the hash as the
16129
+ # `opts` parameter to the constructor.
16130
+ #
16131
+ def to=(value)
16132
+ if value.is_a?(Hash)
16133
+ value = AffinityGroup.new(value)
16134
+ end
16135
+ @to = value
16136
+ end
16137
+
16138
+ #
16139
+ # Creates a new instance of the {RegistrationAffinityGroupMapping} class.
16140
+ #
16141
+ # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
16142
+ # should be symbols corresponding to the names of the attributes. The values of the hash
16143
+ # should be the values of the attributes.
16144
+ #
16145
+ # @option opts [AffinityGroup, Hash] :from The value of attribute `from`.
16146
+ #
16147
+ # @option opts [AffinityGroup, Hash] :to The value of attribute `to`.
16148
+ #
16149
+ #
16150
+ def initialize(opts = {})
16151
+ super(opts)
16152
+ self.from = opts[:from]
16153
+ self.to = opts[:to]
16154
+ end
16155
+
16156
+ #
16157
+ # Returns `true` if `self` and `other` have the same attributes and values.
16158
+ #
16159
+ def ==(other)
16160
+ super &&
16161
+ @from == other.from &&
16162
+ @to == other.to
16163
+ end
16164
+
16165
+ #
16166
+ # Generates a hash value for this object.
16167
+ #
16168
+ def hash
16169
+ super +
16170
+ @from.hash +
16171
+ @to.hash
16172
+ end
16173
+
16174
+ end
16175
+
16176
+ class RegistrationAffinityLabelMapping < Struct
16177
+
16178
+ #
16179
+ # Returns the value of the `from` attribute.
16180
+ #
16181
+ # @return [AffinityLabel]
16182
+ #
16183
+ def from
16184
+ @from
16185
+ end
16186
+
16187
+ #
16188
+ # Sets the value of the `from` attribute.
16189
+ #
16190
+ # @param value [AffinityLabel, Hash]
16191
+ #
16192
+ # The `value` parameter can be an instance of {OvirtSDK4::AffinityLabel} or a hash.
16193
+ # If it is a hash then a new instance will be created passing the hash as the
16194
+ # `opts` parameter to the constructor.
16195
+ #
16196
+ def from=(value)
16197
+ if value.is_a?(Hash)
16198
+ value = AffinityLabel.new(value)
16199
+ end
16200
+ @from = value
16201
+ end
16202
+
16203
+ #
16204
+ # Returns the value of the `to` attribute.
16205
+ #
16206
+ # @return [AffinityLabel]
16207
+ #
16208
+ def to
16209
+ @to
16210
+ end
16211
+
16212
+ #
16213
+ # Sets the value of the `to` attribute.
16214
+ #
16215
+ # @param value [AffinityLabel, Hash]
16216
+ #
16217
+ # The `value` parameter can be an instance of {OvirtSDK4::AffinityLabel} or a hash.
16218
+ # If it is a hash then a new instance will be created passing the hash as the
16219
+ # `opts` parameter to the constructor.
16220
+ #
16221
+ def to=(value)
16222
+ if value.is_a?(Hash)
16223
+ value = AffinityLabel.new(value)
16224
+ end
16225
+ @to = value
16226
+ end
16227
+
16228
+ #
16229
+ # Creates a new instance of the {RegistrationAffinityLabelMapping} class.
16230
+ #
16231
+ # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
16232
+ # should be symbols corresponding to the names of the attributes. The values of the hash
16233
+ # should be the values of the attributes.
16234
+ #
16235
+ # @option opts [AffinityLabel, Hash] :from The value of attribute `from`.
16236
+ #
16237
+ # @option opts [AffinityLabel, Hash] :to The value of attribute `to`.
16238
+ #
16239
+ #
16240
+ def initialize(opts = {})
16241
+ super(opts)
16242
+ self.from = opts[:from]
16243
+ self.to = opts[:to]
16244
+ end
16245
+
16246
+ #
16247
+ # Returns `true` if `self` and `other` have the same attributes and values.
16248
+ #
16249
+ def ==(other)
16250
+ super &&
16251
+ @from == other.from &&
16252
+ @to == other.to
16253
+ end
16254
+
16255
+ #
16256
+ # Generates a hash value for this object.
16257
+ #
16258
+ def hash
16259
+ super +
16260
+ @from.hash +
16261
+ @to.hash
16262
+ end
16263
+
16264
+ end
16265
+
16266
+ class RegistrationClusterMapping < Struct
16267
+
16268
+ #
16269
+ # Returns the value of the `from` attribute.
16270
+ #
16271
+ # @return [Cluster]
16272
+ #
16273
+ def from
16274
+ @from
16275
+ end
16276
+
16277
+ #
16278
+ # Sets the value of the `from` attribute.
16279
+ #
16280
+ # @param value [Cluster, Hash]
16281
+ #
16282
+ # The `value` parameter can be an instance of {OvirtSDK4::Cluster} or a hash.
16283
+ # If it is a hash then a new instance will be created passing the hash as the
16284
+ # `opts` parameter to the constructor.
16285
+ #
16286
+ def from=(value)
16287
+ if value.is_a?(Hash)
16288
+ value = Cluster.new(value)
16289
+ end
16290
+ @from = value
16291
+ end
16292
+
16293
+ #
16294
+ # Returns the value of the `to` attribute.
16295
+ #
16296
+ # @return [Cluster]
16297
+ #
16298
+ def to
16299
+ @to
16300
+ end
16301
+
16302
+ #
16303
+ # Sets the value of the `to` attribute.
16304
+ #
16305
+ # @param value [Cluster, Hash]
16306
+ #
16307
+ # The `value` parameter can be an instance of {OvirtSDK4::Cluster} or a hash.
16308
+ # If it is a hash then a new instance will be created passing the hash as the
16309
+ # `opts` parameter to the constructor.
16310
+ #
16311
+ def to=(value)
16312
+ if value.is_a?(Hash)
16313
+ value = Cluster.new(value)
16314
+ end
16315
+ @to = value
16316
+ end
16317
+
16318
+ #
16319
+ # Creates a new instance of the {RegistrationClusterMapping} class.
16320
+ #
16321
+ # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
16322
+ # should be symbols corresponding to the names of the attributes. The values of the hash
16323
+ # should be the values of the attributes.
16324
+ #
16325
+ # @option opts [Cluster, Hash] :from The value of attribute `from`.
16326
+ #
16327
+ # @option opts [Cluster, Hash] :to The value of attribute `to`.
16328
+ #
16329
+ #
16330
+ def initialize(opts = {})
16331
+ super(opts)
16332
+ self.from = opts[:from]
16333
+ self.to = opts[:to]
16334
+ end
16335
+
16336
+ #
16337
+ # Returns `true` if `self` and `other` have the same attributes and values.
16338
+ #
16339
+ def ==(other)
16340
+ super &&
16341
+ @from == other.from &&
16342
+ @to == other.to
16343
+ end
16344
+
16345
+ #
16346
+ # Generates a hash value for this object.
16347
+ #
16348
+ def hash
16349
+ super +
16350
+ @from.hash +
16351
+ @to.hash
16352
+ end
16353
+
16354
+ end
16355
+
16356
+ class RegistrationConfiguration < Struct
16357
+
16358
+ #
16359
+ # Returns the value of the `affinity_group_mappings` attribute.
16360
+ #
16361
+ # @return [Array<RegistrationAffinityGroupMapping>]
16362
+ #
16363
+ def affinity_group_mappings
16364
+ @affinity_group_mappings
16365
+ end
16366
+
16367
+ #
16368
+ # Sets the value of the `affinity_group_mappings` attribute.
16369
+ #
16370
+ # @param list [Array<RegistrationAffinityGroupMapping>]
16371
+ #
16372
+ def affinity_group_mappings=(list)
16373
+ if list.class == Array
16374
+ list = List.new(list)
16375
+ list.each_with_index do |value, index|
16376
+ if value.is_a?(Hash)
16377
+ list[index] = RegistrationAffinityGroupMapping.new(value)
16378
+ end
16379
+ end
16380
+ end
16381
+ @affinity_group_mappings = list
16382
+ end
16383
+
16384
+ #
16385
+ # Returns the value of the `affinity_label_mappings` attribute.
16386
+ #
16387
+ # @return [Array<RegistrationAffinityLabelMapping>]
16388
+ #
16389
+ def affinity_label_mappings
16390
+ @affinity_label_mappings
16391
+ end
16392
+
16393
+ #
16394
+ # Sets the value of the `affinity_label_mappings` attribute.
16395
+ #
16396
+ # @param list [Array<RegistrationAffinityLabelMapping>]
16397
+ #
16398
+ def affinity_label_mappings=(list)
16399
+ if list.class == Array
16400
+ list = List.new(list)
16401
+ list.each_with_index do |value, index|
16402
+ if value.is_a?(Hash)
16403
+ list[index] = RegistrationAffinityLabelMapping.new(value)
16404
+ end
16405
+ end
16406
+ end
16407
+ @affinity_label_mappings = list
16408
+ end
16409
+
16410
+ #
16411
+ # Returns the value of the `cluster_mappings` attribute.
16412
+ #
16413
+ # @return [Array<RegistrationClusterMapping>]
16414
+ #
16415
+ def cluster_mappings
16416
+ @cluster_mappings
16417
+ end
16418
+
16419
+ #
16420
+ # Sets the value of the `cluster_mappings` attribute.
16421
+ #
16422
+ # @param list [Array<RegistrationClusterMapping>]
16423
+ #
16424
+ def cluster_mappings=(list)
16425
+ if list.class == Array
16426
+ list = List.new(list)
16427
+ list.each_with_index do |value, index|
16428
+ if value.is_a?(Hash)
16429
+ list[index] = RegistrationClusterMapping.new(value)
16430
+ end
16431
+ end
16432
+ end
16433
+ @cluster_mappings = list
16434
+ end
16435
+
16436
+ #
16437
+ # Returns the value of the `domain_mappings` attribute.
16438
+ #
16439
+ # @return [Array<RegistrationDomainMapping>]
16440
+ #
16441
+ def domain_mappings
16442
+ @domain_mappings
16443
+ end
16444
+
16445
+ #
16446
+ # Sets the value of the `domain_mappings` attribute.
16447
+ #
16448
+ # @param list [Array<RegistrationDomainMapping>]
16449
+ #
16450
+ def domain_mappings=(list)
16451
+ if list.class == Array
16452
+ list = List.new(list)
16453
+ list.each_with_index do |value, index|
16454
+ if value.is_a?(Hash)
16455
+ list[index] = RegistrationDomainMapping.new(value)
16456
+ end
16457
+ end
16458
+ end
16459
+ @domain_mappings = list
16460
+ end
16461
+
16462
+ #
16463
+ # Returns the value of the `lun_mappings` attribute.
16464
+ #
16465
+ # @return [Array<RegistrationLunMapping>]
16466
+ #
16467
+ def lun_mappings
16468
+ @lun_mappings
16469
+ end
16470
+
16471
+ #
16472
+ # Sets the value of the `lun_mappings` attribute.
16473
+ #
16474
+ # @param list [Array<RegistrationLunMapping>]
16475
+ #
16476
+ def lun_mappings=(list)
16477
+ if list.class == Array
16478
+ list = List.new(list)
16479
+ list.each_with_index do |value, index|
16480
+ if value.is_a?(Hash)
16481
+ list[index] = RegistrationLunMapping.new(value)
16482
+ end
16483
+ end
16484
+ end
16485
+ @lun_mappings = list
16486
+ end
16487
+
16488
+ #
16489
+ # Returns the value of the `role_mappings` attribute.
16490
+ #
16491
+ # @return [Array<RegistrationRoleMapping>]
16492
+ #
16493
+ def role_mappings
16494
+ @role_mappings
16495
+ end
16496
+
16497
+ #
16498
+ # Sets the value of the `role_mappings` attribute.
16499
+ #
16500
+ # @param list [Array<RegistrationRoleMapping>]
16501
+ #
16502
+ def role_mappings=(list)
16503
+ if list.class == Array
16504
+ list = List.new(list)
16505
+ list.each_with_index do |value, index|
16506
+ if value.is_a?(Hash)
16507
+ list[index] = RegistrationRoleMapping.new(value)
16508
+ end
16509
+ end
16510
+ end
16511
+ @role_mappings = list
16512
+ end
16513
+
16514
+ #
16515
+ # Creates a new instance of the {RegistrationConfiguration} class.
16516
+ #
16517
+ # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
16518
+ # should be symbols corresponding to the names of the attributes. The values of the hash
16519
+ # should be the values of the attributes.
16520
+ #
16521
+ # @option opts [Array<RegistrationAffinityGroupMapping>, Array<Hash>] :affinity_group_mappings The values of attribute `affinity_group_mappings`.
16522
+ #
16523
+ # @option opts [Array<RegistrationAffinityLabelMapping>, Array<Hash>] :affinity_label_mappings The values of attribute `affinity_label_mappings`.
16524
+ #
16525
+ # @option opts [Array<RegistrationClusterMapping>, Array<Hash>] :cluster_mappings The values of attribute `cluster_mappings`.
16526
+ #
16527
+ # @option opts [Array<RegistrationDomainMapping>, Array<Hash>] :domain_mappings The values of attribute `domain_mappings`.
16528
+ #
16529
+ # @option opts [Array<RegistrationLunMapping>, Array<Hash>] :lun_mappings The values of attribute `lun_mappings`.
16530
+ #
16531
+ # @option opts [Array<RegistrationRoleMapping>, Array<Hash>] :role_mappings The values of attribute `role_mappings`.
16532
+ #
16533
+ #
16534
+ def initialize(opts = {})
16535
+ super(opts)
16536
+ self.affinity_group_mappings = opts[:affinity_group_mappings]
16537
+ self.affinity_label_mappings = opts[:affinity_label_mappings]
16538
+ self.cluster_mappings = opts[:cluster_mappings]
16539
+ self.domain_mappings = opts[:domain_mappings]
16540
+ self.lun_mappings = opts[:lun_mappings]
16541
+ self.role_mappings = opts[:role_mappings]
16542
+ end
16543
+
16544
+ #
16545
+ # Returns `true` if `self` and `other` have the same attributes and values.
16546
+ #
16547
+ def ==(other)
16548
+ super &&
16549
+ @affinity_group_mappings == other.affinity_group_mappings &&
16550
+ @affinity_label_mappings == other.affinity_label_mappings &&
16551
+ @cluster_mappings == other.cluster_mappings &&
16552
+ @domain_mappings == other.domain_mappings &&
16553
+ @lun_mappings == other.lun_mappings &&
16554
+ @role_mappings == other.role_mappings
16555
+ end
16556
+
16557
+ #
16558
+ # Generates a hash value for this object.
16559
+ #
16560
+ def hash
16561
+ super +
16562
+ @affinity_group_mappings.hash +
16563
+ @affinity_label_mappings.hash +
16564
+ @cluster_mappings.hash +
16565
+ @domain_mappings.hash +
16566
+ @lun_mappings.hash +
16567
+ @role_mappings.hash
16568
+ end
16569
+
16570
+ end
16571
+
16572
+ class RegistrationDomainMapping < Struct
16573
+
16574
+ #
16575
+ # Returns the value of the `from` attribute.
16576
+ #
16577
+ # @return [Domain]
16578
+ #
16579
+ def from
16580
+ @from
16581
+ end
16582
+
16583
+ #
16584
+ # Sets the value of the `from` attribute.
16585
+ #
16586
+ # @param value [Domain, Hash]
16587
+ #
16588
+ # The `value` parameter can be an instance of {OvirtSDK4::Domain} or a hash.
16589
+ # If it is a hash then a new instance will be created passing the hash as the
16590
+ # `opts` parameter to the constructor.
16591
+ #
16592
+ def from=(value)
16593
+ if value.is_a?(Hash)
16594
+ value = Domain.new(value)
16595
+ end
16596
+ @from = value
16597
+ end
16598
+
16599
+ #
16600
+ # Returns the value of the `to` attribute.
16601
+ #
16602
+ # @return [Domain]
16603
+ #
16604
+ def to
16605
+ @to
16606
+ end
16607
+
16608
+ #
16609
+ # Sets the value of the `to` attribute.
16610
+ #
16611
+ # @param value [Domain, Hash]
16612
+ #
16613
+ # The `value` parameter can be an instance of {OvirtSDK4::Domain} or a hash.
16614
+ # If it is a hash then a new instance will be created passing the hash as the
16615
+ # `opts` parameter to the constructor.
16616
+ #
16617
+ def to=(value)
16618
+ if value.is_a?(Hash)
16619
+ value = Domain.new(value)
16620
+ end
16621
+ @to = value
16622
+ end
16623
+
16624
+ #
16625
+ # Creates a new instance of the {RegistrationDomainMapping} class.
16626
+ #
16627
+ # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
16628
+ # should be symbols corresponding to the names of the attributes. The values of the hash
16629
+ # should be the values of the attributes.
16630
+ #
16631
+ # @option opts [Domain, Hash] :from The value of attribute `from`.
16632
+ #
16633
+ # @option opts [Domain, Hash] :to The value of attribute `to`.
16634
+ #
16635
+ #
16636
+ def initialize(opts = {})
16637
+ super(opts)
16638
+ self.from = opts[:from]
16639
+ self.to = opts[:to]
16640
+ end
16641
+
16642
+ #
16643
+ # Returns `true` if `self` and `other` have the same attributes and values.
16644
+ #
16645
+ def ==(other)
16646
+ super &&
16647
+ @from == other.from &&
16648
+ @to == other.to
16649
+ end
16650
+
16651
+ #
16652
+ # Generates a hash value for this object.
16653
+ #
16654
+ def hash
16655
+ super +
16656
+ @from.hash +
16657
+ @to.hash
16658
+ end
16659
+
16660
+ end
16661
+
16662
+ class RegistrationLunMapping < Struct
16663
+
16664
+ #
16665
+ # Returns the value of the `from` attribute.
16666
+ #
16667
+ # @return [Disk]
16668
+ #
16669
+ def from
16670
+ @from
16671
+ end
16672
+
16673
+ #
16674
+ # Sets the value of the `from` attribute.
16675
+ #
16676
+ # @param value [Disk, Hash]
16677
+ #
16678
+ # The `value` parameter can be an instance of {OvirtSDK4::Disk} or a hash.
16679
+ # If it is a hash then a new instance will be created passing the hash as the
16680
+ # `opts` parameter to the constructor.
16681
+ #
16682
+ def from=(value)
16683
+ if value.is_a?(Hash)
16684
+ value = Disk.new(value)
16685
+ end
16686
+ @from = value
16687
+ end
16688
+
16689
+ #
16690
+ # Returns the value of the `to` attribute.
16691
+ #
16692
+ # @return [Disk]
16693
+ #
16694
+ def to
16695
+ @to
16696
+ end
16697
+
16698
+ #
16699
+ # Sets the value of the `to` attribute.
16700
+ #
16701
+ # @param value [Disk, Hash]
16702
+ #
16703
+ # The `value` parameter can be an instance of {OvirtSDK4::Disk} or a hash.
16704
+ # If it is a hash then a new instance will be created passing the hash as the
16705
+ # `opts` parameter to the constructor.
16706
+ #
16707
+ def to=(value)
16708
+ if value.is_a?(Hash)
16709
+ value = Disk.new(value)
16710
+ end
16711
+ @to = value
16712
+ end
16713
+
16714
+ #
16715
+ # Creates a new instance of the {RegistrationLunMapping} class.
16716
+ #
16717
+ # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
16718
+ # should be symbols corresponding to the names of the attributes. The values of the hash
16719
+ # should be the values of the attributes.
16720
+ #
16721
+ # @option opts [Disk, Hash] :from The value of attribute `from`.
16722
+ #
16723
+ # @option opts [Disk, Hash] :to The value of attribute `to`.
16724
+ #
16725
+ #
16726
+ def initialize(opts = {})
16727
+ super(opts)
16728
+ self.from = opts[:from]
16729
+ self.to = opts[:to]
16730
+ end
16731
+
16732
+ #
16733
+ # Returns `true` if `self` and `other` have the same attributes and values.
16734
+ #
16735
+ def ==(other)
16736
+ super &&
16737
+ @from == other.from &&
16738
+ @to == other.to
16739
+ end
16740
+
16741
+ #
16742
+ # Generates a hash value for this object.
16743
+ #
16744
+ def hash
16745
+ super +
16746
+ @from.hash +
16747
+ @to.hash
16748
+ end
16749
+
16750
+ end
16751
+
16752
+ class RegistrationRoleMapping < Struct
15987
16753
 
15988
16754
  #
15989
- # Returns the value of the `bytes` attribute.
16755
+ # Returns the value of the `from` attribute.
15990
16756
  #
15991
- # @return [Integer]
16757
+ # @return [Role]
15992
16758
  #
15993
- def bytes
15994
- @bytes
16759
+ def from
16760
+ @from
15995
16761
  end
15996
16762
 
15997
16763
  #
15998
- # Sets the value of the `bytes` attribute.
16764
+ # Sets the value of the `from` attribute.
15999
16765
  #
16000
- # @param value [Integer]
16766
+ # @param value [Role, Hash]
16001
16767
  #
16002
- def bytes=(value)
16003
- @bytes = value
16768
+ # The `value` parameter can be an instance of {OvirtSDK4::Role} or a hash.
16769
+ # If it is a hash then a new instance will be created passing the hash as the
16770
+ # `opts` parameter to the constructor.
16771
+ #
16772
+ def from=(value)
16773
+ if value.is_a?(Hash)
16774
+ value = Role.new(value)
16775
+ end
16776
+ @from = value
16004
16777
  end
16005
16778
 
16006
16779
  #
16007
- # Returns the value of the `period` attribute.
16780
+ # Returns the value of the `to` attribute.
16008
16781
  #
16009
- # @return [Integer]
16782
+ # @return [Role]
16010
16783
  #
16011
- def period
16012
- @period
16784
+ def to
16785
+ @to
16013
16786
  end
16014
16787
 
16015
16788
  #
16016
- # Sets the value of the `period` attribute.
16789
+ # Sets the value of the `to` attribute.
16017
16790
  #
16018
- # @param value [Integer]
16791
+ # @param value [Role, Hash]
16019
16792
  #
16020
- def period=(value)
16021
- @period = value
16793
+ # The `value` parameter can be an instance of {OvirtSDK4::Role} or a hash.
16794
+ # If it is a hash then a new instance will be created passing the hash as the
16795
+ # `opts` parameter to the constructor.
16796
+ #
16797
+ def to=(value)
16798
+ if value.is_a?(Hash)
16799
+ value = Role.new(value)
16800
+ end
16801
+ @to = value
16022
16802
  end
16023
16803
 
16024
16804
  #
16025
- # Creates a new instance of the {Rate} class.
16805
+ # Creates a new instance of the {RegistrationRoleMapping} class.
16026
16806
  #
16027
16807
  # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
16028
16808
  # should be symbols corresponding to the names of the attributes. The values of the hash
16029
16809
  # should be the values of the attributes.
16030
16810
  #
16031
- # @option opts [Integer] :bytes The value of attribute `bytes`.
16811
+ # @option opts [Role, Hash] :from The value of attribute `from`.
16032
16812
  #
16033
- # @option opts [Integer] :period The value of attribute `period`.
16813
+ # @option opts [Role, Hash] :to The value of attribute `to`.
16034
16814
  #
16035
16815
  #
16036
16816
  def initialize(opts = {})
16037
16817
  super(opts)
16038
- self.bytes = opts[:bytes]
16039
- self.period = opts[:period]
16818
+ self.from = opts[:from]
16819
+ self.to = opts[:to]
16040
16820
  end
16041
16821
 
16042
16822
  #
@@ -16044,8 +16824,8 @@ module OvirtSDK4
16044
16824
  #
16045
16825
  def ==(other)
16046
16826
  super &&
16047
- @bytes == other.bytes &&
16048
- @period == other.period
16827
+ @from == other.from &&
16828
+ @to == other.to
16049
16829
  end
16050
16830
 
16051
16831
  #
@@ -16053,8 +16833,8 @@ module OvirtSDK4
16053
16833
  #
16054
16834
  def hash
16055
16835
  super +
16056
- @bytes.hash +
16057
- @period.hash
16836
+ @from.hash +
16837
+ @to.hash
16058
16838
  end
16059
16839
 
16060
16840
  end
@@ -24085,6 +24865,24 @@ module OvirtSDK4
24085
24865
  @storage_domain = value
24086
24866
  end
24087
24867
 
24868
+ #
24869
+ # Returns the value of the `storage_error_resume_behaviour` attribute.
24870
+ #
24871
+ # @return [VmStorageErrorResumeBehaviour]
24872
+ #
24873
+ def storage_error_resume_behaviour
24874
+ @storage_error_resume_behaviour
24875
+ end
24876
+
24877
+ #
24878
+ # Sets the value of the `storage_error_resume_behaviour` attribute.
24879
+ #
24880
+ # @param value [VmStorageErrorResumeBehaviour]
24881
+ #
24882
+ def storage_error_resume_behaviour=(value)
24883
+ @storage_error_resume_behaviour = value
24884
+ end
24885
+
24088
24886
  #
24089
24887
  # Returns the value of the `time_zone` attribute.
24090
24888
  #
@@ -24279,6 +25077,8 @@ module OvirtSDK4
24279
25077
  #
24280
25078
  # @option opts [StorageDomain, Hash] :storage_domain The value of attribute `storage_domain`.
24281
25079
  #
25080
+ # @option opts [VmStorageErrorResumeBehaviour] :storage_error_resume_behaviour The value of attribute `storage_error_resume_behaviour`.
25081
+ #
24282
25082
  # @option opts [TimeZone, Hash] :time_zone The value of attribute `time_zone`.
24283
25083
  #
24284
25084
  # @option opts [Boolean] :tunnel_migration The value of attribute `tunnel_migration`.
@@ -24326,6 +25126,7 @@ module OvirtSDK4
24326
25126
  self.start_paused = opts[:start_paused]
24327
25127
  self.stateless = opts[:stateless]
24328
25128
  self.storage_domain = opts[:storage_domain]
25129
+ self.storage_error_resume_behaviour = opts[:storage_error_resume_behaviour]
24329
25130
  self.time_zone = opts[:time_zone]
24330
25131
  self.tunnel_migration = opts[:tunnel_migration]
24331
25132
  self.type = opts[:type]
@@ -24372,6 +25173,7 @@ module OvirtSDK4
24372
25173
  @start_paused == other.start_paused &&
24373
25174
  @stateless == other.stateless &&
24374
25175
  @storage_domain == other.storage_domain &&
25176
+ @storage_error_resume_behaviour == other.storage_error_resume_behaviour &&
24375
25177
  @time_zone == other.time_zone &&
24376
25178
  @tunnel_migration == other.tunnel_migration &&
24377
25179
  @type == other.type &&
@@ -24418,6 +25220,7 @@ module OvirtSDK4
24418
25220
  @start_paused.hash +
24419
25221
  @stateless.hash +
24420
25222
  @storage_domain.hash +
25223
+ @storage_error_resume_behaviour.hash +
24421
25224
  @time_zone.hash +
24422
25225
  @tunnel_migration.hash +
24423
25226
  @type.hash +
@@ -26989,6 +27792,49 @@ module OvirtSDK4
26989
27792
  @reassign_bad_macs = value
26990
27793
  end
26991
27794
 
27795
+ #
27796
+ # Returns the value of the `reboot` attribute.
27797
+ #
27798
+ # @return [Boolean]
27799
+ #
27800
+ def reboot
27801
+ @reboot
27802
+ end
27803
+
27804
+ #
27805
+ # Sets the value of the `reboot` attribute.
27806
+ #
27807
+ # @param value [Boolean]
27808
+ #
27809
+ def reboot=(value)
27810
+ @reboot = value
27811
+ end
27812
+
27813
+ #
27814
+ # Returns the value of the `registration_configuration` attribute.
27815
+ #
27816
+ # @return [RegistrationConfiguration]
27817
+ #
27818
+ def registration_configuration
27819
+ @registration_configuration
27820
+ end
27821
+
27822
+ #
27823
+ # Sets the value of the `registration_configuration` attribute.
27824
+ #
27825
+ # @param value [RegistrationConfiguration, Hash]
27826
+ #
27827
+ # The `value` parameter can be an instance of {OvirtSDK4::RegistrationConfiguration} or a hash.
27828
+ # If it is a hash then a new instance will be created passing the hash as the
27829
+ # `opts` parameter to the constructor.
27830
+ #
27831
+ def registration_configuration=(value)
27832
+ if value.is_a?(Hash)
27833
+ value = RegistrationConfiguration.new(value)
27834
+ end
27835
+ @registration_configuration = value
27836
+ end
27837
+
26992
27838
  #
26993
27839
  # Returns the value of the `remote_viewer_connection_file` attribute.
26994
27840
  #
@@ -27625,6 +28471,10 @@ module OvirtSDK4
27625
28471
  #
27626
28472
  # @option opts [Boolean] :reassign_bad_macs The value of attribute `reassign_bad_macs`.
27627
28473
  #
28474
+ # @option opts [Boolean] :reboot The value of attribute `reboot`.
28475
+ #
28476
+ # @option opts [RegistrationConfiguration, Hash] :registration_configuration The value of attribute `registration_configuration`.
28477
+ #
27628
28478
  # @option opts [String] :remote_viewer_connection_file The value of attribute `remote_viewer_connection_file`.
27629
28479
  #
27630
28480
  # @option opts [Array<HostNic>, Array<Hash>] :removed_bonds The values of attribute `removed_bonds`.
@@ -27722,6 +28572,8 @@ module OvirtSDK4
27722
28572
  self.proxy_ticket = opts[:proxy_ticket]
27723
28573
  self.reason = opts[:reason]
27724
28574
  self.reassign_bad_macs = opts[:reassign_bad_macs]
28575
+ self.reboot = opts[:reboot]
28576
+ self.registration_configuration = opts[:registration_configuration]
27725
28577
  self.remote_viewer_connection_file = opts[:remote_viewer_connection_file]
27726
28578
  self.removed_bonds = opts[:removed_bonds]
27727
28579
  self.removed_labels = opts[:removed_labels]
@@ -27799,6 +28651,8 @@ module OvirtSDK4
27799
28651
  @proxy_ticket == other.proxy_ticket &&
27800
28652
  @reason == other.reason &&
27801
28653
  @reassign_bad_macs == other.reassign_bad_macs &&
28654
+ @reboot == other.reboot &&
28655
+ @registration_configuration == other.registration_configuration &&
27802
28656
  @remote_viewer_connection_file == other.remote_viewer_connection_file &&
27803
28657
  @removed_bonds == other.removed_bonds &&
27804
28658
  @removed_labels == other.removed_labels &&
@@ -27876,6 +28730,8 @@ module OvirtSDK4
27876
28730
  @proxy_ticket.hash +
27877
28731
  @reason.hash +
27878
28732
  @reassign_bad_macs.hash +
28733
+ @reboot.hash +
28734
+ @registration_configuration.hash +
27879
28735
  @remote_viewer_connection_file.hash +
27880
28736
  @removed_bonds.hash +
27881
28737
  @removed_labels.hash +
@@ -29895,6 +30751,32 @@ module OvirtSDK4
29895
30751
  @error_handling = value
29896
30752
  end
29897
30753
 
30754
+ #
30755
+ # Returns the value of the `external_network_providers` attribute.
30756
+ #
30757
+ # @return [Array<ExternalProvider>]
30758
+ #
30759
+ def external_network_providers
30760
+ @external_network_providers
30761
+ end
30762
+
30763
+ #
30764
+ # Sets the value of the `external_network_providers` attribute.
30765
+ #
30766
+ # @param list [Array<ExternalProvider>]
30767
+ #
30768
+ def external_network_providers=(list)
30769
+ if list.class == Array
30770
+ list = List.new(list)
30771
+ list.each_with_index do |value, index|
30772
+ if value.is_a?(Hash)
30773
+ list[index] = ExternalProvider.new(value)
30774
+ end
30775
+ end
30776
+ end
30777
+ @external_network_providers = list
30778
+ end
30779
+
29898
30780
  #
29899
30781
  # Returns the value of the `fencing_policy` attribute.
29900
30782
  #
@@ -30557,6 +31439,8 @@ module OvirtSDK4
30557
31439
  #
30558
31440
  # @option opts [ErrorHandling, Hash] :error_handling The value of attribute `error_handling`.
30559
31441
  #
31442
+ # @option opts [Array<ExternalProvider>, Array<Hash>] :external_network_providers The values of attribute `external_network_providers`.
31443
+ #
30560
31444
  # @option opts [FencingPolicy, Hash] :fencing_policy The value of attribute `fencing_policy`.
30561
31445
  #
30562
31446
  # @option opts [FirewallType] :firewall_type The value of attribute `firewall_type`.
@@ -30627,6 +31511,7 @@ module OvirtSDK4
30627
31511
  self.display = opts[:display]
30628
31512
  self.enabled_features = opts[:enabled_features]
30629
31513
  self.error_handling = opts[:error_handling]
31514
+ self.external_network_providers = opts[:external_network_providers]
30630
31515
  self.fencing_policy = opts[:fencing_policy]
30631
31516
  self.firewall_type = opts[:firewall_type]
30632
31517
  self.gluster_hooks = opts[:gluster_hooks]
@@ -30670,6 +31555,7 @@ module OvirtSDK4
30670
31555
  @display == other.display &&
30671
31556
  @enabled_features == other.enabled_features &&
30672
31557
  @error_handling == other.error_handling &&
31558
+ @external_network_providers == other.external_network_providers &&
30673
31559
  @fencing_policy == other.fencing_policy &&
30674
31560
  @firewall_type == other.firewall_type &&
30675
31561
  @gluster_hooks == other.gluster_hooks &&
@@ -30713,6 +31599,7 @@ module OvirtSDK4
30713
31599
  @display.hash +
30714
31600
  @enabled_features.hash +
30715
31601
  @error_handling.hash +
31602
+ @external_network_providers.hash +
30716
31603
  @fencing_policy.hash +
30717
31604
  @firewall_type.hash +
30718
31605
  @gluster_hooks.hash +
@@ -35769,29 +36656,255 @@ module OvirtSDK4
35769
36656
  end
35770
36657
 
35771
36658
  #
35772
- # Creates a new instance of the {ExternalHost} class.
36659
+ # Creates a new instance of the {ExternalHost} class.
36660
+ #
36661
+ # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
36662
+ # should be symbols corresponding to the names of the attributes. The values of the hash
36663
+ # should be the values of the attributes.
36664
+ #
36665
+ # @option opts [String] :address The value of attribute `address`.
36666
+ #
36667
+ # @option opts [String] :comment The value of attribute `comment`.
36668
+ #
36669
+ # @option opts [String] :description The value of attribute `description`.
36670
+ #
36671
+ # @option opts [ExternalHostProvider, Hash] :external_host_provider The value of attribute `external_host_provider`.
36672
+ #
36673
+ # @option opts [String] :id The value of attribute `id`.
36674
+ #
36675
+ # @option opts [String] :name The value of attribute `name`.
36676
+ #
36677
+ #
36678
+ def initialize(opts = {})
36679
+ super(opts)
36680
+ self.address = opts[:address]
36681
+ self.external_host_provider = opts[:external_host_provider]
36682
+ end
36683
+
36684
+ #
36685
+ # Returns `true` if `self` and `other` have the same attributes and values.
36686
+ #
36687
+ def ==(other)
36688
+ super &&
36689
+ @address == other.address &&
36690
+ @external_host_provider == other.external_host_provider
36691
+ end
36692
+
36693
+ #
36694
+ # Generates a hash value for this object.
36695
+ #
36696
+ def hash
36697
+ super +
36698
+ @address.hash +
36699
+ @external_host_provider.hash
36700
+ end
36701
+
36702
+ end
36703
+
36704
+ class ExternalHostGroup < Identified
36705
+
36706
+ #
36707
+ # Returns the value of the `architecture_name` attribute.
36708
+ #
36709
+ # @return [String]
36710
+ #
36711
+ def architecture_name
36712
+ @architecture_name
36713
+ end
36714
+
36715
+ #
36716
+ # Sets the value of the `architecture_name` attribute.
36717
+ #
36718
+ # @param value [String]
36719
+ #
36720
+ def architecture_name=(value)
36721
+ @architecture_name = value
36722
+ end
36723
+
36724
+ #
36725
+ # Returns the value of the `comment` attribute.
36726
+ #
36727
+ # @return [String]
36728
+ #
36729
+ def comment
36730
+ @comment
36731
+ end
36732
+
36733
+ #
36734
+ # Sets the value of the `comment` attribute.
36735
+ #
36736
+ # @param value [String]
36737
+ #
36738
+ def comment=(value)
36739
+ @comment = value
36740
+ end
36741
+
36742
+ #
36743
+ # Returns the value of the `description` attribute.
36744
+ #
36745
+ # @return [String]
36746
+ #
36747
+ def description
36748
+ @description
36749
+ end
36750
+
36751
+ #
36752
+ # Sets the value of the `description` attribute.
36753
+ #
36754
+ # @param value [String]
36755
+ #
36756
+ def description=(value)
36757
+ @description = value
36758
+ end
36759
+
36760
+ #
36761
+ # Returns the value of the `domain_name` attribute.
36762
+ #
36763
+ # @return [String]
36764
+ #
36765
+ def domain_name
36766
+ @domain_name
36767
+ end
36768
+
36769
+ #
36770
+ # Sets the value of the `domain_name` attribute.
36771
+ #
36772
+ # @param value [String]
36773
+ #
36774
+ def domain_name=(value)
36775
+ @domain_name = value
36776
+ end
36777
+
36778
+ #
36779
+ # Returns the value of the `external_host_provider` attribute.
36780
+ #
36781
+ # @return [ExternalHostProvider]
36782
+ #
36783
+ def external_host_provider
36784
+ @external_host_provider
36785
+ end
36786
+
36787
+ #
36788
+ # Sets the value of the `external_host_provider` attribute.
36789
+ #
36790
+ # @param value [ExternalHostProvider, Hash]
36791
+ #
36792
+ # The `value` parameter can be an instance of {OvirtSDK4::ExternalHostProvider} or a hash.
36793
+ # If it is a hash then a new instance will be created passing the hash as the
36794
+ # `opts` parameter to the constructor.
36795
+ #
36796
+ def external_host_provider=(value)
36797
+ if value.is_a?(Hash)
36798
+ value = ExternalHostProvider.new(value)
36799
+ end
36800
+ @external_host_provider = value
36801
+ end
36802
+
36803
+ #
36804
+ # Returns the value of the `id` attribute.
36805
+ #
36806
+ # @return [String]
36807
+ #
36808
+ def id
36809
+ @id
36810
+ end
36811
+
36812
+ #
36813
+ # Sets the value of the `id` attribute.
36814
+ #
36815
+ # @param value [String]
36816
+ #
36817
+ def id=(value)
36818
+ @id = value
36819
+ end
36820
+
36821
+ #
36822
+ # Returns the value of the `name` attribute.
36823
+ #
36824
+ # @return [String]
36825
+ #
36826
+ def name
36827
+ @name
36828
+ end
36829
+
36830
+ #
36831
+ # Sets the value of the `name` attribute.
36832
+ #
36833
+ # @param value [String]
36834
+ #
36835
+ def name=(value)
36836
+ @name = value
36837
+ end
36838
+
36839
+ #
36840
+ # Returns the value of the `operating_system_name` attribute.
36841
+ #
36842
+ # @return [String]
36843
+ #
36844
+ def operating_system_name
36845
+ @operating_system_name
36846
+ end
36847
+
36848
+ #
36849
+ # Sets the value of the `operating_system_name` attribute.
36850
+ #
36851
+ # @param value [String]
36852
+ #
36853
+ def operating_system_name=(value)
36854
+ @operating_system_name = value
36855
+ end
36856
+
36857
+ #
36858
+ # Returns the value of the `subnet_name` attribute.
36859
+ #
36860
+ # @return [String]
36861
+ #
36862
+ def subnet_name
36863
+ @subnet_name
36864
+ end
36865
+
36866
+ #
36867
+ # Sets the value of the `subnet_name` attribute.
36868
+ #
36869
+ # @param value [String]
36870
+ #
36871
+ def subnet_name=(value)
36872
+ @subnet_name = value
36873
+ end
36874
+
36875
+ #
36876
+ # Creates a new instance of the {ExternalHostGroup} class.
35773
36877
  #
35774
36878
  # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
35775
36879
  # should be symbols corresponding to the names of the attributes. The values of the hash
35776
36880
  # should be the values of the attributes.
35777
36881
  #
35778
- # @option opts [String] :address The value of attribute `address`.
36882
+ # @option opts [String] :architecture_name The value of attribute `architecture_name`.
35779
36883
  #
35780
36884
  # @option opts [String] :comment The value of attribute `comment`.
35781
36885
  #
35782
36886
  # @option opts [String] :description The value of attribute `description`.
35783
36887
  #
36888
+ # @option opts [String] :domain_name The value of attribute `domain_name`.
36889
+ #
35784
36890
  # @option opts [ExternalHostProvider, Hash] :external_host_provider The value of attribute `external_host_provider`.
35785
36891
  #
35786
36892
  # @option opts [String] :id The value of attribute `id`.
35787
36893
  #
35788
36894
  # @option opts [String] :name The value of attribute `name`.
35789
36895
  #
36896
+ # @option opts [String] :operating_system_name The value of attribute `operating_system_name`.
36897
+ #
36898
+ # @option opts [String] :subnet_name The value of attribute `subnet_name`.
36899
+ #
35790
36900
  #
35791
36901
  def initialize(opts = {})
35792
36902
  super(opts)
35793
- self.address = opts[:address]
36903
+ self.architecture_name = opts[:architecture_name]
36904
+ self.domain_name = opts[:domain_name]
35794
36905
  self.external_host_provider = opts[:external_host_provider]
36906
+ self.operating_system_name = opts[:operating_system_name]
36907
+ self.subnet_name = opts[:subnet_name]
35795
36908
  end
35796
36909
 
35797
36910
  #
@@ -35799,8 +36912,11 @@ module OvirtSDK4
35799
36912
  #
35800
36913
  def ==(other)
35801
36914
  super &&
35802
- @address == other.address &&
35803
- @external_host_provider == other.external_host_provider
36915
+ @architecture_name == other.architecture_name &&
36916
+ @domain_name == other.domain_name &&
36917
+ @external_host_provider == other.external_host_provider &&
36918
+ @operating_system_name == other.operating_system_name &&
36919
+ @subnet_name == other.subnet_name
35804
36920
  end
35805
36921
 
35806
36922
  #
@@ -35808,31 +36924,16 @@ module OvirtSDK4
35808
36924
  #
35809
36925
  def hash
35810
36926
  super +
35811
- @address.hash +
35812
- @external_host_provider.hash
36927
+ @architecture_name.hash +
36928
+ @domain_name.hash +
36929
+ @external_host_provider.hash +
36930
+ @operating_system_name.hash +
36931
+ @subnet_name.hash
35813
36932
  end
35814
36933
 
35815
36934
  end
35816
36935
 
35817
- class ExternalHostGroup < Identified
35818
-
35819
- #
35820
- # Returns the value of the `architecture_name` attribute.
35821
- #
35822
- # @return [String]
35823
- #
35824
- def architecture_name
35825
- @architecture_name
35826
- end
35827
-
35828
- #
35829
- # Sets the value of the `architecture_name` attribute.
35830
- #
35831
- # @param value [String]
35832
- #
35833
- def architecture_name=(value)
35834
- @architecture_name = value
35835
- end
36936
+ class ExternalNetworkProviderConfiguration < Identified
35836
36937
 
35837
36938
  #
35838
36939
  # Returns the value of the `comment` attribute.
@@ -35871,46 +36972,53 @@ module OvirtSDK4
35871
36972
  end
35872
36973
 
35873
36974
  #
35874
- # Returns the value of the `domain_name` attribute.
36975
+ # Returns the value of the `external_network_provider` attribute.
35875
36976
  #
35876
- # @return [String]
36977
+ # @return [ExternalProvider]
35877
36978
  #
35878
- def domain_name
35879
- @domain_name
36979
+ def external_network_provider
36980
+ @external_network_provider
35880
36981
  end
35881
36982
 
35882
36983
  #
35883
- # Sets the value of the `domain_name` attribute.
36984
+ # Sets the value of the `external_network_provider` attribute.
35884
36985
  #
35885
- # @param value [String]
36986
+ # @param value [ExternalProvider, Hash]
35886
36987
  #
35887
- def domain_name=(value)
35888
- @domain_name = value
36988
+ # The `value` parameter can be an instance of {OvirtSDK4::ExternalProvider} or a hash.
36989
+ # If it is a hash then a new instance will be created passing the hash as the
36990
+ # `opts` parameter to the constructor.
36991
+ #
36992
+ def external_network_provider=(value)
36993
+ if value.is_a?(Hash)
36994
+ value = ExternalProvider.new(value)
36995
+ end
36996
+ @external_network_provider = value
35889
36997
  end
35890
36998
 
35891
36999
  #
35892
- # Returns the value of the `external_host_provider` attribute.
37000
+ # Returns the value of the `host` attribute.
35893
37001
  #
35894
- # @return [ExternalHostProvider]
37002
+ # @return [Host]
35895
37003
  #
35896
- def external_host_provider
35897
- @external_host_provider
37004
+ def host
37005
+ @host
35898
37006
  end
35899
37007
 
35900
37008
  #
35901
- # Sets the value of the `external_host_provider` attribute.
37009
+ # Sets the value of the `host` attribute.
35902
37010
  #
35903
- # @param value [ExternalHostProvider, Hash]
37011
+ # @param value [Host, Hash]
35904
37012
  #
35905
- # The `value` parameter can be an instance of {OvirtSDK4::ExternalHostProvider} or a hash.
37013
+ # The `value` parameter can be an instance of {OvirtSDK4::Host} or a hash.
35906
37014
  # If it is a hash then a new instance will be created passing the hash as the
35907
37015
  # `opts` parameter to the constructor.
35908
37016
  #
35909
- def external_host_provider=(value)
37017
+ def host=(value)
35910
37018
  if value.is_a?(Hash)
35911
- value = ExternalHostProvider.new(value)
37019
+ value = Host.new(value)
35912
37020
  end
35913
- @external_host_provider = value
37021
+ @host = value
35914
37022
  end
35915
37023
 
35916
37024
  #
@@ -35950,74 +37058,29 @@ module OvirtSDK4
35950
37058
  end
35951
37059
 
35952
37060
  #
35953
- # Returns the value of the `operating_system_name` attribute.
35954
- #
35955
- # @return [String]
35956
- #
35957
- def operating_system_name
35958
- @operating_system_name
35959
- end
35960
-
35961
- #
35962
- # Sets the value of the `operating_system_name` attribute.
35963
- #
35964
- # @param value [String]
35965
- #
35966
- def operating_system_name=(value)
35967
- @operating_system_name = value
35968
- end
35969
-
35970
- #
35971
- # Returns the value of the `subnet_name` attribute.
35972
- #
35973
- # @return [String]
35974
- #
35975
- def subnet_name
35976
- @subnet_name
35977
- end
35978
-
35979
- #
35980
- # Sets the value of the `subnet_name` attribute.
35981
- #
35982
- # @param value [String]
35983
- #
35984
- def subnet_name=(value)
35985
- @subnet_name = value
35986
- end
35987
-
35988
- #
35989
- # Creates a new instance of the {ExternalHostGroup} class.
37061
+ # Creates a new instance of the {ExternalNetworkProviderConfiguration} class.
35990
37062
  #
35991
37063
  # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
35992
37064
  # should be symbols corresponding to the names of the attributes. The values of the hash
35993
37065
  # should be the values of the attributes.
35994
37066
  #
35995
- # @option opts [String] :architecture_name The value of attribute `architecture_name`.
35996
- #
35997
37067
  # @option opts [String] :comment The value of attribute `comment`.
35998
37068
  #
35999
37069
  # @option opts [String] :description The value of attribute `description`.
36000
37070
  #
36001
- # @option opts [String] :domain_name The value of attribute `domain_name`.
37071
+ # @option opts [ExternalProvider, Hash] :external_network_provider The value of attribute `external_network_provider`.
36002
37072
  #
36003
- # @option opts [ExternalHostProvider, Hash] :external_host_provider The value of attribute `external_host_provider`.
37073
+ # @option opts [Host, Hash] :host The value of attribute `host`.
36004
37074
  #
36005
37075
  # @option opts [String] :id The value of attribute `id`.
36006
37076
  #
36007
37077
  # @option opts [String] :name The value of attribute `name`.
36008
37078
  #
36009
- # @option opts [String] :operating_system_name The value of attribute `operating_system_name`.
36010
- #
36011
- # @option opts [String] :subnet_name The value of attribute `subnet_name`.
36012
- #
36013
37079
  #
36014
37080
  def initialize(opts = {})
36015
37081
  super(opts)
36016
- self.architecture_name = opts[:architecture_name]
36017
- self.domain_name = opts[:domain_name]
36018
- self.external_host_provider = opts[:external_host_provider]
36019
- self.operating_system_name = opts[:operating_system_name]
36020
- self.subnet_name = opts[:subnet_name]
37082
+ self.external_network_provider = opts[:external_network_provider]
37083
+ self.host = opts[:host]
36021
37084
  end
36022
37085
 
36023
37086
  #
@@ -36025,11 +37088,8 @@ module OvirtSDK4
36025
37088
  #
36026
37089
  def ==(other)
36027
37090
  super &&
36028
- @architecture_name == other.architecture_name &&
36029
- @domain_name == other.domain_name &&
36030
- @external_host_provider == other.external_host_provider &&
36031
- @operating_system_name == other.operating_system_name &&
36032
- @subnet_name == other.subnet_name
37091
+ @external_network_provider == other.external_network_provider &&
37092
+ @host == other.host
36033
37093
  end
36034
37094
 
36035
37095
  #
@@ -36037,11 +37097,8 @@ module OvirtSDK4
36037
37097
  #
36038
37098
  def hash
36039
37099
  super +
36040
- @architecture_name.hash +
36041
- @domain_name.hash +
36042
- @external_host_provider.hash +
36043
- @operating_system_name.hash +
36044
- @subnet_name.hash
37100
+ @external_network_provider.hash +
37101
+ @host.hash
36045
37102
  end
36046
37103
 
36047
37104
  end
@@ -39779,6 +40836,32 @@ module OvirtSDK4
39779
40836
  @external_host_provider = value
39780
40837
  end
39781
40838
 
40839
+ #
40840
+ # Returns the value of the `external_network_provider_configurations` attribute.
40841
+ #
40842
+ # @return [Array<ExternalNetworkProviderConfiguration>]
40843
+ #
40844
+ def external_network_provider_configurations
40845
+ @external_network_provider_configurations
40846
+ end
40847
+
40848
+ #
40849
+ # Sets the value of the `external_network_provider_configurations` attribute.
40850
+ #
40851
+ # @param list [Array<ExternalNetworkProviderConfiguration>]
40852
+ #
40853
+ def external_network_provider_configurations=(list)
40854
+ if list.class == Array
40855
+ list = List.new(list)
40856
+ list.each_with_index do |value, index|
40857
+ if value.is_a?(Hash)
40858
+ list[index] = ExternalNetworkProviderConfiguration.new(value)
40859
+ end
40860
+ end
40861
+ end
40862
+ @external_network_provider_configurations = list
40863
+ end
40864
+
39782
40865
  #
39783
40866
  # Returns the value of the `external_status` attribute.
39784
40867
  #
@@ -40693,6 +41776,8 @@ module OvirtSDK4
40693
41776
  #
40694
41777
  # @option opts [ExternalHostProvider, Hash] :external_host_provider The value of attribute `external_host_provider`.
40695
41778
  #
41779
+ # @option opts [Array<ExternalNetworkProviderConfiguration>, Array<Hash>] :external_network_provider_configurations The values of attribute `external_network_provider_configurations`.
41780
+ #
40696
41781
  # @option opts [ExternalStatus] :external_status The value of attribute `external_status`.
40697
41782
  #
40698
41783
  # @option opts [HardwareInformation, Hash] :hardware_information The value of attribute `hardware_information`.
@@ -40785,6 +41870,7 @@ module OvirtSDK4
40785
41870
  self.devices = opts[:devices]
40786
41871
  self.display = opts[:display]
40787
41872
  self.external_host_provider = opts[:external_host_provider]
41873
+ self.external_network_provider_configurations = opts[:external_network_provider_configurations]
40788
41874
  self.external_status = opts[:external_status]
40789
41875
  self.hardware_information = opts[:hardware_information]
40790
41876
  self.hooks = opts[:hooks]
@@ -40840,6 +41926,7 @@ module OvirtSDK4
40840
41926
  @devices == other.devices &&
40841
41927
  @display == other.display &&
40842
41928
  @external_host_provider == other.external_host_provider &&
41929
+ @external_network_provider_configurations == other.external_network_provider_configurations &&
40843
41930
  @external_status == other.external_status &&
40844
41931
  @hardware_information == other.hardware_information &&
40845
41932
  @hooks == other.hooks &&
@@ -40895,6 +41982,7 @@ module OvirtSDK4
40895
41982
  @devices.hash +
40896
41983
  @display.hash +
40897
41984
  @external_host_provider.hash +
41985
+ @external_network_provider_configurations.hash +
40898
41986
  @external_status.hash +
40899
41987
  @hardware_information.hash +
40900
41988
  @hooks.hash +
@@ -45055,6 +46143,24 @@ module OvirtSDK4
45055
46143
  @storage_domain = value
45056
46144
  end
45057
46145
 
46146
+ #
46147
+ # Returns the value of the `storage_error_resume_behaviour` attribute.
46148
+ #
46149
+ # @return [VmStorageErrorResumeBehaviour]
46150
+ #
46151
+ def storage_error_resume_behaviour
46152
+ @storage_error_resume_behaviour
46153
+ end
46154
+
46155
+ #
46156
+ # Sets the value of the `storage_error_resume_behaviour` attribute.
46157
+ #
46158
+ # @param value [VmStorageErrorResumeBehaviour]
46159
+ #
46160
+ def storage_error_resume_behaviour=(value)
46161
+ @storage_error_resume_behaviour = value
46162
+ end
46163
+
45058
46164
  #
45059
46165
  # Returns the value of the `tags` attribute.
45060
46166
  #
@@ -45363,6 +46469,8 @@ module OvirtSDK4
45363
46469
  #
45364
46470
  # @option opts [StorageDomain, Hash] :storage_domain The value of attribute `storage_domain`.
45365
46471
  #
46472
+ # @option opts [VmStorageErrorResumeBehaviour] :storage_error_resume_behaviour The value of attribute `storage_error_resume_behaviour`.
46473
+ #
45366
46474
  # @option opts [Array<Tag>, Array<Hash>] :tags The values of attribute `tags`.
45367
46475
  #
45368
46476
  # @option opts [TimeZone, Hash] :time_zone The value of attribute `time_zone`.
@@ -47051,6 +48159,24 @@ module OvirtSDK4
47051
48159
  @storage_domain = value
47052
48160
  end
47053
48161
 
48162
+ #
48163
+ # Returns the value of the `storage_error_resume_behaviour` attribute.
48164
+ #
48165
+ # @return [VmStorageErrorResumeBehaviour]
48166
+ #
48167
+ def storage_error_resume_behaviour
48168
+ @storage_error_resume_behaviour
48169
+ end
48170
+
48171
+ #
48172
+ # Sets the value of the `storage_error_resume_behaviour` attribute.
48173
+ #
48174
+ # @param value [VmStorageErrorResumeBehaviour]
48175
+ #
48176
+ def storage_error_resume_behaviour=(value)
48177
+ @storage_error_resume_behaviour = value
48178
+ end
48179
+
47054
48180
  #
47055
48181
  # Returns the value of the `tags` attribute.
47056
48182
  #
@@ -47431,6 +48557,8 @@ module OvirtSDK4
47431
48557
  #
47432
48558
  # @option opts [StorageDomain, Hash] :storage_domain The value of attribute `storage_domain`.
47433
48559
  #
48560
+ # @option opts [VmStorageErrorResumeBehaviour] :storage_error_resume_behaviour The value of attribute `storage_error_resume_behaviour`.
48561
+ #
47434
48562
  # @option opts [Array<Tag>, Array<Hash>] :tags The values of attribute `tags`.
47435
48563
  #
47436
48564
  # @option opts [Template, Hash] :template The value of attribute `template`.
@@ -49994,6 +51122,24 @@ module OvirtSDK4
49994
51122
  @storage_domain = value
49995
51123
  end
49996
51124
 
51125
+ #
51126
+ # Returns the value of the `storage_error_resume_behaviour` attribute.
51127
+ #
51128
+ # @return [VmStorageErrorResumeBehaviour]
51129
+ #
51130
+ def storage_error_resume_behaviour
51131
+ @storage_error_resume_behaviour
51132
+ end
51133
+
51134
+ #
51135
+ # Sets the value of the `storage_error_resume_behaviour` attribute.
51136
+ #
51137
+ # @param value [VmStorageErrorResumeBehaviour]
51138
+ #
51139
+ def storage_error_resume_behaviour=(value)
51140
+ @storage_error_resume_behaviour = value
51141
+ end
51142
+
49997
51143
  #
49998
51144
  # Returns the value of the `tags` attribute.
49999
51145
  #
@@ -50302,6 +51448,8 @@ module OvirtSDK4
50302
51448
  #
50303
51449
  # @option opts [StorageDomain, Hash] :storage_domain The value of attribute `storage_domain`.
50304
51450
  #
51451
+ # @option opts [VmStorageErrorResumeBehaviour] :storage_error_resume_behaviour The value of attribute `storage_error_resume_behaviour`.
51452
+ #
50305
51453
  # @option opts [Array<Tag>, Array<Hash>] :tags The values of attribute `tags`.
50306
51454
  #
50307
51455
  # @option opts [TimeZone, Hash] :time_zone The value of attribute `time_zone`.
@@ -52788,6 +53936,24 @@ module OvirtSDK4
52788
53936
  @storage_domain = value
52789
53937
  end
52790
53938
 
53939
+ #
53940
+ # Returns the value of the `storage_error_resume_behaviour` attribute.
53941
+ #
53942
+ # @return [VmStorageErrorResumeBehaviour]
53943
+ #
53944
+ def storage_error_resume_behaviour
53945
+ @storage_error_resume_behaviour
53946
+ end
53947
+
53948
+ #
53949
+ # Sets the value of the `storage_error_resume_behaviour` attribute.
53950
+ #
53951
+ # @param value [VmStorageErrorResumeBehaviour]
53952
+ #
53953
+ def storage_error_resume_behaviour=(value)
53954
+ @storage_error_resume_behaviour = value
53955
+ end
53956
+
52791
53957
  #
52792
53958
  # Returns the value of the `tags` attribute.
52793
53959
  #
@@ -53201,6 +54367,8 @@ module OvirtSDK4
53201
54367
  #
53202
54368
  # @option opts [StorageDomain, Hash] :storage_domain The value of attribute `storage_domain`.
53203
54369
  #
54370
+ # @option opts [VmStorageErrorResumeBehaviour] :storage_error_resume_behaviour The value of attribute `storage_error_resume_behaviour`.
54371
+ #
53204
54372
  # @option opts [Array<Tag>, Array<Hash>] :tags The values of attribute `tags`.
53205
54373
  #
53206
54374
  # @option opts [Template, Hash] :template The value of attribute `template`.
@@ -53875,6 +55043,12 @@ module OvirtSDK4
53875
55043
  WAIT_FOR_LAUNCH = 'wait_for_launch'.freeze
53876
55044
  end
53877
55045
 
55046
+ module VmStorageErrorResumeBehaviour
55047
+ AUTO_RESUME = 'auto_resume'.freeze
55048
+ KILL = 'kill'.freeze
55049
+ LEAVE_PAUSED = 'leave_paused'.freeze
55050
+ end
55051
+
53878
55052
  module VmType
53879
55053
  DESKTOP = 'desktop'.freeze
53880
55054
  HIGH_PERFORMANCE = 'high_performance'.freeze