ovirt-engine-sdk 4.0.0.alpha17 → 4.0.0.alpha18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.adoc +11 -0
- data/lib/ovirtsdk4/http.rb +16 -10
- data/lib/ovirtsdk4/service.rb +8 -5
- data/lib/ovirtsdk4/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e70afe61d9ab8d67da5c68fa4f213934a9dd31a2
|
4
|
+
data.tar.gz: dae7a31bc0b80f1cfc638075f88eb1f8fa75b712
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97622bd81667d45e1bddafe41eaad5a6d03423b9f848439c6271af07cbf2a0db19161c26487804c5962cf039b4071f6790401840003aec69e12fa3f4af081e3c
|
7
|
+
data.tar.gz: abf19ca83d8707a976a56b020f94303e96313254aaaa806c6385c2cdd3d9641c67b64eb3ba28e91af541f202bed77aa6127e77725c3de95858bdf58fc13923dc
|
data/CHANGES.adoc
CHANGED
@@ -3,6 +3,17 @@
|
|
3
3
|
This document describes the relevant changes between releases of the
|
4
4
|
API model.
|
5
5
|
|
6
|
+
== 4.0.0.alpha18 / Jul 29 2016
|
7
|
+
|
8
|
+
Update to model 4.0.29:
|
9
|
+
|
10
|
+
Bug fixes:
|
11
|
+
|
12
|
+
* Add `logical_name` attribute to the disk attachment type.
|
13
|
+
|
14
|
+
* Fix the name of the parameter to get virtual machine from affinity
|
15
|
+
label, should be `vm` instead of `host`.
|
16
|
+
|
6
17
|
== 4.0.0.alpha17 / Jul 19 2016
|
7
18
|
|
8
19
|
Update to model 4.0.28.
|
data/lib/ovirtsdk4/http.rb
CHANGED
@@ -445,9 +445,6 @@ module OvirtSDK4
|
|
445
445
|
# @api private
|
446
446
|
#
|
447
447
|
def build_sso_auth_url
|
448
|
-
# Get the base URL:
|
449
|
-
sso_url = @url.to_s[0..@url.to_s.rindex('/')]
|
450
|
-
|
451
448
|
# The SSO access scope:
|
452
449
|
scope = 'ovirt-app-api'
|
453
450
|
|
@@ -460,8 +457,14 @@ module OvirtSDK4
|
|
460
457
|
entry_point = 'token'
|
461
458
|
end
|
462
459
|
|
463
|
-
#
|
464
|
-
|
460
|
+
# Copy the base URL and modify it to point to the SSO authentication service:
|
461
|
+
url = URI(@url.to_s)
|
462
|
+
url.path = "/ovirt-engine/sso/oauth/#{entry_point}"
|
463
|
+
url.query = URI.encode_www_form(
|
464
|
+
:grant_type => grant_type,
|
465
|
+
:scope => scope,
|
466
|
+
)
|
467
|
+
url.to_s
|
465
468
|
end
|
466
469
|
|
467
470
|
#
|
@@ -471,11 +474,14 @@ module OvirtSDK4
|
|
471
474
|
# @api private
|
472
475
|
#
|
473
476
|
def build_sso_revoke_url
|
474
|
-
#
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
477
|
+
# Copy the base URL and modify it to point to the SSO logout service:
|
478
|
+
url = URI(@url.to_s)
|
479
|
+
url.path = '/ovirt-engine/services/sso-logout'
|
480
|
+
url.query = URI.encode_www_form(
|
481
|
+
:scope => '',
|
482
|
+
:token => @sso_token,
|
483
|
+
)
|
484
|
+
url.to_s
|
479
485
|
end
|
480
486
|
|
481
487
|
#
|
data/lib/ovirtsdk4/service.rb
CHANGED
@@ -63,11 +63,14 @@ module OvirtSDK4
|
|
63
63
|
# @api private
|
64
64
|
#
|
65
65
|
def check_fault(response)
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
66
|
+
fault = nil
|
67
|
+
unless response.body.to_s.empty?
|
68
|
+
begin
|
69
|
+
reader = XmlReader.new(response.body)
|
70
|
+
fault = FaultReader.read_one(reader)
|
71
|
+
ensure
|
72
|
+
reader.close
|
73
|
+
end
|
71
74
|
end
|
72
75
|
raise_error(response, fault)
|
73
76
|
end
|
data/lib/ovirtsdk4/version.rb
CHANGED
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.0.0.
|
4
|
+
version: 4.0.0.alpha18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Hernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curb
|
@@ -78,25 +78,25 @@ files:
|
|
78
78
|
- LICENSE.txt
|
79
79
|
- README.adoc
|
80
80
|
- ext/ovirtsdk4c/extconf.rb
|
81
|
+
- ext/ovirtsdk4c/ov_error.c
|
82
|
+
- ext/ovirtsdk4c/ov_xml_writer.c
|
81
83
|
- ext/ovirtsdk4c/ov_module.c
|
82
84
|
- ext/ovirtsdk4c/ovirtsdk4c.c
|
83
|
-
- ext/ovirtsdk4c/ov_xml_writer.c
|
84
|
-
- ext/ovirtsdk4c/ov_error.c
|
85
85
|
- ext/ovirtsdk4c/ov_xml_reader.c
|
86
86
|
- ext/ovirtsdk4c/ov_xml_writer.h
|
87
|
-
- ext/ovirtsdk4c/ov_module.h
|
88
87
|
- ext/ovirtsdk4c/ov_xml_reader.h
|
88
|
+
- ext/ovirtsdk4c/ov_module.h
|
89
89
|
- ext/ovirtsdk4c/ov_error.h
|
90
|
-
- lib/ovirtsdk4/reader.rb
|
91
|
-
- lib/ovirtsdk4/writer.rb
|
92
90
|
- lib/ovirtsdk4/type.rb
|
91
|
+
- lib/ovirtsdk4/service.rb
|
93
92
|
- lib/ovirtsdk4/readers.rb
|
93
|
+
- lib/ovirtsdk4/version.rb
|
94
|
+
- lib/ovirtsdk4/http.rb
|
94
95
|
- lib/ovirtsdk4/services.rb
|
95
|
-
- lib/ovirtsdk4/types.rb
|
96
96
|
- lib/ovirtsdk4/writers.rb
|
97
|
-
- lib/ovirtsdk4/
|
98
|
-
- lib/ovirtsdk4/
|
99
|
-
- lib/ovirtsdk4/
|
97
|
+
- lib/ovirtsdk4/writer.rb
|
98
|
+
- lib/ovirtsdk4/types.rb
|
99
|
+
- lib/ovirtsdk4/reader.rb
|
100
100
|
- lib/ovirtsdk4.rb
|
101
101
|
homepage: http://ovirt.org
|
102
102
|
licenses:
|