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

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.
@@ -170,6 +170,9 @@ module OvirtSDK4
170
170
  class Ksm < Struct
171
171
  end
172
172
 
173
+ class LinkLayerDiscoveryProtocolElement < Identified
174
+ end
175
+
173
176
  class LogicalUnit < Struct
174
177
  end
175
178
 
@@ -371,6 +374,12 @@ module OvirtSDK4
371
374
  class StorageDomainLease < Struct
372
375
  end
373
376
 
377
+ class SystemOption < Identified
378
+ end
379
+
380
+ class SystemOptionValue < Struct
381
+ end
382
+
374
383
  class Tag < Identified
375
384
  end
376
385
 
@@ -476,6 +485,9 @@ module OvirtSDK4
476
485
  class Cluster < Identified
477
486
  end
478
487
 
488
+ class ClusterFeature < Identified
489
+ end
490
+
479
491
  class ClusterLevel < Identified
480
492
  end
481
493
 
@@ -5170,6 +5182,24 @@ module OvirtSDK4
5170
5182
  @name = value
5171
5183
  end
5172
5184
 
5185
+ #
5186
+ # Returns the value of the `size` attribute.
5187
+ #
5188
+ # @return [Integer]
5189
+ #
5190
+ def size
5191
+ @size
5192
+ end
5193
+
5194
+ #
5195
+ # Sets the value of the `size` attribute.
5196
+ #
5197
+ # @param value [Integer]
5198
+ #
5199
+ def size=(value)
5200
+ @size = value
5201
+ end
5202
+
5173
5203
  #
5174
5204
  # Returns the value of the `storage_domain` attribute.
5175
5205
  #
@@ -5195,6 +5225,24 @@ module OvirtSDK4
5195
5225
  @storage_domain = value
5196
5226
  end
5197
5227
 
5228
+ #
5229
+ # Returns the value of the `type` attribute.
5230
+ #
5231
+ # @return [ImageFileType]
5232
+ #
5233
+ def type
5234
+ @type
5235
+ end
5236
+
5237
+ #
5238
+ # Sets the value of the `type` attribute.
5239
+ #
5240
+ # @param value [ImageFileType]
5241
+ #
5242
+ def type=(value)
5243
+ @type = value
5244
+ end
5245
+
5198
5246
  #
5199
5247
  # Creates a new instance of the {Image} class.
5200
5248
  #
@@ -5210,12 +5258,18 @@ module OvirtSDK4
5210
5258
  #
5211
5259
  # @option opts [String] :name The value of attribute `name`.
5212
5260
  #
5261
+ # @option opts [Integer] :size The value of attribute `size`.
5262
+ #
5213
5263
  # @option opts [StorageDomain, Hash] :storage_domain The value of attribute `storage_domain`.
5214
5264
  #
5265
+ # @option opts [ImageFileType] :type The value of attribute `type`.
5266
+ #
5215
5267
  #
5216
5268
  def initialize(opts = {})
5217
5269
  super(opts)
5270
+ self.size = opts[:size]
5218
5271
  self.storage_domain = opts[:storage_domain]
5272
+ self.type = opts[:type]
5219
5273
  end
5220
5274
 
5221
5275
  #
@@ -5223,7 +5277,9 @@ module OvirtSDK4
5223
5277
  #
5224
5278
  def ==(other)
5225
5279
  super &&
5226
- @storage_domain == other.storage_domain
5280
+ @size == other.size &&
5281
+ @storage_domain == other.storage_domain &&
5282
+ @type == other.type
5227
5283
  end
5228
5284
 
5229
5285
  #
@@ -5231,7 +5287,9 @@ module OvirtSDK4
5231
5287
  #
5232
5288
  def hash
5233
5289
  super +
5234
- @storage_domain.hash
5290
+ @size.hash +
5291
+ @storage_domain.hash +
5292
+ @type.hash
5235
5293
  end
5236
5294
 
5237
5295
  end
@@ -5292,6 +5350,31 @@ module OvirtSDK4
5292
5350
  @direction = value
5293
5351
  end
5294
5352
 
5353
+ #
5354
+ # Returns the value of the `disk` attribute.
5355
+ #
5356
+ # @return [Disk]
5357
+ #
5358
+ def disk
5359
+ @disk
5360
+ end
5361
+
5362
+ #
5363
+ # Sets the value of the `disk` attribute.
5364
+ #
5365
+ # @param value [Disk, Hash]
5366
+ #
5367
+ # The `value` parameter can be an instance of {OvirtSDK4::Disk} or a hash.
5368
+ # If it is a hash then a new instance will be created passing the hash as the
5369
+ # `opts` parameter to the constructor.
5370
+ #
5371
+ def disk=(value)
5372
+ if value.is_a?(Hash)
5373
+ value = Disk.new(value)
5374
+ end
5375
+ @disk = value
5376
+ end
5377
+
5295
5378
  #
5296
5379
  # Returns the value of the `host` attribute.
5297
5380
  #
@@ -5432,6 +5515,31 @@ module OvirtSDK4
5432
5515
  @signed_ticket = value
5433
5516
  end
5434
5517
 
5518
+ #
5519
+ # Returns the value of the `snapshot` attribute.
5520
+ #
5521
+ # @return [DiskSnapshot]
5522
+ #
5523
+ def snapshot
5524
+ @snapshot
5525
+ end
5526
+
5527
+ #
5528
+ # Sets the value of the `snapshot` attribute.
5529
+ #
5530
+ # @param value [DiskSnapshot, Hash]
5531
+ #
5532
+ # The `value` parameter can be an instance of {OvirtSDK4::DiskSnapshot} or a hash.
5533
+ # If it is a hash then a new instance will be created passing the hash as the
5534
+ # `opts` parameter to the constructor.
5535
+ #
5536
+ def snapshot=(value)
5537
+ if value.is_a?(Hash)
5538
+ value = DiskSnapshot.new(value)
5539
+ end
5540
+ @snapshot = value
5541
+ end
5542
+
5435
5543
  #
5436
5544
  # Creates a new instance of the {ImageTransfer} class.
5437
5545
  #
@@ -5445,6 +5553,8 @@ module OvirtSDK4
5445
5553
  #
5446
5554
  # @option opts [ImageTransferDirection] :direction The value of attribute `direction`.
5447
5555
  #
5556
+ # @option opts [Disk, Hash] :disk The value of attribute `disk`.
5557
+ #
5448
5558
  # @option opts [Host, Hash] :host The value of attribute `host`.
5449
5559
  #
5450
5560
  # @option opts [String] :id The value of attribute `id`.
@@ -5459,15 +5569,19 @@ module OvirtSDK4
5459
5569
  #
5460
5570
  # @option opts [String] :signed_ticket The value of attribute `signed_ticket`.
5461
5571
  #
5572
+ # @option opts [DiskSnapshot, Hash] :snapshot The value of attribute `snapshot`.
5573
+ #
5462
5574
  #
5463
5575
  def initialize(opts = {})
5464
5576
  super(opts)
5465
5577
  self.direction = opts[:direction]
5578
+ self.disk = opts[:disk]
5466
5579
  self.host = opts[:host]
5467
5580
  self.image = opts[:image]
5468
5581
  self.phase = opts[:phase]
5469
5582
  self.proxy_url = opts[:proxy_url]
5470
5583
  self.signed_ticket = opts[:signed_ticket]
5584
+ self.snapshot = opts[:snapshot]
5471
5585
  end
5472
5586
 
5473
5587
  #
@@ -5476,11 +5590,13 @@ module OvirtSDK4
5476
5590
  def ==(other)
5477
5591
  super &&
5478
5592
  @direction == other.direction &&
5593
+ @disk == other.disk &&
5479
5594
  @host == other.host &&
5480
5595
  @image == other.image &&
5481
5596
  @phase == other.phase &&
5482
5597
  @proxy_url == other.proxy_url &&
5483
- @signed_ticket == other.signed_ticket
5598
+ @signed_ticket == other.signed_ticket &&
5599
+ @snapshot == other.snapshot
5484
5600
  end
5485
5601
 
5486
5602
  #
@@ -5489,11 +5605,13 @@ module OvirtSDK4
5489
5605
  def hash
5490
5606
  super +
5491
5607
  @direction.hash +
5608
+ @disk.hash +
5492
5609
  @host.hash +
5493
5610
  @image.hash +
5494
5611
  @phase.hash +
5495
5612
  @proxy_url.hash +
5496
- @signed_ticket.hash
5613
+ @signed_ticket.hash +
5614
+ @snapshot.hash
5497
5615
  end
5498
5616
 
5499
5617
  end
@@ -7698,6 +7816,216 @@ module OvirtSDK4
7698
7816
 
7699
7817
  end
7700
7818
 
7819
+ class LinkLayerDiscoveryProtocolElement < Identified
7820
+
7821
+ #
7822
+ # Returns the value of the `comment` attribute.
7823
+ #
7824
+ # @return [String]
7825
+ #
7826
+ def comment
7827
+ @comment
7828
+ end
7829
+
7830
+ #
7831
+ # Sets the value of the `comment` attribute.
7832
+ #
7833
+ # @param value [String]
7834
+ #
7835
+ def comment=(value)
7836
+ @comment = value
7837
+ end
7838
+
7839
+ #
7840
+ # Returns the value of the `description` attribute.
7841
+ #
7842
+ # @return [String]
7843
+ #
7844
+ def description
7845
+ @description
7846
+ end
7847
+
7848
+ #
7849
+ # Sets the value of the `description` attribute.
7850
+ #
7851
+ # @param value [String]
7852
+ #
7853
+ def description=(value)
7854
+ @description = value
7855
+ end
7856
+
7857
+ #
7858
+ # Returns the value of the `id` attribute.
7859
+ #
7860
+ # @return [String]
7861
+ #
7862
+ def id
7863
+ @id
7864
+ end
7865
+
7866
+ #
7867
+ # Sets the value of the `id` attribute.
7868
+ #
7869
+ # @param value [String]
7870
+ #
7871
+ def id=(value)
7872
+ @id = value
7873
+ end
7874
+
7875
+ #
7876
+ # Returns the value of the `name` attribute.
7877
+ #
7878
+ # @return [String]
7879
+ #
7880
+ def name
7881
+ @name
7882
+ end
7883
+
7884
+ #
7885
+ # Sets the value of the `name` attribute.
7886
+ #
7887
+ # @param value [String]
7888
+ #
7889
+ def name=(value)
7890
+ @name = value
7891
+ end
7892
+
7893
+ #
7894
+ # Returns the value of the `oui` attribute.
7895
+ #
7896
+ # @return [Integer]
7897
+ #
7898
+ def oui
7899
+ @oui
7900
+ end
7901
+
7902
+ #
7903
+ # Sets the value of the `oui` attribute.
7904
+ #
7905
+ # @param value [Integer]
7906
+ #
7907
+ def oui=(value)
7908
+ @oui = value
7909
+ end
7910
+
7911
+ #
7912
+ # Returns the value of the `properties` attribute.
7913
+ #
7914
+ # @return [Array<Property>]
7915
+ #
7916
+ def properties
7917
+ @properties
7918
+ end
7919
+
7920
+ #
7921
+ # Sets the value of the `properties` attribute.
7922
+ #
7923
+ # @param list [Array<Property>]
7924
+ #
7925
+ def properties=(list)
7926
+ if list.class == Array
7927
+ list = List.new(list)
7928
+ list.each_with_index do |value, index|
7929
+ if value.is_a?(Hash)
7930
+ list[index] = Property.new(value)
7931
+ end
7932
+ end
7933
+ end
7934
+ @properties = list
7935
+ end
7936
+
7937
+ #
7938
+ # Returns the value of the `subtype` attribute.
7939
+ #
7940
+ # @return [Integer]
7941
+ #
7942
+ def subtype
7943
+ @subtype
7944
+ end
7945
+
7946
+ #
7947
+ # Sets the value of the `subtype` attribute.
7948
+ #
7949
+ # @param value [Integer]
7950
+ #
7951
+ def subtype=(value)
7952
+ @subtype = value
7953
+ end
7954
+
7955
+ #
7956
+ # Returns the value of the `type` attribute.
7957
+ #
7958
+ # @return [Integer]
7959
+ #
7960
+ def type
7961
+ @type
7962
+ end
7963
+
7964
+ #
7965
+ # Sets the value of the `type` attribute.
7966
+ #
7967
+ # @param value [Integer]
7968
+ #
7969
+ def type=(value)
7970
+ @type = value
7971
+ end
7972
+
7973
+ #
7974
+ # Creates a new instance of the {LinkLayerDiscoveryProtocolElement} class.
7975
+ #
7976
+ # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
7977
+ # should be symbols corresponding to the names of the attributes. The values of the hash
7978
+ # should be the values of the attributes.
7979
+ #
7980
+ # @option opts [String] :comment The value of attribute `comment`.
7981
+ #
7982
+ # @option opts [String] :description The value of attribute `description`.
7983
+ #
7984
+ # @option opts [String] :id The value of attribute `id`.
7985
+ #
7986
+ # @option opts [String] :name The value of attribute `name`.
7987
+ #
7988
+ # @option opts [Integer] :oui The value of attribute `oui`.
7989
+ #
7990
+ # @option opts [Array<Property>, Array<Hash>] :properties The values of attribute `properties`.
7991
+ #
7992
+ # @option opts [Integer] :subtype The value of attribute `subtype`.
7993
+ #
7994
+ # @option opts [Integer] :type The value of attribute `type`.
7995
+ #
7996
+ #
7997
+ def initialize(opts = {})
7998
+ super(opts)
7999
+ self.oui = opts[:oui]
8000
+ self.properties = opts[:properties]
8001
+ self.subtype = opts[:subtype]
8002
+ self.type = opts[:type]
8003
+ end
8004
+
8005
+ #
8006
+ # Returns `true` if `self` and `other` have the same attributes and values.
8007
+ #
8008
+ def ==(other)
8009
+ super &&
8010
+ @oui == other.oui &&
8011
+ @properties == other.properties &&
8012
+ @subtype == other.subtype &&
8013
+ @type == other.type
8014
+ end
8015
+
8016
+ #
8017
+ # Generates a hash value for this object.
8018
+ #
8019
+ def hash
8020
+ super +
8021
+ @oui.hash +
8022
+ @properties.hash +
8023
+ @subtype.hash +
8024
+ @type.hash
8025
+ end
8026
+
8027
+ end
8028
+
7701
8029
  class LogicalUnit < Struct
7702
8030
 
7703
8031
  #
@@ -10203,6 +10531,31 @@ module OvirtSDK4
10203
10531
  @name = value
10204
10532
  end
10205
10533
 
10534
+ #
10535
+ # Returns the value of the `nic` attribute.
10536
+ #
10537
+ # @return [Nic]
10538
+ #
10539
+ def nic
10540
+ @nic
10541
+ end
10542
+
10543
+ #
10544
+ # Sets the value of the `nic` attribute.
10545
+ #
10546
+ # @param value [Nic, Hash]
10547
+ #
10548
+ # The `value` parameter can be an instance of {OvirtSDK4::Nic} or a hash.
10549
+ # If it is a hash then a new instance will be created passing the hash as the
10550
+ # `opts` parameter to the constructor.
10551
+ #
10552
+ def nic=(value)
10553
+ if value.is_a?(Hash)
10554
+ value = Nic.new(value)
10555
+ end
10556
+ @nic = value
10557
+ end
10558
+
10206
10559
  #
10207
10560
  # Returns the value of the `value` attribute.
10208
10561
  #
@@ -10236,11 +10589,14 @@ module OvirtSDK4
10236
10589
  #
10237
10590
  # @option opts [String] :name The value of attribute `name`.
10238
10591
  #
10592
+ # @option opts [Nic, Hash] :nic The value of attribute `nic`.
10593
+ #
10239
10594
  # @option opts [String] :value The value of attribute `value`.
10240
10595
  #
10241
10596
  #
10242
10597
  def initialize(opts = {})
10243
10598
  super(opts)
10599
+ self.nic = opts[:nic]
10244
10600
  self.value = opts[:value]
10245
10601
  end
10246
10602
 
@@ -10249,6 +10605,7 @@ module OvirtSDK4
10249
10605
  #
10250
10606
  def ==(other)
10251
10607
  super &&
10608
+ @nic == other.nic &&
10252
10609
  @value == other.value
10253
10610
  end
10254
10611
 
@@ -10257,6 +10614,7 @@ module OvirtSDK4
10257
10614
  #
10258
10615
  def hash
10259
10616
  super +
10617
+ @nic.hash +
10260
10618
  @value.hash
10261
10619
  end
10262
10620
 
@@ -19503,6 +19861,24 @@ module OvirtSDK4
19503
19861
  @available = value
19504
19862
  end
19505
19863
 
19864
+ #
19865
+ # Returns the value of the `backup` attribute.
19866
+ #
19867
+ # @return [Boolean]
19868
+ #
19869
+ def backup
19870
+ @backup
19871
+ end
19872
+
19873
+ #
19874
+ # Sets the value of the `backup` attribute.
19875
+ #
19876
+ # @param value [Boolean]
19877
+ #
19878
+ def backup=(value)
19879
+ @backup = value
19880
+ end
19881
+
19506
19882
  #
19507
19883
  # Returns the value of the `comment` attribute.
19508
19884
  #
@@ -20171,6 +20547,8 @@ module OvirtSDK4
20171
20547
  #
20172
20548
  # @option opts [Integer] :available The value of attribute `available`.
20173
20549
  #
20550
+ # @option opts [Boolean] :backup The value of attribute `backup`.
20551
+ #
20174
20552
  # @option opts [String] :comment The value of attribute `comment`.
20175
20553
  #
20176
20554
  # @option opts [Integer] :committed The value of attribute `committed`.
@@ -20237,6 +20615,7 @@ module OvirtSDK4
20237
20615
  def initialize(opts = {})
20238
20616
  super(opts)
20239
20617
  self.available = opts[:available]
20618
+ self.backup = opts[:backup]
20240
20619
  self.committed = opts[:committed]
20241
20620
  self.critical_space_action_blocker = opts[:critical_space_action_blocker]
20242
20621
  self.data_center = opts[:data_center]
@@ -20272,6 +20651,7 @@ module OvirtSDK4
20272
20651
  def ==(other)
20273
20652
  super &&
20274
20653
  @available == other.available &&
20654
+ @backup == other.backup &&
20275
20655
  @committed == other.committed &&
20276
20656
  @critical_space_action_blocker == other.critical_space_action_blocker &&
20277
20657
  @data_center == other.data_center &&
@@ -20307,6 +20687,7 @@ module OvirtSDK4
20307
20687
  def hash
20308
20688
  super +
20309
20689
  @available.hash +
20690
+ @backup.hash +
20310
20691
  @committed.hash +
20311
20692
  @critical_space_action_blocker.hash +
20312
20693
  @data_center.hash +
@@ -20398,6 +20779,223 @@ module OvirtSDK4
20398
20779
 
20399
20780
  end
20400
20781
 
20782
+ class SystemOption < Identified
20783
+
20784
+ #
20785
+ # Returns the value of the `comment` attribute.
20786
+ #
20787
+ # @return [String]
20788
+ #
20789
+ def comment
20790
+ @comment
20791
+ end
20792
+
20793
+ #
20794
+ # Sets the value of the `comment` attribute.
20795
+ #
20796
+ # @param value [String]
20797
+ #
20798
+ def comment=(value)
20799
+ @comment = value
20800
+ end
20801
+
20802
+ #
20803
+ # Returns the value of the `description` attribute.
20804
+ #
20805
+ # @return [String]
20806
+ #
20807
+ def description
20808
+ @description
20809
+ end
20810
+
20811
+ #
20812
+ # Sets the value of the `description` attribute.
20813
+ #
20814
+ # @param value [String]
20815
+ #
20816
+ def description=(value)
20817
+ @description = value
20818
+ end
20819
+
20820
+ #
20821
+ # Returns the value of the `id` attribute.
20822
+ #
20823
+ # @return [String]
20824
+ #
20825
+ def id
20826
+ @id
20827
+ end
20828
+
20829
+ #
20830
+ # Sets the value of the `id` attribute.
20831
+ #
20832
+ # @param value [String]
20833
+ #
20834
+ def id=(value)
20835
+ @id = value
20836
+ end
20837
+
20838
+ #
20839
+ # Returns the value of the `name` attribute.
20840
+ #
20841
+ # @return [String]
20842
+ #
20843
+ def name
20844
+ @name
20845
+ end
20846
+
20847
+ #
20848
+ # Sets the value of the `name` attribute.
20849
+ #
20850
+ # @param value [String]
20851
+ #
20852
+ def name=(value)
20853
+ @name = value
20854
+ end
20855
+
20856
+ #
20857
+ # Returns the value of the `values` attribute.
20858
+ #
20859
+ # @return [Array<SystemOptionValue>]
20860
+ #
20861
+ def values
20862
+ @values
20863
+ end
20864
+
20865
+ #
20866
+ # Sets the value of the `values` attribute.
20867
+ #
20868
+ # @param list [Array<SystemOptionValue>]
20869
+ #
20870
+ def values=(list)
20871
+ if list.class == Array
20872
+ list = List.new(list)
20873
+ list.each_with_index do |value, index|
20874
+ if value.is_a?(Hash)
20875
+ list[index] = SystemOptionValue.new(value)
20876
+ end
20877
+ end
20878
+ end
20879
+ @values = list
20880
+ end
20881
+
20882
+ #
20883
+ # Creates a new instance of the {SystemOption} class.
20884
+ #
20885
+ # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
20886
+ # should be symbols corresponding to the names of the attributes. The values of the hash
20887
+ # should be the values of the attributes.
20888
+ #
20889
+ # @option opts [String] :comment The value of attribute `comment`.
20890
+ #
20891
+ # @option opts [String] :description The value of attribute `description`.
20892
+ #
20893
+ # @option opts [String] :id The value of attribute `id`.
20894
+ #
20895
+ # @option opts [String] :name The value of attribute `name`.
20896
+ #
20897
+ # @option opts [Array<SystemOptionValue>, Array<Hash>] :values The values of attribute `values`.
20898
+ #
20899
+ #
20900
+ def initialize(opts = {})
20901
+ super(opts)
20902
+ self.values = opts[:values]
20903
+ end
20904
+
20905
+ #
20906
+ # Returns `true` if `self` and `other` have the same attributes and values.
20907
+ #
20908
+ def ==(other)
20909
+ super &&
20910
+ @values == other.values
20911
+ end
20912
+
20913
+ #
20914
+ # Generates a hash value for this object.
20915
+ #
20916
+ def hash
20917
+ super +
20918
+ @values.hash
20919
+ end
20920
+
20921
+ end
20922
+
20923
+ class SystemOptionValue < Struct
20924
+
20925
+ #
20926
+ # Returns the value of the `value` attribute.
20927
+ #
20928
+ # @return [String]
20929
+ #
20930
+ def value
20931
+ @value
20932
+ end
20933
+
20934
+ #
20935
+ # Sets the value of the `value` attribute.
20936
+ #
20937
+ # @param value [String]
20938
+ #
20939
+ def value=(value)
20940
+ @value = value
20941
+ end
20942
+
20943
+ #
20944
+ # Returns the value of the `version` attribute.
20945
+ #
20946
+ # @return [String]
20947
+ #
20948
+ def version
20949
+ @version
20950
+ end
20951
+
20952
+ #
20953
+ # Sets the value of the `version` attribute.
20954
+ #
20955
+ # @param value [String]
20956
+ #
20957
+ def version=(value)
20958
+ @version = value
20959
+ end
20960
+
20961
+ #
20962
+ # Creates a new instance of the {SystemOptionValue} class.
20963
+ #
20964
+ # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
20965
+ # should be symbols corresponding to the names of the attributes. The values of the hash
20966
+ # should be the values of the attributes.
20967
+ #
20968
+ # @option opts [String] :value The value of attribute `value`.
20969
+ #
20970
+ # @option opts [String] :version The value of attribute `version`.
20971
+ #
20972
+ #
20973
+ def initialize(opts = {})
20974
+ super(opts)
20975
+ self.value = opts[:value]
20976
+ self.version = opts[:version]
20977
+ end
20978
+
20979
+ #
20980
+ # Returns `true` if `self` and `other` have the same attributes and values.
20981
+ #
20982
+ def ==(other)
20983
+ super &&
20984
+ @value == other.value &&
20985
+ @version == other.version
20986
+ end
20987
+
20988
+ #
20989
+ # Generates a hash value for this object.
20990
+ #
20991
+ def hash
20992
+ super +
20993
+ @value.hash +
20994
+ @version.hash
20995
+ end
20996
+
20997
+ end
20998
+
20401
20999
  class Tag < Identified
20402
21000
 
20403
21001
  #
@@ -25352,6 +25950,56 @@ module OvirtSDK4
25352
25950
  @async = value
25353
25951
  end
25354
25952
 
25953
+ #
25954
+ # Returns the value of the `attachment` attribute.
25955
+ #
25956
+ # @return [DiskAttachment]
25957
+ #
25958
+ def attachment
25959
+ @attachment
25960
+ end
25961
+
25962
+ #
25963
+ # Sets the value of the `attachment` attribute.
25964
+ #
25965
+ # @param value [DiskAttachment, Hash]
25966
+ #
25967
+ # The `value` parameter can be an instance of {OvirtSDK4::DiskAttachment} or a hash.
25968
+ # If it is a hash then a new instance will be created passing the hash as the
25969
+ # `opts` parameter to the constructor.
25970
+ #
25971
+ def attachment=(value)
25972
+ if value.is_a?(Hash)
25973
+ value = DiskAttachment.new(value)
25974
+ end
25975
+ @attachment = value
25976
+ end
25977
+
25978
+ #
25979
+ # Returns the value of the `authorized_key` attribute.
25980
+ #
25981
+ # @return [AuthorizedKey]
25982
+ #
25983
+ def authorized_key
25984
+ @authorized_key
25985
+ end
25986
+
25987
+ #
25988
+ # Sets the value of the `authorized_key` attribute.
25989
+ #
25990
+ # @param value [AuthorizedKey, Hash]
25991
+ #
25992
+ # The `value` parameter can be an instance of {OvirtSDK4::AuthorizedKey} or a hash.
25993
+ # If it is a hash then a new instance will be created passing the hash as the
25994
+ # `opts` parameter to the constructor.
25995
+ #
25996
+ def authorized_key=(value)
25997
+ if value.is_a?(Hash)
25998
+ value = AuthorizedKey.new(value)
25999
+ end
26000
+ @authorized_key = value
26001
+ end
26002
+
25355
26003
  #
25356
26004
  # Returns the value of the `bricks` attribute.
25357
26005
  #
@@ -25440,6 +26088,24 @@ module OvirtSDK4
25440
26088
  @clone = value
25441
26089
  end
25442
26090
 
26091
+ #
26092
+ # Returns the value of the `clone_permissions` attribute.
26093
+ #
26094
+ # @return [Boolean]
26095
+ #
26096
+ def clone_permissions
26097
+ @clone_permissions
26098
+ end
26099
+
26100
+ #
26101
+ # Sets the value of the `clone_permissions` attribute.
26102
+ #
26103
+ # @param value [Boolean]
26104
+ #
26105
+ def clone_permissions=(value)
26106
+ @clone_permissions = value
26107
+ end
26108
+
25443
26109
  #
25444
26110
  # Returns the value of the `cluster` attribute.
25445
26111
  #
@@ -25501,6 +26167,31 @@ module OvirtSDK4
25501
26167
  @comment = value
25502
26168
  end
25503
26169
 
26170
+ #
26171
+ # Returns the value of the `connection` attribute.
26172
+ #
26173
+ # @return [StorageConnection]
26174
+ #
26175
+ def connection
26176
+ @connection
26177
+ end
26178
+
26179
+ #
26180
+ # Sets the value of the `connection` attribute.
26181
+ #
26182
+ # @param value [StorageConnection, Hash]
26183
+ #
26184
+ # The `value` parameter can be an instance of {OvirtSDK4::StorageConnection} or a hash.
26185
+ # If it is a hash then a new instance will be created passing the hash as the
26186
+ # `opts` parameter to the constructor.
26187
+ #
26188
+ def connection=(value)
26189
+ if value.is_a?(Hash)
26190
+ value = StorageConnection.new(value)
26191
+ end
26192
+ @connection = value
26193
+ end
26194
+
25504
26195
  #
25505
26196
  # Returns the value of the `connectivity_timeout` attribute.
25506
26197
  #
@@ -25875,6 +26566,31 @@ module OvirtSDK4
25875
26566
  @image = value
25876
26567
  end
25877
26568
 
26569
+ #
26570
+ # Returns the value of the `image_transfer` attribute.
26571
+ #
26572
+ # @return [ImageTransfer]
26573
+ #
26574
+ def image_transfer
26575
+ @image_transfer
26576
+ end
26577
+
26578
+ #
26579
+ # Sets the value of the `image_transfer` attribute.
26580
+ #
26581
+ # @param value [ImageTransfer, Hash]
26582
+ #
26583
+ # The `value` parameter can be an instance of {OvirtSDK4::ImageTransfer} or a hash.
26584
+ # If it is a hash then a new instance will be created passing the hash as the
26585
+ # `opts` parameter to the constructor.
26586
+ #
26587
+ def image_transfer=(value)
26588
+ if value.is_a?(Hash)
26589
+ value = ImageTransfer.new(value)
26590
+ end
26591
+ @image_transfer = value
26592
+ end
26593
+
25878
26594
  #
25879
26595
  # Returns the value of the `import_as_template` attribute.
25880
26596
  #
@@ -26162,6 +26878,31 @@ module OvirtSDK4
26162
26878
  @pause = value
26163
26879
  end
26164
26880
 
26881
+ #
26882
+ # Returns the value of the `permission` attribute.
26883
+ #
26884
+ # @return [Permission]
26885
+ #
26886
+ def permission
26887
+ @permission
26888
+ end
26889
+
26890
+ #
26891
+ # Sets the value of the `permission` attribute.
26892
+ #
26893
+ # @param value [Permission, Hash]
26894
+ #
26895
+ # The `value` parameter can be an instance of {OvirtSDK4::Permission} or a hash.
26896
+ # If it is a hash then a new instance will be created passing the hash as the
26897
+ # `opts` parameter to the constructor.
26898
+ #
26899
+ def permission=(value)
26900
+ if value.is_a?(Hash)
26901
+ value = Permission.new(value)
26902
+ end
26903
+ @permission = value
26904
+ end
26905
+
26165
26906
  #
26166
26907
  # Returns the value of the `power_management` attribute.
26167
26908
  #
@@ -26759,6 +27500,24 @@ module OvirtSDK4
26759
27500
  @vnic_profile_mappings = list
26760
27501
  end
26761
27502
 
27503
+ #
27504
+ # Returns the value of the `volatile` attribute.
27505
+ #
27506
+ # @return [Boolean]
27507
+ #
27508
+ def volatile
27509
+ @volatile
27510
+ end
27511
+
27512
+ #
27513
+ # Sets the value of the `volatile` attribute.
27514
+ #
27515
+ # @param value [Boolean]
27516
+ #
27517
+ def volatile=(value)
27518
+ @volatile = value
27519
+ end
27520
+
26762
27521
  #
26763
27522
  # Creates a new instance of the {Action} class.
26764
27523
  #
@@ -26770,6 +27529,10 @@ module OvirtSDK4
26770
27529
  #
26771
27530
  # @option opts [Boolean] :async The value of attribute `async`.
26772
27531
  #
27532
+ # @option opts [DiskAttachment, Hash] :attachment The value of attribute `attachment`.
27533
+ #
27534
+ # @option opts [AuthorizedKey, Hash] :authorized_key The value of attribute `authorized_key`.
27535
+ #
26773
27536
  # @option opts [Array<GlusterBrick>, Array<Hash>] :bricks The values of attribute `bricks`.
26774
27537
  #
26775
27538
  # @option opts [Array<Certificate>, Array<Hash>] :certificates The values of attribute `certificates`.
@@ -26778,12 +27541,16 @@ module OvirtSDK4
26778
27541
  #
26779
27542
  # @option opts [Boolean] :clone The value of attribute `clone`.
26780
27543
  #
27544
+ # @option opts [Boolean] :clone_permissions The value of attribute `clone_permissions`.
27545
+ #
26781
27546
  # @option opts [Cluster, Hash] :cluster The value of attribute `cluster`.
26782
27547
  #
26783
27548
  # @option opts [Boolean] :collapse_snapshots The value of attribute `collapse_snapshots`.
26784
27549
  #
26785
27550
  # @option opts [String] :comment The value of attribute `comment`.
26786
27551
  #
27552
+ # @option opts [StorageConnection, Hash] :connection The value of attribute `connection`.
27553
+ #
26787
27554
  # @option opts [Integer] :connectivity_timeout The value of attribute `connectivity_timeout`.
26788
27555
  #
26789
27556
  # @option opts [DataCenter, Hash] :data_center The value of attribute `data_center`.
@@ -26820,6 +27587,8 @@ module OvirtSDK4
26820
27587
  #
26821
27588
  # @option opts [String] :image The value of attribute `image`.
26822
27589
  #
27590
+ # @option opts [ImageTransfer, Hash] :image_transfer The value of attribute `image_transfer`.
27591
+ #
26823
27592
  # @option opts [Boolean] :import_as_template The value of attribute `import_as_template`.
26824
27593
  #
26825
27594
  # @option opts [Boolean] :is_attached The value of attribute `is_attached`.
@@ -26846,6 +27615,8 @@ module OvirtSDK4
26846
27615
  #
26847
27616
  # @option opts [Boolean] :pause The value of attribute `pause`.
26848
27617
  #
27618
+ # @option opts [Permission, Hash] :permission The value of attribute `permission`.
27619
+ #
26849
27620
  # @option opts [PowerManagement, Hash] :power_management The value of attribute `power_management`.
26850
27621
  #
26851
27622
  # @option opts [ProxyTicket, Hash] :proxy_ticket The value of attribute `proxy_ticket`.
@@ -26900,17 +27671,23 @@ module OvirtSDK4
26900
27671
  #
26901
27672
  # @option opts [Array<VnicProfileMapping>, Array<Hash>] :vnic_profile_mappings The values of attribute `vnic_profile_mappings`.
26902
27673
  #
27674
+ # @option opts [Boolean] :volatile The value of attribute `volatile`.
27675
+ #
26903
27676
  #
26904
27677
  def initialize(opts = {})
26905
27678
  super(opts)
26906
27679
  self.allow_partial_import = opts[:allow_partial_import]
26907
27680
  self.async = opts[:async]
27681
+ self.attachment = opts[:attachment]
27682
+ self.authorized_key = opts[:authorized_key]
26908
27683
  self.bricks = opts[:bricks]
26909
27684
  self.certificates = opts[:certificates]
26910
27685
  self.check_connectivity = opts[:check_connectivity]
26911
27686
  self.clone = opts[:clone]
27687
+ self.clone_permissions = opts[:clone_permissions]
26912
27688
  self.cluster = opts[:cluster]
26913
27689
  self.collapse_snapshots = opts[:collapse_snapshots]
27690
+ self.connection = opts[:connection]
26914
27691
  self.connectivity_timeout = opts[:connectivity_timeout]
26915
27692
  self.data_center = opts[:data_center]
26916
27693
  self.deploy_hosted_engine = opts[:deploy_hosted_engine]
@@ -26927,6 +27704,7 @@ module OvirtSDK4
26927
27704
  self.grace_period = opts[:grace_period]
26928
27705
  self.host = opts[:host]
26929
27706
  self.image = opts[:image]
27707
+ self.image_transfer = opts[:image_transfer]
26930
27708
  self.import_as_template = opts[:import_as_template]
26931
27709
  self.is_attached = opts[:is_attached]
26932
27710
  self.iscsi = opts[:iscsi]
@@ -26939,6 +27717,7 @@ module OvirtSDK4
26939
27717
  self.modified_network_attachments = opts[:modified_network_attachments]
26940
27718
  self.option = opts[:option]
26941
27719
  self.pause = opts[:pause]
27720
+ self.permission = opts[:permission]
26942
27721
  self.power_management = opts[:power_management]
26943
27722
  self.proxy_ticket = opts[:proxy_ticket]
26944
27723
  self.reason = opts[:reason]
@@ -26966,6 +27745,7 @@ module OvirtSDK4
26966
27745
  self.virtual_functions_configuration = opts[:virtual_functions_configuration]
26967
27746
  self.vm = opts[:vm]
26968
27747
  self.vnic_profile_mappings = opts[:vnic_profile_mappings]
27748
+ self.volatile = opts[:volatile]
26969
27749
  end
26970
27750
 
26971
27751
  #
@@ -26975,12 +27755,16 @@ module OvirtSDK4
26975
27755
  super &&
26976
27756
  @allow_partial_import == other.allow_partial_import &&
26977
27757
  @async == other.async &&
27758
+ @attachment == other.attachment &&
27759
+ @authorized_key == other.authorized_key &&
26978
27760
  @bricks == other.bricks &&
26979
27761
  @certificates == other.certificates &&
26980
27762
  @check_connectivity == other.check_connectivity &&
26981
27763
  @clone == other.clone &&
27764
+ @clone_permissions == other.clone_permissions &&
26982
27765
  @cluster == other.cluster &&
26983
27766
  @collapse_snapshots == other.collapse_snapshots &&
27767
+ @connection == other.connection &&
26984
27768
  @connectivity_timeout == other.connectivity_timeout &&
26985
27769
  @data_center == other.data_center &&
26986
27770
  @deploy_hosted_engine == other.deploy_hosted_engine &&
@@ -26997,6 +27781,7 @@ module OvirtSDK4
26997
27781
  @grace_period == other.grace_period &&
26998
27782
  @host == other.host &&
26999
27783
  @image == other.image &&
27784
+ @image_transfer == other.image_transfer &&
27000
27785
  @import_as_template == other.import_as_template &&
27001
27786
  @is_attached == other.is_attached &&
27002
27787
  @iscsi == other.iscsi &&
@@ -27009,6 +27794,7 @@ module OvirtSDK4
27009
27794
  @modified_network_attachments == other.modified_network_attachments &&
27010
27795
  @option == other.option &&
27011
27796
  @pause == other.pause &&
27797
+ @permission == other.permission &&
27012
27798
  @power_management == other.power_management &&
27013
27799
  @proxy_ticket == other.proxy_ticket &&
27014
27800
  @reason == other.reason &&
@@ -27035,7 +27821,8 @@ module OvirtSDK4
27035
27821
  @use_sysprep == other.use_sysprep &&
27036
27822
  @virtual_functions_configuration == other.virtual_functions_configuration &&
27037
27823
  @vm == other.vm &&
27038
- @vnic_profile_mappings == other.vnic_profile_mappings
27824
+ @vnic_profile_mappings == other.vnic_profile_mappings &&
27825
+ @volatile == other.volatile
27039
27826
  end
27040
27827
 
27041
27828
  #
@@ -27045,12 +27832,16 @@ module OvirtSDK4
27045
27832
  super +
27046
27833
  @allow_partial_import.hash +
27047
27834
  @async.hash +
27835
+ @attachment.hash +
27836
+ @authorized_key.hash +
27048
27837
  @bricks.hash +
27049
27838
  @certificates.hash +
27050
27839
  @check_connectivity.hash +
27051
27840
  @clone.hash +
27841
+ @clone_permissions.hash +
27052
27842
  @cluster.hash +
27053
27843
  @collapse_snapshots.hash +
27844
+ @connection.hash +
27054
27845
  @connectivity_timeout.hash +
27055
27846
  @data_center.hash +
27056
27847
  @deploy_hosted_engine.hash +
@@ -27067,6 +27858,7 @@ module OvirtSDK4
27067
27858
  @grace_period.hash +
27068
27859
  @host.hash +
27069
27860
  @image.hash +
27861
+ @image_transfer.hash +
27070
27862
  @import_as_template.hash +
27071
27863
  @is_attached.hash +
27072
27864
  @iscsi.hash +
@@ -27079,6 +27871,7 @@ module OvirtSDK4
27079
27871
  @modified_network_attachments.hash +
27080
27872
  @option.hash +
27081
27873
  @pause.hash +
27874
+ @permission.hash +
27082
27875
  @power_management.hash +
27083
27876
  @proxy_ticket.hash +
27084
27877
  @reason.hash +
@@ -27105,7 +27898,8 @@ module OvirtSDK4
27105
27898
  @use_sysprep.hash +
27106
27899
  @virtual_functions_configuration.hash +
27107
27900
  @vm.hash +
27108
- @vnic_profile_mappings.hash
27901
+ @vnic_profile_mappings.hash +
27902
+ @volatile.hash
27109
27903
  end
27110
27904
 
27111
27905
  end
@@ -29050,6 +29844,32 @@ module OvirtSDK4
29050
29844
  @display = value
29051
29845
  end
29052
29846
 
29847
+ #
29848
+ # Returns the value of the `enabled_features` attribute.
29849
+ #
29850
+ # @return [Array<ClusterFeature>]
29851
+ #
29852
+ def enabled_features
29853
+ @enabled_features
29854
+ end
29855
+
29856
+ #
29857
+ # Sets the value of the `enabled_features` attribute.
29858
+ #
29859
+ # @param list [Array<ClusterFeature>]
29860
+ #
29861
+ def enabled_features=(list)
29862
+ if list.class == Array
29863
+ list = List.new(list)
29864
+ list.each_with_index do |value, index|
29865
+ if value.is_a?(Hash)
29866
+ list[index] = ClusterFeature.new(value)
29867
+ end
29868
+ end
29869
+ end
29870
+ @enabled_features = list
29871
+ end
29872
+
29053
29873
  #
29054
29874
  # Returns the value of the `error_handling` attribute.
29055
29875
  #
@@ -29100,6 +29920,24 @@ module OvirtSDK4
29100
29920
  @fencing_policy = value
29101
29921
  end
29102
29922
 
29923
+ #
29924
+ # Returns the value of the `firewall_type` attribute.
29925
+ #
29926
+ # @return [FirewallType]
29927
+ #
29928
+ def firewall_type
29929
+ @firewall_type
29930
+ end
29931
+
29932
+ #
29933
+ # Sets the value of the `firewall_type` attribute.
29934
+ #
29935
+ # @param value [FirewallType]
29936
+ #
29937
+ def firewall_type=(value)
29938
+ @firewall_type = value
29939
+ end
29940
+
29103
29941
  #
29104
29942
  # Returns the value of the `gluster_hooks` attribute.
29105
29943
  #
@@ -29715,10 +30553,14 @@ module OvirtSDK4
29715
30553
  #
29716
30554
  # @option opts [Display, Hash] :display The value of attribute `display`.
29717
30555
  #
30556
+ # @option opts [Array<ClusterFeature>, Array<Hash>] :enabled_features The values of attribute `enabled_features`.
30557
+ #
29718
30558
  # @option opts [ErrorHandling, Hash] :error_handling The value of attribute `error_handling`.
29719
30559
  #
29720
30560
  # @option opts [FencingPolicy, Hash] :fencing_policy The value of attribute `fencing_policy`.
29721
30561
  #
30562
+ # @option opts [FirewallType] :firewall_type The value of attribute `firewall_type`.
30563
+ #
29722
30564
  # @option opts [Array<GlusterHook>, Array<Hash>] :gluster_hooks The values of attribute `gluster_hooks`.
29723
30565
  #
29724
30566
  # @option opts [Boolean] :gluster_service The value of attribute `gluster_service`.
@@ -29783,8 +30625,10 @@ module OvirtSDK4
29783
30625
  self.custom_scheduling_policy_properties = opts[:custom_scheduling_policy_properties]
29784
30626
  self.data_center = opts[:data_center]
29785
30627
  self.display = opts[:display]
30628
+ self.enabled_features = opts[:enabled_features]
29786
30629
  self.error_handling = opts[:error_handling]
29787
30630
  self.fencing_policy = opts[:fencing_policy]
30631
+ self.firewall_type = opts[:firewall_type]
29788
30632
  self.gluster_hooks = opts[:gluster_hooks]
29789
30633
  self.gluster_service = opts[:gluster_service]
29790
30634
  self.gluster_tuned_profile = opts[:gluster_tuned_profile]
@@ -29824,8 +30668,10 @@ module OvirtSDK4
29824
30668
  @custom_scheduling_policy_properties == other.custom_scheduling_policy_properties &&
29825
30669
  @data_center == other.data_center &&
29826
30670
  @display == other.display &&
30671
+ @enabled_features == other.enabled_features &&
29827
30672
  @error_handling == other.error_handling &&
29828
30673
  @fencing_policy == other.fencing_policy &&
30674
+ @firewall_type == other.firewall_type &&
29829
30675
  @gluster_hooks == other.gluster_hooks &&
29830
30676
  @gluster_service == other.gluster_service &&
29831
30677
  @gluster_tuned_profile == other.gluster_tuned_profile &&
@@ -29865,8 +30711,10 @@ module OvirtSDK4
29865
30711
  @custom_scheduling_policy_properties.hash +
29866
30712
  @data_center.hash +
29867
30713
  @display.hash +
30714
+ @enabled_features.hash +
29868
30715
  @error_handling.hash +
29869
30716
  @fencing_policy.hash +
30717
+ @firewall_type.hash +
29870
30718
  @gluster_hooks.hash +
29871
30719
  @gluster_service.hash +
29872
30720
  @gluster_tuned_profile.hash +
@@ -29896,8 +30744,174 @@ module OvirtSDK4
29896
30744
 
29897
30745
  end
29898
30746
 
30747
+ class ClusterFeature < Identified
30748
+
30749
+ #
30750
+ # Returns the value of the `cluster_level` attribute.
30751
+ #
30752
+ # @return [ClusterLevel]
30753
+ #
30754
+ def cluster_level
30755
+ @cluster_level
30756
+ end
30757
+
30758
+ #
30759
+ # Sets the value of the `cluster_level` attribute.
30760
+ #
30761
+ # @param value [ClusterLevel, Hash]
30762
+ #
30763
+ # The `value` parameter can be an instance of {OvirtSDK4::ClusterLevel} or a hash.
30764
+ # If it is a hash then a new instance will be created passing the hash as the
30765
+ # `opts` parameter to the constructor.
30766
+ #
30767
+ def cluster_level=(value)
30768
+ if value.is_a?(Hash)
30769
+ value = ClusterLevel.new(value)
30770
+ end
30771
+ @cluster_level = value
30772
+ end
30773
+
30774
+ #
30775
+ # Returns the value of the `comment` attribute.
30776
+ #
30777
+ # @return [String]
30778
+ #
30779
+ def comment
30780
+ @comment
30781
+ end
30782
+
30783
+ #
30784
+ # Sets the value of the `comment` attribute.
30785
+ #
30786
+ # @param value [String]
30787
+ #
30788
+ def comment=(value)
30789
+ @comment = value
30790
+ end
30791
+
30792
+ #
30793
+ # Returns the value of the `description` attribute.
30794
+ #
30795
+ # @return [String]
30796
+ #
30797
+ def description
30798
+ @description
30799
+ end
30800
+
30801
+ #
30802
+ # Sets the value of the `description` attribute.
30803
+ #
30804
+ # @param value [String]
30805
+ #
30806
+ def description=(value)
30807
+ @description = value
30808
+ end
30809
+
30810
+ #
30811
+ # Returns the value of the `id` attribute.
30812
+ #
30813
+ # @return [String]
30814
+ #
30815
+ def id
30816
+ @id
30817
+ end
30818
+
30819
+ #
30820
+ # Sets the value of the `id` attribute.
30821
+ #
30822
+ # @param value [String]
30823
+ #
30824
+ def id=(value)
30825
+ @id = value
30826
+ end
30827
+
30828
+ #
30829
+ # Returns the value of the `name` attribute.
30830
+ #
30831
+ # @return [String]
30832
+ #
30833
+ def name
30834
+ @name
30835
+ end
30836
+
30837
+ #
30838
+ # Sets the value of the `name` attribute.
30839
+ #
30840
+ # @param value [String]
30841
+ #
30842
+ def name=(value)
30843
+ @name = value
30844
+ end
30845
+
30846
+ #
30847
+ # Creates a new instance of the {ClusterFeature} class.
30848
+ #
30849
+ # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
30850
+ # should be symbols corresponding to the names of the attributes. The values of the hash
30851
+ # should be the values of the attributes.
30852
+ #
30853
+ # @option opts [ClusterLevel, Hash] :cluster_level The value of attribute `cluster_level`.
30854
+ #
30855
+ # @option opts [String] :comment The value of attribute `comment`.
30856
+ #
30857
+ # @option opts [String] :description The value of attribute `description`.
30858
+ #
30859
+ # @option opts [String] :id The value of attribute `id`.
30860
+ #
30861
+ # @option opts [String] :name The value of attribute `name`.
30862
+ #
30863
+ #
30864
+ def initialize(opts = {})
30865
+ super(opts)
30866
+ self.cluster_level = opts[:cluster_level]
30867
+ end
30868
+
30869
+ #
30870
+ # Returns `true` if `self` and `other` have the same attributes and values.
30871
+ #
30872
+ def ==(other)
30873
+ super &&
30874
+ @cluster_level == other.cluster_level
30875
+ end
30876
+
30877
+ #
30878
+ # Generates a hash value for this object.
30879
+ #
30880
+ def hash
30881
+ super +
30882
+ @cluster_level.hash
30883
+ end
30884
+
30885
+ end
30886
+
29899
30887
  class ClusterLevel < Identified
29900
30888
 
30889
+ #
30890
+ # Returns the value of the `cluster_features` attribute.
30891
+ #
30892
+ # @return [Array<ClusterFeature>]
30893
+ #
30894
+ def cluster_features
30895
+ @cluster_features
30896
+ end
30897
+
30898
+ #
30899
+ # Sets the value of the `cluster_features` attribute.
30900
+ #
30901
+ # @param list [Array<ClusterFeature>]
30902
+ #
30903
+ def cluster_features=(list)
30904
+ if list.class == Array
30905
+ list = List.new(list)
30906
+ list.each_with_index do |value, index|
30907
+ if value.is_a?(Hash)
30908
+ list[index] = ClusterFeature.new(value)
30909
+ end
30910
+ end
30911
+ end
30912
+ @cluster_features = list
30913
+ end
30914
+
29901
30915
  #
29902
30916
  # Returns the value of the `comment` attribute.
29903
30917
  #
@@ -30029,6 +31043,8 @@ module OvirtSDK4
30029
31043
  # should be symbols corresponding to the names of the attributes. The values of the hash
30030
31044
  # should be the values of the attributes.
30031
31045
  #
31046
+ # @option opts [Array<ClusterFeature>, Array<Hash>] :cluster_features The values of attribute `cluster_features`.
31047
+ #
30032
31048
  # @option opts [String] :comment The value of attribute `comment`.
30033
31049
  #
30034
31050
  # @option opts [Array<CpuType>, Array<Hash>] :cpu_types The values of attribute `cpu_types`.
@@ -30044,6 +31060,7 @@ module OvirtSDK4
30044
31060
  #
30045
31061
  def initialize(opts = {})
30046
31062
  super(opts)
31063
+ self.cluster_features = opts[:cluster_features]
30047
31064
  self.cpu_types = opts[:cpu_types]
30048
31065
  self.permits = opts[:permits]
30049
31066
  end
@@ -30053,6 +31070,7 @@ module OvirtSDK4
30053
31070
  #
30054
31071
  def ==(other)
30055
31072
  super &&
31073
+ @cluster_features == other.cluster_features &&
30056
31074
  @cpu_types == other.cpu_types &&
30057
31075
  @permits == other.permits
30058
31076
  end
@@ -30062,6 +31080,7 @@ module OvirtSDK4
30062
31080
  #
30063
31081
  def hash
30064
31082
  super +
31083
+ @cluster_features.hash +
30065
31084
  @cpu_types.hash +
30066
31085
  @permits.hash
30067
31086
  end
@@ -31686,6 +32705,24 @@ module OvirtSDK4
31686
32705
  @template = value
31687
32706
  end
31688
32707
 
32708
+ #
32709
+ # Returns the value of the `total_size` attribute.
32710
+ #
32711
+ # @return [Integer]
32712
+ #
32713
+ def total_size
32714
+ @total_size
32715
+ end
32716
+
32717
+ #
32718
+ # Sets the value of the `total_size` attribute.
32719
+ #
32720
+ # @param value [Integer]
32721
+ #
32722
+ def total_size=(value)
32723
+ @total_size = value
32724
+ end
32725
+
31689
32726
  #
31690
32727
  # Returns the value of the `uses_scsi_reservation` attribute.
31691
32728
  #
@@ -31846,6 +32883,8 @@ module OvirtSDK4
31846
32883
  #
31847
32884
  # @option opts [Template, Hash] :template The value of attribute `template`.
31848
32885
  #
32886
+ # @option opts [Integer] :total_size The value of attribute `total_size`.
32887
+ #
31849
32888
  # @option opts [Boolean] :uses_scsi_reservation The value of attribute `uses_scsi_reservation`.
31850
32889
  #
31851
32890
  # @option opts [Vm, Hash] :vm The value of attribute `vm`.
@@ -31884,6 +32923,7 @@ module OvirtSDK4
31884
32923
  self.storage_domain = opts[:storage_domain]
31885
32924
  self.storage_domains = opts[:storage_domains]
31886
32925
  self.storage_type = opts[:storage_type]
32926
+ self.total_size = opts[:total_size]
31887
32927
  self.uses_scsi_reservation = opts[:uses_scsi_reservation]
31888
32928
  self.wipe_after_delete = opts[:wipe_after_delete]
31889
32929
  end
@@ -31920,6 +32960,7 @@ module OvirtSDK4
31920
32960
  @storage_domain == other.storage_domain &&
31921
32961
  @storage_domains == other.storage_domains &&
31922
32962
  @storage_type == other.storage_type &&
32963
+ @total_size == other.total_size &&
31923
32964
  @uses_scsi_reservation == other.uses_scsi_reservation &&
31924
32965
  @wipe_after_delete == other.wipe_after_delete
31925
32966
  end
@@ -31956,6 +32997,7 @@ module OvirtSDK4
31956
32997
  @storage_domain.hash +
31957
32998
  @storage_domains.hash +
31958
32999
  @storage_type.hash +
33000
+ @total_size.hash +
31959
33001
  @uses_scsi_reservation.hash +
31960
33002
  @wipe_after_delete.hash
31961
33003
  end
@@ -32151,6 +33193,24 @@ module OvirtSDK4
32151
33193
  @pass_discard = value
32152
33194
  end
32153
33195
 
33196
+ #
33197
+ # Returns the value of the `read_only` attribute.
33198
+ #
33199
+ # @return [Boolean]
33200
+ #
33201
+ def read_only
33202
+ @read_only
33203
+ end
33204
+
33205
+ #
33206
+ # Sets the value of the `read_only` attribute.
33207
+ #
33208
+ # @param value [Boolean]
33209
+ #
33210
+ def read_only=(value)
33211
+ @read_only = value
33212
+ end
33213
+
32154
33214
  #
32155
33215
  # Returns the value of the `template` attribute.
32156
33216
  #
@@ -32246,6 +33306,8 @@ module OvirtSDK4
32246
33306
  #
32247
33307
  # @option opts [Boolean] :pass_discard The value of attribute `pass_discard`.
32248
33308
  #
33309
+ # @option opts [Boolean] :read_only The value of attribute `read_only`.
33310
+ #
32249
33311
  # @option opts [Template, Hash] :template The value of attribute `template`.
32250
33312
  #
32251
33313
  # @option opts [Boolean] :uses_scsi_reservation The value of attribute `uses_scsi_reservation`.
@@ -32261,6 +33323,7 @@ module OvirtSDK4
32261
33323
  self.interface = opts[:interface]
32262
33324
  self.logical_name = opts[:logical_name]
32263
33325
  self.pass_discard = opts[:pass_discard]
33326
+ self.read_only = opts[:read_only]
32264
33327
  self.template = opts[:template]
32265
33328
  self.uses_scsi_reservation = opts[:uses_scsi_reservation]
32266
33329
  self.vm = opts[:vm]
@@ -32277,6 +33340,7 @@ module OvirtSDK4
32277
33340
  @interface == other.interface &&
32278
33341
  @logical_name == other.logical_name &&
32279
33342
  @pass_discard == other.pass_discard &&
33343
+ @read_only == other.read_only &&
32280
33344
  @template == other.template &&
32281
33345
  @uses_scsi_reservation == other.uses_scsi_reservation &&
32282
33346
  @vm == other.vm
@@ -32293,6 +33357,7 @@ module OvirtSDK4
32293
33357
  @interface.hash +
32294
33358
  @logical_name.hash +
32295
33359
  @pass_discard.hash +
33360
+ @read_only.hash +
32296
33361
  @template.hash +
32297
33362
  @uses_scsi_reservation.hash +
32298
33363
  @vm.hash
@@ -33202,6 +34267,24 @@ module OvirtSDK4
33202
34267
  @template = value
33203
34268
  end
33204
34269
 
34270
+ #
34271
+ # Returns the value of the `total_size` attribute.
34272
+ #
34273
+ # @return [Integer]
34274
+ #
34275
+ def total_size
34276
+ @total_size
34277
+ end
34278
+
34279
+ #
34280
+ # Sets the value of the `total_size` attribute.
34281
+ #
34282
+ # @param value [Integer]
34283
+ #
34284
+ def total_size=(value)
34285
+ @total_size = value
34286
+ end
34287
+
33205
34288
  #
33206
34289
  # Returns the value of the `uses_scsi_reservation` attribute.
33207
34290
  #
@@ -33364,6 +34447,8 @@ module OvirtSDK4
33364
34447
  #
33365
34448
  # @option opts [Template, Hash] :template The value of attribute `template`.
33366
34449
  #
34450
+ # @option opts [Integer] :total_size The value of attribute `total_size`.
34451
+ #
33367
34452
  # @option opts [Boolean] :uses_scsi_reservation The value of attribute `uses_scsi_reservation`.
33368
34453
  #
33369
34454
  # @option opts [Vm, Hash] :vm The value of attribute `vm`.
@@ -33819,6 +34904,24 @@ module OvirtSDK4
33819
34904
  @id = value
33820
34905
  end
33821
34906
 
34907
+ #
34908
+ # Returns the value of the `index` attribute.
34909
+ #
34910
+ # @return [Integer]
34911
+ #
34912
+ def index
34913
+ @index
34914
+ end
34915
+
34916
+ #
34917
+ # Sets the value of the `index` attribute.
34918
+ #
34919
+ # @param value [Integer]
34920
+ #
34921
+ def index=(value)
34922
+ @index = value
34923
+ end
34924
+
33822
34925
  #
33823
34926
  # Returns the value of the `name` attribute.
33824
34927
  #
@@ -34020,6 +35123,8 @@ module OvirtSDK4
34020
35123
  #
34021
35124
  # @option opts [String] :id The value of attribute `id`.
34022
35125
  #
35126
+ # @option opts [Integer] :index The value of attribute `index`.
35127
+ #
34023
35128
  # @option opts [String] :name The value of attribute `name`.
34024
35129
  #
34025
35130
  # @option opts [String] :origin The value of attribute `origin`.
@@ -34047,6 +35152,7 @@ module OvirtSDK4
34047
35152
  self.data_center = opts[:data_center]
34048
35153
  self.flood_rate = opts[:flood_rate]
34049
35154
  self.host = opts[:host]
35155
+ self.index = opts[:index]
34050
35156
  self.origin = opts[:origin]
34051
35157
  self.severity = opts[:severity]
34052
35158
  self.storage_domain = opts[:storage_domain]
@@ -34069,6 +35175,7 @@ module OvirtSDK4
34069
35175
  @data_center == other.data_center &&
34070
35176
  @flood_rate == other.flood_rate &&
34071
35177
  @host == other.host &&
35178
+ @index == other.index &&
34072
35179
  @origin == other.origin &&
34073
35180
  @severity == other.severity &&
34074
35181
  @storage_domain == other.storage_domain &&
@@ -34091,6 +35198,7 @@ module OvirtSDK4
34091
35198
  @data_center.hash +
34092
35199
  @flood_rate.hash +
34093
35200
  @host.hash +
35201
+ @index.hash +
34094
35202
  @origin.hash +
34095
35203
  @severity.hash +
34096
35204
  @storage_domain.hash +
@@ -38985,7 +40093,7 @@ module OvirtSDK4
38985
40093
  #
38986
40094
  # Returns the value of the `nics` attribute.
38987
40095
  #
38988
- # @return [Array<Nic>]
40096
+ # @return [Array<HostNic>]
38989
40097
  #
38990
40098
  def nics
38991
40099
  @nics
@@ -38994,14 +40102,14 @@ module OvirtSDK4
38994
40102
  #
38995
40103
  # Sets the value of the `nics` attribute.
38996
40104
  #
38997
- # @param list [Array<Nic>]
40105
+ # @param list [Array<HostNic>]
38998
40106
  #
38999
40107
  def nics=(list)
39000
40108
  if list.class == Array
39001
40109
  list = List.new(list)
39002
40110
  list.each_with_index do |value, index|
39003
40111
  if value.is_a?(Hash)
39004
- list[index] = Nic.new(value)
40112
+ list[index] = HostNic.new(value)
39005
40113
  end
39006
40114
  end
39007
40115
  end
@@ -39613,7 +40721,7 @@ module OvirtSDK4
39613
40721
  #
39614
40722
  # @option opts [Array<NetworkAttachment>, Array<Hash>] :network_attachments The values of attribute `network_attachments`.
39615
40723
  #
39616
- # @option opts [Array<Nic>, Array<Hash>] :nics The values of attribute `nics`.
40724
+ # @option opts [Array<HostNic>, Array<Hash>] :nics The values of attribute `nics`.
39617
40725
  #
39618
40726
  # @option opts [Array<NumaNode>, Array<Hash>] :numa_nodes The values of attribute `numa_nodes`.
39619
40727
  #
@@ -39884,6 +40992,24 @@ module OvirtSDK4
39884
40992
  @description = value
39885
40993
  end
39886
40994
 
40995
+ #
40996
+ # Returns the value of the `driver` attribute.
40997
+ #
40998
+ # @return [String]
40999
+ #
41000
+ def driver
41001
+ @driver
41002
+ end
41003
+
41004
+ #
41005
+ # Sets the value of the `driver` attribute.
41006
+ #
41007
+ # @param value [String]
41008
+ #
41009
+ def driver=(value)
41010
+ @driver = value
41011
+ end
41012
+
39887
41013
  #
39888
41014
  # Returns the value of the `host` attribute.
39889
41015
  #
@@ -40137,6 +41263,8 @@ module OvirtSDK4
40137
41263
  #
40138
41264
  # @option opts [String] :description The value of attribute `description`.
40139
41265
  #
41266
+ # @option opts [String] :driver The value of attribute `driver`.
41267
+ #
40140
41268
  # @option opts [Host, Hash] :host The value of attribute `host`.
40141
41269
  #
40142
41270
  # @option opts [String] :id The value of attribute `id`.
@@ -40163,6 +41291,7 @@ module OvirtSDK4
40163
41291
  def initialize(opts = {})
40164
41292
  super(opts)
40165
41293
  self.capability = opts[:capability]
41294
+ self.driver = opts[:driver]
40166
41295
  self.host = opts[:host]
40167
41296
  self.iommu_group = opts[:iommu_group]
40168
41297
  self.parent_device = opts[:parent_device]
@@ -40180,6 +41309,7 @@ module OvirtSDK4
40180
41309
  def ==(other)
40181
41310
  super &&
40182
41311
  @capability == other.capability &&
41312
+ @driver == other.driver &&
40183
41313
  @host == other.host &&
40184
41314
  @iommu_group == other.iommu_group &&
40185
41315
  @parent_device == other.parent_device &&
@@ -40197,6 +41327,7 @@ module OvirtSDK4
40197
41327
  def hash
40198
41328
  super +
40199
41329
  @capability.hash +
41330
+ @driver.hash +
40200
41331
  @host.hash +
40201
41332
  @iommu_group.hash +
40202
41333
  @parent_device.hash +
@@ -44904,6 +46035,24 @@ module OvirtSDK4
44904
46035
  @guest_time_zone = value
44905
46036
  end
44906
46037
 
46038
+ #
46039
+ # Returns the value of the `has_illegal_images` attribute.
46040
+ #
46041
+ # @return [Boolean]
46042
+ #
46043
+ def has_illegal_images
46044
+ @has_illegal_images
46045
+ end
46046
+
46047
+ #
46048
+ # Sets the value of the `has_illegal_images` attribute.
46049
+ #
46050
+ # @param value [Boolean]
46051
+ #
46052
+ def has_illegal_images=(value)
46053
+ @has_illegal_images = value
46054
+ end
46055
+
44907
46056
  #
44908
46057
  # Returns the value of the `high_availability` attribute.
44909
46058
  #
@@ -46192,6 +47341,8 @@ module OvirtSDK4
46192
47341
  #
46193
47342
  # @option opts [TimeZone, Hash] :guest_time_zone The value of attribute `guest_time_zone`.
46194
47343
  #
47344
+ # @option opts [Boolean] :has_illegal_images The value of attribute `has_illegal_images`.
47345
+ #
46195
47346
  # @option opts [HighAvailability, Hash] :high_availability The value of attribute `high_availability`.
46196
47347
  #
46197
47348
  # @option opts [Host, Hash] :host The value of attribute `host`.
@@ -46313,6 +47464,7 @@ module OvirtSDK4
46313
47464
  self.graphics_consoles = opts[:graphics_consoles]
46314
47465
  self.guest_operating_system = opts[:guest_operating_system]
46315
47466
  self.guest_time_zone = opts[:guest_time_zone]
47467
+ self.has_illegal_images = opts[:has_illegal_images]
46316
47468
  self.host = opts[:host]
46317
47469
  self.host_devices = opts[:host_devices]
46318
47470
  self.instance_type = opts[:instance_type]
@@ -46357,6 +47509,7 @@ module OvirtSDK4
46357
47509
  @graphics_consoles == other.graphics_consoles &&
46358
47510
  @guest_operating_system == other.guest_operating_system &&
46359
47511
  @guest_time_zone == other.guest_time_zone &&
47512
+ @has_illegal_images == other.has_illegal_images &&
46360
47513
  @host == other.host &&
46361
47514
  @host_devices == other.host_devices &&
46362
47515
  @instance_type == other.instance_type &&
@@ -46401,6 +47554,7 @@ module OvirtSDK4
46401
47554
  @graphics_consoles.hash +
46402
47555
  @guest_operating_system.hash +
46403
47556
  @guest_time_zone.hash +
47557
+ @has_illegal_images.hash +
46404
47558
  @host.hash +
46405
47559
  @host_devices.hash +
46406
47560
  @instance_type.hash +
@@ -50564,6 +51718,24 @@ module OvirtSDK4
50564
51718
  @guest_time_zone = value
50565
51719
  end
50566
51720
 
51721
+ #
51722
+ # Returns the value of the `has_illegal_images` attribute.
51723
+ #
51724
+ # @return [Boolean]
51725
+ #
51726
+ def has_illegal_images
51727
+ @has_illegal_images
51728
+ end
51729
+
51730
+ #
51731
+ # Sets the value of the `has_illegal_images` attribute.
51732
+ #
51733
+ # @param value [Boolean]
51734
+ #
51735
+ def has_illegal_images=(value)
51736
+ @has_illegal_images = value
51737
+ end
51738
+
50567
51739
  #
50568
51740
  # Returns the value of the `high_availability` attribute.
50569
51741
  #
@@ -51933,6 +53105,8 @@ module OvirtSDK4
51933
53105
  #
51934
53106
  # @option opts [TimeZone, Hash] :guest_time_zone The value of attribute `guest_time_zone`.
51935
53107
  #
53108
+ # @option opts [Boolean] :has_illegal_images The value of attribute `has_illegal_images`.
53109
+ #
51936
53110
  # @option opts [HighAvailability, Hash] :high_availability The value of attribute `high_availability`.
51937
53111
  #
51938
53112
  # @option opts [Host, Hash] :host The value of attribute `host`.
@@ -52211,6 +53385,11 @@ module OvirtSDK4
52211
53385
  STOP = 'stop'.freeze
52212
53386
  end
52213
53387
 
53388
+ module FirewallType
53389
+ FIREWALLD = 'firewalld'.freeze
53390
+ IPTABLES = 'iptables'.freeze
53391
+ end
53392
+
52214
53393
  module GlusterBrickStatus
52215
53394
  DOWN = 'down'.freeze
52216
53395
  UNKNOWN = 'unknown'.freeze
@@ -52298,6 +53477,12 @@ module OvirtSDK4
52298
53477
  RHEV_H = 'rhev_h'.freeze
52299
53478
  end
52300
53479
 
53480
+ module ImageFileType
53481
+ DISK = 'disk'.freeze
53482
+ FLOPPY = 'floppy'.freeze
53483
+ ISO = 'iso'.freeze
53484
+ end
53485
+
52301
53486
  module ImageTransferDirection
52302
53487
  DOWNLOAD = 'download'.freeze
52303
53488
  UPLOAD = 'upload'.freeze
@@ -52692,6 +53877,7 @@ module OvirtSDK4
52692
53877
 
52693
53878
  module VmType
52694
53879
  DESKTOP = 'desktop'.freeze
53880
+ HIGH_PERFORMANCE = 'high_performance'.freeze
52695
53881
  SERVER = 'server'.freeze
52696
53882
  end
52697
53883