ovirt-engine-sdk 4.2.2 → 4.2.3
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 +18 -0
- data/lib/ovirtsdk4/readers.rb +8 -0
- data/lib/ovirtsdk4/services.rb +97 -1
- data/lib/ovirtsdk4/types.rb +114 -3
- data/lib/ovirtsdk4/version.rb +1 -1
- data/lib/ovirtsdk4/writers.rb +4 -0
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb36af8367d3900e521e333cefaa5f51a4df8b11
|
4
|
+
data.tar.gz: e80aa42d6f7fd1d987800655906fdc03b9d44d67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec7f131c32ecd7a161ea1e4761c1e7119e162547dc2cf110cd40d0ab4ca35443b8acf869297303abbffc65f935509e564b9a30a4641d2b97ffb5da43a5b95a58
|
7
|
+
data.tar.gz: 6ec091ba293c6ac08523bb938bba7dd30d44649eaf597f72da868bd180f43f7d6502113b375514d0fe550d12dc2df5ceb2768d8025b01b8b25c99ed49bf1fc7a
|
data/CHANGES.adoc
CHANGED
@@ -2,6 +2,24 @@
|
|
2
2
|
|
3
3
|
This document describes the relevant changes between releases of the SDK.
|
4
4
|
|
5
|
+
== 4.2.3 / Feb 20 2018
|
6
|
+
Update to model 4.2.29 and metamodel to 1.2.17:
|
7
|
+
|
8
|
+
* Expose `syncAllNetworks` command for `HostService`.
|
9
|
+
|
10
|
+
* Move `VmPlacementPolicy` attribute from Vm to `VmBase`
|
11
|
+
https://bugzilla.redhat.com/1375678[#1375678].
|
12
|
+
|
13
|
+
* Document `JobsService` as a searchable entity.
|
14
|
+
|
15
|
+
* Add `lease` parameter to preview snapshot
|
16
|
+
https://bugzilla.redhat.com/1532577[#1532577].
|
17
|
+
|
18
|
+
Bug fixes:
|
19
|
+
|
20
|
+
* Update depedency on json lib
|
21
|
+
https://bugzilla.redhat.com/1542879[#1542879].
|
22
|
+
|
5
23
|
== 4.2.2 / Jan 18 2018
|
6
24
|
|
7
25
|
Update to model 4.2.28:
|
data/lib/ovirtsdk4/readers.rb
CHANGED
@@ -197,6 +197,8 @@ module OvirtSDK4
|
|
197
197
|
object.iscsi_targets = Reader.read_strings(reader)
|
198
198
|
when 'job'
|
199
199
|
object.job = JobReader.read_one(reader)
|
200
|
+
when 'lease'
|
201
|
+
object.lease = StorageDomainLeaseReader.read_one(reader)
|
200
202
|
when 'logical_units'
|
201
203
|
object.logical_units = LogicalUnitReader.read_many(reader)
|
202
204
|
when 'maintenance_enabled'
|
@@ -8619,6 +8621,8 @@ module OvirtSDK4
|
|
8619
8621
|
object.origin = Reader.read_string(reader)
|
8620
8622
|
when 'os'
|
8621
8623
|
object.os = OperatingSystemReader.read_one(reader)
|
8624
|
+
when 'placement_policy'
|
8625
|
+
object.placement_policy = VmPlacementPolicyReader.read_one(reader)
|
8622
8626
|
when 'rng_device'
|
8623
8627
|
object.rng_device = RngDeviceReader.read_one(reader)
|
8624
8628
|
when 'serial_number'
|
@@ -17045,6 +17049,8 @@ module OvirtSDK4
|
|
17045
17049
|
object.origin = Reader.read_string(reader)
|
17046
17050
|
when 'os'
|
17047
17051
|
object.os = OperatingSystemReader.read_one(reader)
|
17052
|
+
when 'placement_policy'
|
17053
|
+
object.placement_policy = VmPlacementPolicyReader.read_one(reader)
|
17048
17054
|
when 'rng_device'
|
17049
17055
|
object.rng_device = RngDeviceReader.read_one(reader)
|
17050
17056
|
when 'serial_number'
|
@@ -18703,6 +18709,8 @@ module OvirtSDK4
|
|
18703
18709
|
object.origin = Reader.read_string(reader)
|
18704
18710
|
when 'os'
|
18705
18711
|
object.os = OperatingSystemReader.read_one(reader)
|
18712
|
+
when 'placement_policy'
|
18713
|
+
object.placement_policy = VmPlacementPolicyReader.read_one(reader)
|
18706
18714
|
when 'rng_device'
|
18707
18715
|
object.rng_device = RngDeviceReader.read_one(reader)
|
18708
18716
|
when 'serial_number'
|
data/lib/ovirtsdk4/services.rb
CHANGED
@@ -12103,6 +12103,47 @@ module OvirtSDK4
|
|
12103
12103
|
# IMPORTANT: The `image` attribute is deprecated since version 4.2 of the engine.
|
12104
12104
|
# Use the `disk` or `snapshot` attributes instead.
|
12105
12105
|
#
|
12106
|
+
# *Creating a new image transfer for downloading or uploading a `disk`:*
|
12107
|
+
#
|
12108
|
+
# To create an image transfer to download or upload a disk with id `123`,
|
12109
|
+
# send the following request:
|
12110
|
+
#
|
12111
|
+
# [source]
|
12112
|
+
# ----
|
12113
|
+
# POST /ovirt-engine/api/imagetransfers
|
12114
|
+
# ----
|
12115
|
+
#
|
12116
|
+
# With a request body like this:
|
12117
|
+
#
|
12118
|
+
# [source,xml]
|
12119
|
+
# ----
|
12120
|
+
# <image_transfer>
|
12121
|
+
# <disk id="123"/>
|
12122
|
+
# <direction>upload|download</direction>
|
12123
|
+
# </image_transfer>
|
12124
|
+
# ----
|
12125
|
+
#
|
12126
|
+
#
|
12127
|
+
# *Creating a new image transfer for downloading or uploading a `disk_snapshot`:*
|
12128
|
+
#
|
12129
|
+
# To create an image transfer to download or upload a `disk_snapshot` with id `456`,
|
12130
|
+
# send the following request:
|
12131
|
+
#
|
12132
|
+
# [source]
|
12133
|
+
# ----
|
12134
|
+
# POST /ovirt-engine/api/imagetransfers
|
12135
|
+
# ----
|
12136
|
+
#
|
12137
|
+
# With a request body like this:
|
12138
|
+
#
|
12139
|
+
# [source,xml]
|
12140
|
+
# ----
|
12141
|
+
# <image_transfer>
|
12142
|
+
# <snapshot id="456"/>
|
12143
|
+
# <direction>download|upload</direction>
|
12144
|
+
# </image_transfer>
|
12145
|
+
# ----
|
12146
|
+
#
|
12106
12147
|
# @param image_transfer [ImageTransfer] The `image_transfer` to add.
|
12107
12148
|
#
|
12108
12149
|
# @param opts [Hash] Additional options.
|
@@ -13794,8 +13835,10 @@ module OvirtSDK4
|
|
13794
13835
|
end
|
13795
13836
|
|
13796
13837
|
LIST = [
|
13838
|
+
[:case_sensitive, TrueClass].freeze,
|
13797
13839
|
[:follow, String].freeze,
|
13798
13840
|
[:max, Integer].freeze,
|
13841
|
+
[:search, String].freeze,
|
13799
13842
|
].freeze
|
13800
13843
|
|
13801
13844
|
private_constant :LIST
|
@@ -13836,11 +13879,17 @@ module OvirtSDK4
|
|
13836
13879
|
#
|
13837
13880
|
# @param opts [Hash] Additional options.
|
13838
13881
|
#
|
13882
|
+
# @option opts [Boolean] :case_sensitive Indicates if the search performed using the `search` parameter should be performed taking case into
|
13883
|
+
# account. The default value is `true`, which means that case is taken into account. If you want to search
|
13884
|
+
# ignoring case set it to `false`.
|
13885
|
+
#
|
13839
13886
|
# @option opts [String] :follow Indicates which inner links should be _followed_. The objects referenced by these links will be fetched as part
|
13840
13887
|
# of the current request. See <<documents/003_common_concepts/follow, here>> for details.
|
13841
13888
|
#
|
13842
13889
|
# @option opts [Integer] :max Sets the maximum number of jobs to return. If not specified all the jobs are returned.
|
13843
13890
|
#
|
13891
|
+
# @option opts [String] :search A query string used to restrict the returned jobs.
|
13892
|
+
#
|
13844
13893
|
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
13845
13894
|
#
|
13846
13895
|
# @option opts [Hash] :query ({}) Additional URL query parameters.
|
@@ -28176,6 +28225,7 @@ module OvirtSDK4
|
|
28176
28225
|
PREVIEW_SNAPSHOT = [
|
28177
28226
|
[:async, TrueClass].freeze,
|
28178
28227
|
[:disks, List].freeze,
|
28228
|
+
[:lease, StorageDomainLease].freeze,
|
28179
28229
|
[:restore_memory, TrueClass].freeze,
|
28180
28230
|
[:snapshot, Snapshot].freeze,
|
28181
28231
|
[:vm, Vm].freeze,
|
@@ -28197,6 +28247,14 @@ module OvirtSDK4
|
|
28197
28247
|
#
|
28198
28248
|
# @option opts [Array<Disk>] :disks
|
28199
28249
|
#
|
28250
|
+
# @option opts [StorageDomainLease] :lease Specify the lease storage domain ID to use in the preview of the snapshot.
|
28251
|
+
# If lease parameter is not passed, then the previewed snapshot lease storage domain will be used.
|
28252
|
+
# If lease parameter is passed with empty storage domain parameter, then no lease will be used
|
28253
|
+
# for the snapshot preview.
|
28254
|
+
# If lease parameter is passed with storage domain parameter then the storage domain ID can be
|
28255
|
+
# only one of the leases domain IDs that belongs to one of the virtual machine snapshots.
|
28256
|
+
# This is an optional parameter, set by default to `null`
|
28257
|
+
#
|
28200
28258
|
# @option opts [Boolean] :restore_memory
|
28201
28259
|
#
|
28202
28260
|
# @option opts [Snapshot] :snapshot
|
@@ -35484,7 +35542,7 @@ module OvirtSDK4
|
|
35484
35542
|
#
|
35485
35543
|
# @option opts [Array<NetworkAttachment>] :removed_network_attachments
|
35486
35544
|
#
|
35487
|
-
# @option opts [Array<NetworkAttachment>] :synchronized_network_attachments
|
35545
|
+
# @option opts [Array<NetworkAttachment>] :synchronized_network_attachments A list of network attachments that will be synchronized.
|
35488
35546
|
#
|
35489
35547
|
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
35490
35548
|
#
|
@@ -35499,6 +35557,44 @@ module OvirtSDK4
|
|
35499
35557
|
internal_action(:setupnetworks, nil, SETUP_NETWORKS, opts)
|
35500
35558
|
end
|
35501
35559
|
|
35560
|
+
SYNC_ALL_NETWORKS = [
|
35561
|
+
[:async, TrueClass].freeze,
|
35562
|
+
].freeze
|
35563
|
+
|
35564
|
+
private_constant :SYNC_ALL_NETWORKS
|
35565
|
+
|
35566
|
+
#
|
35567
|
+
# To synchronize all networks on the host, send a request like this:
|
35568
|
+
#
|
35569
|
+
# [source]
|
35570
|
+
# ----
|
35571
|
+
# POST /ovirt-engine/api/hosts/123/syncallnetworks
|
35572
|
+
# ----
|
35573
|
+
#
|
35574
|
+
# With a request body like this:
|
35575
|
+
#
|
35576
|
+
# [source,xml]
|
35577
|
+
# ----
|
35578
|
+
# <action/>
|
35579
|
+
# ----
|
35580
|
+
#
|
35581
|
+
# @param opts [Hash] Additional options.
|
35582
|
+
#
|
35583
|
+
# @option opts [Boolean] :async Indicates if the action should be performed asynchronously.
|
35584
|
+
#
|
35585
|
+
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
35586
|
+
#
|
35587
|
+
# @option opts [Hash] :query ({}) Additional URL query parameters.
|
35588
|
+
#
|
35589
|
+
# @option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
|
35590
|
+
# given then the timeout set globally for the connection will be used.
|
35591
|
+
#
|
35592
|
+
# @option opts [Boolean] :wait (true) If `true` wait for the response.
|
35593
|
+
#
|
35594
|
+
def sync_all_networks(opts = {})
|
35595
|
+
internal_action(:syncallnetworks, nil, SYNC_ALL_NETWORKS, opts)
|
35596
|
+
end
|
35597
|
+
|
35502
35598
|
UNREGISTERED_STORAGE_DOMAINS_DISCOVER = [
|
35503
35599
|
[:async, TrueClass].freeze,
|
35504
35600
|
[:iscsi, IscsiDetails].freeze,
|
data/lib/ovirtsdk4/types.rb
CHANGED
@@ -24974,6 +24974,31 @@ module OvirtSDK4
|
|
24974
24974
|
@os = value
|
24975
24975
|
end
|
24976
24976
|
|
24977
|
+
#
|
24978
|
+
# Returns the value of the `placement_policy` attribute.
|
24979
|
+
#
|
24980
|
+
# @return [VmPlacementPolicy]
|
24981
|
+
#
|
24982
|
+
def placement_policy
|
24983
|
+
@placement_policy
|
24984
|
+
end
|
24985
|
+
|
24986
|
+
#
|
24987
|
+
# Sets the value of the `placement_policy` attribute.
|
24988
|
+
#
|
24989
|
+
# @param value [VmPlacementPolicy, Hash]
|
24990
|
+
#
|
24991
|
+
# The `value` parameter can be an instance of {OvirtSDK4::VmPlacementPolicy} or a hash.
|
24992
|
+
# If it is a hash then a new instance will be created passing the hash as the
|
24993
|
+
# `opts` parameter to the constructor.
|
24994
|
+
#
|
24995
|
+
def placement_policy=(value)
|
24996
|
+
if value.is_a?(Hash)
|
24997
|
+
value = VmPlacementPolicy.new(value)
|
24998
|
+
end
|
24999
|
+
@placement_policy = value
|
25000
|
+
end
|
25001
|
+
|
24977
25002
|
#
|
24978
25003
|
# Returns the value of the `quota` attribute.
|
24979
25004
|
#
|
@@ -25372,6 +25397,8 @@ module OvirtSDK4
|
|
25372
25397
|
#
|
25373
25398
|
# @option opts [OperatingSystem, Hash] :os The value of attribute `os`.
|
25374
25399
|
#
|
25400
|
+
# @option opts [VmPlacementPolicy, Hash] :placement_policy The value of attribute `placement_policy`.
|
25401
|
+
#
|
25375
25402
|
# @option opts [Quota, Hash] :quota The value of attribute `quota`.
|
25376
25403
|
#
|
25377
25404
|
# @option opts [RngDevice, Hash] :rng_device The value of attribute `rng_device`.
|
@@ -25430,6 +25457,7 @@ module OvirtSDK4
|
|
25430
25457
|
self.migration_downtime = opts[:migration_downtime]
|
25431
25458
|
self.origin = opts[:origin]
|
25432
25459
|
self.os = opts[:os]
|
25460
|
+
self.placement_policy = opts[:placement_policy]
|
25433
25461
|
self.quota = opts[:quota]
|
25434
25462
|
self.rng_device = opts[:rng_device]
|
25435
25463
|
self.serial_number = opts[:serial_number]
|
@@ -25477,6 +25505,7 @@ module OvirtSDK4
|
|
25477
25505
|
@migration_downtime == other.migration_downtime &&
|
25478
25506
|
@origin == other.origin &&
|
25479
25507
|
@os == other.os &&
|
25508
|
+
@placement_policy == other.placement_policy &&
|
25480
25509
|
@quota == other.quota &&
|
25481
25510
|
@rng_device == other.rng_device &&
|
25482
25511
|
@serial_number == other.serial_number &&
|
@@ -25524,6 +25553,7 @@ module OvirtSDK4
|
|
25524
25553
|
@migration_downtime.hash +
|
25525
25554
|
@origin.hash +
|
25526
25555
|
@os.hash +
|
25556
|
+
@placement_policy.hash +
|
25527
25557
|
@quota.hash +
|
25528
25558
|
@rng_device.hash +
|
25529
25559
|
@serial_number.hash +
|
@@ -27898,6 +27928,31 @@ module OvirtSDK4
|
|
27898
27928
|
@job = value
|
27899
27929
|
end
|
27900
27930
|
|
27931
|
+
#
|
27932
|
+
# Returns the value of the `lease` attribute.
|
27933
|
+
#
|
27934
|
+
# @return [StorageDomainLease]
|
27935
|
+
#
|
27936
|
+
def lease
|
27937
|
+
@lease
|
27938
|
+
end
|
27939
|
+
|
27940
|
+
#
|
27941
|
+
# Sets the value of the `lease` attribute.
|
27942
|
+
#
|
27943
|
+
# @param value [StorageDomainLease, Hash]
|
27944
|
+
#
|
27945
|
+
# The `value` parameter can be an instance of {OvirtSDK4::StorageDomainLease} or a hash.
|
27946
|
+
# If it is a hash then a new instance will be created passing the hash as the
|
27947
|
+
# `opts` parameter to the constructor.
|
27948
|
+
#
|
27949
|
+
def lease=(value)
|
27950
|
+
if value.is_a?(Hash)
|
27951
|
+
value = StorageDomainLease.new(value)
|
27952
|
+
end
|
27953
|
+
@lease = value
|
27954
|
+
end
|
27955
|
+
|
27901
27956
|
#
|
27902
27957
|
# Returns the value of the `logical_units` attribute.
|
27903
27958
|
#
|
@@ -28878,6 +28933,8 @@ module OvirtSDK4
|
|
28878
28933
|
#
|
28879
28934
|
# @option opts [Job, Hash] :job The value of attribute `job`.
|
28880
28935
|
#
|
28936
|
+
# @option opts [StorageDomainLease, Hash] :lease The value of attribute `lease`.
|
28937
|
+
#
|
28881
28938
|
# @option opts [Array<LogicalUnit>, Array<Hash>] :logical_units The values of attribute `logical_units`.
|
28882
28939
|
#
|
28883
28940
|
# @option opts [Boolean] :maintenance_enabled The value of attribute `maintenance_enabled`.
|
@@ -28999,6 +29056,7 @@ module OvirtSDK4
|
|
28999
29056
|
self.iscsi = opts[:iscsi]
|
29000
29057
|
self.iscsi_targets = opts[:iscsi_targets]
|
29001
29058
|
self.job = opts[:job]
|
29059
|
+
self.lease = opts[:lease]
|
29002
29060
|
self.logical_units = opts[:logical_units]
|
29003
29061
|
self.maintenance_enabled = opts[:maintenance_enabled]
|
29004
29062
|
self.modified_bonds = opts[:modified_bonds]
|
@@ -29083,6 +29141,7 @@ module OvirtSDK4
|
|
29083
29141
|
@iscsi == other.iscsi &&
|
29084
29142
|
@iscsi_targets == other.iscsi_targets &&
|
29085
29143
|
@job == other.job &&
|
29144
|
+
@lease == other.lease &&
|
29086
29145
|
@logical_units == other.logical_units &&
|
29087
29146
|
@maintenance_enabled == other.maintenance_enabled &&
|
29088
29147
|
@modified_bonds == other.modified_bonds &&
|
@@ -29167,6 +29226,7 @@ module OvirtSDK4
|
|
29167
29226
|
@iscsi.hash +
|
29168
29227
|
@iscsi_targets.hash +
|
29169
29228
|
@job.hash +
|
29229
|
+
@lease.hash +
|
29170
29230
|
@logical_units.hash +
|
29171
29231
|
@maintenance_enabled.hash +
|
29172
29232
|
@modified_bonds.hash +
|
@@ -46414,6 +46474,31 @@ module OvirtSDK4
|
|
46414
46474
|
@permissions = list
|
46415
46475
|
end
|
46416
46476
|
|
46477
|
+
#
|
46478
|
+
# Returns the value of the `placement_policy` attribute.
|
46479
|
+
#
|
46480
|
+
# @return [VmPlacementPolicy]
|
46481
|
+
#
|
46482
|
+
def placement_policy
|
46483
|
+
@placement_policy
|
46484
|
+
end
|
46485
|
+
|
46486
|
+
#
|
46487
|
+
# Sets the value of the `placement_policy` attribute.
|
46488
|
+
#
|
46489
|
+
# @param value [VmPlacementPolicy, Hash]
|
46490
|
+
#
|
46491
|
+
# The `value` parameter can be an instance of {OvirtSDK4::VmPlacementPolicy} or a hash.
|
46492
|
+
# If it is a hash then a new instance will be created passing the hash as the
|
46493
|
+
# `opts` parameter to the constructor.
|
46494
|
+
#
|
46495
|
+
def placement_policy=(value)
|
46496
|
+
if value.is_a?(Hash)
|
46497
|
+
value = VmPlacementPolicy.new(value)
|
46498
|
+
end
|
46499
|
+
@placement_policy = value
|
46500
|
+
end
|
46501
|
+
|
46417
46502
|
#
|
46418
46503
|
# Returns the value of the `quota` attribute.
|
46419
46504
|
#
|
@@ -46942,6 +47027,8 @@ module OvirtSDK4
|
|
46942
47027
|
#
|
46943
47028
|
# @option opts [Array<Permission>, Array<Hash>] :permissions The values of attribute `permissions`.
|
46944
47029
|
#
|
47030
|
+
# @option opts [VmPlacementPolicy, Hash] :placement_policy The value of attribute `placement_policy`.
|
47031
|
+
#
|
46945
47032
|
# @option opts [Quota, Hash] :quota The value of attribute `quota`.
|
46946
47033
|
#
|
46947
47034
|
# @option opts [RngDevice, Hash] :rng_device The value of attribute `rng_device`.
|
@@ -49097,7 +49184,6 @@ module OvirtSDK4
|
|
49097
49184
|
self.original_template = opts[:original_template]
|
49098
49185
|
self.payloads = opts[:payloads]
|
49099
49186
|
self.permissions = opts[:permissions]
|
49100
|
-
self.placement_policy = opts[:placement_policy]
|
49101
49187
|
self.reported_devices = opts[:reported_devices]
|
49102
49188
|
self.run_once = opts[:run_once]
|
49103
49189
|
self.sessions = opts[:sessions]
|
@@ -49142,7 +49228,6 @@ module OvirtSDK4
|
|
49142
49228
|
@original_template == other.original_template &&
|
49143
49229
|
@payloads == other.payloads &&
|
49144
49230
|
@permissions == other.permissions &&
|
49145
|
-
@placement_policy == other.placement_policy &&
|
49146
49231
|
@reported_devices == other.reported_devices &&
|
49147
49232
|
@run_once == other.run_once &&
|
49148
49233
|
@sessions == other.sessions &&
|
@@ -49187,7 +49272,6 @@ module OvirtSDK4
|
|
49187
49272
|
@original_template.hash +
|
49188
49273
|
@payloads.hash +
|
49189
49274
|
@permissions.hash +
|
49190
|
-
@placement_policy.hash +
|
49191
49275
|
@reported_devices.hash +
|
49192
49276
|
@run_once.hash +
|
49193
49277
|
@sessions.hash +
|
@@ -51393,6 +51477,31 @@ module OvirtSDK4
|
|
51393
51477
|
@permissions = list
|
51394
51478
|
end
|
51395
51479
|
|
51480
|
+
#
|
51481
|
+
# Returns the value of the `placement_policy` attribute.
|
51482
|
+
#
|
51483
|
+
# @return [VmPlacementPolicy]
|
51484
|
+
#
|
51485
|
+
def placement_policy
|
51486
|
+
@placement_policy
|
51487
|
+
end
|
51488
|
+
|
51489
|
+
#
|
51490
|
+
# Sets the value of the `placement_policy` attribute.
|
51491
|
+
#
|
51492
|
+
# @param value [VmPlacementPolicy, Hash]
|
51493
|
+
#
|
51494
|
+
# The `value` parameter can be an instance of {OvirtSDK4::VmPlacementPolicy} or a hash.
|
51495
|
+
# If it is a hash then a new instance will be created passing the hash as the
|
51496
|
+
# `opts` parameter to the constructor.
|
51497
|
+
#
|
51498
|
+
def placement_policy=(value)
|
51499
|
+
if value.is_a?(Hash)
|
51500
|
+
value = VmPlacementPolicy.new(value)
|
51501
|
+
end
|
51502
|
+
@placement_policy = value
|
51503
|
+
end
|
51504
|
+
|
51396
51505
|
#
|
51397
51506
|
# Returns the value of the `quota` attribute.
|
51398
51507
|
#
|
@@ -51921,6 +52030,8 @@ module OvirtSDK4
|
|
51921
52030
|
#
|
51922
52031
|
# @option opts [Array<Permission>, Array<Hash>] :permissions The values of attribute `permissions`.
|
51923
52032
|
#
|
52033
|
+
# @option opts [VmPlacementPolicy, Hash] :placement_policy The value of attribute `placement_policy`.
|
52034
|
+
#
|
51924
52035
|
# @option opts [Quota, Hash] :quota The value of attribute `quota`.
|
51925
52036
|
#
|
51926
52037
|
# @option opts [RngDevice, Hash] :rng_device The value of attribute `rng_device`.
|
data/lib/ovirtsdk4/version.rb
CHANGED
data/lib/ovirtsdk4/writers.rb
CHANGED
@@ -71,6 +71,7 @@ module OvirtSDK4
|
|
71
71
|
writer.write_end
|
72
72
|
end
|
73
73
|
JobWriter.write_one(object.job, writer, 'job') unless object.job.nil?
|
74
|
+
StorageDomainLeaseWriter.write_one(object.lease, writer, 'lease') unless object.lease.nil?
|
74
75
|
LogicalUnitWriter.write_many(object.logical_units, writer, 'logical_unit', 'logical_units') unless object.logical_units.nil?
|
75
76
|
Writer.write_boolean(writer, 'maintenance_enabled', object.maintenance_enabled) unless object.maintenance_enabled.nil?
|
76
77
|
HostNicWriter.write_many(object.modified_bonds, writer, 'host_nic', 'modified_bonds') unless object.modified_bonds.nil?
|
@@ -3271,6 +3272,7 @@ module OvirtSDK4
|
|
3271
3272
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
3272
3273
|
Writer.write_string(writer, 'origin', object.origin) unless object.origin.nil?
|
3273
3274
|
OperatingSystemWriter.write_one(object.os, writer, 'os') unless object.os.nil?
|
3275
|
+
VmPlacementPolicyWriter.write_one(object.placement_policy, writer, 'placement_policy') unless object.placement_policy.nil?
|
3274
3276
|
RngDeviceWriter.write_one(object.rng_device, writer, 'rng_device') unless object.rng_device.nil?
|
3275
3277
|
SerialNumberWriter.write_one(object.serial_number, writer, 'serial_number') unless object.serial_number.nil?
|
3276
3278
|
IconWriter.write_one(object.small_icon, writer, 'small_icon') unless object.small_icon.nil?
|
@@ -6530,6 +6532,7 @@ module OvirtSDK4
|
|
6530
6532
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
6531
6533
|
Writer.write_string(writer, 'origin', object.origin) unless object.origin.nil?
|
6532
6534
|
OperatingSystemWriter.write_one(object.os, writer, 'os') unless object.os.nil?
|
6535
|
+
VmPlacementPolicyWriter.write_one(object.placement_policy, writer, 'placement_policy') unless object.placement_policy.nil?
|
6533
6536
|
RngDeviceWriter.write_one(object.rng_device, writer, 'rng_device') unless object.rng_device.nil?
|
6534
6537
|
SerialNumberWriter.write_one(object.serial_number, writer, 'serial_number') unless object.serial_number.nil?
|
6535
6538
|
IconWriter.write_one(object.small_icon, writer, 'small_icon') unless object.small_icon.nil?
|
@@ -7148,6 +7151,7 @@ module OvirtSDK4
|
|
7148
7151
|
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
|
7149
7152
|
Writer.write_string(writer, 'origin', object.origin) unless object.origin.nil?
|
7150
7153
|
OperatingSystemWriter.write_one(object.os, writer, 'os') unless object.os.nil?
|
7154
|
+
VmPlacementPolicyWriter.write_one(object.placement_policy, writer, 'placement_policy') unless object.placement_policy.nil?
|
7151
7155
|
RngDeviceWriter.write_one(object.rng_device, writer, 'rng_device') unless object.rng_device.nil?
|
7152
7156
|
SerialNumberWriter.write_one(object.serial_number, writer, 'serial_number') unless object.serial_number.nil?
|
7153
7157
|
IconWriter.write_one(object.small_icon, writer, 'small_icon') unless object.small_icon.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ovirt-engine-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Hernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -90,16 +90,22 @@ dependencies:
|
|
90
90
|
name: json
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- - "
|
93
|
+
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '1'
|
96
|
+
- - "<"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '3'
|
96
99
|
type: :runtime
|
97
100
|
prerelease: false
|
98
101
|
version_requirements: !ruby/object:Gem::Requirement
|
99
102
|
requirements:
|
100
|
-
- - "
|
103
|
+
- - ">="
|
101
104
|
- !ruby/object:Gem::Version
|
102
105
|
version: '1'
|
106
|
+
- - "<"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '3'
|
103
109
|
description: Ruby SDK for the oVirt Engine API.
|
104
110
|
email:
|
105
111
|
- jhernand@redhat.com
|
@@ -165,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
171
|
version: '0'
|
166
172
|
requirements: []
|
167
173
|
rubyforge_project:
|
168
|
-
rubygems_version: 2.6.
|
174
|
+
rubygems_version: 2.6.6
|
169
175
|
signing_key:
|
170
176
|
specification_version: 4
|
171
177
|
summary: oVirt SDK
|