ovirt-engine-sdk 4.1.4 → 4.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62921d04bdc973cf71e556d3218dfb7217aeba49
4
- data.tar.gz: 38ea175b2b105f2a767df329c9ce3a8476b7c5da
3
+ metadata.gz: 198793270c4f7de28a7676f4cd84785a1f3b8c66
4
+ data.tar.gz: 29f34047600c900691d031141b4dc7e2241a9df7
5
5
  SHA512:
6
- metadata.gz: 021f308491b6ec73382ac4f729f977762195cffaee9cc360a0c1f1788b62a1ffb584e511520fe58ccf6724a23b93a40d23f33001553c54a447468e2e660a6210
7
- data.tar.gz: 3e028852f638ea2e9706b740a0c9a2d0404e730bf08f825c57931eecc137732645f21cc82f940ef0355c242e461613602cd96835849f0a3ccca7418674844b10
6
+ metadata.gz: c294f903298a1558ee829b2589019928b3b05a2e91b337116186a853b088f335f33e15c80ca8c4a5a9a1c0af07cca36440ce76b011fdeb23d06aa72b5620f069
7
+ data.tar.gz: d6a3bc588c2e0e91053b82d1053bd95b37ac1b4fea3167d81a6bfb31fec14069483271f9b46f45b5b460524fa3974a30705260a05560c4edb9d7f23232706545
data/CHANGES.adoc CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  This document describes the relevant changes between releases of the SDK.
4
4
 
5
+ == 4.1.5 / Mar 15 2017
6
+
7
+ Update to model 4.1.33:
8
+
9
+ * Replace the `Seal` operation of the service that manages a template
10
+ with a new `seal` parameter in the operation that adds a template
11
+ https://bugzilla.redhat.com/1335642[#1335642].
12
+
13
+ * Add `unregistered` parameter for the operations to list disks,
14
+ virtual machines, and templates in storage domains
15
+ https://bugzilla.redhat.com/1428159[#1428159].
16
+
17
+ * Fix the direction of the `statistic` parameter of the `Statistic`
18
+ service, must be out only.
19
+
20
+ * Revert the addition of the operation to update disks.
21
+
5
22
  == 4.1.4 / Mar 3 2017
6
23
 
7
24
  Bug fixes:
@@ -7478,6 +7478,19 @@ module OvirtSDK4
7478
7478
  #
7479
7479
  # @option opts [String] :search A query string used to restrict the returned disks.
7480
7480
  #
7481
+ # @option opts [Boolean] :unregistered Indicates whether to retrieve a list of registered or unregistered disks in the storage domain.
7482
+ # To get a list of unregistered disks in the storage domain the call should indicate the unregistered flag.
7483
+ # For example, to get a list of unregistered disks the REST API call should look like this:
7484
+ #
7485
+ # ....
7486
+ # GET /ovirt-engine/api/storagedomains/123/disks?unregistered=true
7487
+ # ....
7488
+ #
7489
+ # The default value of the unregistered flag is `false`.
7490
+ #
7491
+ # IMPORTANT: This parameter only applies to the `disks` sub-collection of attached storage domains, it
7492
+ # does not apply to the top level `disks` collection.
7493
+ #
7481
7494
  # @option opts [Hash] :headers Additional HTTP headers.
7482
7495
  #
7483
7496
  # @option opts [Hash] :query Additional URL query parameters.
@@ -7501,6 +7514,11 @@ module OvirtSDK4
7501
7514
  unless value.nil?
7502
7515
  query['search'] = value
7503
7516
  end
7517
+ value = opts[:unregistered]
7518
+ unless value.nil?
7519
+ value = Writer.render_boolean(value)
7520
+ query['unregistered'] = value
7521
+ end
7504
7522
  request = HttpRequest.new(method: :GET, url: @path, headers: headers, query: query)
7505
7523
  response = @connection.send(request)
7506
7524
  case response.code
@@ -12506,6 +12524,9 @@ module OvirtSDK4
12506
12524
  # NOTE: The `root_password` element is only included in the client-provided initial representation and is not
12507
12525
  # exposed in the representations returned from subsequent requests.
12508
12526
  #
12527
+ # IMPORTANT: Since version 4.1.2 of the engine when a host is newly added we override the host firewall
12528
+ # definitions by default.
12529
+ #
12509
12530
  # To add a hosted engine host, use the optional `deploy_hosted_engine` parameter:
12510
12531
  #
12511
12532
  # [source]
@@ -22924,6 +22945,23 @@ module OvirtSDK4
22924
22945
  # </snapshot>
22925
22946
  # ----
22926
22947
  #
22948
+ # [IMPORTANT]
22949
+ # ====
22950
+ # When a snapshot is created the default value for the <<types/snapshot/attributes/persist_memorystate,
22951
+ # persist_memorystate>> attribute is `true`. That means that the content of the memory of the virtual
22952
+ # machine will be included in the snapshot, and it also means that the virtual machine will be paused
22953
+ # for a longer time. That can negatively affect applications that are very sensitive to timing (NTP
22954
+ # servers, for example). In those cases make sure that you set the attribute to `false`:
22955
+ #
22956
+ # [source,xml]
22957
+ # ----
22958
+ # <snapshot>
22959
+ # <description>My snapshot</description>
22960
+ # <persist_memorystate>false</persist_memorystate>
22961
+ # </snapshot>
22962
+ # ----
22963
+ # ====
22964
+ #
22927
22965
  # @param snapshot [Snapshot] The `snapshot` to add.
22928
22966
  #
22929
22967
  # @param opts [Hash] Additional options.
@@ -23335,8 +23373,6 @@ module OvirtSDK4
23335
23373
  #
23336
23374
  # @param opts [Hash] Additional options.
23337
23375
  #
23338
- # @option opts [Statistic] :statistic
23339
- #
23340
23376
  # @option opts [Hash] :headers Additional HTTP headers.
23341
23377
  #
23342
23378
  # @option opts [Hash] :query Additional URL query parameters.
@@ -23346,10 +23382,6 @@ module OvirtSDK4
23346
23382
  def get(opts = {})
23347
23383
  headers = opts[:headers] || {}
23348
23384
  query = opts[:query] || {}
23349
- value = opts[:statistic]
23350
- unless value.nil?
23351
- query['statistic'] = value
23352
- end
23353
23385
  request = HttpRequest.new(method: :GET, url: @path, headers: headers, query: query)
23354
23386
  response = @connection.send(request)
23355
23387
  case response.code
@@ -25262,6 +25294,17 @@ module OvirtSDK4
25262
25294
  #
25263
25295
  # @option opts [Integer] :max Sets the maximum number of templates to return. If not specified all the templates are returned.
25264
25296
  #
25297
+ # @option opts [Boolean] :unregistered Indicates whether to retrieve a list of registered or unregistered templates which contain disks on the storage domain.
25298
+ # To get a list of unregistered templates the call should indicate the unregistered flag.
25299
+ # For example, to get a list of unregistered templates the REST API call should look like this:
25300
+ #
25301
+ # ....
25302
+ # GET /ovirt-engine/api/storagedomains/123/templates?unregistered=true
25303
+ # ....
25304
+ #
25305
+ # The default value of the unregisterd flag is `false`.
25306
+ # The request only apply to storage domains that are attached.
25307
+ #
25265
25308
  # @option opts [Hash] :headers Additional HTTP headers.
25266
25309
  #
25267
25310
  # @option opts [Hash] :query Additional URL query parameters.
@@ -25276,6 +25319,11 @@ module OvirtSDK4
25276
25319
  value = Writer.render_integer(value)
25277
25320
  query['max'] = value
25278
25321
  end
25322
+ value = opts[:unregistered]
25323
+ unless value.nil?
25324
+ value = Writer.render_boolean(value)
25325
+ query['unregistered'] = value
25326
+ end
25279
25327
  request = HttpRequest.new(method: :GET, url: @path, headers: headers, query: query)
25280
25328
  response = @connection.send(request)
25281
25329
  case response.code
@@ -25814,6 +25862,18 @@ module OvirtSDK4
25814
25862
  # @option opts [Integer] :max Sets the maximum number of virtual machines to return. If not specified all the virtual machines are
25815
25863
  # returned.
25816
25864
  #
25865
+ # @option opts [Boolean] :unregistered Indicates whether to retrieve a list of registered or unregistered virtual machines which
25866
+ # contain disks on the storage domain.
25867
+ # To get a list of unregistered virtual machines the call should indicate the unregistered flag.
25868
+ # For example, to get a list of unregistered virtual machines the REST API call should look like this:
25869
+ #
25870
+ # ....
25871
+ # GET /ovirt-engine/api/storagedomains/123/vms?unregistered=true
25872
+ # ....
25873
+ #
25874
+ # The default value of the unregisterd flag is `false`.
25875
+ # The request only apply to storage domains that are attached.
25876
+ #
25817
25877
  # @option opts [Hash] :headers Additional HTTP headers.
25818
25878
  #
25819
25879
  # @option opts [Hash] :query Additional URL query parameters.
@@ -25828,6 +25888,11 @@ module OvirtSDK4
25828
25888
  value = Writer.render_integer(value)
25829
25889
  query['max'] = value
25830
25890
  end
25891
+ value = opts[:unregistered]
25892
+ unless value.nil?
25893
+ value = Writer.render_boolean(value)
25894
+ query['unregistered'] = value
25895
+ end
25831
25896
  request = HttpRequest.new(method: :GET, url: @path, headers: headers, query: query)
25832
25897
  response = @connection.send(request)
25833
25898
  case response.code
@@ -28251,46 +28316,6 @@ module OvirtSDK4
28251
28316
  end
28252
28317
  end
28253
28318
 
28254
- #
28255
- # Seal the template.
28256
- #
28257
- # Sealing erases all host-specific configuration from the filesystem:
28258
- # SSH keys, UDEV rules, MAC addresses, system ID, hostname etc.,
28259
- # thus making easy to use the template to create multiple virtual
28260
- # machines without manual intervention.
28261
- #
28262
- # Currently sealing is supported only for Linux OS.
28263
- #
28264
- # @param opts [Hash] Additional options.
28265
- #
28266
- # @option opts [Hash] :headers Additional HTTP headers.
28267
- #
28268
- # @option opts [Hash] :query Additional URL query parameters.
28269
- #
28270
- def seal(opts = {})
28271
- headers = opts[:headers] || {}
28272
- query = opts[:query] || {}
28273
- action = Action.new(opts)
28274
- writer = XmlWriter.new(nil, true)
28275
- ActionWriter.write_one(action, writer)
28276
- body = writer.string
28277
- writer.close
28278
- request = HttpRequest.new(
28279
- method: :POST,
28280
- url: "#{@path}/seal",
28281
- body: body,
28282
- headers: headers,
28283
- query: query
28284
- )
28285
- response = @connection.send(request)
28286
- case response.code
28287
- when 200
28288
- action = check_action(response)
28289
- else
28290
- check_action(response)
28291
- end
28292
- end
28293
-
28294
28319
  #
28295
28320
  # Updates the template.
28296
28321
  #
@@ -29985,6 +30010,18 @@ module OvirtSDK4
29985
30010
  # </template>
29986
30011
  # ----
29987
30012
  #
30013
+ # @option opts [Boolean] :seal Seal the template.
30014
+ #
30015
+ # If this optional parameter is provided and its value is `true`,
30016
+ # then the template is sealed after creation.
30017
+ #
30018
+ # Sealing erases all host-specific configuration from the filesystem:
30019
+ # SSH keys, UDEV rules, MAC addresses, system ID, hostname etc.,
30020
+ # thus making easy to use the template to create multiple virtual
30021
+ # machines without manual intervention.
30022
+ #
30023
+ # Currently sealing is supported only for Linux OS.
30024
+ #
29988
30025
  # @option opts [Hash] :headers Additional HTTP headers.
29989
30026
  #
29990
30027
  # @option opts [Hash] :query Additional URL query parameters.
@@ -30002,6 +30039,11 @@ module OvirtSDK4
30002
30039
  value = Writer.render_boolean(value)
30003
30040
  query['clone_permissions'] = value
30004
30041
  end
30042
+ value = opts[:seal]
30043
+ unless value.nil?
30044
+ value = Writer.render_boolean(value)
30045
+ query['seal'] = value
30046
+ end
30005
30047
  request = HttpRequest.new(method: :POST, url: @path, headers: headers, query: query)
30006
30048
  begin
30007
30049
  writer = XmlWriter.new(nil, true)
@@ -37266,67 +37308,6 @@ module OvirtSDK4
37266
37308
  end
37267
37309
  end
37268
37310
 
37269
- #
37270
- # This operation updates the disk with the appropriate parameters.
37271
- # The only field that can be updated is `qcow_version`.
37272
- #
37273
- # For example, update disk can be facilitated using the following request:
37274
- #
37275
- # [source]
37276
- # ----
37277
- # PUT /ovirt-engine/api/disks/123
37278
- # ----
37279
- #
37280
- # With a request body like this:
37281
- #
37282
- # [source,xml]
37283
- # ----
37284
- # <disk>
37285
- # <qcow_version>qcow2_v3</qcow_version>
37286
- # </disk>
37287
- # ----
37288
- #
37289
- # Since the backend operation is asynchronous the disk element which will be returned
37290
- # to the user might not be synced with the changed properties.
37291
- #
37292
- # @param disk [Disk] The update to apply to the disk.
37293
- # @param opts [Hash] Additional options.
37294
- #
37295
- # @option opts [Hash] :headers Additional HTTP headers.
37296
- #
37297
- # @option opts [Hash] :query Additional URL query parameters.
37298
- #
37299
- # @return [Disk]
37300
- #
37301
- def update(disk, opts = {})
37302
- if disk.is_a?(Hash)
37303
- disk = OvirtSDK4::Disk.new(disk)
37304
- end
37305
- headers = opts[:headers] || {}
37306
- query = opts[:query] || {}
37307
- request = HttpRequest.new(method: :PUT, url: @path, headers: headers, query: query)
37308
- begin
37309
- writer = XmlWriter.new(nil, true)
37310
- DiskWriter.write_one(disk, writer)
37311
- request.body = writer.string
37312
- ensure
37313
- writer.close
37314
- end
37315
- response = @connection.send(request)
37316
- case response.code
37317
- when 200
37318
- begin
37319
- reader = XmlReader.new(response.body)
37320
- return DiskReader.read_one(reader)
37321
- ensure
37322
- reader.close
37323
- end
37324
- return result
37325
- else
37326
- check_fault(response)
37327
- end
37328
- end
37329
-
37330
37311
  #
37331
37312
  # Locates the `permissions` service.
37332
37313
  #
@@ -39057,6 +39038,9 @@ module OvirtSDK4
39057
39038
  # "https://engine.example.com/ovirt-engine/api/hosts/123?deploy_hosted_engine=true"
39058
39039
  # ----
39059
39040
  #
39041
+ # IMPORTANT: Since version 4.1.2 of the engine when a host is reinstalled we override the host firewall
39042
+ # definitions by default.
39043
+ #
39060
39044
  # @param opts [Hash] Additional options.
39061
39045
  #
39062
39046
  # @option opts [Boolean] :async Indicates if the installation should be performed asynchronously.
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module OvirtSDK4
19
- VERSION = '4.1.4'.freeze
19
+ VERSION = '4.1.5'.freeze
20
20
  end
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.1.4
4
+ version: 4.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Hernandez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-03 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake