ovirt-engine-sdk 4.1.13 → 4.2.0.alpha1
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.
- checksums.yaml +4 -4
- data/CHANGES.adoc +2 -96
- data/README.adoc +22 -74
- data/ext/ovirtsdk4c/ov_http_client.c +27 -140
- data/ext/ovirtsdk4c/ov_http_client.h +1 -6
- data/ext/ovirtsdk4c/ov_http_request.c +40 -79
- data/ext/ovirtsdk4c/ov_http_request.h +10 -11
- data/ext/ovirtsdk4c/ov_http_response.c +0 -14
- data/ext/ovirtsdk4c/ov_http_transfer.c +0 -11
- data/ext/ovirtsdk4c/ov_module.h +2 -2
- data/lib/ovirtsdk4/connection.rb +57 -122
- data/lib/ovirtsdk4/probe.rb +2 -55
- data/lib/ovirtsdk4/reader.rb +3 -3
- data/lib/ovirtsdk4/readers.rb +91 -206
- data/lib/ovirtsdk4/service.rb +31 -104
- data/lib/ovirtsdk4/services.rb +9612 -7822
- data/lib/ovirtsdk4/types.rb +225 -491
- data/lib/ovirtsdk4/version.rb +1 -1
- data/lib/ovirtsdk4/writers.rb +36 -73
- metadata +5 -5
data/lib/ovirtsdk4/types.rb
CHANGED
@@ -170,9 +170,6 @@ module OvirtSDK4
|
|
170
170
|
class Ksm < Struct
|
171
171
|
end
|
172
172
|
|
173
|
-
class LinkLayerDiscoveryProtocolElement < Identified
|
174
|
-
end
|
175
|
-
|
176
173
|
class LogicalUnit < Struct
|
177
174
|
end
|
178
175
|
|
@@ -212,6 +209,9 @@ module OvirtSDK4
|
|
212
209
|
class NetworkFilter < Identified
|
213
210
|
end
|
214
211
|
|
212
|
+
class NetworkFilterParameter < Identified
|
213
|
+
end
|
214
|
+
|
215
215
|
class NetworkLabel < Identified
|
216
216
|
end
|
217
217
|
|
@@ -476,9 +476,6 @@ module OvirtSDK4
|
|
476
476
|
class Cluster < Identified
|
477
477
|
end
|
478
478
|
|
479
|
-
class ClusterFeature < Identified
|
480
|
-
end
|
481
|
-
|
482
479
|
class ClusterLevel < Identified
|
483
480
|
end
|
484
481
|
|
@@ -7701,216 +7698,6 @@ module OvirtSDK4
|
|
7701
7698
|
|
7702
7699
|
end
|
7703
7700
|
|
7704
|
-
class LinkLayerDiscoveryProtocolElement < Identified
|
7705
|
-
|
7706
|
-
#
|
7707
|
-
# Returns the value of the `comment` attribute.
|
7708
|
-
#
|
7709
|
-
# @return [String]
|
7710
|
-
#
|
7711
|
-
def comment
|
7712
|
-
@comment
|
7713
|
-
end
|
7714
|
-
|
7715
|
-
#
|
7716
|
-
# Sets the value of the `comment` attribute.
|
7717
|
-
#
|
7718
|
-
# @param value [String]
|
7719
|
-
#
|
7720
|
-
def comment=(value)
|
7721
|
-
@comment = value
|
7722
|
-
end
|
7723
|
-
|
7724
|
-
#
|
7725
|
-
# Returns the value of the `description` attribute.
|
7726
|
-
#
|
7727
|
-
# @return [String]
|
7728
|
-
#
|
7729
|
-
def description
|
7730
|
-
@description
|
7731
|
-
end
|
7732
|
-
|
7733
|
-
#
|
7734
|
-
# Sets the value of the `description` attribute.
|
7735
|
-
#
|
7736
|
-
# @param value [String]
|
7737
|
-
#
|
7738
|
-
def description=(value)
|
7739
|
-
@description = value
|
7740
|
-
end
|
7741
|
-
|
7742
|
-
#
|
7743
|
-
# Returns the value of the `id` attribute.
|
7744
|
-
#
|
7745
|
-
# @return [String]
|
7746
|
-
#
|
7747
|
-
def id
|
7748
|
-
@id
|
7749
|
-
end
|
7750
|
-
|
7751
|
-
#
|
7752
|
-
# Sets the value of the `id` attribute.
|
7753
|
-
#
|
7754
|
-
# @param value [String]
|
7755
|
-
#
|
7756
|
-
def id=(value)
|
7757
|
-
@id = value
|
7758
|
-
end
|
7759
|
-
|
7760
|
-
#
|
7761
|
-
# Returns the value of the `name` attribute.
|
7762
|
-
#
|
7763
|
-
# @return [String]
|
7764
|
-
#
|
7765
|
-
def name
|
7766
|
-
@name
|
7767
|
-
end
|
7768
|
-
|
7769
|
-
#
|
7770
|
-
# Sets the value of the `name` attribute.
|
7771
|
-
#
|
7772
|
-
# @param value [String]
|
7773
|
-
#
|
7774
|
-
def name=(value)
|
7775
|
-
@name = value
|
7776
|
-
end
|
7777
|
-
|
7778
|
-
#
|
7779
|
-
# Returns the value of the `oui` attribute.
|
7780
|
-
#
|
7781
|
-
# @return [Integer]
|
7782
|
-
#
|
7783
|
-
def oui
|
7784
|
-
@oui
|
7785
|
-
end
|
7786
|
-
|
7787
|
-
#
|
7788
|
-
# Sets the value of the `oui` attribute.
|
7789
|
-
#
|
7790
|
-
# @param value [Integer]
|
7791
|
-
#
|
7792
|
-
def oui=(value)
|
7793
|
-
@oui = value
|
7794
|
-
end
|
7795
|
-
|
7796
|
-
#
|
7797
|
-
# Returns the value of the `properties` attribute.
|
7798
|
-
#
|
7799
|
-
# @return [Array<Property>]
|
7800
|
-
#
|
7801
|
-
def properties
|
7802
|
-
@properties
|
7803
|
-
end
|
7804
|
-
|
7805
|
-
#
|
7806
|
-
# Sets the value of the `properties` attribute.
|
7807
|
-
#
|
7808
|
-
# @param list [Array<Property>]
|
7809
|
-
#
|
7810
|
-
def properties=(list)
|
7811
|
-
if list.class == Array
|
7812
|
-
list = List.new(list)
|
7813
|
-
list.each_with_index do |value, index|
|
7814
|
-
if value.is_a?(Hash)
|
7815
|
-
list[index] = Property.new(value)
|
7816
|
-
end
|
7817
|
-
end
|
7818
|
-
end
|
7819
|
-
@properties = list
|
7820
|
-
end
|
7821
|
-
|
7822
|
-
#
|
7823
|
-
# Returns the value of the `subtype` attribute.
|
7824
|
-
#
|
7825
|
-
# @return [Integer]
|
7826
|
-
#
|
7827
|
-
def subtype
|
7828
|
-
@subtype
|
7829
|
-
end
|
7830
|
-
|
7831
|
-
#
|
7832
|
-
# Sets the value of the `subtype` attribute.
|
7833
|
-
#
|
7834
|
-
# @param value [Integer]
|
7835
|
-
#
|
7836
|
-
def subtype=(value)
|
7837
|
-
@subtype = value
|
7838
|
-
end
|
7839
|
-
|
7840
|
-
#
|
7841
|
-
# Returns the value of the `type` attribute.
|
7842
|
-
#
|
7843
|
-
# @return [Integer]
|
7844
|
-
#
|
7845
|
-
def type
|
7846
|
-
@type
|
7847
|
-
end
|
7848
|
-
|
7849
|
-
#
|
7850
|
-
# Sets the value of the `type` attribute.
|
7851
|
-
#
|
7852
|
-
# @param value [Integer]
|
7853
|
-
#
|
7854
|
-
def type=(value)
|
7855
|
-
@type = value
|
7856
|
-
end
|
7857
|
-
|
7858
|
-
#
|
7859
|
-
# Creates a new instance of the {LinkLayerDiscoveryProtocolElement} class.
|
7860
|
-
#
|
7861
|
-
# @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
|
7862
|
-
# should be symbols corresponding to the names of the attributes. The values of the hash
|
7863
|
-
# should be the values of the attributes.
|
7864
|
-
#
|
7865
|
-
# @option opts [String] :comment The value of attribute `comment`.
|
7866
|
-
#
|
7867
|
-
# @option opts [String] :description The value of attribute `description`.
|
7868
|
-
#
|
7869
|
-
# @option opts [String] :id The value of attribute `id`.
|
7870
|
-
#
|
7871
|
-
# @option opts [String] :name The value of attribute `name`.
|
7872
|
-
#
|
7873
|
-
# @option opts [Integer] :oui The value of attribute `oui`.
|
7874
|
-
#
|
7875
|
-
# @option opts [Array<Property>, Array<Hash>] :properties The values of attribute `properties`.
|
7876
|
-
#
|
7877
|
-
# @option opts [Integer] :subtype The value of attribute `subtype`.
|
7878
|
-
#
|
7879
|
-
# @option opts [Integer] :type The value of attribute `type`.
|
7880
|
-
#
|
7881
|
-
#
|
7882
|
-
def initialize(opts = {})
|
7883
|
-
super(opts)
|
7884
|
-
self.oui = opts[:oui]
|
7885
|
-
self.properties = opts[:properties]
|
7886
|
-
self.subtype = opts[:subtype]
|
7887
|
-
self.type = opts[:type]
|
7888
|
-
end
|
7889
|
-
|
7890
|
-
#
|
7891
|
-
# Returns `true` if `self` and `other` have the same attributes and values.
|
7892
|
-
#
|
7893
|
-
def ==(other)
|
7894
|
-
super &&
|
7895
|
-
@oui == other.oui &&
|
7896
|
-
@properties == other.properties &&
|
7897
|
-
@subtype == other.subtype &&
|
7898
|
-
@type == other.type
|
7899
|
-
end
|
7900
|
-
|
7901
|
-
#
|
7902
|
-
# Generates a hash value for this object.
|
7903
|
-
#
|
7904
|
-
def hash
|
7905
|
-
super +
|
7906
|
-
@oui.hash +
|
7907
|
-
@properties.hash +
|
7908
|
-
@subtype.hash +
|
7909
|
-
@type.hash
|
7910
|
-
end
|
7911
|
-
|
7912
|
-
end
|
7913
|
-
|
7914
7701
|
class LogicalUnit < Struct
|
7915
7702
|
|
7916
7703
|
#
|
@@ -10342,6 +10129,139 @@ module OvirtSDK4
|
|
10342
10129
|
|
10343
10130
|
end
|
10344
10131
|
|
10132
|
+
class NetworkFilterParameter < Identified
|
10133
|
+
|
10134
|
+
#
|
10135
|
+
# Returns the value of the `comment` attribute.
|
10136
|
+
#
|
10137
|
+
# @return [String]
|
10138
|
+
#
|
10139
|
+
def comment
|
10140
|
+
@comment
|
10141
|
+
end
|
10142
|
+
|
10143
|
+
#
|
10144
|
+
# Sets the value of the `comment` attribute.
|
10145
|
+
#
|
10146
|
+
# @param value [String]
|
10147
|
+
#
|
10148
|
+
def comment=(value)
|
10149
|
+
@comment = value
|
10150
|
+
end
|
10151
|
+
|
10152
|
+
#
|
10153
|
+
# Returns the value of the `description` attribute.
|
10154
|
+
#
|
10155
|
+
# @return [String]
|
10156
|
+
#
|
10157
|
+
def description
|
10158
|
+
@description
|
10159
|
+
end
|
10160
|
+
|
10161
|
+
#
|
10162
|
+
# Sets the value of the `description` attribute.
|
10163
|
+
#
|
10164
|
+
# @param value [String]
|
10165
|
+
#
|
10166
|
+
def description=(value)
|
10167
|
+
@description = value
|
10168
|
+
end
|
10169
|
+
|
10170
|
+
#
|
10171
|
+
# Returns the value of the `id` attribute.
|
10172
|
+
#
|
10173
|
+
# @return [String]
|
10174
|
+
#
|
10175
|
+
def id
|
10176
|
+
@id
|
10177
|
+
end
|
10178
|
+
|
10179
|
+
#
|
10180
|
+
# Sets the value of the `id` attribute.
|
10181
|
+
#
|
10182
|
+
# @param value [String]
|
10183
|
+
#
|
10184
|
+
def id=(value)
|
10185
|
+
@id = value
|
10186
|
+
end
|
10187
|
+
|
10188
|
+
#
|
10189
|
+
# Returns the value of the `name` attribute.
|
10190
|
+
#
|
10191
|
+
# @return [String]
|
10192
|
+
#
|
10193
|
+
def name
|
10194
|
+
@name
|
10195
|
+
end
|
10196
|
+
|
10197
|
+
#
|
10198
|
+
# Sets the value of the `name` attribute.
|
10199
|
+
#
|
10200
|
+
# @param value [String]
|
10201
|
+
#
|
10202
|
+
def name=(value)
|
10203
|
+
@name = value
|
10204
|
+
end
|
10205
|
+
|
10206
|
+
#
|
10207
|
+
# Returns the value of the `value` attribute.
|
10208
|
+
#
|
10209
|
+
# @return [String]
|
10210
|
+
#
|
10211
|
+
def value
|
10212
|
+
@value
|
10213
|
+
end
|
10214
|
+
|
10215
|
+
#
|
10216
|
+
# Sets the value of the `value` attribute.
|
10217
|
+
#
|
10218
|
+
# @param value [String]
|
10219
|
+
#
|
10220
|
+
def value=(value)
|
10221
|
+
@value = value
|
10222
|
+
end
|
10223
|
+
|
10224
|
+
#
|
10225
|
+
# Creates a new instance of the {NetworkFilterParameter} class.
|
10226
|
+
#
|
10227
|
+
# @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
|
10228
|
+
# should be symbols corresponding to the names of the attributes. The values of the hash
|
10229
|
+
# should be the values of the attributes.
|
10230
|
+
#
|
10231
|
+
# @option opts [String] :comment The value of attribute `comment`.
|
10232
|
+
#
|
10233
|
+
# @option opts [String] :description The value of attribute `description`.
|
10234
|
+
#
|
10235
|
+
# @option opts [String] :id The value of attribute `id`.
|
10236
|
+
#
|
10237
|
+
# @option opts [String] :name The value of attribute `name`.
|
10238
|
+
#
|
10239
|
+
# @option opts [String] :value The value of attribute `value`.
|
10240
|
+
#
|
10241
|
+
#
|
10242
|
+
def initialize(opts = {})
|
10243
|
+
super(opts)
|
10244
|
+
self.value = opts[:value]
|
10245
|
+
end
|
10246
|
+
|
10247
|
+
#
|
10248
|
+
# Returns `true` if `self` and `other` have the same attributes and values.
|
10249
|
+
#
|
10250
|
+
def ==(other)
|
10251
|
+
super &&
|
10252
|
+
@value == other.value
|
10253
|
+
end
|
10254
|
+
|
10255
|
+
#
|
10256
|
+
# Generates a hash value for this object.
|
10257
|
+
#
|
10258
|
+
def hash
|
10259
|
+
super +
|
10260
|
+
@value.hash
|
10261
|
+
end
|
10262
|
+
|
10263
|
+
end
|
10264
|
+
|
10345
10265
|
class NetworkLabel < Identified
|
10346
10266
|
|
10347
10267
|
#
|
@@ -10638,6 +10558,49 @@ module OvirtSDK4
|
|
10638
10558
|
@ip = value
|
10639
10559
|
end
|
10640
10560
|
|
10561
|
+
#
|
10562
|
+
# Returns the value of the `ipv6` attribute.
|
10563
|
+
#
|
10564
|
+
# @return [Ip]
|
10565
|
+
#
|
10566
|
+
def ipv6
|
10567
|
+
@ipv6
|
10568
|
+
end
|
10569
|
+
|
10570
|
+
#
|
10571
|
+
# Sets the value of the `ipv6` attribute.
|
10572
|
+
#
|
10573
|
+
# @param value [Ip, Hash]
|
10574
|
+
#
|
10575
|
+
# The `value` parameter can be an instance of {OvirtSDK4::Ip} or a hash.
|
10576
|
+
# If it is a hash then a new instance will be created passing the hash as the
|
10577
|
+
# `opts` parameter to the constructor.
|
10578
|
+
#
|
10579
|
+
def ipv6=(value)
|
10580
|
+
if value.is_a?(Hash)
|
10581
|
+
value = Ip.new(value)
|
10582
|
+
end
|
10583
|
+
@ipv6 = value
|
10584
|
+
end
|
10585
|
+
|
10586
|
+
#
|
10587
|
+
# Returns the value of the `ipv6_boot_protocol` attribute.
|
10588
|
+
#
|
10589
|
+
# @return [BootProtocol]
|
10590
|
+
#
|
10591
|
+
def ipv6_boot_protocol
|
10592
|
+
@ipv6_boot_protocol
|
10593
|
+
end
|
10594
|
+
|
10595
|
+
#
|
10596
|
+
# Sets the value of the `ipv6_boot_protocol` attribute.
|
10597
|
+
#
|
10598
|
+
# @param value [BootProtocol]
|
10599
|
+
#
|
10600
|
+
def ipv6_boot_protocol=(value)
|
10601
|
+
@ipv6_boot_protocol = value
|
10602
|
+
end
|
10603
|
+
|
10641
10604
|
#
|
10642
10605
|
# Returns the value of the `name` attribute.
|
10643
10606
|
#
|
@@ -10685,6 +10648,10 @@ module OvirtSDK4
|
|
10685
10648
|
#
|
10686
10649
|
# @option opts [Ip, Hash] :ip The value of attribute `ip`.
|
10687
10650
|
#
|
10651
|
+
# @option opts [Ip, Hash] :ipv6 The value of attribute `ipv6`.
|
10652
|
+
#
|
10653
|
+
# @option opts [BootProtocol] :ipv6_boot_protocol The value of attribute `ipv6_boot_protocol`.
|
10654
|
+
#
|
10688
10655
|
# @option opts [String] :name The value of attribute `name`.
|
10689
10656
|
#
|
10690
10657
|
# @option opts [Boolean] :on_boot The value of attribute `on_boot`.
|
@@ -10694,6 +10661,8 @@ module OvirtSDK4
|
|
10694
10661
|
super(opts)
|
10695
10662
|
self.boot_protocol = opts[:boot_protocol]
|
10696
10663
|
self.ip = opts[:ip]
|
10664
|
+
self.ipv6 = opts[:ipv6]
|
10665
|
+
self.ipv6_boot_protocol = opts[:ipv6_boot_protocol]
|
10697
10666
|
self.name = opts[:name]
|
10698
10667
|
self.on_boot = opts[:on_boot]
|
10699
10668
|
end
|
@@ -10705,6 +10674,8 @@ module OvirtSDK4
|
|
10705
10674
|
super &&
|
10706
10675
|
@boot_protocol == other.boot_protocol &&
|
10707
10676
|
@ip == other.ip &&
|
10677
|
+
@ipv6 == other.ipv6 &&
|
10678
|
+
@ipv6_boot_protocol == other.ipv6_boot_protocol &&
|
10708
10679
|
@name == other.name &&
|
10709
10680
|
@on_boot == other.on_boot
|
10710
10681
|
end
|
@@ -10716,6 +10687,8 @@ module OvirtSDK4
|
|
10716
10687
|
super +
|
10717
10688
|
@boot_protocol.hash +
|
10718
10689
|
@ip.hash +
|
10690
|
+
@ipv6.hash +
|
10691
|
+
@ipv6_boot_protocol.hash +
|
10719
10692
|
@name.hash +
|
10720
10693
|
@on_boot.hash
|
10721
10694
|
end
|
@@ -29077,32 +29050,6 @@ module OvirtSDK4
|
|
29077
29050
|
@display = value
|
29078
29051
|
end
|
29079
29052
|
|
29080
|
-
#
|
29081
|
-
# Returns the value of the `enabled_features` attribute.
|
29082
|
-
#
|
29083
|
-
# @return [Array<ClusterFeature>]
|
29084
|
-
#
|
29085
|
-
def enabled_features
|
29086
|
-
@enabled_features
|
29087
|
-
end
|
29088
|
-
|
29089
|
-
#
|
29090
|
-
# Sets the value of the `enabled_features` attribute.
|
29091
|
-
#
|
29092
|
-
# @param list [Array<ClusterFeature>]
|
29093
|
-
#
|
29094
|
-
def enabled_features=(list)
|
29095
|
-
if list.class == Array
|
29096
|
-
list = List.new(list)
|
29097
|
-
list.each_with_index do |value, index|
|
29098
|
-
if value.is_a?(Hash)
|
29099
|
-
list[index] = ClusterFeature.new(value)
|
29100
|
-
end
|
29101
|
-
end
|
29102
|
-
end
|
29103
|
-
@enabled_features = list
|
29104
|
-
end
|
29105
|
-
|
29106
29053
|
#
|
29107
29054
|
# Returns the value of the `error_handling` attribute.
|
29108
29055
|
#
|
@@ -29768,8 +29715,6 @@ module OvirtSDK4
|
|
29768
29715
|
#
|
29769
29716
|
# @option opts [Display, Hash] :display The value of attribute `display`.
|
29770
29717
|
#
|
29771
|
-
# @option opts [Array<ClusterFeature>, Array<Hash>] :enabled_features The values of attribute `enabled_features`.
|
29772
|
-
#
|
29773
29718
|
# @option opts [ErrorHandling, Hash] :error_handling The value of attribute `error_handling`.
|
29774
29719
|
#
|
29775
29720
|
# @option opts [FencingPolicy, Hash] :fencing_policy The value of attribute `fencing_policy`.
|
@@ -29838,7 +29783,6 @@ module OvirtSDK4
|
|
29838
29783
|
self.custom_scheduling_policy_properties = opts[:custom_scheduling_policy_properties]
|
29839
29784
|
self.data_center = opts[:data_center]
|
29840
29785
|
self.display = opts[:display]
|
29841
|
-
self.enabled_features = opts[:enabled_features]
|
29842
29786
|
self.error_handling = opts[:error_handling]
|
29843
29787
|
self.fencing_policy = opts[:fencing_policy]
|
29844
29788
|
self.gluster_hooks = opts[:gluster_hooks]
|
@@ -29880,7 +29824,6 @@ module OvirtSDK4
|
|
29880
29824
|
@custom_scheduling_policy_properties == other.custom_scheduling_policy_properties &&
|
29881
29825
|
@data_center == other.data_center &&
|
29882
29826
|
@display == other.display &&
|
29883
|
-
@enabled_features == other.enabled_features &&
|
29884
29827
|
@error_handling == other.error_handling &&
|
29885
29828
|
@fencing_policy == other.fencing_policy &&
|
29886
29829
|
@gluster_hooks == other.gluster_hooks &&
|
@@ -29922,7 +29865,6 @@ module OvirtSDK4
|
|
29922
29865
|
@custom_scheduling_policy_properties.hash +
|
29923
29866
|
@data_center.hash +
|
29924
29867
|
@display.hash +
|
29925
|
-
@enabled_features.hash +
|
29926
29868
|
@error_handling.hash +
|
29927
29869
|
@fencing_policy.hash +
|
29928
29870
|
@gluster_hooks.hash +
|
@@ -29954,174 +29896,8 @@ module OvirtSDK4
|
|
29954
29896
|
|
29955
29897
|
end
|
29956
29898
|
|
29957
|
-
class ClusterFeature < Identified
|
29958
|
-
|
29959
|
-
#
|
29960
|
-
# Returns the value of the `cluster_level` attribute.
|
29961
|
-
#
|
29962
|
-
# @return [ClusterLevel]
|
29963
|
-
#
|
29964
|
-
def cluster_level
|
29965
|
-
@cluster_level
|
29966
|
-
end
|
29967
|
-
|
29968
|
-
#
|
29969
|
-
# Sets the value of the `cluster_level` attribute.
|
29970
|
-
#
|
29971
|
-
# @param value [ClusterLevel, Hash]
|
29972
|
-
#
|
29973
|
-
# The `value` parameter can be an instance of {OvirtSDK4::ClusterLevel} or a hash.
|
29974
|
-
# If it is a hash then a new instance will be created passing the hash as the
|
29975
|
-
# `opts` parameter to the constructor.
|
29976
|
-
#
|
29977
|
-
def cluster_level=(value)
|
29978
|
-
if value.is_a?(Hash)
|
29979
|
-
value = ClusterLevel.new(value)
|
29980
|
-
end
|
29981
|
-
@cluster_level = value
|
29982
|
-
end
|
29983
|
-
|
29984
|
-
#
|
29985
|
-
# Returns the value of the `comment` attribute.
|
29986
|
-
#
|
29987
|
-
# @return [String]
|
29988
|
-
#
|
29989
|
-
def comment
|
29990
|
-
@comment
|
29991
|
-
end
|
29992
|
-
|
29993
|
-
#
|
29994
|
-
# Sets the value of the `comment` attribute.
|
29995
|
-
#
|
29996
|
-
# @param value [String]
|
29997
|
-
#
|
29998
|
-
def comment=(value)
|
29999
|
-
@comment = value
|
30000
|
-
end
|
30001
|
-
|
30002
|
-
#
|
30003
|
-
# Returns the value of the `description` attribute.
|
30004
|
-
#
|
30005
|
-
# @return [String]
|
30006
|
-
#
|
30007
|
-
def description
|
30008
|
-
@description
|
30009
|
-
end
|
30010
|
-
|
30011
|
-
#
|
30012
|
-
# Sets the value of the `description` attribute.
|
30013
|
-
#
|
30014
|
-
# @param value [String]
|
30015
|
-
#
|
30016
|
-
def description=(value)
|
30017
|
-
@description = value
|
30018
|
-
end
|
30019
|
-
|
30020
|
-
#
|
30021
|
-
# Returns the value of the `id` attribute.
|
30022
|
-
#
|
30023
|
-
# @return [String]
|
30024
|
-
#
|
30025
|
-
def id
|
30026
|
-
@id
|
30027
|
-
end
|
30028
|
-
|
30029
|
-
#
|
30030
|
-
# Sets the value of the `id` attribute.
|
30031
|
-
#
|
30032
|
-
# @param value [String]
|
30033
|
-
#
|
30034
|
-
def id=(value)
|
30035
|
-
@id = value
|
30036
|
-
end
|
30037
|
-
|
30038
|
-
#
|
30039
|
-
# Returns the value of the `name` attribute.
|
30040
|
-
#
|
30041
|
-
# @return [String]
|
30042
|
-
#
|
30043
|
-
def name
|
30044
|
-
@name
|
30045
|
-
end
|
30046
|
-
|
30047
|
-
#
|
30048
|
-
# Sets the value of the `name` attribute.
|
30049
|
-
#
|
30050
|
-
# @param value [String]
|
30051
|
-
#
|
30052
|
-
def name=(value)
|
30053
|
-
@name = value
|
30054
|
-
end
|
30055
|
-
|
30056
|
-
#
|
30057
|
-
# Creates a new instance of the {ClusterFeature} class.
|
30058
|
-
#
|
30059
|
-
# @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
|
30060
|
-
# should be symbols corresponding to the names of the attributes. The values of the hash
|
30061
|
-
# should be the values of the attributes.
|
30062
|
-
#
|
30063
|
-
# @option opts [ClusterLevel, Hash] :cluster_level The value of attribute `cluster_level`.
|
30064
|
-
#
|
30065
|
-
# @option opts [String] :comment The value of attribute `comment`.
|
30066
|
-
#
|
30067
|
-
# @option opts [String] :description The value of attribute `description`.
|
30068
|
-
#
|
30069
|
-
# @option opts [String] :id The value of attribute `id`.
|
30070
|
-
#
|
30071
|
-
# @option opts [String] :name The value of attribute `name`.
|
30072
|
-
#
|
30073
|
-
#
|
30074
|
-
def initialize(opts = {})
|
30075
|
-
super(opts)
|
30076
|
-
self.cluster_level = opts[:cluster_level]
|
30077
|
-
end
|
30078
|
-
|
30079
|
-
#
|
30080
|
-
# Returns `true` if `self` and `other` have the same attributes and values.
|
30081
|
-
#
|
30082
|
-
def ==(other)
|
30083
|
-
super &&
|
30084
|
-
@cluster_level == other.cluster_level
|
30085
|
-
end
|
30086
|
-
|
30087
|
-
#
|
30088
|
-
# Generates a hash value for this object.
|
30089
|
-
#
|
30090
|
-
def hash
|
30091
|
-
super +
|
30092
|
-
@cluster_level.hash
|
30093
|
-
end
|
30094
|
-
|
30095
|
-
end
|
30096
|
-
|
30097
29899
|
class ClusterLevel < Identified
|
30098
29900
|
|
30099
|
-
#
|
30100
|
-
# Returns the value of the `cluster_features` attribute.
|
30101
|
-
#
|
30102
|
-
# @return [Array<ClusterFeature>]
|
30103
|
-
#
|
30104
|
-
def cluster_features
|
30105
|
-
@cluster_features
|
30106
|
-
end
|
30107
|
-
|
30108
|
-
#
|
30109
|
-
# Sets the value of the `cluster_features` attribute.
|
30110
|
-
#
|
30111
|
-
# @param list [Array<ClusterFeature>]
|
30112
|
-
#
|
30113
|
-
def cluster_features=(list)
|
30114
|
-
if list.class == Array
|
30115
|
-
list = List.new(list)
|
30116
|
-
list.each_with_index do |value, index|
|
30117
|
-
if value.is_a?(Hash)
|
30118
|
-
list[index] = ClusterFeature.new(value)
|
30119
|
-
end
|
30120
|
-
end
|
30121
|
-
end
|
30122
|
-
@cluster_features = list
|
30123
|
-
end
|
30124
|
-
|
30125
29901
|
#
|
30126
29902
|
# Returns the value of the `comment` attribute.
|
30127
29903
|
#
|
@@ -30253,8 +30029,6 @@ module OvirtSDK4
|
|
30253
30029
|
# should be symbols corresponding to the names of the attributes. The values of the hash
|
30254
30030
|
# should be the values of the attributes.
|
30255
30031
|
#
|
30256
|
-
# @option opts [Array<ClusterFeature>, Array<Hash>] :cluster_features The values of attribute `cluster_features`.
|
30257
|
-
#
|
30258
30032
|
# @option opts [String] :comment The value of attribute `comment`.
|
30259
30033
|
#
|
30260
30034
|
# @option opts [Array<CpuType>, Array<Hash>] :cpu_types The values of attribute `cpu_types`.
|
@@ -30270,7 +30044,6 @@ module OvirtSDK4
|
|
30270
30044
|
#
|
30271
30045
|
def initialize(opts = {})
|
30272
30046
|
super(opts)
|
30273
|
-
self.cluster_features = opts[:cluster_features]
|
30274
30047
|
self.cpu_types = opts[:cpu_types]
|
30275
30048
|
self.permits = opts[:permits]
|
30276
30049
|
end
|
@@ -30280,7 +30053,6 @@ module OvirtSDK4
|
|
30280
30053
|
#
|
30281
30054
|
def ==(other)
|
30282
30055
|
super &&
|
30283
|
-
@cluster_features == other.cluster_features &&
|
30284
30056
|
@cpu_types == other.cpu_types &&
|
30285
30057
|
@permits == other.permits
|
30286
30058
|
end
|
@@ -30290,7 +30062,6 @@ module OvirtSDK4
|
|
30290
30062
|
#
|
30291
30063
|
def hash
|
30292
30064
|
super +
|
30293
|
-
@cluster_features.hash +
|
30294
30065
|
@cpu_types.hash +
|
30295
30066
|
@permits.hash
|
30296
30067
|
end
|
@@ -32380,24 +32151,6 @@ module OvirtSDK4
|
|
32380
32151
|
@pass_discard = value
|
32381
32152
|
end
|
32382
32153
|
|
32383
|
-
#
|
32384
|
-
# Returns the value of the `read_only` attribute.
|
32385
|
-
#
|
32386
|
-
# @return [Boolean]
|
32387
|
-
#
|
32388
|
-
def read_only
|
32389
|
-
@read_only
|
32390
|
-
end
|
32391
|
-
|
32392
|
-
#
|
32393
|
-
# Sets the value of the `read_only` attribute.
|
32394
|
-
#
|
32395
|
-
# @param value [Boolean]
|
32396
|
-
#
|
32397
|
-
def read_only=(value)
|
32398
|
-
@read_only = value
|
32399
|
-
end
|
32400
|
-
|
32401
32154
|
#
|
32402
32155
|
# Returns the value of the `template` attribute.
|
32403
32156
|
#
|
@@ -32493,8 +32246,6 @@ module OvirtSDK4
|
|
32493
32246
|
#
|
32494
32247
|
# @option opts [Boolean] :pass_discard The value of attribute `pass_discard`.
|
32495
32248
|
#
|
32496
|
-
# @option opts [Boolean] :read_only The value of attribute `read_only`.
|
32497
|
-
#
|
32498
32249
|
# @option opts [Template, Hash] :template The value of attribute `template`.
|
32499
32250
|
#
|
32500
32251
|
# @option opts [Boolean] :uses_scsi_reservation The value of attribute `uses_scsi_reservation`.
|
@@ -32510,7 +32261,6 @@ module OvirtSDK4
|
|
32510
32261
|
self.interface = opts[:interface]
|
32511
32262
|
self.logical_name = opts[:logical_name]
|
32512
32263
|
self.pass_discard = opts[:pass_discard]
|
32513
|
-
self.read_only = opts[:read_only]
|
32514
32264
|
self.template = opts[:template]
|
32515
32265
|
self.uses_scsi_reservation = opts[:uses_scsi_reservation]
|
32516
32266
|
self.vm = opts[:vm]
|
@@ -32527,7 +32277,6 @@ module OvirtSDK4
|
|
32527
32277
|
@interface == other.interface &&
|
32528
32278
|
@logical_name == other.logical_name &&
|
32529
32279
|
@pass_discard == other.pass_discard &&
|
32530
|
-
@read_only == other.read_only &&
|
32531
32280
|
@template == other.template &&
|
32532
32281
|
@uses_scsi_reservation == other.uses_scsi_reservation &&
|
32533
32282
|
@vm == other.vm
|
@@ -32544,7 +32293,6 @@ module OvirtSDK4
|
|
32544
32293
|
@interface.hash +
|
32545
32294
|
@logical_name.hash +
|
32546
32295
|
@pass_discard.hash +
|
32547
|
-
@read_only.hash +
|
32548
32296
|
@template.hash +
|
32549
32297
|
@uses_scsi_reservation.hash +
|
32550
32298
|
@vm.hash
|
@@ -34071,24 +33819,6 @@ module OvirtSDK4
|
|
34071
33819
|
@id = value
|
34072
33820
|
end
|
34073
33821
|
|
34074
|
-
#
|
34075
|
-
# Returns the value of the `index` attribute.
|
34076
|
-
#
|
34077
|
-
# @return [Integer]
|
34078
|
-
#
|
34079
|
-
def index
|
34080
|
-
@index
|
34081
|
-
end
|
34082
|
-
|
34083
|
-
#
|
34084
|
-
# Sets the value of the `index` attribute.
|
34085
|
-
#
|
34086
|
-
# @param value [Integer]
|
34087
|
-
#
|
34088
|
-
def index=(value)
|
34089
|
-
@index = value
|
34090
|
-
end
|
34091
|
-
|
34092
33822
|
#
|
34093
33823
|
# Returns the value of the `name` attribute.
|
34094
33824
|
#
|
@@ -34290,8 +34020,6 @@ module OvirtSDK4
|
|
34290
34020
|
#
|
34291
34021
|
# @option opts [String] :id The value of attribute `id`.
|
34292
34022
|
#
|
34293
|
-
# @option opts [Integer] :index The value of attribute `index`.
|
34294
|
-
#
|
34295
34023
|
# @option opts [String] :name The value of attribute `name`.
|
34296
34024
|
#
|
34297
34025
|
# @option opts [String] :origin The value of attribute `origin`.
|
@@ -34319,7 +34047,6 @@ module OvirtSDK4
|
|
34319
34047
|
self.data_center = opts[:data_center]
|
34320
34048
|
self.flood_rate = opts[:flood_rate]
|
34321
34049
|
self.host = opts[:host]
|
34322
|
-
self.index = opts[:index]
|
34323
34050
|
self.origin = opts[:origin]
|
34324
34051
|
self.severity = opts[:severity]
|
34325
34052
|
self.storage_domain = opts[:storage_domain]
|
@@ -34342,7 +34069,6 @@ module OvirtSDK4
|
|
34342
34069
|
@data_center == other.data_center &&
|
34343
34070
|
@flood_rate == other.flood_rate &&
|
34344
34071
|
@host == other.host &&
|
34345
|
-
@index == other.index &&
|
34346
34072
|
@origin == other.origin &&
|
34347
34073
|
@severity == other.severity &&
|
34348
34074
|
@storage_domain == other.storage_domain &&
|
@@ -34365,7 +34091,6 @@ module OvirtSDK4
|
|
34365
34091
|
@data_center.hash +
|
34366
34092
|
@flood_rate.hash +
|
34367
34093
|
@host.hash +
|
34368
|
-
@index.hash +
|
34369
34094
|
@origin.hash +
|
34370
34095
|
@severity.hash +
|
34371
34096
|
@storage_domain.hash +
|
@@ -39260,7 +38985,7 @@ module OvirtSDK4
|
|
39260
38985
|
#
|
39261
38986
|
# Returns the value of the `nics` attribute.
|
39262
38987
|
#
|
39263
|
-
# @return [Array<
|
38988
|
+
# @return [Array<Nic>]
|
39264
38989
|
#
|
39265
38990
|
def nics
|
39266
38991
|
@nics
|
@@ -39269,14 +38994,14 @@ module OvirtSDK4
|
|
39269
38994
|
#
|
39270
38995
|
# Sets the value of the `nics` attribute.
|
39271
38996
|
#
|
39272
|
-
# @param list [Array<
|
38997
|
+
# @param list [Array<Nic>]
|
39273
38998
|
#
|
39274
38999
|
def nics=(list)
|
39275
39000
|
if list.class == Array
|
39276
39001
|
list = List.new(list)
|
39277
39002
|
list.each_with_index do |value, index|
|
39278
39003
|
if value.is_a?(Hash)
|
39279
|
-
list[index] =
|
39004
|
+
list[index] = Nic.new(value)
|
39280
39005
|
end
|
39281
39006
|
end
|
39282
39007
|
end
|
@@ -39888,7 +39613,7 @@ module OvirtSDK4
|
|
39888
39613
|
#
|
39889
39614
|
# @option opts [Array<NetworkAttachment>, Array<Hash>] :network_attachments The values of attribute `network_attachments`.
|
39890
39615
|
#
|
39891
|
-
# @option opts [Array<
|
39616
|
+
# @option opts [Array<Nic>, Array<Hash>] :nics The values of attribute `nics`.
|
39892
39617
|
#
|
39893
39618
|
# @option opts [Array<NumaNode>, Array<Hash>] :numa_nodes The values of attribute `numa_nodes`.
|
39894
39619
|
#
|
@@ -40159,24 +39884,6 @@ module OvirtSDK4
|
|
40159
39884
|
@description = value
|
40160
39885
|
end
|
40161
39886
|
|
40162
|
-
#
|
40163
|
-
# Returns the value of the `driver` attribute.
|
40164
|
-
#
|
40165
|
-
# @return [String]
|
40166
|
-
#
|
40167
|
-
def driver
|
40168
|
-
@driver
|
40169
|
-
end
|
40170
|
-
|
40171
|
-
#
|
40172
|
-
# Sets the value of the `driver` attribute.
|
40173
|
-
#
|
40174
|
-
# @param value [String]
|
40175
|
-
#
|
40176
|
-
def driver=(value)
|
40177
|
-
@driver = value
|
40178
|
-
end
|
40179
|
-
|
40180
39887
|
#
|
40181
39888
|
# Returns the value of the `host` attribute.
|
40182
39889
|
#
|
@@ -40430,8 +40137,6 @@ module OvirtSDK4
|
|
40430
40137
|
#
|
40431
40138
|
# @option opts [String] :description The value of attribute `description`.
|
40432
40139
|
#
|
40433
|
-
# @option opts [String] :driver The value of attribute `driver`.
|
40434
|
-
#
|
40435
40140
|
# @option opts [Host, Hash] :host The value of attribute `host`.
|
40436
40141
|
#
|
40437
40142
|
# @option opts [String] :id The value of attribute `id`.
|
@@ -40458,7 +40163,6 @@ module OvirtSDK4
|
|
40458
40163
|
def initialize(opts = {})
|
40459
40164
|
super(opts)
|
40460
40165
|
self.capability = opts[:capability]
|
40461
|
-
self.driver = opts[:driver]
|
40462
40166
|
self.host = opts[:host]
|
40463
40167
|
self.iommu_group = opts[:iommu_group]
|
40464
40168
|
self.parent_device = opts[:parent_device]
|
@@ -40476,7 +40180,6 @@ module OvirtSDK4
|
|
40476
40180
|
def ==(other)
|
40477
40181
|
super &&
|
40478
40182
|
@capability == other.capability &&
|
40479
|
-
@driver == other.driver &&
|
40480
40183
|
@host == other.host &&
|
40481
40184
|
@iommu_group == other.iommu_group &&
|
40482
40185
|
@parent_device == other.parent_device &&
|
@@ -40494,7 +40197,6 @@ module OvirtSDK4
|
|
40494
40197
|
def hash
|
40495
40198
|
super +
|
40496
40199
|
@capability.hash +
|
40497
|
-
@driver.hash +
|
40498
40200
|
@host.hash +
|
40499
40201
|
@iommu_group.hash +
|
40500
40202
|
@parent_device.hash +
|
@@ -42172,6 +41874,32 @@ module OvirtSDK4
|
|
42172
41874
|
@network_attachments = list
|
42173
41875
|
end
|
42174
41876
|
|
41877
|
+
#
|
41878
|
+
# Returns the value of the `network_filter_parameters` attribute.
|
41879
|
+
#
|
41880
|
+
# @return [Array<NetworkFilterParameter>]
|
41881
|
+
#
|
41882
|
+
def network_filter_parameters
|
41883
|
+
@network_filter_parameters
|
41884
|
+
end
|
41885
|
+
|
41886
|
+
#
|
41887
|
+
# Sets the value of the `network_filter_parameters` attribute.
|
41888
|
+
#
|
41889
|
+
# @param list [Array<NetworkFilterParameter>]
|
41890
|
+
#
|
41891
|
+
def network_filter_parameters=(list)
|
41892
|
+
if list.class == Array
|
41893
|
+
list = List.new(list)
|
41894
|
+
list.each_with_index do |value, index|
|
41895
|
+
if value.is_a?(Hash)
|
41896
|
+
list[index] = NetworkFilterParameter.new(value)
|
41897
|
+
end
|
41898
|
+
end
|
41899
|
+
end
|
41900
|
+
@network_filter_parameters = list
|
41901
|
+
end
|
41902
|
+
|
42175
41903
|
#
|
42176
41904
|
# Returns the value of the `network_labels` attribute.
|
42177
41905
|
#
|
@@ -42468,6 +42196,8 @@ module OvirtSDK4
|
|
42468
42196
|
#
|
42469
42197
|
# @option opts [Array<NetworkAttachment>, Array<Hash>] :network_attachments The values of attribute `network_attachments`.
|
42470
42198
|
#
|
42199
|
+
# @option opts [Array<NetworkFilterParameter>, Array<Hash>] :network_filter_parameters The values of attribute `network_filter_parameters`.
|
42200
|
+
#
|
42471
42201
|
# @option opts [Array<NetworkLabel>, Array<Hash>] :network_labels The values of attribute `network_labels`.
|
42472
42202
|
#
|
42473
42203
|
# @option opts [Boolean] :on_boot The value of attribute `on_boot`.
|
@@ -42499,6 +42229,7 @@ module OvirtSDK4
|
|
42499
42229
|
self.mac = opts[:mac]
|
42500
42230
|
self.network = opts[:network]
|
42501
42231
|
self.network_attachments = opts[:network_attachments]
|
42232
|
+
self.network_filter_parameters = opts[:network_filter_parameters]
|
42502
42233
|
self.network_labels = opts[:network_labels]
|
42503
42234
|
self.on_boot = opts[:on_boot]
|
42504
42235
|
self.plugged = opts[:plugged]
|
@@ -42520,6 +42251,7 @@ module OvirtSDK4
|
|
42520
42251
|
@mac == other.mac &&
|
42521
42252
|
@network == other.network &&
|
42522
42253
|
@network_attachments == other.network_attachments &&
|
42254
|
+
@network_filter_parameters == other.network_filter_parameters &&
|
42523
42255
|
@network_labels == other.network_labels &&
|
42524
42256
|
@on_boot == other.on_boot &&
|
42525
42257
|
@plugged == other.plugged &&
|
@@ -42541,6 +42273,7 @@ module OvirtSDK4
|
|
42541
42273
|
@mac.hash +
|
42542
42274
|
@network.hash +
|
42543
42275
|
@network_attachments.hash +
|
42276
|
+
@network_filter_parameters.hash +
|
42544
42277
|
@network_labels.hash +
|
42545
42278
|
@on_boot.hash +
|
42546
42279
|
@plugged.hash +
|
@@ -52649,6 +52382,7 @@ module OvirtSDK4
|
|
52649
52382
|
end
|
52650
52383
|
|
52651
52384
|
module NetworkUsage
|
52385
|
+
DEFAULT_ROUTE = 'default_route'.freeze
|
52652
52386
|
DISPLAY = 'display'.freeze
|
52653
52387
|
GLUSTER = 'gluster'.freeze
|
52654
52388
|
MANAGEMENT = 'management'.freeze
|