ovirt-engine-sdk 4.0.12 → 4.1.0.alpha2
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 +50 -33
- data/ext/ovirtsdk4c/extconf.rb +7 -17
- data/ext/ovirtsdk4c/ov_http_client.c +0 -36
- data/lib/ovirtsdk4/connection.rb +13 -47
- data/lib/ovirtsdk4/reader.rb +3 -40
- data/lib/ovirtsdk4/readers.rb +409 -107
- data/lib/ovirtsdk4/services.rb +1983 -4279
- data/lib/ovirtsdk4/types.rb +1033 -21
- data/lib/ovirtsdk4/version.rb +1 -1
- data/lib/ovirtsdk4/writer.rb +2 -2
- data/lib/ovirtsdk4/writers.rb +147 -24
- metadata +8 -8
data/lib/ovirtsdk4/types.rb
CHANGED
@@ -20,6 +20,9 @@ module OvirtSDK4
|
|
20
20
|
#
|
21
21
|
# These forward declarations are required in order to avoid circular dependencies.
|
22
22
|
#
|
23
|
+
class AffinityRule < Struct
|
24
|
+
end
|
25
|
+
|
23
26
|
class AgentConfiguration < Struct
|
24
27
|
end
|
25
28
|
|
@@ -80,6 +83,9 @@ module OvirtSDK4
|
|
80
83
|
class Dns < Struct
|
81
84
|
end
|
82
85
|
|
86
|
+
class DnsResolverConfiguration < Struct
|
87
|
+
end
|
88
|
+
|
83
89
|
class EntityProfileDetail < Struct
|
84
90
|
end
|
85
91
|
|
@@ -422,6 +428,9 @@ module OvirtSDK4
|
|
422
428
|
class VnicProfile < Identified
|
423
429
|
end
|
424
430
|
|
431
|
+
class VnicProfileMapping < Struct
|
432
|
+
end
|
433
|
+
|
425
434
|
class VolumeGroup < Struct
|
426
435
|
end
|
427
436
|
|
@@ -596,6 +605,105 @@ module OvirtSDK4
|
|
596
605
|
class Snapshot < Vm
|
597
606
|
end
|
598
607
|
|
608
|
+
class AffinityRule < Struct
|
609
|
+
|
610
|
+
#
|
611
|
+
# Returns the value of the `enabled` attribute.
|
612
|
+
#
|
613
|
+
# @return [Boolean]
|
614
|
+
#
|
615
|
+
def enabled
|
616
|
+
@enabled
|
617
|
+
end
|
618
|
+
|
619
|
+
#
|
620
|
+
# Sets the value of the `enabled` attribute.
|
621
|
+
#
|
622
|
+
# @param value [Boolean]
|
623
|
+
#
|
624
|
+
def enabled=(value)
|
625
|
+
@enabled = value
|
626
|
+
end
|
627
|
+
|
628
|
+
#
|
629
|
+
# Returns the value of the `enforcing` attribute.
|
630
|
+
#
|
631
|
+
# @return [Boolean]
|
632
|
+
#
|
633
|
+
def enforcing
|
634
|
+
@enforcing
|
635
|
+
end
|
636
|
+
|
637
|
+
#
|
638
|
+
# Sets the value of the `enforcing` attribute.
|
639
|
+
#
|
640
|
+
# @param value [Boolean]
|
641
|
+
#
|
642
|
+
def enforcing=(value)
|
643
|
+
@enforcing = value
|
644
|
+
end
|
645
|
+
|
646
|
+
#
|
647
|
+
# Returns the value of the `positive` attribute.
|
648
|
+
#
|
649
|
+
# @return [Boolean]
|
650
|
+
#
|
651
|
+
def positive
|
652
|
+
@positive
|
653
|
+
end
|
654
|
+
|
655
|
+
#
|
656
|
+
# Sets the value of the `positive` attribute.
|
657
|
+
#
|
658
|
+
# @param value [Boolean]
|
659
|
+
#
|
660
|
+
def positive=(value)
|
661
|
+
@positive = value
|
662
|
+
end
|
663
|
+
|
664
|
+
#
|
665
|
+
# Creates a new instance of the {AffinityRule} class.
|
666
|
+
#
|
667
|
+
# @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
|
668
|
+
# should be symbols corresponding to the names of the attributes. The values of the hash
|
669
|
+
# should be the values of the attributes.
|
670
|
+
#
|
671
|
+
# @option opts [Boolean] :enabled The value of attribute `enabled`.
|
672
|
+
#
|
673
|
+
# @option opts [Boolean] :enforcing The value of attribute `enforcing`.
|
674
|
+
#
|
675
|
+
# @option opts [Boolean] :positive The value of attribute `positive`.
|
676
|
+
#
|
677
|
+
#
|
678
|
+
def initialize(opts = {})
|
679
|
+
super(opts)
|
680
|
+
self.enabled = opts[:enabled]
|
681
|
+
self.enforcing = opts[:enforcing]
|
682
|
+
self.positive = opts[:positive]
|
683
|
+
end
|
684
|
+
|
685
|
+
#
|
686
|
+
# Returns `true` if `self` and `other` have the same attributes and values.
|
687
|
+
#
|
688
|
+
def ==(other)
|
689
|
+
super &&
|
690
|
+
@enabled == other.enabled &&
|
691
|
+
@enforcing == other.enforcing &&
|
692
|
+
@positive == other.positive
|
693
|
+
end
|
694
|
+
|
695
|
+
#
|
696
|
+
# Generates a hash value for this object.
|
697
|
+
#
|
698
|
+
def hash
|
699
|
+
super +
|
700
|
+
@enabled.hash +
|
701
|
+
@enforcing.hash +
|
702
|
+
@positive.hash
|
703
|
+
end
|
704
|
+
|
705
|
+
end
|
706
|
+
|
599
707
|
class AgentConfiguration < Struct
|
600
708
|
|
601
709
|
#
|
@@ -1256,6 +1364,31 @@ module OvirtSDK4
|
|
1256
1364
|
|
1257
1365
|
class Bonding < Struct
|
1258
1366
|
|
1367
|
+
#
|
1368
|
+
# Returns the value of the `active_slave` attribute.
|
1369
|
+
#
|
1370
|
+
# @return [HostNic]
|
1371
|
+
#
|
1372
|
+
def active_slave
|
1373
|
+
@active_slave
|
1374
|
+
end
|
1375
|
+
|
1376
|
+
#
|
1377
|
+
# Sets the value of the `active_slave` attribute.
|
1378
|
+
#
|
1379
|
+
# @param value [HostNic, Hash]
|
1380
|
+
#
|
1381
|
+
# The `value` parameter can be an instance of {OvirtSDK4::HostNic} or a hash.
|
1382
|
+
# If it is a hash then a new instance will be created passing the hash as the
|
1383
|
+
# `opts` parameter to the constructor.
|
1384
|
+
#
|
1385
|
+
def active_slave=(value)
|
1386
|
+
if value.is_a?(Hash)
|
1387
|
+
value = HostNic.new(value)
|
1388
|
+
end
|
1389
|
+
@active_slave = value
|
1390
|
+
end
|
1391
|
+
|
1259
1392
|
#
|
1260
1393
|
# Returns the value of the `ad_partner_mac` attribute.
|
1261
1394
|
#
|
@@ -1340,6 +1473,8 @@ module OvirtSDK4
|
|
1340
1473
|
# should be symbols corresponding to the names of the attributes. The values of the hash
|
1341
1474
|
# should be the values of the attributes.
|
1342
1475
|
#
|
1476
|
+
# @option opts [HostNic, Hash] :active_slave The value of attribute `active_slave`.
|
1477
|
+
#
|
1343
1478
|
# @option opts [Mac, Hash] :ad_partner_mac The value of attribute `ad_partner_mac`.
|
1344
1479
|
#
|
1345
1480
|
# @option opts [Array<Option>, Array<Hash>] :options The values of attribute `options`.
|
@@ -1349,6 +1484,7 @@ module OvirtSDK4
|
|
1349
1484
|
#
|
1350
1485
|
def initialize(opts = {})
|
1351
1486
|
super(opts)
|
1487
|
+
self.active_slave = opts[:active_slave]
|
1352
1488
|
self.ad_partner_mac = opts[:ad_partner_mac]
|
1353
1489
|
self.options = opts[:options]
|
1354
1490
|
self.slaves = opts[:slaves]
|
@@ -1359,6 +1495,7 @@ module OvirtSDK4
|
|
1359
1495
|
#
|
1360
1496
|
def ==(other)
|
1361
1497
|
super &&
|
1498
|
+
@active_slave == other.active_slave &&
|
1362
1499
|
@ad_partner_mac == other.ad_partner_mac &&
|
1363
1500
|
@options == other.options &&
|
1364
1501
|
@slaves == other.slaves
|
@@ -1369,6 +1506,7 @@ module OvirtSDK4
|
|
1369
1506
|
#
|
1370
1507
|
def hash
|
1371
1508
|
super +
|
1509
|
+
@active_slave.hash +
|
1372
1510
|
@ad_partner_mac.hash +
|
1373
1511
|
@options.hash +
|
1374
1512
|
@slaves.hash
|
@@ -2044,7 +2182,7 @@ module OvirtSDK4
|
|
2044
2182
|
#
|
2045
2183
|
# Returns the value of the `speed` attribute.
|
2046
2184
|
#
|
2047
|
-
# @return [
|
2185
|
+
# @return [Fixnum]
|
2048
2186
|
#
|
2049
2187
|
def speed
|
2050
2188
|
@speed
|
@@ -2053,7 +2191,7 @@ module OvirtSDK4
|
|
2053
2191
|
#
|
2054
2192
|
# Sets the value of the `speed` attribute.
|
2055
2193
|
#
|
2056
|
-
# @param value [
|
2194
|
+
# @param value [Fixnum]
|
2057
2195
|
#
|
2058
2196
|
def speed=(value)
|
2059
2197
|
@speed = value
|
@@ -2121,7 +2259,7 @@ module OvirtSDK4
|
|
2121
2259
|
#
|
2122
2260
|
# @option opts [String] :name The value of attribute `name`.
|
2123
2261
|
#
|
2124
|
-
# @option opts [
|
2262
|
+
# @option opts [Fixnum] :speed The value of attribute `speed`.
|
2125
2263
|
#
|
2126
2264
|
# @option opts [CpuTopology, Hash] :topology The value of attribute `topology`.
|
2127
2265
|
#
|
@@ -2984,6 +3122,59 @@ module OvirtSDK4
|
|
2984
3122
|
|
2985
3123
|
end
|
2986
3124
|
|
3125
|
+
class DnsResolverConfiguration < Struct
|
3126
|
+
|
3127
|
+
#
|
3128
|
+
# Returns the value of the `name_servers` attribute.
|
3129
|
+
#
|
3130
|
+
# @return [Array<String>]
|
3131
|
+
#
|
3132
|
+
def name_servers
|
3133
|
+
@name_servers
|
3134
|
+
end
|
3135
|
+
|
3136
|
+
#
|
3137
|
+
# Sets the value of the `name_servers` attribute.
|
3138
|
+
#
|
3139
|
+
# @param list [Array<String>]
|
3140
|
+
#
|
3141
|
+
def name_servers=(list)
|
3142
|
+
@name_servers = list
|
3143
|
+
end
|
3144
|
+
|
3145
|
+
#
|
3146
|
+
# Creates a new instance of the {DnsResolverConfiguration} class.
|
3147
|
+
#
|
3148
|
+
# @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
|
3149
|
+
# should be symbols corresponding to the names of the attributes. The values of the hash
|
3150
|
+
# should be the values of the attributes.
|
3151
|
+
#
|
3152
|
+
# @option opts [Array<String>, Array<Hash>] :name_servers The values of attribute `name_servers`.
|
3153
|
+
#
|
3154
|
+
#
|
3155
|
+
def initialize(opts = {})
|
3156
|
+
super(opts)
|
3157
|
+
self.name_servers = opts[:name_servers]
|
3158
|
+
end
|
3159
|
+
|
3160
|
+
#
|
3161
|
+
# Returns `true` if `self` and `other` have the same attributes and values.
|
3162
|
+
#
|
3163
|
+
def ==(other)
|
3164
|
+
super &&
|
3165
|
+
@name_servers == other.name_servers
|
3166
|
+
end
|
3167
|
+
|
3168
|
+
#
|
3169
|
+
# Generates a hash value for this object.
|
3170
|
+
#
|
3171
|
+
def hash
|
3172
|
+
super +
|
3173
|
+
@name_servers.hash
|
3174
|
+
end
|
3175
|
+
|
3176
|
+
end
|
3177
|
+
|
2987
3178
|
class EntityProfileDetail < Struct
|
2988
3179
|
|
2989
3180
|
#
|
@@ -3597,6 +3788,42 @@ module OvirtSDK4
|
|
3597
3788
|
@skip_if_connectivity_broken = value
|
3598
3789
|
end
|
3599
3790
|
|
3791
|
+
#
|
3792
|
+
# Returns the value of the `skip_if_gluster_bricks_up` attribute.
|
3793
|
+
#
|
3794
|
+
# @return [Boolean]
|
3795
|
+
#
|
3796
|
+
def skip_if_gluster_bricks_up
|
3797
|
+
@skip_if_gluster_bricks_up
|
3798
|
+
end
|
3799
|
+
|
3800
|
+
#
|
3801
|
+
# Sets the value of the `skip_if_gluster_bricks_up` attribute.
|
3802
|
+
#
|
3803
|
+
# @param value [Boolean]
|
3804
|
+
#
|
3805
|
+
def skip_if_gluster_bricks_up=(value)
|
3806
|
+
@skip_if_gluster_bricks_up = value
|
3807
|
+
end
|
3808
|
+
|
3809
|
+
#
|
3810
|
+
# Returns the value of the `skip_if_gluster_quorum_not_met` attribute.
|
3811
|
+
#
|
3812
|
+
# @return [Boolean]
|
3813
|
+
#
|
3814
|
+
def skip_if_gluster_quorum_not_met
|
3815
|
+
@skip_if_gluster_quorum_not_met
|
3816
|
+
end
|
3817
|
+
|
3818
|
+
#
|
3819
|
+
# Sets the value of the `skip_if_gluster_quorum_not_met` attribute.
|
3820
|
+
#
|
3821
|
+
# @param value [Boolean]
|
3822
|
+
#
|
3823
|
+
def skip_if_gluster_quorum_not_met=(value)
|
3824
|
+
@skip_if_gluster_quorum_not_met = value
|
3825
|
+
end
|
3826
|
+
|
3600
3827
|
#
|
3601
3828
|
# Returns the value of the `skip_if_sd_active` attribute.
|
3602
3829
|
#
|
@@ -3633,6 +3860,10 @@ module OvirtSDK4
|
|
3633
3860
|
#
|
3634
3861
|
# @option opts [SkipIfConnectivityBroken, Hash] :skip_if_connectivity_broken The value of attribute `skip_if_connectivity_broken`.
|
3635
3862
|
#
|
3863
|
+
# @option opts [Boolean] :skip_if_gluster_bricks_up The value of attribute `skip_if_gluster_bricks_up`.
|
3864
|
+
#
|
3865
|
+
# @option opts [Boolean] :skip_if_gluster_quorum_not_met The value of attribute `skip_if_gluster_quorum_not_met`.
|
3866
|
+
#
|
3636
3867
|
# @option opts [SkipIfSdActive, Hash] :skip_if_sd_active The value of attribute `skip_if_sd_active`.
|
3637
3868
|
#
|
3638
3869
|
#
|
@@ -3640,6 +3871,8 @@ module OvirtSDK4
|
|
3640
3871
|
super(opts)
|
3641
3872
|
self.enabled = opts[:enabled]
|
3642
3873
|
self.skip_if_connectivity_broken = opts[:skip_if_connectivity_broken]
|
3874
|
+
self.skip_if_gluster_bricks_up = opts[:skip_if_gluster_bricks_up]
|
3875
|
+
self.skip_if_gluster_quorum_not_met = opts[:skip_if_gluster_quorum_not_met]
|
3643
3876
|
self.skip_if_sd_active = opts[:skip_if_sd_active]
|
3644
3877
|
end
|
3645
3878
|
|
@@ -3650,6 +3883,8 @@ module OvirtSDK4
|
|
3650
3883
|
super &&
|
3651
3884
|
@enabled == other.enabled &&
|
3652
3885
|
@skip_if_connectivity_broken == other.skip_if_connectivity_broken &&
|
3886
|
+
@skip_if_gluster_bricks_up == other.skip_if_gluster_bricks_up &&
|
3887
|
+
@skip_if_gluster_quorum_not_met == other.skip_if_gluster_quorum_not_met &&
|
3653
3888
|
@skip_if_sd_active == other.skip_if_sd_active
|
3654
3889
|
end
|
3655
3890
|
|
@@ -3660,6 +3895,8 @@ module OvirtSDK4
|
|
3660
3895
|
super +
|
3661
3896
|
@enabled.hash +
|
3662
3897
|
@skip_if_connectivity_broken.hash +
|
3898
|
+
@skip_if_gluster_bricks_up.hash +
|
3899
|
+
@skip_if_gluster_quorum_not_met.hash +
|
3663
3900
|
@skip_if_sd_active.hash
|
3664
3901
|
end
|
3665
3902
|
|
@@ -5031,6 +5268,24 @@ module OvirtSDK4
|
|
5031
5268
|
@description = value
|
5032
5269
|
end
|
5033
5270
|
|
5271
|
+
#
|
5272
|
+
# Returns the value of the `direction` attribute.
|
5273
|
+
#
|
5274
|
+
# @return [ImageTransferDirection]
|
5275
|
+
#
|
5276
|
+
def direction
|
5277
|
+
@direction
|
5278
|
+
end
|
5279
|
+
|
5280
|
+
#
|
5281
|
+
# Sets the value of the `direction` attribute.
|
5282
|
+
#
|
5283
|
+
# @param value [ImageTransferDirection]
|
5284
|
+
#
|
5285
|
+
def direction=(value)
|
5286
|
+
@direction = value
|
5287
|
+
end
|
5288
|
+
|
5034
5289
|
#
|
5035
5290
|
# Returns the value of the `host` attribute.
|
5036
5291
|
#
|
@@ -5182,6 +5437,8 @@ module OvirtSDK4
|
|
5182
5437
|
#
|
5183
5438
|
# @option opts [String] :description The value of attribute `description`.
|
5184
5439
|
#
|
5440
|
+
# @option opts [ImageTransferDirection] :direction The value of attribute `direction`.
|
5441
|
+
#
|
5185
5442
|
# @option opts [Host, Hash] :host The value of attribute `host`.
|
5186
5443
|
#
|
5187
5444
|
# @option opts [String] :id The value of attribute `id`.
|
@@ -5199,6 +5456,7 @@ module OvirtSDK4
|
|
5199
5456
|
#
|
5200
5457
|
def initialize(opts = {})
|
5201
5458
|
super(opts)
|
5459
|
+
self.direction = opts[:direction]
|
5202
5460
|
self.host = opts[:host]
|
5203
5461
|
self.image = opts[:image]
|
5204
5462
|
self.phase = opts[:phase]
|
@@ -5211,6 +5469,7 @@ module OvirtSDK4
|
|
5211
5469
|
#
|
5212
5470
|
def ==(other)
|
5213
5471
|
super &&
|
5472
|
+
@direction == other.direction &&
|
5214
5473
|
@host == other.host &&
|
5215
5474
|
@image == other.image &&
|
5216
5475
|
@phase == other.phase &&
|
@@ -5223,6 +5482,7 @@ module OvirtSDK4
|
|
5223
5482
|
#
|
5224
5483
|
def hash
|
5225
5484
|
super +
|
5485
|
+
@direction.hash +
|
5226
5486
|
@host.hash +
|
5227
5487
|
@image.hash +
|
5228
5488
|
@phase.hash +
|
@@ -7452,6 +7712,42 @@ module OvirtSDK4
|
|
7452
7712
|
@address = value
|
7453
7713
|
end
|
7454
7714
|
|
7715
|
+
#
|
7716
|
+
# Returns the value of the `discard_max_size` attribute.
|
7717
|
+
#
|
7718
|
+
# @return [Integer]
|
7719
|
+
#
|
7720
|
+
def discard_max_size
|
7721
|
+
@discard_max_size
|
7722
|
+
end
|
7723
|
+
|
7724
|
+
#
|
7725
|
+
# Sets the value of the `discard_max_size` attribute.
|
7726
|
+
#
|
7727
|
+
# @param value [Integer]
|
7728
|
+
#
|
7729
|
+
def discard_max_size=(value)
|
7730
|
+
@discard_max_size = value
|
7731
|
+
end
|
7732
|
+
|
7733
|
+
#
|
7734
|
+
# Returns the value of the `discard_zeroes_data` attribute.
|
7735
|
+
#
|
7736
|
+
# @return [Boolean]
|
7737
|
+
#
|
7738
|
+
def discard_zeroes_data
|
7739
|
+
@discard_zeroes_data
|
7740
|
+
end
|
7741
|
+
|
7742
|
+
#
|
7743
|
+
# Sets the value of the `discard_zeroes_data` attribute.
|
7744
|
+
#
|
7745
|
+
# @param value [Boolean]
|
7746
|
+
#
|
7747
|
+
def discard_zeroes_data=(value)
|
7748
|
+
@discard_zeroes_data = value
|
7749
|
+
end
|
7750
|
+
|
7455
7751
|
#
|
7456
7752
|
# Returns the value of the `disk_id` attribute.
|
7457
7753
|
#
|
@@ -7749,6 +8045,10 @@ module OvirtSDK4
|
|
7749
8045
|
#
|
7750
8046
|
# @option opts [String] :address The value of attribute `address`.
|
7751
8047
|
#
|
8048
|
+
# @option opts [Integer] :discard_max_size The value of attribute `discard_max_size`.
|
8049
|
+
#
|
8050
|
+
# @option opts [Boolean] :discard_zeroes_data The value of attribute `discard_zeroes_data`.
|
8051
|
+
#
|
7752
8052
|
# @option opts [String] :disk_id The value of attribute `disk_id`.
|
7753
8053
|
#
|
7754
8054
|
# @option opts [String] :id The value of attribute `id`.
|
@@ -7785,6 +8085,8 @@ module OvirtSDK4
|
|
7785
8085
|
def initialize(opts = {})
|
7786
8086
|
super(opts)
|
7787
8087
|
self.address = opts[:address]
|
8088
|
+
self.discard_max_size = opts[:discard_max_size]
|
8089
|
+
self.discard_zeroes_data = opts[:discard_zeroes_data]
|
7788
8090
|
self.disk_id = opts[:disk_id]
|
7789
8091
|
self.id = opts[:id]
|
7790
8092
|
self.lun_mapping = opts[:lun_mapping]
|
@@ -7809,6 +8111,8 @@ module OvirtSDK4
|
|
7809
8111
|
def ==(other)
|
7810
8112
|
super &&
|
7811
8113
|
@address == other.address &&
|
8114
|
+
@discard_max_size == other.discard_max_size &&
|
8115
|
+
@discard_zeroes_data == other.discard_zeroes_data &&
|
7812
8116
|
@disk_id == other.disk_id &&
|
7813
8117
|
@id == other.id &&
|
7814
8118
|
@lun_mapping == other.lun_mapping &&
|
@@ -7833,6 +8137,8 @@ module OvirtSDK4
|
|
7833
8137
|
def hash
|
7834
8138
|
super +
|
7835
8139
|
@address.hash +
|
8140
|
+
@discard_max_size.hash +
|
8141
|
+
@discard_zeroes_data.hash +
|
7836
8142
|
@disk_id.hash +
|
7837
8143
|
@id.hash +
|
7838
8144
|
@lun_mapping.hash +
|
@@ -8184,6 +8490,24 @@ module OvirtSDK4
|
|
8184
8490
|
@guaranteed = value
|
8185
8491
|
end
|
8186
8492
|
|
8493
|
+
#
|
8494
|
+
# Returns the value of the `max` attribute.
|
8495
|
+
#
|
8496
|
+
# @return [Integer]
|
8497
|
+
#
|
8498
|
+
def max
|
8499
|
+
@max
|
8500
|
+
end
|
8501
|
+
|
8502
|
+
#
|
8503
|
+
# Sets the value of the `max` attribute.
|
8504
|
+
#
|
8505
|
+
# @param value [Integer]
|
8506
|
+
#
|
8507
|
+
def max=(value)
|
8508
|
+
@max = value
|
8509
|
+
end
|
8510
|
+
|
8187
8511
|
#
|
8188
8512
|
# Returns the value of the `over_commit` attribute.
|
8189
8513
|
#
|
@@ -8245,6 +8569,8 @@ module OvirtSDK4
|
|
8245
8569
|
#
|
8246
8570
|
# @option opts [Integer] :guaranteed The value of attribute `guaranteed`.
|
8247
8571
|
#
|
8572
|
+
# @option opts [Integer] :max The value of attribute `max`.
|
8573
|
+
#
|
8248
8574
|
# @option opts [MemoryOverCommit, Hash] :over_commit The value of attribute `over_commit`.
|
8249
8575
|
#
|
8250
8576
|
# @option opts [TransparentHugePages, Hash] :transparent_huge_pages The value of attribute `transparent_huge_pages`.
|
@@ -8254,6 +8580,7 @@ module OvirtSDK4
|
|
8254
8580
|
super(opts)
|
8255
8581
|
self.ballooning = opts[:ballooning]
|
8256
8582
|
self.guaranteed = opts[:guaranteed]
|
8583
|
+
self.max = opts[:max]
|
8257
8584
|
self.over_commit = opts[:over_commit]
|
8258
8585
|
self.transparent_huge_pages = opts[:transparent_huge_pages]
|
8259
8586
|
end
|
@@ -8265,6 +8592,7 @@ module OvirtSDK4
|
|
8265
8592
|
super &&
|
8266
8593
|
@ballooning == other.ballooning &&
|
8267
8594
|
@guaranteed == other.guaranteed &&
|
8595
|
+
@max == other.max &&
|
8268
8596
|
@over_commit == other.over_commit &&
|
8269
8597
|
@transparent_huge_pages == other.transparent_huge_pages
|
8270
8598
|
end
|
@@ -8276,6 +8604,7 @@ module OvirtSDK4
|
|
8276
8604
|
super +
|
8277
8605
|
@ballooning.hash +
|
8278
8606
|
@guaranteed.hash +
|
8607
|
+
@max.hash +
|
8279
8608
|
@over_commit.hash +
|
8280
8609
|
@transparent_huge_pages.hash
|
8281
8610
|
end
|
@@ -8749,6 +9078,31 @@ module OvirtSDK4
|
|
8749
9078
|
@display = value
|
8750
9079
|
end
|
8751
9080
|
|
9081
|
+
#
|
9082
|
+
# Returns the value of the `dns_resolver_configuration` attribute.
|
9083
|
+
#
|
9084
|
+
# @return [DnsResolverConfiguration]
|
9085
|
+
#
|
9086
|
+
def dns_resolver_configuration
|
9087
|
+
@dns_resolver_configuration
|
9088
|
+
end
|
9089
|
+
|
9090
|
+
#
|
9091
|
+
# Sets the value of the `dns_resolver_configuration` attribute.
|
9092
|
+
#
|
9093
|
+
# @param value [DnsResolverConfiguration, Hash]
|
9094
|
+
#
|
9095
|
+
# The `value` parameter can be an instance of {OvirtSDK4::DnsResolverConfiguration} or a hash.
|
9096
|
+
# If it is a hash then a new instance will be created passing the hash as the
|
9097
|
+
# `opts` parameter to the constructor.
|
9098
|
+
#
|
9099
|
+
def dns_resolver_configuration=(value)
|
9100
|
+
if value.is_a?(Hash)
|
9101
|
+
value = DnsResolverConfiguration.new(value)
|
9102
|
+
end
|
9103
|
+
@dns_resolver_configuration = value
|
9104
|
+
end
|
9105
|
+
|
8752
9106
|
#
|
8753
9107
|
# Returns the value of the `id` attribute.
|
8754
9108
|
#
|
@@ -9063,6 +9417,8 @@ module OvirtSDK4
|
|
9063
9417
|
#
|
9064
9418
|
# @option opts [Boolean] :display The value of attribute `display`.
|
9065
9419
|
#
|
9420
|
+
# @option opts [DnsResolverConfiguration, Hash] :dns_resolver_configuration The value of attribute `dns_resolver_configuration`.
|
9421
|
+
#
|
9066
9422
|
# @option opts [String] :id The value of attribute `id`.
|
9067
9423
|
#
|
9068
9424
|
# @option opts [Ip, Hash] :ip The value of attribute `ip`.
|
@@ -9097,6 +9453,7 @@ module OvirtSDK4
|
|
9097
9453
|
self.cluster = opts[:cluster]
|
9098
9454
|
self.data_center = opts[:data_center]
|
9099
9455
|
self.display = opts[:display]
|
9456
|
+
self.dns_resolver_configuration = opts[:dns_resolver_configuration]
|
9100
9457
|
self.ip = opts[:ip]
|
9101
9458
|
self.mtu = opts[:mtu]
|
9102
9459
|
self.network_labels = opts[:network_labels]
|
@@ -9119,6 +9476,7 @@ module OvirtSDK4
|
|
9119
9476
|
@cluster == other.cluster &&
|
9120
9477
|
@data_center == other.data_center &&
|
9121
9478
|
@display == other.display &&
|
9479
|
+
@dns_resolver_configuration == other.dns_resolver_configuration &&
|
9122
9480
|
@ip == other.ip &&
|
9123
9481
|
@mtu == other.mtu &&
|
9124
9482
|
@network_labels == other.network_labels &&
|
@@ -9141,6 +9499,7 @@ module OvirtSDK4
|
|
9141
9499
|
@cluster.hash +
|
9142
9500
|
@data_center.hash +
|
9143
9501
|
@display.hash +
|
9502
|
+
@dns_resolver_configuration.hash +
|
9144
9503
|
@ip.hash +
|
9145
9504
|
@mtu.hash +
|
9146
9505
|
@network_labels.hash +
|
@@ -9195,6 +9554,31 @@ module OvirtSDK4
|
|
9195
9554
|
@description = value
|
9196
9555
|
end
|
9197
9556
|
|
9557
|
+
#
|
9558
|
+
# Returns the value of the `dns_resolver_configuration` attribute.
|
9559
|
+
#
|
9560
|
+
# @return [DnsResolverConfiguration]
|
9561
|
+
#
|
9562
|
+
def dns_resolver_configuration
|
9563
|
+
@dns_resolver_configuration
|
9564
|
+
end
|
9565
|
+
|
9566
|
+
#
|
9567
|
+
# Sets the value of the `dns_resolver_configuration` attribute.
|
9568
|
+
#
|
9569
|
+
# @param value [DnsResolverConfiguration, Hash]
|
9570
|
+
#
|
9571
|
+
# The `value` parameter can be an instance of {OvirtSDK4::DnsResolverConfiguration} or a hash.
|
9572
|
+
# If it is a hash then a new instance will be created passing the hash as the
|
9573
|
+
# `opts` parameter to the constructor.
|
9574
|
+
#
|
9575
|
+
def dns_resolver_configuration=(value)
|
9576
|
+
if value.is_a?(Hash)
|
9577
|
+
value = DnsResolverConfiguration.new(value)
|
9578
|
+
end
|
9579
|
+
@dns_resolver_configuration = value
|
9580
|
+
end
|
9581
|
+
|
9198
9582
|
#
|
9199
9583
|
# Returns the value of the `host` attribute.
|
9200
9584
|
#
|
@@ -9438,6 +9822,8 @@ module OvirtSDK4
|
|
9438
9822
|
#
|
9439
9823
|
# @option opts [String] :description The value of attribute `description`.
|
9440
9824
|
#
|
9825
|
+
# @option opts [DnsResolverConfiguration, Hash] :dns_resolver_configuration The value of attribute `dns_resolver_configuration`.
|
9826
|
+
#
|
9441
9827
|
# @option opts [Host, Hash] :host The value of attribute `host`.
|
9442
9828
|
#
|
9443
9829
|
# @option opts [HostNic, Hash] :host_nic The value of attribute `host_nic`.
|
@@ -9461,6 +9847,7 @@ module OvirtSDK4
|
|
9461
9847
|
#
|
9462
9848
|
def initialize(opts = {})
|
9463
9849
|
super(opts)
|
9850
|
+
self.dns_resolver_configuration = opts[:dns_resolver_configuration]
|
9464
9851
|
self.host = opts[:host]
|
9465
9852
|
self.host_nic = opts[:host_nic]
|
9466
9853
|
self.in_sync = opts[:in_sync]
|
@@ -9476,6 +9863,7 @@ module OvirtSDK4
|
|
9476
9863
|
#
|
9477
9864
|
def ==(other)
|
9478
9865
|
super &&
|
9866
|
+
@dns_resolver_configuration == other.dns_resolver_configuration &&
|
9479
9867
|
@host == other.host &&
|
9480
9868
|
@host_nic == other.host_nic &&
|
9481
9869
|
@in_sync == other.in_sync &&
|
@@ -9491,6 +9879,7 @@ module OvirtSDK4
|
|
9491
9879
|
#
|
9492
9880
|
def hash
|
9493
9881
|
super +
|
9882
|
+
@dns_resolver_configuration.hash +
|
9494
9883
|
@host.hash +
|
9495
9884
|
@host_nic.hash +
|
9496
9885
|
@in_sync.hash +
|
@@ -14574,7 +14963,7 @@ module OvirtSDK4
|
|
14574
14963
|
#
|
14575
14964
|
# Returns the value of the `memory_limit` attribute.
|
14576
14965
|
#
|
14577
|
-
# @return [
|
14966
|
+
# @return [Fixnum]
|
14578
14967
|
#
|
14579
14968
|
def memory_limit
|
14580
14969
|
@memory_limit
|
@@ -14583,7 +14972,7 @@ module OvirtSDK4
|
|
14583
14972
|
#
|
14584
14973
|
# Sets the value of the `memory_limit` attribute.
|
14585
14974
|
#
|
14586
|
-
# @param value [
|
14975
|
+
# @param value [Fixnum]
|
14587
14976
|
#
|
14588
14977
|
def memory_limit=(value)
|
14589
14978
|
@memory_limit = value
|
@@ -14592,7 +14981,7 @@ module OvirtSDK4
|
|
14592
14981
|
#
|
14593
14982
|
# Returns the value of the `memory_usage` attribute.
|
14594
14983
|
#
|
14595
|
-
# @return [
|
14984
|
+
# @return [Fixnum]
|
14596
14985
|
#
|
14597
14986
|
def memory_usage
|
14598
14987
|
@memory_usage
|
@@ -14601,7 +14990,7 @@ module OvirtSDK4
|
|
14601
14990
|
#
|
14602
14991
|
# Sets the value of the `memory_usage` attribute.
|
14603
14992
|
#
|
14604
|
-
# @param value [
|
14993
|
+
# @param value [Fixnum]
|
14605
14994
|
#
|
14606
14995
|
def memory_usage=(value)
|
14607
14996
|
@memory_usage = value
|
@@ -14701,9 +15090,9 @@ module OvirtSDK4
|
|
14701
15090
|
#
|
14702
15091
|
# @option opts [String] :id The value of attribute `id`.
|
14703
15092
|
#
|
14704
|
-
# @option opts [
|
15093
|
+
# @option opts [Fixnum] :memory_limit The value of attribute `memory_limit`.
|
14705
15094
|
#
|
14706
|
-
# @option opts [
|
15095
|
+
# @option opts [Fixnum] :memory_usage The value of attribute `memory_usage`.
|
14707
15096
|
#
|
14708
15097
|
# @option opts [String] :name The value of attribute `name`.
|
14709
15098
|
#
|
@@ -14897,7 +15286,7 @@ module OvirtSDK4
|
|
14897
15286
|
#
|
14898
15287
|
# Returns the value of the `usage` attribute.
|
14899
15288
|
#
|
14900
|
-
# @return [
|
15289
|
+
# @return [Fixnum]
|
14901
15290
|
#
|
14902
15291
|
def usage
|
14903
15292
|
@usage
|
@@ -14906,7 +15295,7 @@ module OvirtSDK4
|
|
14906
15295
|
#
|
14907
15296
|
# Sets the value of the `usage` attribute.
|
14908
15297
|
#
|
14909
|
-
# @param value [
|
15298
|
+
# @param value [Fixnum]
|
14910
15299
|
#
|
14911
15300
|
def usage=(value)
|
14912
15301
|
@usage = value
|
@@ -14933,7 +15322,7 @@ module OvirtSDK4
|
|
14933
15322
|
#
|
14934
15323
|
# @option opts [StorageDomain, Hash] :storage_domain The value of attribute `storage_domain`.
|
14935
15324
|
#
|
14936
|
-
# @option opts [
|
15325
|
+
# @option opts [Fixnum] :usage The value of attribute `usage`.
|
14937
15326
|
#
|
14938
15327
|
#
|
14939
15328
|
def initialize(opts = {})
|
@@ -18035,6 +18424,24 @@ module OvirtSDK4
|
|
18035
18424
|
@parent_step = value
|
18036
18425
|
end
|
18037
18426
|
|
18427
|
+
#
|
18428
|
+
# Returns the value of the `progress` attribute.
|
18429
|
+
#
|
18430
|
+
# @return [Integer]
|
18431
|
+
#
|
18432
|
+
def progress
|
18433
|
+
@progress
|
18434
|
+
end
|
18435
|
+
|
18436
|
+
#
|
18437
|
+
# Sets the value of the `progress` attribute.
|
18438
|
+
#
|
18439
|
+
# @param value [Integer]
|
18440
|
+
#
|
18441
|
+
def progress=(value)
|
18442
|
+
@progress = value
|
18443
|
+
end
|
18444
|
+
|
18038
18445
|
#
|
18039
18446
|
# Returns the value of the `start_time` attribute.
|
18040
18447
|
#
|
@@ -18142,6 +18549,8 @@ module OvirtSDK4
|
|
18142
18549
|
#
|
18143
18550
|
# @option opts [Step, Hash] :parent_step The value of attribute `parent_step`.
|
18144
18551
|
#
|
18552
|
+
# @option opts [Integer] :progress The value of attribute `progress`.
|
18553
|
+
#
|
18145
18554
|
# @option opts [DateTime] :start_time The value of attribute `start_time`.
|
18146
18555
|
#
|
18147
18556
|
# @option opts [Array<Statistic>, Array<Hash>] :statistics The values of attribute `statistics`.
|
@@ -18159,6 +18568,7 @@ module OvirtSDK4
|
|
18159
18568
|
self.job = opts[:job]
|
18160
18569
|
self.number = opts[:number]
|
18161
18570
|
self.parent_step = opts[:parent_step]
|
18571
|
+
self.progress = opts[:progress]
|
18162
18572
|
self.start_time = opts[:start_time]
|
18163
18573
|
self.statistics = opts[:statistics]
|
18164
18574
|
self.status = opts[:status]
|
@@ -18176,6 +18586,7 @@ module OvirtSDK4
|
|
18176
18586
|
@job == other.job &&
|
18177
18587
|
@number == other.number &&
|
18178
18588
|
@parent_step == other.parent_step &&
|
18589
|
+
@progress == other.progress &&
|
18179
18590
|
@start_time == other.start_time &&
|
18180
18591
|
@statistics == other.statistics &&
|
18181
18592
|
@status == other.status &&
|
@@ -18193,6 +18604,7 @@ module OvirtSDK4
|
|
18193
18604
|
@job.hash +
|
18194
18605
|
@number.hash +
|
18195
18606
|
@parent_step.hash +
|
18607
|
+
@progress.hash +
|
18196
18608
|
@start_time.hash +
|
18197
18609
|
@statistics.hash +
|
18198
18610
|
@status.hash +
|
@@ -18992,6 +19404,24 @@ module OvirtSDK4
|
|
18992
19404
|
@description = value
|
18993
19405
|
end
|
18994
19406
|
|
19407
|
+
#
|
19408
|
+
# Returns the value of the `discard_after_delete` attribute.
|
19409
|
+
#
|
19410
|
+
# @return [Boolean]
|
19411
|
+
#
|
19412
|
+
def discard_after_delete
|
19413
|
+
@discard_after_delete
|
19414
|
+
end
|
19415
|
+
|
19416
|
+
#
|
19417
|
+
# Sets the value of the `discard_after_delete` attribute.
|
19418
|
+
#
|
19419
|
+
# @param value [Boolean]
|
19420
|
+
#
|
19421
|
+
def discard_after_delete=(value)
|
19422
|
+
@discard_after_delete = value
|
19423
|
+
end
|
19424
|
+
|
18995
19425
|
#
|
18996
19426
|
# Returns the value of the `disk_profiles` attribute.
|
18997
19427
|
#
|
@@ -19350,6 +19780,42 @@ module OvirtSDK4
|
|
19350
19780
|
@storage_format = value
|
19351
19781
|
end
|
19352
19782
|
|
19783
|
+
#
|
19784
|
+
# Returns the value of the `supports_discard` attribute.
|
19785
|
+
#
|
19786
|
+
# @return [Boolean]
|
19787
|
+
#
|
19788
|
+
def supports_discard
|
19789
|
+
@supports_discard
|
19790
|
+
end
|
19791
|
+
|
19792
|
+
#
|
19793
|
+
# Sets the value of the `supports_discard` attribute.
|
19794
|
+
#
|
19795
|
+
# @param value [Boolean]
|
19796
|
+
#
|
19797
|
+
def supports_discard=(value)
|
19798
|
+
@supports_discard = value
|
19799
|
+
end
|
19800
|
+
|
19801
|
+
#
|
19802
|
+
# Returns the value of the `supports_discard_zeroes_data` attribute.
|
19803
|
+
#
|
19804
|
+
# @return [Boolean]
|
19805
|
+
#
|
19806
|
+
def supports_discard_zeroes_data
|
19807
|
+
@supports_discard_zeroes_data
|
19808
|
+
end
|
19809
|
+
|
19810
|
+
#
|
19811
|
+
# Sets the value of the `supports_discard_zeroes_data` attribute.
|
19812
|
+
#
|
19813
|
+
# @param value [Boolean]
|
19814
|
+
#
|
19815
|
+
def supports_discard_zeroes_data=(value)
|
19816
|
+
@supports_discard_zeroes_data = value
|
19817
|
+
end
|
19818
|
+
|
19353
19819
|
#
|
19354
19820
|
# Returns the value of the `templates` attribute.
|
19355
19821
|
#
|
@@ -19495,6 +19961,8 @@ module OvirtSDK4
|
|
19495
19961
|
#
|
19496
19962
|
# @option opts [String] :description The value of attribute `description`.
|
19497
19963
|
#
|
19964
|
+
# @option opts [Boolean] :discard_after_delete The value of attribute `discard_after_delete`.
|
19965
|
+
#
|
19498
19966
|
# @option opts [Array<DiskProfile>, Array<Hash>] :disk_profiles The values of attribute `disk_profiles`.
|
19499
19967
|
#
|
19500
19968
|
# @option opts [Array<DiskSnapshot>, Array<Hash>] :disk_snapshots The values of attribute `disk_snapshots`.
|
@@ -19527,6 +19995,10 @@ module OvirtSDK4
|
|
19527
19995
|
#
|
19528
19996
|
# @option opts [StorageFormat] :storage_format The value of attribute `storage_format`.
|
19529
19997
|
#
|
19998
|
+
# @option opts [Boolean] :supports_discard The value of attribute `supports_discard`.
|
19999
|
+
#
|
20000
|
+
# @option opts [Boolean] :supports_discard_zeroes_data The value of attribute `supports_discard_zeroes_data`.
|
20001
|
+
#
|
19530
20002
|
# @option opts [Array<Template>, Array<Hash>] :templates The values of attribute `templates`.
|
19531
20003
|
#
|
19532
20004
|
# @option opts [StorageDomainType] :type The value of attribute `type`.
|
@@ -19547,6 +20019,7 @@ module OvirtSDK4
|
|
19547
20019
|
self.critical_space_action_blocker = opts[:critical_space_action_blocker]
|
19548
20020
|
self.data_center = opts[:data_center]
|
19549
20021
|
self.data_centers = opts[:data_centers]
|
20022
|
+
self.discard_after_delete = opts[:discard_after_delete]
|
19550
20023
|
self.disk_profiles = opts[:disk_profiles]
|
19551
20024
|
self.disk_snapshots = opts[:disk_snapshots]
|
19552
20025
|
self.disks = opts[:disks]
|
@@ -19561,6 +20034,8 @@ module OvirtSDK4
|
|
19561
20034
|
self.storage = opts[:storage]
|
19562
20035
|
self.storage_connections = opts[:storage_connections]
|
19563
20036
|
self.storage_format = opts[:storage_format]
|
20037
|
+
self.supports_discard = opts[:supports_discard]
|
20038
|
+
self.supports_discard_zeroes_data = opts[:supports_discard_zeroes_data]
|
19564
20039
|
self.templates = opts[:templates]
|
19565
20040
|
self.type = opts[:type]
|
19566
20041
|
self.used = opts[:used]
|
@@ -19579,6 +20054,7 @@ module OvirtSDK4
|
|
19579
20054
|
@critical_space_action_blocker == other.critical_space_action_blocker &&
|
19580
20055
|
@data_center == other.data_center &&
|
19581
20056
|
@data_centers == other.data_centers &&
|
20057
|
+
@discard_after_delete == other.discard_after_delete &&
|
19582
20058
|
@disk_profiles == other.disk_profiles &&
|
19583
20059
|
@disk_snapshots == other.disk_snapshots &&
|
19584
20060
|
@disks == other.disks &&
|
@@ -19593,6 +20069,8 @@ module OvirtSDK4
|
|
19593
20069
|
@storage == other.storage &&
|
19594
20070
|
@storage_connections == other.storage_connections &&
|
19595
20071
|
@storage_format == other.storage_format &&
|
20072
|
+
@supports_discard == other.supports_discard &&
|
20073
|
+
@supports_discard_zeroes_data == other.supports_discard_zeroes_data &&
|
19596
20074
|
@templates == other.templates &&
|
19597
20075
|
@type == other.type &&
|
19598
20076
|
@used == other.used &&
|
@@ -19611,6 +20089,7 @@ module OvirtSDK4
|
|
19611
20089
|
@critical_space_action_blocker.hash +
|
19612
20090
|
@data_center.hash +
|
19613
20091
|
@data_centers.hash +
|
20092
|
+
@discard_after_delete.hash +
|
19614
20093
|
@disk_profiles.hash +
|
19615
20094
|
@disk_snapshots.hash +
|
19616
20095
|
@disks.hash +
|
@@ -19625,6 +20104,8 @@ module OvirtSDK4
|
|
19625
20104
|
@storage.hash +
|
19626
20105
|
@storage_connections.hash +
|
19627
20106
|
@storage_format.hash +
|
20107
|
+
@supports_discard.hash +
|
20108
|
+
@supports_discard_zeroes_data.hash +
|
19628
20109
|
@templates.hash +
|
19629
20110
|
@type.hash +
|
19630
20111
|
@used.hash +
|
@@ -20989,7 +21470,7 @@ module OvirtSDK4
|
|
20989
21470
|
#
|
20990
21471
|
# Returns the value of the `datum` attribute.
|
20991
21472
|
#
|
20992
|
-
# @return [
|
21473
|
+
# @return [Fixnum]
|
20993
21474
|
#
|
20994
21475
|
def datum
|
20995
21476
|
@datum
|
@@ -20998,7 +21479,7 @@ module OvirtSDK4
|
|
20998
21479
|
#
|
20999
21480
|
# Sets the value of the `datum` attribute.
|
21000
21481
|
#
|
21001
|
-
# @param value [
|
21482
|
+
# @param value [Fixnum]
|
21002
21483
|
#
|
21003
21484
|
def datum=(value)
|
21004
21485
|
@datum = value
|
@@ -21029,7 +21510,7 @@ module OvirtSDK4
|
|
21029
21510
|
# should be symbols corresponding to the names of the attributes. The values of the hash
|
21030
21511
|
# should be the values of the attributes.
|
21031
21512
|
#
|
21032
|
-
# @option opts [
|
21513
|
+
# @option opts [Fixnum] :datum The value of attribute `datum`.
|
21033
21514
|
#
|
21034
21515
|
# @option opts [String] :detail The value of attribute `detail`.
|
21035
21516
|
#
|
@@ -23836,6 +24317,24 @@ module OvirtSDK4
|
|
23836
24317
|
@id = value
|
23837
24318
|
end
|
23838
24319
|
|
24320
|
+
#
|
24321
|
+
# Returns the value of the `migratable` attribute.
|
24322
|
+
#
|
24323
|
+
# @return [Boolean]
|
24324
|
+
#
|
24325
|
+
def migratable
|
24326
|
+
@migratable
|
24327
|
+
end
|
24328
|
+
|
24329
|
+
#
|
24330
|
+
# Sets the value of the `migratable` attribute.
|
24331
|
+
#
|
24332
|
+
# @param value [Boolean]
|
24333
|
+
#
|
24334
|
+
def migratable=(value)
|
24335
|
+
@migratable = value
|
24336
|
+
end
|
24337
|
+
|
23839
24338
|
#
|
23840
24339
|
# Returns the value of the `name` attribute.
|
23841
24340
|
#
|
@@ -24013,6 +24512,8 @@ module OvirtSDK4
|
|
24013
24512
|
#
|
24014
24513
|
# @option opts [String] :id The value of attribute `id`.
|
24015
24514
|
#
|
24515
|
+
# @option opts [Boolean] :migratable The value of attribute `migratable`.
|
24516
|
+
#
|
24016
24517
|
# @option opts [String] :name The value of attribute `name`.
|
24017
24518
|
#
|
24018
24519
|
# @option opts [Network, Hash] :network The value of attribute `network`.
|
@@ -24031,6 +24532,7 @@ module OvirtSDK4
|
|
24031
24532
|
def initialize(opts = {})
|
24032
24533
|
super(opts)
|
24033
24534
|
self.custom_properties = opts[:custom_properties]
|
24535
|
+
self.migratable = opts[:migratable]
|
24034
24536
|
self.network = opts[:network]
|
24035
24537
|
self.network_filter = opts[:network_filter]
|
24036
24538
|
self.pass_through = opts[:pass_through]
|
@@ -24045,6 +24547,7 @@ module OvirtSDK4
|
|
24045
24547
|
def ==(other)
|
24046
24548
|
super &&
|
24047
24549
|
@custom_properties == other.custom_properties &&
|
24550
|
+
@migratable == other.migratable &&
|
24048
24551
|
@network == other.network &&
|
24049
24552
|
@network_filter == other.network_filter &&
|
24050
24553
|
@pass_through == other.pass_through &&
|
@@ -24059,6 +24562,7 @@ module OvirtSDK4
|
|
24059
24562
|
def hash
|
24060
24563
|
super +
|
24061
24564
|
@custom_properties.hash +
|
24565
|
+
@migratable.hash +
|
24062
24566
|
@network.hash +
|
24063
24567
|
@network_filter.hash +
|
24064
24568
|
@pass_through.hash +
|
@@ -24069,6 +24573,112 @@ module OvirtSDK4
|
|
24069
24573
|
|
24070
24574
|
end
|
24071
24575
|
|
24576
|
+
class VnicProfileMapping < Struct
|
24577
|
+
|
24578
|
+
#
|
24579
|
+
# Returns the value of the `source_network_name` attribute.
|
24580
|
+
#
|
24581
|
+
# @return [String]
|
24582
|
+
#
|
24583
|
+
def source_network_name
|
24584
|
+
@source_network_name
|
24585
|
+
end
|
24586
|
+
|
24587
|
+
#
|
24588
|
+
# Sets the value of the `source_network_name` attribute.
|
24589
|
+
#
|
24590
|
+
# @param value [String]
|
24591
|
+
#
|
24592
|
+
def source_network_name=(value)
|
24593
|
+
@source_network_name = value
|
24594
|
+
end
|
24595
|
+
|
24596
|
+
#
|
24597
|
+
# Returns the value of the `source_network_profile_name` attribute.
|
24598
|
+
#
|
24599
|
+
# @return [String]
|
24600
|
+
#
|
24601
|
+
def source_network_profile_name
|
24602
|
+
@source_network_profile_name
|
24603
|
+
end
|
24604
|
+
|
24605
|
+
#
|
24606
|
+
# Sets the value of the `source_network_profile_name` attribute.
|
24607
|
+
#
|
24608
|
+
# @param value [String]
|
24609
|
+
#
|
24610
|
+
def source_network_profile_name=(value)
|
24611
|
+
@source_network_profile_name = value
|
24612
|
+
end
|
24613
|
+
|
24614
|
+
#
|
24615
|
+
# Returns the value of the `target_vnic_profile` attribute.
|
24616
|
+
#
|
24617
|
+
# @return [VnicProfile]
|
24618
|
+
#
|
24619
|
+
def target_vnic_profile
|
24620
|
+
@target_vnic_profile
|
24621
|
+
end
|
24622
|
+
|
24623
|
+
#
|
24624
|
+
# Sets the value of the `target_vnic_profile` attribute.
|
24625
|
+
#
|
24626
|
+
# @param value [VnicProfile, Hash]
|
24627
|
+
#
|
24628
|
+
# The `value` parameter can be an instance of {OvirtSDK4::VnicProfile} or a hash.
|
24629
|
+
# If it is a hash then a new instance will be created passing the hash as the
|
24630
|
+
# `opts` parameter to the constructor.
|
24631
|
+
#
|
24632
|
+
def target_vnic_profile=(value)
|
24633
|
+
if value.is_a?(Hash)
|
24634
|
+
value = VnicProfile.new(value)
|
24635
|
+
end
|
24636
|
+
@target_vnic_profile = value
|
24637
|
+
end
|
24638
|
+
|
24639
|
+
#
|
24640
|
+
# Creates a new instance of the {VnicProfileMapping} class.
|
24641
|
+
#
|
24642
|
+
# @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
|
24643
|
+
# should be symbols corresponding to the names of the attributes. The values of the hash
|
24644
|
+
# should be the values of the attributes.
|
24645
|
+
#
|
24646
|
+
# @option opts [String] :source_network_name The value of attribute `source_network_name`.
|
24647
|
+
#
|
24648
|
+
# @option opts [String] :source_network_profile_name The value of attribute `source_network_profile_name`.
|
24649
|
+
#
|
24650
|
+
# @option opts [VnicProfile, Hash] :target_vnic_profile The value of attribute `target_vnic_profile`.
|
24651
|
+
#
|
24652
|
+
#
|
24653
|
+
def initialize(opts = {})
|
24654
|
+
super(opts)
|
24655
|
+
self.source_network_name = opts[:source_network_name]
|
24656
|
+
self.source_network_profile_name = opts[:source_network_profile_name]
|
24657
|
+
self.target_vnic_profile = opts[:target_vnic_profile]
|
24658
|
+
end
|
24659
|
+
|
24660
|
+
#
|
24661
|
+
# Returns `true` if `self` and `other` have the same attributes and values.
|
24662
|
+
#
|
24663
|
+
def ==(other)
|
24664
|
+
super &&
|
24665
|
+
@source_network_name == other.source_network_name &&
|
24666
|
+
@source_network_profile_name == other.source_network_profile_name &&
|
24667
|
+
@target_vnic_profile == other.target_vnic_profile
|
24668
|
+
end
|
24669
|
+
|
24670
|
+
#
|
24671
|
+
# Generates a hash value for this object.
|
24672
|
+
#
|
24673
|
+
def hash
|
24674
|
+
super +
|
24675
|
+
@source_network_name.hash +
|
24676
|
+
@source_network_profile_name.hash +
|
24677
|
+
@target_vnic_profile.hash
|
24678
|
+
end
|
24679
|
+
|
24680
|
+
end
|
24681
|
+
|
24072
24682
|
class VolumeGroup < Struct
|
24073
24683
|
|
24074
24684
|
#
|
@@ -24371,6 +24981,24 @@ module OvirtSDK4
|
|
24371
24981
|
|
24372
24982
|
class Action < Identified
|
24373
24983
|
|
24984
|
+
#
|
24985
|
+
# Returns the value of the `allow_partial_import` attribute.
|
24986
|
+
#
|
24987
|
+
# @return [Boolean]
|
24988
|
+
#
|
24989
|
+
def allow_partial_import
|
24990
|
+
@allow_partial_import
|
24991
|
+
end
|
24992
|
+
|
24993
|
+
#
|
24994
|
+
# Sets the value of the `allow_partial_import` attribute.
|
24995
|
+
#
|
24996
|
+
# @param value [Boolean]
|
24997
|
+
#
|
24998
|
+
def allow_partial_import=(value)
|
24999
|
+
@allow_partial_import = value
|
25000
|
+
end
|
25001
|
+
|
24374
25002
|
#
|
24375
25003
|
# Returns the value of the `async` attribute.
|
24376
25004
|
#
|
@@ -25267,6 +25895,42 @@ module OvirtSDK4
|
|
25267
25895
|
@reason = value
|
25268
25896
|
end
|
25269
25897
|
|
25898
|
+
#
|
25899
|
+
# Returns the value of the `reassign_bad_macs` attribute.
|
25900
|
+
#
|
25901
|
+
# @return [Boolean]
|
25902
|
+
#
|
25903
|
+
def reassign_bad_macs
|
25904
|
+
@reassign_bad_macs
|
25905
|
+
end
|
25906
|
+
|
25907
|
+
#
|
25908
|
+
# Sets the value of the `reassign_bad_macs` attribute.
|
25909
|
+
#
|
25910
|
+
# @param value [Boolean]
|
25911
|
+
#
|
25912
|
+
def reassign_bad_macs=(value)
|
25913
|
+
@reassign_bad_macs = value
|
25914
|
+
end
|
25915
|
+
|
25916
|
+
#
|
25917
|
+
# Returns the value of the `remote_viewer_connection_file` attribute.
|
25918
|
+
#
|
25919
|
+
# @return [String]
|
25920
|
+
#
|
25921
|
+
def remote_viewer_connection_file
|
25922
|
+
@remote_viewer_connection_file
|
25923
|
+
end
|
25924
|
+
|
25925
|
+
#
|
25926
|
+
# Sets the value of the `remote_viewer_connection_file` attribute.
|
25927
|
+
#
|
25928
|
+
# @param value [String]
|
25929
|
+
#
|
25930
|
+
def remote_viewer_connection_file=(value)
|
25931
|
+
@remote_viewer_connection_file = value
|
25932
|
+
end
|
25933
|
+
|
25270
25934
|
#
|
25271
25935
|
# Returns the value of the `removed_bonds` attribute.
|
25272
25936
|
#
|
@@ -25734,6 +26398,32 @@ module OvirtSDK4
|
|
25734
26398
|
@vm = value
|
25735
26399
|
end
|
25736
26400
|
|
26401
|
+
#
|
26402
|
+
# Returns the value of the `vnic_profile_mappings` attribute.
|
26403
|
+
#
|
26404
|
+
# @return [Array<VnicProfileMapping>]
|
26405
|
+
#
|
26406
|
+
def vnic_profile_mappings
|
26407
|
+
@vnic_profile_mappings
|
26408
|
+
end
|
26409
|
+
|
26410
|
+
#
|
26411
|
+
# Sets the value of the `vnic_profile_mappings` attribute.
|
26412
|
+
#
|
26413
|
+
# @param list [Array<VnicProfileMapping>]
|
26414
|
+
#
|
26415
|
+
def vnic_profile_mappings=(list)
|
26416
|
+
if list.class == Array
|
26417
|
+
list = List.new(list)
|
26418
|
+
list.each_with_index do |value, index|
|
26419
|
+
if value.is_a?(Hash)
|
26420
|
+
list[index] = VnicProfileMapping.new(value)
|
26421
|
+
end
|
26422
|
+
end
|
26423
|
+
end
|
26424
|
+
@vnic_profile_mappings = list
|
26425
|
+
end
|
26426
|
+
|
25737
26427
|
#
|
25738
26428
|
# Creates a new instance of the {Action} class.
|
25739
26429
|
#
|
@@ -25741,6 +26431,8 @@ module OvirtSDK4
|
|
25741
26431
|
# should be symbols corresponding to the names of the attributes. The values of the hash
|
25742
26432
|
# should be the values of the attributes.
|
25743
26433
|
#
|
26434
|
+
# @option opts [Boolean] :allow_partial_import The value of attribute `allow_partial_import`.
|
26435
|
+
#
|
25744
26436
|
# @option opts [Boolean] :async The value of attribute `async`.
|
25745
26437
|
#
|
25746
26438
|
# @option opts [Array<GlusterBrick>, Array<Hash>] :bricks The values of attribute `bricks`.
|
@@ -25825,6 +26517,10 @@ module OvirtSDK4
|
|
25825
26517
|
#
|
25826
26518
|
# @option opts [String] :reason The value of attribute `reason`.
|
25827
26519
|
#
|
26520
|
+
# @option opts [Boolean] :reassign_bad_macs The value of attribute `reassign_bad_macs`.
|
26521
|
+
#
|
26522
|
+
# @option opts [String] :remote_viewer_connection_file The value of attribute `remote_viewer_connection_file`.
|
26523
|
+
#
|
25828
26524
|
# @option opts [Array<HostNic>, Array<Hash>] :removed_bonds The values of attribute `removed_bonds`.
|
25829
26525
|
#
|
25830
26526
|
# @option opts [Array<NetworkLabel>, Array<Hash>] :removed_labels The values of attribute `removed_labels`.
|
@@ -25867,9 +26563,12 @@ module OvirtSDK4
|
|
25867
26563
|
#
|
25868
26564
|
# @option opts [Vm, Hash] :vm The value of attribute `vm`.
|
25869
26565
|
#
|
26566
|
+
# @option opts [Array<VnicProfileMapping>, Array<Hash>] :vnic_profile_mappings The values of attribute `vnic_profile_mappings`.
|
26567
|
+
#
|
25870
26568
|
#
|
25871
26569
|
def initialize(opts = {})
|
25872
26570
|
super(opts)
|
26571
|
+
self.allow_partial_import = opts[:allow_partial_import]
|
25873
26572
|
self.async = opts[:async]
|
25874
26573
|
self.bricks = opts[:bricks]
|
25875
26574
|
self.certificates = opts[:certificates]
|
@@ -25908,6 +26607,8 @@ module OvirtSDK4
|
|
25908
26607
|
self.power_management = opts[:power_management]
|
25909
26608
|
self.proxy_ticket = opts[:proxy_ticket]
|
25910
26609
|
self.reason = opts[:reason]
|
26610
|
+
self.reassign_bad_macs = opts[:reassign_bad_macs]
|
26611
|
+
self.remote_viewer_connection_file = opts[:remote_viewer_connection_file]
|
25911
26612
|
self.removed_bonds = opts[:removed_bonds]
|
25912
26613
|
self.removed_labels = opts[:removed_labels]
|
25913
26614
|
self.removed_network_attachments = opts[:removed_network_attachments]
|
@@ -25929,6 +26630,7 @@ module OvirtSDK4
|
|
25929
26630
|
self.use_sysprep = opts[:use_sysprep]
|
25930
26631
|
self.virtual_functions_configuration = opts[:virtual_functions_configuration]
|
25931
26632
|
self.vm = opts[:vm]
|
26633
|
+
self.vnic_profile_mappings = opts[:vnic_profile_mappings]
|
25932
26634
|
end
|
25933
26635
|
|
25934
26636
|
#
|
@@ -25936,6 +26638,7 @@ module OvirtSDK4
|
|
25936
26638
|
#
|
25937
26639
|
def ==(other)
|
25938
26640
|
super &&
|
26641
|
+
@allow_partial_import == other.allow_partial_import &&
|
25939
26642
|
@async == other.async &&
|
25940
26643
|
@bricks == other.bricks &&
|
25941
26644
|
@certificates == other.certificates &&
|
@@ -25974,6 +26677,8 @@ module OvirtSDK4
|
|
25974
26677
|
@power_management == other.power_management &&
|
25975
26678
|
@proxy_ticket == other.proxy_ticket &&
|
25976
26679
|
@reason == other.reason &&
|
26680
|
+
@reassign_bad_macs == other.reassign_bad_macs &&
|
26681
|
+
@remote_viewer_connection_file == other.remote_viewer_connection_file &&
|
25977
26682
|
@removed_bonds == other.removed_bonds &&
|
25978
26683
|
@removed_labels == other.removed_labels &&
|
25979
26684
|
@removed_network_attachments == other.removed_network_attachments &&
|
@@ -25994,7 +26699,8 @@ module OvirtSDK4
|
|
25994
26699
|
@use_cloud_init == other.use_cloud_init &&
|
25995
26700
|
@use_sysprep == other.use_sysprep &&
|
25996
26701
|
@virtual_functions_configuration == other.virtual_functions_configuration &&
|
25997
|
-
@vm == other.vm
|
26702
|
+
@vm == other.vm &&
|
26703
|
+
@vnic_profile_mappings == other.vnic_profile_mappings
|
25998
26704
|
end
|
25999
26705
|
|
26000
26706
|
#
|
@@ -26002,6 +26708,7 @@ module OvirtSDK4
|
|
26002
26708
|
#
|
26003
26709
|
def hash
|
26004
26710
|
super +
|
26711
|
+
@allow_partial_import.hash +
|
26005
26712
|
@async.hash +
|
26006
26713
|
@bricks.hash +
|
26007
26714
|
@certificates.hash +
|
@@ -26040,6 +26747,8 @@ module OvirtSDK4
|
|
26040
26747
|
@power_management.hash +
|
26041
26748
|
@proxy_ticket.hash +
|
26042
26749
|
@reason.hash +
|
26750
|
+
@reassign_bad_macs.hash +
|
26751
|
+
@remote_viewer_connection_file.hash +
|
26043
26752
|
@removed_bonds.hash +
|
26044
26753
|
@removed_labels.hash +
|
26045
26754
|
@removed_network_attachments.hash +
|
@@ -26060,7 +26769,8 @@ module OvirtSDK4
|
|
26060
26769
|
@use_cloud_init.hash +
|
26061
26770
|
@use_sysprep.hash +
|
26062
26771
|
@virtual_functions_configuration.hash +
|
26063
|
-
@vm.hash
|
26772
|
+
@vm.hash +
|
26773
|
+
@vnic_profile_mappings.hash
|
26064
26774
|
end
|
26065
26775
|
|
26066
26776
|
end
|
@@ -26146,6 +26856,57 @@ module OvirtSDK4
|
|
26146
26856
|
@enforcing = value
|
26147
26857
|
end
|
26148
26858
|
|
26859
|
+
#
|
26860
|
+
# Returns the value of the `hosts` attribute.
|
26861
|
+
#
|
26862
|
+
# @return [Array<Host>]
|
26863
|
+
#
|
26864
|
+
def hosts
|
26865
|
+
@hosts
|
26866
|
+
end
|
26867
|
+
|
26868
|
+
#
|
26869
|
+
# Sets the value of the `hosts` attribute.
|
26870
|
+
#
|
26871
|
+
# @param list [Array<Host>]
|
26872
|
+
#
|
26873
|
+
def hosts=(list)
|
26874
|
+
if list.class == Array
|
26875
|
+
list = List.new(list)
|
26876
|
+
list.each_with_index do |value, index|
|
26877
|
+
if value.is_a?(Hash)
|
26878
|
+
list[index] = Host.new(value)
|
26879
|
+
end
|
26880
|
+
end
|
26881
|
+
end
|
26882
|
+
@hosts = list
|
26883
|
+
end
|
26884
|
+
|
26885
|
+
#
|
26886
|
+
# Returns the value of the `hosts_rule` attribute.
|
26887
|
+
#
|
26888
|
+
# @return [AffinityRule]
|
26889
|
+
#
|
26890
|
+
def hosts_rule
|
26891
|
+
@hosts_rule
|
26892
|
+
end
|
26893
|
+
|
26894
|
+
#
|
26895
|
+
# Sets the value of the `hosts_rule` attribute.
|
26896
|
+
#
|
26897
|
+
# @param value [AffinityRule, Hash]
|
26898
|
+
#
|
26899
|
+
# The `value` parameter can be an instance of {OvirtSDK4::AffinityRule} or a hash.
|
26900
|
+
# If it is a hash then a new instance will be created passing the hash as the
|
26901
|
+
# `opts` parameter to the constructor.
|
26902
|
+
#
|
26903
|
+
def hosts_rule=(value)
|
26904
|
+
if value.is_a?(Hash)
|
26905
|
+
value = AffinityRule.new(value)
|
26906
|
+
end
|
26907
|
+
@hosts_rule = value
|
26908
|
+
end
|
26909
|
+
|
26149
26910
|
#
|
26150
26911
|
# Returns the value of the `id` attribute.
|
26151
26912
|
#
|
@@ -26226,6 +26987,31 @@ module OvirtSDK4
|
|
26226
26987
|
@vms = list
|
26227
26988
|
end
|
26228
26989
|
|
26990
|
+
#
|
26991
|
+
# Returns the value of the `vms_rule` attribute.
|
26992
|
+
#
|
26993
|
+
# @return [AffinityRule]
|
26994
|
+
#
|
26995
|
+
def vms_rule
|
26996
|
+
@vms_rule
|
26997
|
+
end
|
26998
|
+
|
26999
|
+
#
|
27000
|
+
# Sets the value of the `vms_rule` attribute.
|
27001
|
+
#
|
27002
|
+
# @param value [AffinityRule, Hash]
|
27003
|
+
#
|
27004
|
+
# The `value` parameter can be an instance of {OvirtSDK4::AffinityRule} or a hash.
|
27005
|
+
# If it is a hash then a new instance will be created passing the hash as the
|
27006
|
+
# `opts` parameter to the constructor.
|
27007
|
+
#
|
27008
|
+
def vms_rule=(value)
|
27009
|
+
if value.is_a?(Hash)
|
27010
|
+
value = AffinityRule.new(value)
|
27011
|
+
end
|
27012
|
+
@vms_rule = value
|
27013
|
+
end
|
27014
|
+
|
26229
27015
|
#
|
26230
27016
|
# Creates a new instance of the {AffinityGroup} class.
|
26231
27017
|
#
|
@@ -26241,6 +27027,10 @@ module OvirtSDK4
|
|
26241
27027
|
#
|
26242
27028
|
# @option opts [Boolean] :enforcing The value of attribute `enforcing`.
|
26243
27029
|
#
|
27030
|
+
# @option opts [Array<Host>, Array<Hash>] :hosts The values of attribute `hosts`.
|
27031
|
+
#
|
27032
|
+
# @option opts [AffinityRule, Hash] :hosts_rule The value of attribute `hosts_rule`.
|
27033
|
+
#
|
26244
27034
|
# @option opts [String] :id The value of attribute `id`.
|
26245
27035
|
#
|
26246
27036
|
# @option opts [String] :name The value of attribute `name`.
|
@@ -26249,13 +27039,18 @@ module OvirtSDK4
|
|
26249
27039
|
#
|
26250
27040
|
# @option opts [Array<Vm>, Array<Hash>] :vms The values of attribute `vms`.
|
26251
27041
|
#
|
27042
|
+
# @option opts [AffinityRule, Hash] :vms_rule The value of attribute `vms_rule`.
|
27043
|
+
#
|
26252
27044
|
#
|
26253
27045
|
def initialize(opts = {})
|
26254
27046
|
super(opts)
|
26255
27047
|
self.cluster = opts[:cluster]
|
26256
27048
|
self.enforcing = opts[:enforcing]
|
27049
|
+
self.hosts = opts[:hosts]
|
27050
|
+
self.hosts_rule = opts[:hosts_rule]
|
26257
27051
|
self.positive = opts[:positive]
|
26258
27052
|
self.vms = opts[:vms]
|
27053
|
+
self.vms_rule = opts[:vms_rule]
|
26259
27054
|
end
|
26260
27055
|
|
26261
27056
|
#
|
@@ -26265,8 +27060,11 @@ module OvirtSDK4
|
|
26265
27060
|
super &&
|
26266
27061
|
@cluster == other.cluster &&
|
26267
27062
|
@enforcing == other.enforcing &&
|
27063
|
+
@hosts == other.hosts &&
|
27064
|
+
@hosts_rule == other.hosts_rule &&
|
26268
27065
|
@positive == other.positive &&
|
26269
|
-
@vms == other.vms
|
27066
|
+
@vms == other.vms &&
|
27067
|
+
@vms_rule == other.vms_rule
|
26270
27068
|
end
|
26271
27069
|
|
26272
27070
|
#
|
@@ -26276,8 +27074,11 @@ module OvirtSDK4
|
|
26276
27074
|
super +
|
26277
27075
|
@cluster.hash +
|
26278
27076
|
@enforcing.hash +
|
27077
|
+
@hosts.hash +
|
27078
|
+
@hosts_rule.hash +
|
26279
27079
|
@positive.hash +
|
26280
|
-
@vms.hash
|
27080
|
+
@vms.hash +
|
27081
|
+
@vms_rule.hash
|
26281
27082
|
end
|
26282
27083
|
|
26283
27084
|
end
|
@@ -28008,6 +28809,24 @@ module OvirtSDK4
|
|
28008
28809
|
@gluster_service = value
|
28009
28810
|
end
|
28010
28811
|
|
28812
|
+
#
|
28813
|
+
# Returns the value of the `gluster_tuned_profile` attribute.
|
28814
|
+
#
|
28815
|
+
# @return [String]
|
28816
|
+
#
|
28817
|
+
def gluster_tuned_profile
|
28818
|
+
@gluster_tuned_profile
|
28819
|
+
end
|
28820
|
+
|
28821
|
+
#
|
28822
|
+
# Sets the value of the `gluster_tuned_profile` attribute.
|
28823
|
+
#
|
28824
|
+
# @param value [String]
|
28825
|
+
#
|
28826
|
+
def gluster_tuned_profile=(value)
|
28827
|
+
@gluster_tuned_profile = value
|
28828
|
+
end
|
28829
|
+
|
28011
28830
|
#
|
28012
28831
|
# Returns the value of the `gluster_volumes` attribute.
|
28013
28832
|
#
|
@@ -28095,6 +28914,31 @@ module OvirtSDK4
|
|
28095
28914
|
@ksm = value
|
28096
28915
|
end
|
28097
28916
|
|
28917
|
+
#
|
28918
|
+
# Returns the value of the `mac_pool` attribute.
|
28919
|
+
#
|
28920
|
+
# @return [MacPool]
|
28921
|
+
#
|
28922
|
+
def mac_pool
|
28923
|
+
@mac_pool
|
28924
|
+
end
|
28925
|
+
|
28926
|
+
#
|
28927
|
+
# Sets the value of the `mac_pool` attribute.
|
28928
|
+
#
|
28929
|
+
# @param value [MacPool, Hash]
|
28930
|
+
#
|
28931
|
+
# The `value` parameter can be an instance of {OvirtSDK4::MacPool} or a hash.
|
28932
|
+
# If it is a hash then a new instance will be created passing the hash as the
|
28933
|
+
# `opts` parameter to the constructor.
|
28934
|
+
#
|
28935
|
+
def mac_pool=(value)
|
28936
|
+
if value.is_a?(Hash)
|
28937
|
+
value = MacPool.new(value)
|
28938
|
+
end
|
28939
|
+
@mac_pool = value
|
28940
|
+
end
|
28941
|
+
|
28098
28942
|
#
|
28099
28943
|
# Returns the value of the `maintenance_reason_required` attribute.
|
28100
28944
|
#
|
@@ -28544,6 +29388,8 @@ module OvirtSDK4
|
|
28544
29388
|
#
|
28545
29389
|
# @option opts [Boolean] :gluster_service The value of attribute `gluster_service`.
|
28546
29390
|
#
|
29391
|
+
# @option opts [String] :gluster_tuned_profile The value of attribute `gluster_tuned_profile`.
|
29392
|
+
#
|
28547
29393
|
# @option opts [Array<GlusterVolume>, Array<Hash>] :gluster_volumes The values of attribute `gluster_volumes`.
|
28548
29394
|
#
|
28549
29395
|
# @option opts [Boolean] :ha_reservation The value of attribute `ha_reservation`.
|
@@ -28552,6 +29398,8 @@ module OvirtSDK4
|
|
28552
29398
|
#
|
28553
29399
|
# @option opts [Ksm, Hash] :ksm The value of attribute `ksm`.
|
28554
29400
|
#
|
29401
|
+
# @option opts [MacPool, Hash] :mac_pool The value of attribute `mac_pool`.
|
29402
|
+
#
|
28555
29403
|
# @option opts [Boolean] :maintenance_reason_required The value of attribute `maintenance_reason_required`.
|
28556
29404
|
#
|
28557
29405
|
# @option opts [Network, Hash] :management_network The value of attribute `management_network`.
|
@@ -28604,9 +29452,11 @@ module OvirtSDK4
|
|
28604
29452
|
self.fencing_policy = opts[:fencing_policy]
|
28605
29453
|
self.gluster_hooks = opts[:gluster_hooks]
|
28606
29454
|
self.gluster_service = opts[:gluster_service]
|
29455
|
+
self.gluster_tuned_profile = opts[:gluster_tuned_profile]
|
28607
29456
|
self.gluster_volumes = opts[:gluster_volumes]
|
28608
29457
|
self.ha_reservation = opts[:ha_reservation]
|
28609
29458
|
self.ksm = opts[:ksm]
|
29459
|
+
self.mac_pool = opts[:mac_pool]
|
28610
29460
|
self.maintenance_reason_required = opts[:maintenance_reason_required]
|
28611
29461
|
self.management_network = opts[:management_network]
|
28612
29462
|
self.memory_policy = opts[:memory_policy]
|
@@ -28643,9 +29493,11 @@ module OvirtSDK4
|
|
28643
29493
|
@fencing_policy == other.fencing_policy &&
|
28644
29494
|
@gluster_hooks == other.gluster_hooks &&
|
28645
29495
|
@gluster_service == other.gluster_service &&
|
29496
|
+
@gluster_tuned_profile == other.gluster_tuned_profile &&
|
28646
29497
|
@gluster_volumes == other.gluster_volumes &&
|
28647
29498
|
@ha_reservation == other.ha_reservation &&
|
28648
29499
|
@ksm == other.ksm &&
|
29500
|
+
@mac_pool == other.mac_pool &&
|
28649
29501
|
@maintenance_reason_required == other.maintenance_reason_required &&
|
28650
29502
|
@management_network == other.management_network &&
|
28651
29503
|
@memory_policy == other.memory_policy &&
|
@@ -28682,9 +29534,11 @@ module OvirtSDK4
|
|
28682
29534
|
@fencing_policy.hash +
|
28683
29535
|
@gluster_hooks.hash +
|
28684
29536
|
@gluster_service.hash +
|
29537
|
+
@gluster_tuned_profile.hash +
|
28685
29538
|
@gluster_volumes.hash +
|
28686
29539
|
@ha_reservation.hash +
|
28687
29540
|
@ksm.hash +
|
29541
|
+
@mac_pool.hash +
|
28688
29542
|
@maintenance_reason_required.hash +
|
28689
29543
|
@management_network.hash +
|
28690
29544
|
@memory_policy.hash +
|
@@ -30219,6 +31073,24 @@ module OvirtSDK4
|
|
30219
31073
|
@provisioned_size = value
|
30220
31074
|
end
|
30221
31075
|
|
31076
|
+
#
|
31077
|
+
# Returns the value of the `qcow_version` attribute.
|
31078
|
+
#
|
31079
|
+
# @return [QcowVersion]
|
31080
|
+
#
|
31081
|
+
def qcow_version
|
31082
|
+
@qcow_version
|
31083
|
+
end
|
31084
|
+
|
31085
|
+
#
|
31086
|
+
# Sets the value of the `qcow_version` attribute.
|
31087
|
+
#
|
31088
|
+
# @param value [QcowVersion]
|
31089
|
+
#
|
31090
|
+
def qcow_version=(value)
|
31091
|
+
@qcow_version = value
|
31092
|
+
end
|
31093
|
+
|
30222
31094
|
#
|
30223
31095
|
# Returns the value of the `quota` attribute.
|
30224
31096
|
#
|
@@ -30613,6 +31485,8 @@ module OvirtSDK4
|
|
30613
31485
|
#
|
30614
31486
|
# @option opts [Integer] :provisioned_size The value of attribute `provisioned_size`.
|
30615
31487
|
#
|
31488
|
+
# @option opts [QcowVersion] :qcow_version The value of attribute `qcow_version`.
|
31489
|
+
#
|
30616
31490
|
# @option opts [Quota, Hash] :quota The value of attribute `quota`.
|
30617
31491
|
#
|
30618
31492
|
# @option opts [Boolean] :read_only The value of attribute `read_only`.
|
@@ -30663,6 +31537,7 @@ module OvirtSDK4
|
|
30663
31537
|
self.permissions = opts[:permissions]
|
30664
31538
|
self.propagate_errors = opts[:propagate_errors]
|
30665
31539
|
self.provisioned_size = opts[:provisioned_size]
|
31540
|
+
self.qcow_version = opts[:qcow_version]
|
30666
31541
|
self.quota = opts[:quota]
|
30667
31542
|
self.read_only = opts[:read_only]
|
30668
31543
|
self.sgio = opts[:sgio]
|
@@ -30698,6 +31573,7 @@ module OvirtSDK4
|
|
30698
31573
|
@permissions == other.permissions &&
|
30699
31574
|
@propagate_errors == other.propagate_errors &&
|
30700
31575
|
@provisioned_size == other.provisioned_size &&
|
31576
|
+
@qcow_version == other.qcow_version &&
|
30701
31577
|
@quota == other.quota &&
|
30702
31578
|
@read_only == other.read_only &&
|
30703
31579
|
@sgio == other.sgio &&
|
@@ -30733,6 +31609,7 @@ module OvirtSDK4
|
|
30733
31609
|
@permissions.hash +
|
30734
31610
|
@propagate_errors.hash +
|
30735
31611
|
@provisioned_size.hash +
|
31612
|
+
@qcow_version.hash +
|
30736
31613
|
@quota.hash +
|
30737
31614
|
@read_only.hash +
|
30738
31615
|
@sgio.hash +
|
@@ -30921,6 +31798,24 @@ module OvirtSDK4
|
|
30921
31798
|
@name = value
|
30922
31799
|
end
|
30923
31800
|
|
31801
|
+
#
|
31802
|
+
# Returns the value of the `pass_discard` attribute.
|
31803
|
+
#
|
31804
|
+
# @return [Boolean]
|
31805
|
+
#
|
31806
|
+
def pass_discard
|
31807
|
+
@pass_discard
|
31808
|
+
end
|
31809
|
+
|
31810
|
+
#
|
31811
|
+
# Sets the value of the `pass_discard` attribute.
|
31812
|
+
#
|
31813
|
+
# @param value [Boolean]
|
31814
|
+
#
|
31815
|
+
def pass_discard=(value)
|
31816
|
+
@pass_discard = value
|
31817
|
+
end
|
31818
|
+
|
30924
31819
|
#
|
30925
31820
|
# Returns the value of the `template` attribute.
|
30926
31821
|
#
|
@@ -30946,6 +31841,24 @@ module OvirtSDK4
|
|
30946
31841
|
@template = value
|
30947
31842
|
end
|
30948
31843
|
|
31844
|
+
#
|
31845
|
+
# Returns the value of the `uses_scsi_reservation` attribute.
|
31846
|
+
#
|
31847
|
+
# @return [Boolean]
|
31848
|
+
#
|
31849
|
+
def uses_scsi_reservation
|
31850
|
+
@uses_scsi_reservation
|
31851
|
+
end
|
31852
|
+
|
31853
|
+
#
|
31854
|
+
# Sets the value of the `uses_scsi_reservation` attribute.
|
31855
|
+
#
|
31856
|
+
# @param value [Boolean]
|
31857
|
+
#
|
31858
|
+
def uses_scsi_reservation=(value)
|
31859
|
+
@uses_scsi_reservation = value
|
31860
|
+
end
|
31861
|
+
|
30949
31862
|
#
|
30950
31863
|
# Returns the value of the `vm` attribute.
|
30951
31864
|
#
|
@@ -30996,8 +31909,12 @@ module OvirtSDK4
|
|
30996
31909
|
#
|
30997
31910
|
# @option opts [String] :name The value of attribute `name`.
|
30998
31911
|
#
|
31912
|
+
# @option opts [Boolean] :pass_discard The value of attribute `pass_discard`.
|
31913
|
+
#
|
30999
31914
|
# @option opts [Template, Hash] :template The value of attribute `template`.
|
31000
31915
|
#
|
31916
|
+
# @option opts [Boolean] :uses_scsi_reservation The value of attribute `uses_scsi_reservation`.
|
31917
|
+
#
|
31001
31918
|
# @option opts [Vm, Hash] :vm The value of attribute `vm`.
|
31002
31919
|
#
|
31003
31920
|
#
|
@@ -31008,7 +31925,9 @@ module OvirtSDK4
|
|
31008
31925
|
self.disk = opts[:disk]
|
31009
31926
|
self.interface = opts[:interface]
|
31010
31927
|
self.logical_name = opts[:logical_name]
|
31928
|
+
self.pass_discard = opts[:pass_discard]
|
31011
31929
|
self.template = opts[:template]
|
31930
|
+
self.uses_scsi_reservation = opts[:uses_scsi_reservation]
|
31012
31931
|
self.vm = opts[:vm]
|
31013
31932
|
end
|
31014
31933
|
|
@@ -31022,7 +31941,9 @@ module OvirtSDK4
|
|
31022
31941
|
@disk == other.disk &&
|
31023
31942
|
@interface == other.interface &&
|
31024
31943
|
@logical_name == other.logical_name &&
|
31944
|
+
@pass_discard == other.pass_discard &&
|
31025
31945
|
@template == other.template &&
|
31946
|
+
@uses_scsi_reservation == other.uses_scsi_reservation &&
|
31026
31947
|
@vm == other.vm
|
31027
31948
|
end
|
31028
31949
|
|
@@ -31036,7 +31957,9 @@ module OvirtSDK4
|
|
31036
31957
|
@disk.hash +
|
31037
31958
|
@interface.hash +
|
31038
31959
|
@logical_name.hash +
|
31960
|
+
@pass_discard.hash +
|
31039
31961
|
@template.hash +
|
31962
|
+
@uses_scsi_reservation.hash +
|
31040
31963
|
@vm.hash
|
31041
31964
|
end
|
31042
31965
|
|
@@ -31666,6 +32589,24 @@ module OvirtSDK4
|
|
31666
32589
|
@provisioned_size = value
|
31667
32590
|
end
|
31668
32591
|
|
32592
|
+
#
|
32593
|
+
# Returns the value of the `qcow_version` attribute.
|
32594
|
+
#
|
32595
|
+
# @return [QcowVersion]
|
32596
|
+
#
|
32597
|
+
def qcow_version
|
32598
|
+
@qcow_version
|
32599
|
+
end
|
32600
|
+
|
32601
|
+
#
|
32602
|
+
# Sets the value of the `qcow_version` attribute.
|
32603
|
+
#
|
32604
|
+
# @param value [QcowVersion]
|
32605
|
+
#
|
32606
|
+
def qcow_version=(value)
|
32607
|
+
@qcow_version = value
|
32608
|
+
end
|
32609
|
+
|
31669
32610
|
#
|
31670
32611
|
# Returns the value of the `quota` attribute.
|
31671
32612
|
#
|
@@ -32062,6 +33003,8 @@ module OvirtSDK4
|
|
32062
33003
|
#
|
32063
33004
|
# @option opts [Integer] :provisioned_size The value of attribute `provisioned_size`.
|
32064
33005
|
#
|
33006
|
+
# @option opts [QcowVersion] :qcow_version The value of attribute `qcow_version`.
|
33007
|
+
#
|
32065
33008
|
# @option opts [Quota, Hash] :quota The value of attribute `quota`.
|
32066
33009
|
#
|
32067
33010
|
# @option opts [Boolean] :read_only The value of attribute `read_only`.
|
@@ -43998,6 +44941,31 @@ module OvirtSDK4
|
|
43998
44941
|
@origin = value
|
43999
44942
|
end
|
44000
44943
|
|
44944
|
+
#
|
44945
|
+
# Returns the value of the `original_template` attribute.
|
44946
|
+
#
|
44947
|
+
# @return [Template]
|
44948
|
+
#
|
44949
|
+
def original_template
|
44950
|
+
@original_template
|
44951
|
+
end
|
44952
|
+
|
44953
|
+
#
|
44954
|
+
# Sets the value of the `original_template` attribute.
|
44955
|
+
#
|
44956
|
+
# @param value [Template, Hash]
|
44957
|
+
#
|
44958
|
+
# The `value` parameter can be an instance of {OvirtSDK4::Template} or a hash.
|
44959
|
+
# If it is a hash then a new instance will be created passing the hash as the
|
44960
|
+
# `opts` parameter to the constructor.
|
44961
|
+
#
|
44962
|
+
def original_template=(value)
|
44963
|
+
if value.is_a?(Hash)
|
44964
|
+
value = Template.new(value)
|
44965
|
+
end
|
44966
|
+
@original_template = value
|
44967
|
+
end
|
44968
|
+
|
44001
44969
|
#
|
44002
44970
|
# Returns the value of the `os` attribute.
|
44003
44971
|
#
|
@@ -44844,6 +45812,8 @@ module OvirtSDK4
|
|
44844
45812
|
#
|
44845
45813
|
# @option opts [String] :origin The value of attribute `origin`.
|
44846
45814
|
#
|
45815
|
+
# @option opts [Template, Hash] :original_template The value of attribute `original_template`.
|
45816
|
+
#
|
44847
45817
|
# @option opts [OperatingSystem, Hash] :os The value of attribute `os`.
|
44848
45818
|
#
|
44849
45819
|
# @option opts [Array<Payload>, Array<Hash>] :payloads The values of attribute `payloads`.
|
@@ -44931,6 +45901,7 @@ module OvirtSDK4
|
|
44931
45901
|
self.nics = opts[:nics]
|
44932
45902
|
self.numa_nodes = opts[:numa_nodes]
|
44933
45903
|
self.numa_tune_mode = opts[:numa_tune_mode]
|
45904
|
+
self.original_template = opts[:original_template]
|
44934
45905
|
self.payloads = opts[:payloads]
|
44935
45906
|
self.permissions = opts[:permissions]
|
44936
45907
|
self.placement_policy = opts[:placement_policy]
|
@@ -44974,6 +45945,7 @@ module OvirtSDK4
|
|
44974
45945
|
@nics == other.nics &&
|
44975
45946
|
@numa_nodes == other.numa_nodes &&
|
44976
45947
|
@numa_tune_mode == other.numa_tune_mode &&
|
45948
|
+
@original_template == other.original_template &&
|
44977
45949
|
@payloads == other.payloads &&
|
44978
45950
|
@permissions == other.permissions &&
|
44979
45951
|
@placement_policy == other.placement_policy &&
|
@@ -45017,6 +45989,7 @@ module OvirtSDK4
|
|
45017
45989
|
@nics.hash +
|
45018
45990
|
@numa_nodes.hash +
|
45019
45991
|
@numa_tune_mode.hash +
|
45992
|
+
@original_template.hash +
|
45020
45993
|
@payloads.hash +
|
45021
45994
|
@permissions.hash +
|
45022
45995
|
@placement_policy.hash +
|
@@ -49574,6 +50547,31 @@ module OvirtSDK4
|
|
49574
50547
|
@origin = value
|
49575
50548
|
end
|
49576
50549
|
|
50550
|
+
#
|
50551
|
+
# Returns the value of the `original_template` attribute.
|
50552
|
+
#
|
50553
|
+
# @return [Template]
|
50554
|
+
#
|
50555
|
+
def original_template
|
50556
|
+
@original_template
|
50557
|
+
end
|
50558
|
+
|
50559
|
+
#
|
50560
|
+
# Sets the value of the `original_template` attribute.
|
50561
|
+
#
|
50562
|
+
# @param value [Template, Hash]
|
50563
|
+
#
|
50564
|
+
# The `value` parameter can be an instance of {OvirtSDK4::Template} or a hash.
|
50565
|
+
# If it is a hash then a new instance will be created passing the hash as the
|
50566
|
+
# `opts` parameter to the constructor.
|
50567
|
+
#
|
50568
|
+
def original_template=(value)
|
50569
|
+
if value.is_a?(Hash)
|
50570
|
+
value = Template.new(value)
|
50571
|
+
end
|
50572
|
+
@original_template = value
|
50573
|
+
end
|
50574
|
+
|
49577
50575
|
#
|
49578
50576
|
# Returns the value of the `os` attribute.
|
49579
50577
|
#
|
@@ -50501,6 +51499,8 @@ module OvirtSDK4
|
|
50501
51499
|
#
|
50502
51500
|
# @option opts [String] :origin The value of attribute `origin`.
|
50503
51501
|
#
|
51502
|
+
# @option opts [Template, Hash] :original_template The value of attribute `original_template`.
|
51503
|
+
#
|
50504
51504
|
# @option opts [OperatingSystem, Hash] :os The value of attribute `os`.
|
50505
51505
|
#
|
50506
51506
|
# @option opts [Array<Payload>, Array<Hash>] :payloads The values of attribute `payloads`.
|
@@ -50824,6 +51824,11 @@ module OvirtSDK4
|
|
50824
51824
|
RHEV_H = 'rhev_h'.freeze
|
50825
51825
|
end
|
50826
51826
|
|
51827
|
+
module ImageTransferDirection
|
51828
|
+
DOWNLOAD = 'download'.freeze
|
51829
|
+
UPLOAD = 'upload'.freeze
|
51830
|
+
end
|
51831
|
+
|
50827
51832
|
module ImageTransferPhase
|
50828
51833
|
CANCELLED = 'cancelled'.freeze
|
50829
51834
|
FINALIZING_FAILURE = 'finalizing_failure'.freeze
|
@@ -50839,9 +51844,9 @@ module OvirtSDK4
|
|
50839
51844
|
end
|
50840
51845
|
|
50841
51846
|
module InheritableBoolean
|
50842
|
-
FALSE = '
|
51847
|
+
FALSE = 'false_'.freeze
|
50843
51848
|
INHERIT = 'inherit'.freeze
|
50844
|
-
TRUE = '
|
51849
|
+
TRUE = 'true_'.freeze
|
50845
51850
|
end
|
50846
51851
|
|
50847
51852
|
module IpVersion
|
@@ -50994,6 +51999,11 @@ module OvirtSDK4
|
|
50994
51999
|
UNKNOWN = 'unknown'.freeze
|
50995
52000
|
end
|
50996
52001
|
|
52002
|
+
module QcowVersion
|
52003
|
+
QCOW2_V2 = 'qcow2_v2'.freeze
|
52004
|
+
QCOW2_V3 = 'qcow2_v3'.freeze
|
52005
|
+
end
|
52006
|
+
|
50997
52007
|
module QosType
|
50998
52008
|
CPU = 'cpu'.freeze
|
50999
52009
|
HOSTNETWORK = 'hostnetwork'.freeze
|
@@ -51019,6 +52029,7 @@ module OvirtSDK4
|
|
51019
52029
|
module RngSource
|
51020
52030
|
HWRNG = 'hwrng'.freeze
|
51021
52031
|
RANDOM = 'random'.freeze
|
52032
|
+
URANDOM = 'urandom'.freeze
|
51022
52033
|
end
|
51023
52034
|
|
51024
52035
|
module RoleType
|
@@ -51128,6 +52139,7 @@ module OvirtSDK4
|
|
51128
52139
|
V1 = 'v1'.freeze
|
51129
52140
|
V2 = 'v2'.freeze
|
51130
52141
|
V3 = 'v3'.freeze
|
52142
|
+
V4 = 'v4'.freeze
|
51131
52143
|
end
|
51132
52144
|
|
51133
52145
|
module StorageType
|