ovirt-engine-sdk 4.0.0.alpha12 → 4.0.0.alpha13
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/README.adoc +2 -1
- data/lib/ovirtsdk4/http.rb +28 -34
- data/lib/ovirtsdk4/reader.rb +17 -17
- data/lib/ovirtsdk4/readers.rb +412 -180
- data/lib/ovirtsdk4/service.rb +6 -6
- data/lib/ovirtsdk4/services.rb +8451 -3621
- data/lib/ovirtsdk4/type.rb +8 -8
- data/lib/ovirtsdk4/types.rb +13533 -11515
- data/lib/ovirtsdk4/version.rb +3 -3
- data/lib/ovirtsdk4/writer.rb +12 -12
- data/lib/ovirtsdk4/writers.rb +163 -91
- data/lib/ovirtsdk4.rb +5 -5
- metadata +2 -2
data/lib/ovirtsdk4/service.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#
|
2
2
|
# Copyright (c) 2015-2016 Red Hat, Inc.
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -12,16 +12,16 @@
|
|
12
12
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
13
|
# See the License for the specific language governing permissions and
|
14
14
|
# limitations under the License.
|
15
|
-
|
15
|
+
#
|
16
16
|
|
17
17
|
module OvirtSDK4
|
18
18
|
|
19
|
-
|
19
|
+
#
|
20
20
|
# This is the base class for all the services of the SDK. It contains the utility methods used by all of them.
|
21
21
|
#
|
22
22
|
class Service
|
23
23
|
|
24
|
-
|
24
|
+
#
|
25
25
|
# Creates and raises an error containing the details of the given HTTP response and fault.
|
26
26
|
#
|
27
27
|
# This method is intended for internal use by other components of the SDK. Refrain from using it directly, as
|
@@ -54,7 +54,7 @@ module OvirtSDK4
|
|
54
54
|
raise Error.new(message)
|
55
55
|
end
|
56
56
|
|
57
|
-
|
57
|
+
#
|
58
58
|
# Reads the response body assuming that it contains a fault message, converts it to an Error and raises it.
|
59
59
|
#
|
60
60
|
# This method is intended for internal use by other components of the SDK. Refrain from using it directly, as
|
@@ -72,7 +72,7 @@ module OvirtSDK4
|
|
72
72
|
raise_error(response, fault)
|
73
73
|
end
|
74
74
|
|
75
|
-
|
75
|
+
#
|
76
76
|
# Reads the response body assuming that it contains an action, checks if it contains a fault message, and if it
|
77
77
|
# does converts it to an Error and raises it. If it doesn't contain a fault then it just returns the action object.
|
78
78
|
#
|