ovirt-engine-sdk 4.0.0 → 4.0.1
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/.yardopts +6 -0
- data/CHANGES.adoc +33 -0
- data/README.adoc +1 -1
- data/ext/ovirtsdk4c/ov_xml_reader.c +59 -2
- data/lib/ovirtsdk4/reader.rb +56 -0
- data/lib/ovirtsdk4/readers.rb +485 -9
- data/lib/ovirtsdk4/service.rb +23 -20
- data/lib/ovirtsdk4/services.rb +439 -164
- data/lib/ovirtsdk4/types.rb +267 -3
- data/lib/ovirtsdk4/version.rb +1 -1
- data/lib/ovirtsdk4/writers.rb +37 -1
- metadata +11 -10
data/lib/ovirtsdk4/service.rb
CHANGED
@@ -55,7 +55,7 @@ module OvirtSDK4
|
|
55
55
|
end
|
56
56
|
|
57
57
|
#
|
58
|
-
# Reads the response body
|
58
|
+
# Reads the response body, checks if it is a fault and if so 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
|
61
61
|
# backwards compatibility isn't guaranteed.
|
@@ -63,21 +63,21 @@ module OvirtSDK4
|
|
63
63
|
# @api private
|
64
64
|
#
|
65
65
|
def check_fault(response)
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
end
|
66
|
+
body = response.body
|
67
|
+
if body.nil? || body.length == 0
|
68
|
+
raise_error(response, nil)
|
69
|
+
end
|
70
|
+
body = Reader.read(body)
|
71
|
+
if body.is_a?(Fault)
|
72
|
+
raise_error(response, body)
|
74
73
|
end
|
75
|
-
|
74
|
+
raise Error.new("Expected a fault, but got '#{body.class.name.split('::').last}'")
|
76
75
|
end
|
77
76
|
|
78
77
|
#
|
79
|
-
# Reads the response body
|
80
|
-
#
|
78
|
+
# Reads the response body and checks if it is an action or a fault. If it is an action it checks if the action
|
79
|
+
# contains a nested fault. If there is a fault then converts it to an `Error` and raises it. If there is no fault
|
80
|
+
# then the action object is returned.
|
81
81
|
#
|
82
82
|
# This method is intended for internal use by other components of the SDK. Refrain from using it directly, as
|
83
83
|
# backwards compatibility isn't guaranteed.
|
@@ -85,16 +85,19 @@ module OvirtSDK4
|
|
85
85
|
# @api private
|
86
86
|
#
|
87
87
|
def check_action(response)
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
88
|
+
body = response.body
|
89
|
+
if body.nil? || body.length == 0
|
90
|
+
raise_error(response, nil)
|
91
|
+
end
|
92
|
+
body = Reader.read(body)
|
93
|
+
if body.is_a?(Fault)
|
94
|
+
raise_error(response, body)
|
93
95
|
end
|
94
|
-
|
95
|
-
|
96
|
+
if body.is_a?(Action)
|
97
|
+
return body if body.fault.nil?
|
98
|
+
raise_error(response, body.fault)
|
96
99
|
end
|
97
|
-
|
100
|
+
raise Error.new("Expected an action or a fault, but got '#{body.class.name.split('::').last}'")
|
98
101
|
end
|
99
102
|
|
100
103
|
end
|
data/lib/ovirtsdk4/services.rb
CHANGED
@@ -296,6 +296,12 @@ module OvirtSDK4
|
|
296
296
|
class ImageService < Service
|
297
297
|
end
|
298
298
|
|
299
|
+
class ImageTransferService < Service
|
300
|
+
end
|
301
|
+
|
302
|
+
class ImageTransfersService < Service
|
303
|
+
end
|
304
|
+
|
299
305
|
class ImagesService < Service
|
300
306
|
end
|
301
307
|
|
@@ -3383,7 +3389,7 @@ module OvirtSDK4
|
|
3383
3389
|
when 200
|
3384
3390
|
action = check_action(response)
|
3385
3391
|
else
|
3386
|
-
|
3392
|
+
check_action(response)
|
3387
3393
|
end
|
3388
3394
|
end
|
3389
3395
|
|
@@ -3410,7 +3416,7 @@ module OvirtSDK4
|
|
3410
3416
|
when 200
|
3411
3417
|
action = check_action(response)
|
3412
3418
|
else
|
3413
|
-
|
3419
|
+
check_action(response)
|
3414
3420
|
end
|
3415
3421
|
end
|
3416
3422
|
|
@@ -4183,7 +4189,7 @@ module OvirtSDK4
|
|
4183
4189
|
when 200
|
4184
4190
|
action = check_action(response)
|
4185
4191
|
else
|
4186
|
-
|
4192
|
+
check_action(response)
|
4187
4193
|
end
|
4188
4194
|
end
|
4189
4195
|
|
@@ -4682,7 +4688,7 @@ module OvirtSDK4
|
|
4682
4688
|
when 200
|
4683
4689
|
action = check_action(response)
|
4684
4690
|
else
|
4685
|
-
|
4691
|
+
check_action(response)
|
4686
4692
|
end
|
4687
4693
|
end
|
4688
4694
|
|
@@ -6998,7 +7004,7 @@ module OvirtSDK4
|
|
6998
7004
|
when 200
|
6999
7005
|
action = check_action(response)
|
7000
7006
|
else
|
7001
|
-
|
7007
|
+
check_action(response)
|
7002
7008
|
end
|
7003
7009
|
end
|
7004
7010
|
|
@@ -7812,7 +7818,7 @@ module OvirtSDK4
|
|
7812
7818
|
when 200
|
7813
7819
|
action = check_action(response)
|
7814
7820
|
else
|
7815
|
-
|
7821
|
+
check_action(response)
|
7816
7822
|
end
|
7817
7823
|
end
|
7818
7824
|
|
@@ -7839,7 +7845,7 @@ module OvirtSDK4
|
|
7839
7845
|
when 200
|
7840
7846
|
action = check_action(response)
|
7841
7847
|
else
|
7842
|
-
|
7848
|
+
check_action(response)
|
7843
7849
|
end
|
7844
7850
|
end
|
7845
7851
|
|
@@ -8819,7 +8825,7 @@ module OvirtSDK4
|
|
8819
8825
|
when 200
|
8820
8826
|
action = check_action(response)
|
8821
8827
|
else
|
8822
|
-
|
8828
|
+
check_action(response)
|
8823
8829
|
end
|
8824
8830
|
end
|
8825
8831
|
|
@@ -8921,7 +8927,7 @@ module OvirtSDK4
|
|
8921
8927
|
when 200
|
8922
8928
|
action = check_action(response)
|
8923
8929
|
else
|
8924
|
-
|
8930
|
+
check_action(response)
|
8925
8931
|
end
|
8926
8932
|
end
|
8927
8933
|
|
@@ -8975,7 +8981,7 @@ module OvirtSDK4
|
|
8975
8981
|
when 200
|
8976
8982
|
action = check_action(response)
|
8977
8983
|
else
|
8978
|
-
|
8984
|
+
check_action(response)
|
8979
8985
|
end
|
8980
8986
|
end
|
8981
8987
|
|
@@ -9059,7 +9065,7 @@ module OvirtSDK4
|
|
9059
9065
|
when 200
|
9060
9066
|
action = check_action(response)
|
9061
9067
|
else
|
9062
|
-
|
9068
|
+
check_action(response)
|
9063
9069
|
end
|
9064
9070
|
end
|
9065
9071
|
|
@@ -9087,7 +9093,7 @@ module OvirtSDK4
|
|
9087
9093
|
when 200
|
9088
9094
|
action = check_action(response)
|
9089
9095
|
else
|
9090
|
-
|
9096
|
+
check_action(response)
|
9091
9097
|
end
|
9092
9098
|
end
|
9093
9099
|
|
@@ -9170,7 +9176,7 @@ module OvirtSDK4
|
|
9170
9176
|
when 200
|
9171
9177
|
action = check_action(response)
|
9172
9178
|
else
|
9173
|
-
|
9179
|
+
check_action(response)
|
9174
9180
|
end
|
9175
9181
|
end
|
9176
9182
|
|
@@ -10929,7 +10935,7 @@ module OvirtSDK4
|
|
10929
10935
|
when 200
|
10930
10936
|
action = check_action(response)
|
10931
10937
|
else
|
10932
|
-
|
10938
|
+
check_action(response)
|
10933
10939
|
end
|
10934
10940
|
end
|
10935
10941
|
|
@@ -10958,6 +10964,307 @@ module OvirtSDK4
|
|
10958
10964
|
|
10959
10965
|
end
|
10960
10966
|
|
10967
|
+
class ImageTransferService < Service
|
10968
|
+
|
10969
|
+
#
|
10970
|
+
# Creates a new implementation of the service.
|
10971
|
+
#
|
10972
|
+
# @param connection [Connection] The connection to be used by this service.
|
10973
|
+
#
|
10974
|
+
# @param path [String] The relative path of this service, for example `vms/123/disks`.
|
10975
|
+
#
|
10976
|
+
# @api private
|
10977
|
+
#
|
10978
|
+
def initialize(connection, path)
|
10979
|
+
@connection = connection
|
10980
|
+
@path = path
|
10981
|
+
end
|
10982
|
+
|
10983
|
+
#
|
10984
|
+
# Extend the image transfer session.
|
10985
|
+
#
|
10986
|
+
# @param opts [Hash] Additional options.
|
10987
|
+
#
|
10988
|
+
def extend(opts = {})
|
10989
|
+
action = Action.new(opts)
|
10990
|
+
writer = XmlWriter.new(nil, true)
|
10991
|
+
ActionWriter.write_one(action, writer)
|
10992
|
+
body = writer.string
|
10993
|
+
writer.close
|
10994
|
+
request = Request.new({
|
10995
|
+
:method => :POST,
|
10996
|
+
:path => "#{@path}/extend",
|
10997
|
+
:body => body,
|
10998
|
+
})
|
10999
|
+
response = @connection.send(request)
|
11000
|
+
case response.code
|
11001
|
+
when 200
|
11002
|
+
action = check_action(response)
|
11003
|
+
else
|
11004
|
+
check_action(response)
|
11005
|
+
end
|
11006
|
+
end
|
11007
|
+
|
11008
|
+
#
|
11009
|
+
# After finishing to transfer the data, finalize the transfer.
|
11010
|
+
#
|
11011
|
+
# This will make sure that the data being transferred is valid and fits the
|
11012
|
+
# image entity that was targeted in the transfer. Specifically, will verify that
|
11013
|
+
# if the image entity is a QCOW disk, the data uploaded is indeed a QCOW file,
|
11014
|
+
# and that the image doesn't have a backing file.
|
11015
|
+
#
|
11016
|
+
# @param opts [Hash] Additional options.
|
11017
|
+
#
|
11018
|
+
def finalize(opts = {})
|
11019
|
+
action = Action.new(opts)
|
11020
|
+
writer = XmlWriter.new(nil, true)
|
11021
|
+
ActionWriter.write_one(action, writer)
|
11022
|
+
body = writer.string
|
11023
|
+
writer.close
|
11024
|
+
request = Request.new({
|
11025
|
+
:method => :POST,
|
11026
|
+
:path => "#{@path}/finalize",
|
11027
|
+
:body => body,
|
11028
|
+
})
|
11029
|
+
response = @connection.send(request)
|
11030
|
+
case response.code
|
11031
|
+
when 200
|
11032
|
+
action = check_action(response)
|
11033
|
+
else
|
11034
|
+
check_action(response)
|
11035
|
+
end
|
11036
|
+
end
|
11037
|
+
|
11038
|
+
#
|
11039
|
+
# Get the image transfer entity.
|
11040
|
+
#
|
11041
|
+
# @param opts [Hash] Additional options.
|
11042
|
+
#
|
11043
|
+
# @return [ImageTransfer]
|
11044
|
+
#
|
11045
|
+
def get(opts = {})
|
11046
|
+
query = {}
|
11047
|
+
request = Request.new(:method => :GET, :path => @path, :query => query)
|
11048
|
+
response = @connection.send(request)
|
11049
|
+
case response.code
|
11050
|
+
when 200
|
11051
|
+
begin
|
11052
|
+
reader = XmlReader.new(response.body)
|
11053
|
+
return ImageTransferReader.read_one(reader)
|
11054
|
+
ensure
|
11055
|
+
reader.close
|
11056
|
+
end
|
11057
|
+
else
|
11058
|
+
check_fault(response)
|
11059
|
+
end
|
11060
|
+
end
|
11061
|
+
|
11062
|
+
#
|
11063
|
+
# Pause the image transfer session.
|
11064
|
+
#
|
11065
|
+
# @param opts [Hash] Additional options.
|
11066
|
+
#
|
11067
|
+
def pause(opts = {})
|
11068
|
+
action = Action.new(opts)
|
11069
|
+
writer = XmlWriter.new(nil, true)
|
11070
|
+
ActionWriter.write_one(action, writer)
|
11071
|
+
body = writer.string
|
11072
|
+
writer.close
|
11073
|
+
request = Request.new({
|
11074
|
+
:method => :POST,
|
11075
|
+
:path => "#{@path}/pause",
|
11076
|
+
:body => body,
|
11077
|
+
})
|
11078
|
+
response = @connection.send(request)
|
11079
|
+
case response.code
|
11080
|
+
when 200
|
11081
|
+
action = check_action(response)
|
11082
|
+
else
|
11083
|
+
check_action(response)
|
11084
|
+
end
|
11085
|
+
end
|
11086
|
+
|
11087
|
+
#
|
11088
|
+
# Resume the image transfer session. The client will need to poll the transfer's phase until
|
11089
|
+
# it is different than `resuming`. For example:
|
11090
|
+
#
|
11091
|
+
# [source,python]
|
11092
|
+
# ----
|
11093
|
+
# transfer_service = transfers_service.image_transfer_service(transfer.id)
|
11094
|
+
# transfer_service.resume()
|
11095
|
+
# transfer = transfer_service.get()
|
11096
|
+
#
|
11097
|
+
# while transfer.phase == types.ImageTransferPhase.RESUMING:
|
11098
|
+
# time.sleep(1)
|
11099
|
+
# transfer = transfer_service.get()
|
11100
|
+
# ----
|
11101
|
+
#
|
11102
|
+
# @param opts [Hash] Additional options.
|
11103
|
+
#
|
11104
|
+
def resume(opts = {})
|
11105
|
+
action = Action.new(opts)
|
11106
|
+
writer = XmlWriter.new(nil, true)
|
11107
|
+
ActionWriter.write_one(action, writer)
|
11108
|
+
body = writer.string
|
11109
|
+
writer.close
|
11110
|
+
request = Request.new({
|
11111
|
+
:method => :POST,
|
11112
|
+
:path => "#{@path}/resume",
|
11113
|
+
:body => body,
|
11114
|
+
})
|
11115
|
+
response = @connection.send(request)
|
11116
|
+
case response.code
|
11117
|
+
when 200
|
11118
|
+
action = check_action(response)
|
11119
|
+
else
|
11120
|
+
check_action(response)
|
11121
|
+
end
|
11122
|
+
end
|
11123
|
+
|
11124
|
+
#
|
11125
|
+
# Locates the service corresponding to the given path.
|
11126
|
+
#
|
11127
|
+
# @param path [String] The path of the service.
|
11128
|
+
#
|
11129
|
+
# @return [Service] A reference to the service.
|
11130
|
+
#
|
11131
|
+
def service(path)
|
11132
|
+
if path.nil? || path == ''
|
11133
|
+
return self
|
11134
|
+
end
|
11135
|
+
raise Error.new("The path \"#{path}\" doesn't correspond to any service")
|
11136
|
+
end
|
11137
|
+
|
11138
|
+
#
|
11139
|
+
# Returns an string representation of this service.
|
11140
|
+
#
|
11141
|
+
# @return [String]
|
11142
|
+
#
|
11143
|
+
def to_s
|
11144
|
+
return "#<#{ImageTransferService}:#{@path}>"
|
11145
|
+
end
|
11146
|
+
|
11147
|
+
end
|
11148
|
+
|
11149
|
+
class ImageTransfersService < Service
|
11150
|
+
|
11151
|
+
#
|
11152
|
+
# Creates a new implementation of the service.
|
11153
|
+
#
|
11154
|
+
# @param connection [Connection] The connection to be used by this service.
|
11155
|
+
#
|
11156
|
+
# @param path [String] The relative path of this service, for example `vms/123/disks`.
|
11157
|
+
#
|
11158
|
+
# @api private
|
11159
|
+
#
|
11160
|
+
def initialize(connection, path)
|
11161
|
+
@connection = connection
|
11162
|
+
@path = path
|
11163
|
+
end
|
11164
|
+
|
11165
|
+
#
|
11166
|
+
# Add a new image transfer. An image needs to be specified in order to make
|
11167
|
+
# a new transfer.
|
11168
|
+
#
|
11169
|
+
# @param image_transfer [ImageTransfer] The `image_transfer` to add.
|
11170
|
+
#
|
11171
|
+
# @param opts [Hash] Additional options.
|
11172
|
+
#
|
11173
|
+
# @return [ImageTransfer]
|
11174
|
+
#
|
11175
|
+
def add(image_transfer, opts = {})
|
11176
|
+
if image_transfer.is_a?(Hash)
|
11177
|
+
image_transfer = OvirtSDK4::ImageTransfer.new(image_transfer)
|
11178
|
+
end
|
11179
|
+
query = {}
|
11180
|
+
request = Request.new(:method => :POST, :path => @path, :query => query)
|
11181
|
+
begin
|
11182
|
+
writer = XmlWriter.new(nil, true)
|
11183
|
+
ImageTransferWriter.write_one(image_transfer, writer)
|
11184
|
+
request.body = writer.string
|
11185
|
+
ensure
|
11186
|
+
writer.close
|
11187
|
+
end
|
11188
|
+
response = @connection.send(request)
|
11189
|
+
case response.code
|
11190
|
+
when 201, 202
|
11191
|
+
begin
|
11192
|
+
reader = XmlReader.new(response.body)
|
11193
|
+
return ImageTransferReader.read_one(reader)
|
11194
|
+
ensure
|
11195
|
+
reader.close
|
11196
|
+
end
|
11197
|
+
else
|
11198
|
+
check_fault(response)
|
11199
|
+
end
|
11200
|
+
end
|
11201
|
+
|
11202
|
+
#
|
11203
|
+
# Retrieves the list of image transfers that are currently
|
11204
|
+
# being performed.
|
11205
|
+
#
|
11206
|
+
# @param opts [Hash] Additional options.
|
11207
|
+
#
|
11208
|
+
# @return [Array<ImageTransfer>]
|
11209
|
+
#
|
11210
|
+
def list(opts = {})
|
11211
|
+
query = {}
|
11212
|
+
request = Request.new(:method => :GET, :path => @path, :query => query)
|
11213
|
+
response = @connection.send(request)
|
11214
|
+
case response.code
|
11215
|
+
when 200
|
11216
|
+
begin
|
11217
|
+
reader = XmlReader.new(response.body)
|
11218
|
+
return ImageTransferReader.read_many(reader)
|
11219
|
+
ensure
|
11220
|
+
reader.close
|
11221
|
+
end
|
11222
|
+
else
|
11223
|
+
check_fault(response)
|
11224
|
+
end
|
11225
|
+
end
|
11226
|
+
|
11227
|
+
#
|
11228
|
+
# Returns a reference to the service that manages an
|
11229
|
+
# specific image transfer.
|
11230
|
+
#
|
11231
|
+
# @param id [String] The identifier of the `image_transfer`.
|
11232
|
+
#
|
11233
|
+
# @return [ImageTransferService] A reference to the `image_transfer` service.
|
11234
|
+
#
|
11235
|
+
def image_transfer_service(id)
|
11236
|
+
return ImageTransferService.new(@connection, "#{@path}/#{id}")
|
11237
|
+
end
|
11238
|
+
|
11239
|
+
#
|
11240
|
+
# Locates the service corresponding to the given path.
|
11241
|
+
#
|
11242
|
+
# @param path [String] The path of the service.
|
11243
|
+
#
|
11244
|
+
# @return [Service] A reference to the service.
|
11245
|
+
#
|
11246
|
+
def service(path)
|
11247
|
+
if path.nil? || path == ''
|
11248
|
+
return self
|
11249
|
+
end
|
11250
|
+
index = path.index('/')
|
11251
|
+
if index.nil?
|
11252
|
+
return image_transfer_service(path)
|
11253
|
+
end
|
11254
|
+
return image_transfer_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
11255
|
+
end
|
11256
|
+
|
11257
|
+
#
|
11258
|
+
# Returns an string representation of this service.
|
11259
|
+
#
|
11260
|
+
# @return [String]
|
11261
|
+
#
|
11262
|
+
def to_s
|
11263
|
+
return "#<#{ImageTransfersService}:#{@path}>"
|
11264
|
+
end
|
11265
|
+
|
11266
|
+
end
|
11267
|
+
|
10961
11268
|
class ImagesService < Service
|
10962
11269
|
|
10963
11270
|
#
|
@@ -12158,7 +12465,7 @@ module OvirtSDK4
|
|
12158
12465
|
when 200
|
12159
12466
|
action = check_action(response)
|
12160
12467
|
else
|
12161
|
-
|
12468
|
+
check_action(response)
|
12162
12469
|
end
|
12163
12470
|
end
|
12164
12471
|
|
@@ -12187,7 +12494,7 @@ module OvirtSDK4
|
|
12187
12494
|
when 200
|
12188
12495
|
action = check_action(response)
|
12189
12496
|
else
|
12190
|
-
|
12497
|
+
check_action(response)
|
12191
12498
|
end
|
12192
12499
|
end
|
12193
12500
|
|
@@ -12874,7 +13181,7 @@ module OvirtSDK4
|
|
12874
13181
|
when 200
|
12875
13182
|
action = check_action(response)
|
12876
13183
|
else
|
12877
|
-
|
13184
|
+
check_action(response)
|
12878
13185
|
end
|
12879
13186
|
end
|
12880
13187
|
|
@@ -13886,7 +14193,7 @@ module OvirtSDK4
|
|
13886
14193
|
when 200
|
13887
14194
|
action = check_action(response)
|
13888
14195
|
else
|
13889
|
-
|
14196
|
+
check_action(response)
|
13890
14197
|
end
|
13891
14198
|
end
|
13892
14199
|
|
@@ -13978,7 +14285,7 @@ module OvirtSDK4
|
|
13978
14285
|
when 200
|
13979
14286
|
action = check_action(response)
|
13980
14287
|
else
|
13981
|
-
|
14288
|
+
check_action(response)
|
13982
14289
|
end
|
13983
14290
|
end
|
13984
14291
|
|
@@ -14025,7 +14332,7 @@ module OvirtSDK4
|
|
14025
14332
|
when 200
|
14026
14333
|
action = check_action(response)
|
14027
14334
|
else
|
14028
|
-
|
14335
|
+
check_action(response)
|
14029
14336
|
end
|
14030
14337
|
end
|
14031
14338
|
|
@@ -14404,7 +14711,7 @@ module OvirtSDK4
|
|
14404
14711
|
when 200
|
14405
14712
|
action = check_action(response)
|
14406
14713
|
else
|
14407
|
-
|
14714
|
+
check_action(response)
|
14408
14715
|
end
|
14409
14716
|
end
|
14410
14717
|
|
@@ -14510,7 +14817,7 @@ module OvirtSDK4
|
|
14510
14817
|
when 200
|
14511
14818
|
action = check_action(response)
|
14512
14819
|
else
|
14513
|
-
|
14820
|
+
check_action(response)
|
14514
14821
|
end
|
14515
14822
|
end
|
14516
14823
|
|
@@ -14557,7 +14864,7 @@ module OvirtSDK4
|
|
14557
14864
|
when 200
|
14558
14865
|
action = check_action(response)
|
14559
14866
|
else
|
14560
|
-
|
14867
|
+
check_action(response)
|
14561
14868
|
end
|
14562
14869
|
end
|
14563
14870
|
|
@@ -15383,7 +15690,7 @@ module OvirtSDK4
|
|
15383
15690
|
when 200
|
15384
15691
|
action = check_action(response)
|
15385
15692
|
else
|
15386
|
-
|
15693
|
+
check_action(response)
|
15387
15694
|
end
|
15388
15695
|
end
|
15389
15696
|
|
@@ -15430,7 +15737,7 @@ module OvirtSDK4
|
|
15430
15737
|
when 200
|
15431
15738
|
action = check_action(response)
|
15432
15739
|
else
|
15433
|
-
|
15740
|
+
check_action(response)
|
15434
15741
|
end
|
15435
15742
|
end
|
15436
15743
|
|
@@ -18070,7 +18377,7 @@ module OvirtSDK4
|
|
18070
18377
|
when 200
|
18071
18378
|
action = check_action(response)
|
18072
18379
|
else
|
18073
|
-
|
18380
|
+
check_action(response)
|
18074
18381
|
end
|
18075
18382
|
end
|
18076
18383
|
|
@@ -19172,7 +19479,7 @@ module OvirtSDK4
|
|
19172
19479
|
when 200
|
19173
19480
|
action = check_action(response)
|
19174
19481
|
else
|
19175
|
-
|
19482
|
+
check_action(response)
|
19176
19483
|
end
|
19177
19484
|
end
|
19178
19485
|
|
@@ -19557,7 +19864,7 @@ module OvirtSDK4
|
|
19557
19864
|
action = check_action(response)
|
19558
19865
|
return action.is_attached
|
19559
19866
|
else
|
19560
|
-
|
19867
|
+
check_action(response)
|
19561
19868
|
end
|
19562
19869
|
end
|
19563
19870
|
|
@@ -19586,7 +19893,7 @@ module OvirtSDK4
|
|
19586
19893
|
when 200
|
19587
19894
|
action = check_action(response)
|
19588
19895
|
else
|
19589
|
-
|
19896
|
+
check_action(response)
|
19590
19897
|
end
|
19591
19898
|
end
|
19592
19899
|
|
@@ -19732,7 +20039,7 @@ module OvirtSDK4
|
|
19732
20039
|
when 200
|
19733
20040
|
action = check_action(response)
|
19734
20041
|
else
|
19735
|
-
|
20042
|
+
check_action(response)
|
19736
20043
|
end
|
19737
20044
|
end
|
19738
20045
|
|
@@ -20344,7 +20651,7 @@ module OvirtSDK4
|
|
20344
20651
|
when 200
|
20345
20652
|
action = check_action(response)
|
20346
20653
|
else
|
20347
|
-
|
20654
|
+
check_action(response)
|
20348
20655
|
end
|
20349
20656
|
end
|
20350
20657
|
|
@@ -20379,7 +20686,7 @@ module OvirtSDK4
|
|
20379
20686
|
when 200
|
20380
20687
|
action = check_action(response)
|
20381
20688
|
else
|
20382
|
-
|
20689
|
+
check_action(response)
|
20383
20690
|
end
|
20384
20691
|
end
|
20385
20692
|
|
@@ -20614,7 +20921,7 @@ module OvirtSDK4
|
|
20614
20921
|
when 200
|
20615
20922
|
action = check_action(response)
|
20616
20923
|
else
|
20617
|
-
|
20924
|
+
check_action(response)
|
20618
20925
|
end
|
20619
20926
|
end
|
20620
20927
|
|
@@ -20647,7 +20954,7 @@ module OvirtSDK4
|
|
20647
20954
|
when 200
|
20648
20955
|
action = check_action(response)
|
20649
20956
|
else
|
20650
|
-
|
20957
|
+
check_action(response)
|
20651
20958
|
end
|
20652
20959
|
end
|
20653
20960
|
|
@@ -21509,7 +21816,7 @@ module OvirtSDK4
|
|
21509
21816
|
when 200
|
21510
21817
|
action = check_action(response)
|
21511
21818
|
else
|
21512
|
-
|
21819
|
+
check_action(response)
|
21513
21820
|
end
|
21514
21821
|
end
|
21515
21822
|
|
@@ -21633,6 +21940,14 @@ module OvirtSDK4
|
|
21633
21940
|
return IconsService.new(@connection, "#{@path}/icons")
|
21634
21941
|
end
|
21635
21942
|
|
21943
|
+
#
|
21944
|
+
# List of all image transfers being performed for image I/O in oVirt.
|
21945
|
+
#
|
21946
|
+
# @return [ImageTransfersService] A reference to `image_transfers` service.
|
21947
|
+
def image_transfers_service
|
21948
|
+
return ImageTransfersService.new(@connection, "#{@path}/imagetransfers")
|
21949
|
+
end
|
21950
|
+
|
21636
21951
|
#
|
21637
21952
|
# Locates the `instance_types` service.
|
21638
21953
|
#
|
@@ -21911,6 +22226,12 @@ module OvirtSDK4
|
|
21911
22226
|
if path.start_with?('icons/')
|
21912
22227
|
return icons_service.service(path[6..-1])
|
21913
22228
|
end
|
22229
|
+
if path == 'imagetransfers'
|
22230
|
+
return image_transfers_service
|
22231
|
+
end
|
22232
|
+
if path.start_with?('imagetransfers/')
|
22233
|
+
return image_transfers_service.service(path[15..-1])
|
22234
|
+
end
|
21914
22235
|
if path == 'instancetypes'
|
21915
22236
|
return instance_types_service
|
21916
22237
|
end
|
@@ -22466,7 +22787,7 @@ module OvirtSDK4
|
|
22466
22787
|
when 200
|
22467
22788
|
action = check_action(response)
|
22468
22789
|
else
|
22469
|
-
|
22790
|
+
check_action(response)
|
22470
22791
|
end
|
22471
22792
|
end
|
22472
22793
|
|
@@ -22881,7 +23202,7 @@ module OvirtSDK4
|
|
22881
23202
|
when 200
|
22882
23203
|
action = check_action(response)
|
22883
23204
|
else
|
22884
|
-
|
23205
|
+
check_action(response)
|
22885
23206
|
end
|
22886
23207
|
end
|
22887
23208
|
|
@@ -22910,7 +23231,7 @@ module OvirtSDK4
|
|
22910
23231
|
when 200
|
22911
23232
|
action = check_action(response)
|
22912
23233
|
else
|
22913
|
-
|
23234
|
+
check_action(response)
|
22914
23235
|
end
|
22915
23236
|
end
|
22916
23237
|
|
@@ -24622,7 +24943,7 @@ module OvirtSDK4
|
|
24622
24943
|
when 200
|
24623
24944
|
action = check_action(response)
|
24624
24945
|
else
|
24625
|
-
|
24946
|
+
check_action(response)
|
24626
24947
|
end
|
24627
24948
|
end
|
24628
24949
|
|
@@ -24651,7 +24972,7 @@ module OvirtSDK4
|
|
24651
24972
|
when 200
|
24652
24973
|
action = check_action(response)
|
24653
24974
|
else
|
24654
|
-
|
24975
|
+
check_action(response)
|
24655
24976
|
end
|
24656
24977
|
end
|
24657
24978
|
|
@@ -24678,7 +24999,7 @@ module OvirtSDK4
|
|
24678
24999
|
when 200
|
24679
25000
|
action = check_action(response)
|
24680
25001
|
else
|
24681
|
-
|
25002
|
+
check_action(response)
|
24682
25003
|
end
|
24683
25004
|
end
|
24684
25005
|
|
@@ -24705,7 +25026,7 @@ module OvirtSDK4
|
|
24705
25026
|
when 200
|
24706
25027
|
action = check_action(response)
|
24707
25028
|
else
|
24708
|
-
|
25029
|
+
check_action(response)
|
24709
25030
|
end
|
24710
25031
|
end
|
24711
25032
|
|
@@ -24738,7 +25059,7 @@ module OvirtSDK4
|
|
24738
25059
|
when 200
|
24739
25060
|
action = check_action(response)
|
24740
25061
|
else
|
24741
|
-
|
25062
|
+
check_action(response)
|
24742
25063
|
end
|
24743
25064
|
end
|
24744
25065
|
|
@@ -24765,7 +25086,7 @@ module OvirtSDK4
|
|
24765
25086
|
when 200
|
24766
25087
|
action = check_action(response)
|
24767
25088
|
else
|
24768
|
-
|
25089
|
+
check_action(response)
|
24769
25090
|
end
|
24770
25091
|
end
|
24771
25092
|
|
@@ -24868,7 +25189,7 @@ module OvirtSDK4
|
|
24868
25189
|
when 200
|
24869
25190
|
action = check_action(response)
|
24870
25191
|
else
|
24871
|
-
|
25192
|
+
check_action(response)
|
24872
25193
|
end
|
24873
25194
|
end
|
24874
25195
|
|
@@ -24897,7 +25218,7 @@ module OvirtSDK4
|
|
24897
25218
|
when 200
|
24898
25219
|
action = check_action(response)
|
24899
25220
|
else
|
24900
|
-
|
25221
|
+
check_action(response)
|
24901
25222
|
end
|
24902
25223
|
end
|
24903
25224
|
|
@@ -24930,7 +25251,7 @@ module OvirtSDK4
|
|
24930
25251
|
when 200
|
24931
25252
|
action = check_action(response)
|
24932
25253
|
else
|
24933
|
-
|
25254
|
+
check_action(response)
|
24934
25255
|
end
|
24935
25256
|
end
|
24936
25257
|
|
@@ -24965,7 +25286,7 @@ module OvirtSDK4
|
|
24965
25286
|
when 200
|
24966
25287
|
action = check_action(response)
|
24967
25288
|
else
|
24968
|
-
|
25289
|
+
check_action(response)
|
24969
25290
|
end
|
24970
25291
|
end
|
24971
25292
|
|
@@ -24992,7 +25313,7 @@ module OvirtSDK4
|
|
24992
25313
|
when 200
|
24993
25314
|
action = check_action(response)
|
24994
25315
|
else
|
24995
|
-
|
25316
|
+
check_action(response)
|
24996
25317
|
end
|
24997
25318
|
end
|
24998
25319
|
|
@@ -25039,7 +25360,7 @@ module OvirtSDK4
|
|
25039
25360
|
when 200
|
25040
25361
|
action = check_action(response)
|
25041
25362
|
else
|
25042
|
-
|
25363
|
+
check_action(response)
|
25043
25364
|
end
|
25044
25365
|
end
|
25045
25366
|
|
@@ -25066,7 +25387,7 @@ module OvirtSDK4
|
|
25066
25387
|
when 200
|
25067
25388
|
action = check_action(response)
|
25068
25389
|
else
|
25069
|
-
|
25390
|
+
check_action(response)
|
25070
25391
|
end
|
25071
25392
|
end
|
25072
25393
|
|
@@ -25103,7 +25424,7 @@ module OvirtSDK4
|
|
25103
25424
|
when 200
|
25104
25425
|
action = check_action(response)
|
25105
25426
|
else
|
25106
|
-
|
25427
|
+
check_action(response)
|
25107
25428
|
end
|
25108
25429
|
end
|
25109
25430
|
|
@@ -25130,7 +25451,7 @@ module OvirtSDK4
|
|
25130
25451
|
when 200
|
25131
25452
|
action = check_action(response)
|
25132
25453
|
else
|
25133
|
-
|
25454
|
+
check_action(response)
|
25134
25455
|
end
|
25135
25456
|
end
|
25136
25457
|
|
@@ -25157,7 +25478,7 @@ module OvirtSDK4
|
|
25157
25478
|
when 200
|
25158
25479
|
action = check_action(response)
|
25159
25480
|
else
|
25160
|
-
|
25481
|
+
check_action(response)
|
25161
25482
|
end
|
25162
25483
|
end
|
25163
25484
|
|
@@ -25184,7 +25505,7 @@ module OvirtSDK4
|
|
25184
25505
|
when 200
|
25185
25506
|
action = check_action(response)
|
25186
25507
|
else
|
25187
|
-
|
25508
|
+
check_action(response)
|
25188
25509
|
end
|
25189
25510
|
end
|
25190
25511
|
|
@@ -25214,7 +25535,7 @@ module OvirtSDK4
|
|
25214
25535
|
action = check_action(response)
|
25215
25536
|
return action.ticket
|
25216
25537
|
else
|
25217
|
-
|
25538
|
+
check_action(response)
|
25218
25539
|
end
|
25219
25540
|
end
|
25220
25541
|
|
@@ -25241,7 +25562,7 @@ module OvirtSDK4
|
|
25241
25562
|
when 200
|
25242
25563
|
action = check_action(response)
|
25243
25564
|
else
|
25244
|
-
|
25565
|
+
check_action(response)
|
25245
25566
|
end
|
25246
25567
|
end
|
25247
25568
|
|
@@ -25720,14 +26041,22 @@ module OvirtSDK4
|
|
25720
26041
|
end
|
25721
26042
|
|
25722
26043
|
#
|
25723
|
-
# Returns the
|
26044
|
+
# Returns the information about this CDROM device.
|
25724
26045
|
#
|
25725
26046
|
# @param opts [Hash] Additional options.
|
25726
26047
|
#
|
26048
|
+
# @option opts [Boolean] :current Indicates if the operation should return the information for the currently running virtual machine. This
|
26049
|
+
# parameter is optional, and the default value is `false`.
|
26050
|
+
#
|
25727
26051
|
# @return [Cdrom]
|
25728
26052
|
#
|
25729
26053
|
def get(opts = {})
|
25730
26054
|
query = {}
|
26055
|
+
value = opts[:current]
|
26056
|
+
unless value.nil?
|
26057
|
+
value = Writer.render_boolean(value)
|
26058
|
+
query['current'] = value
|
26059
|
+
end
|
25731
26060
|
request = Request.new(:method => :GET, :path => @path, :query => query)
|
25732
26061
|
response = @connection.send(request)
|
25733
26062
|
case response.code
|
@@ -25744,49 +26073,31 @@ module OvirtSDK4
|
|
25744
26073
|
end
|
25745
26074
|
|
25746
26075
|
#
|
25747
|
-
#
|
26076
|
+
# Updates the information about this CDROM device.
|
25748
26077
|
#
|
26078
|
+
# @param cdrom [Cdrom] The information about the CDROM device.
|
25749
26079
|
# @param opts [Hash] Additional options.
|
25750
26080
|
#
|
25751
|
-
# @option opts [Boolean] :
|
25752
|
-
|
25753
|
-
|
25754
|
-
value = opts[:async]
|
25755
|
-
unless value.nil?
|
25756
|
-
value = Writer.render_boolean(value)
|
25757
|
-
query['async'] = value
|
25758
|
-
end
|
25759
|
-
request = Request.new(:method => :DELETE, :path => @path, :query => query)
|
25760
|
-
response = @connection.send(request)
|
25761
|
-
unless response.code == 200
|
25762
|
-
check_fault(response)
|
25763
|
-
end
|
25764
|
-
end
|
25765
|
-
|
25766
|
-
#
|
25767
|
-
# Updates the `cdorm`.
|
25768
|
-
#
|
25769
|
-
# @param cdorm [Cdrom] The `cdorm` to update.
|
25770
|
-
# @param opts [Hash] Additional options.
|
25771
|
-
#
|
25772
|
-
# @option opts [Boolean] :async Indicates if the update should be performed asynchronously.
|
26081
|
+
# @option opts [Boolean] :current Indicates if the update should apply to the currently running virtual machine, or to the virtual machine
|
26082
|
+
# after the next boot. This parameter is optional, and the default value is `false`, which means that by
|
26083
|
+
# default the update will have effect only after the next boot.
|
25773
26084
|
#
|
25774
26085
|
# @return [Cdrom]
|
25775
26086
|
#
|
25776
|
-
def update(
|
25777
|
-
if
|
25778
|
-
|
26087
|
+
def update(cdrom)
|
26088
|
+
if cdrom.is_a?(Hash)
|
26089
|
+
cdrom = OvirtSDK4::Cdrom.new(cdrom)
|
25779
26090
|
end
|
25780
26091
|
query = {}
|
25781
|
-
value = opts[:
|
26092
|
+
value = opts[:current]
|
25782
26093
|
unless value.nil?
|
25783
26094
|
value = Writer.render_boolean(value)
|
25784
|
-
query['
|
26095
|
+
query['current'] = value
|
25785
26096
|
end
|
25786
26097
|
request = Request.new(:method => :PUT, :path => @path, :query => query)
|
25787
26098
|
begin
|
25788
26099
|
writer = XmlWriter.new(nil, true)
|
25789
|
-
CdromWriter.write_one(
|
26100
|
+
CdromWriter.write_one(cdrom, writer)
|
25790
26101
|
request.body = writer.string
|
25791
26102
|
ensure
|
25792
26103
|
writer.close
|
@@ -25848,43 +26159,7 @@ module OvirtSDK4
|
|
25848
26159
|
end
|
25849
26160
|
|
25850
26161
|
#
|
25851
|
-
#
|
25852
|
-
#
|
25853
|
-
# @param cdrom [Cdrom] The `cdrom` to add.
|
25854
|
-
#
|
25855
|
-
# @param opts [Hash] Additional options.
|
25856
|
-
#
|
25857
|
-
# @return [Cdrom]
|
25858
|
-
#
|
25859
|
-
def add(cdrom, opts = {})
|
25860
|
-
if cdrom.is_a?(Hash)
|
25861
|
-
cdrom = OvirtSDK4::Cdrom.new(cdrom)
|
25862
|
-
end
|
25863
|
-
query = {}
|
25864
|
-
request = Request.new(:method => :POST, :path => @path, :query => query)
|
25865
|
-
begin
|
25866
|
-
writer = XmlWriter.new(nil, true)
|
25867
|
-
CdromWriter.write_one(cdrom, writer)
|
25868
|
-
request.body = writer.string
|
25869
|
-
ensure
|
25870
|
-
writer.close
|
25871
|
-
end
|
25872
|
-
response = @connection.send(request)
|
25873
|
-
case response.code
|
25874
|
-
when 201, 202
|
25875
|
-
begin
|
25876
|
-
reader = XmlReader.new(response.body)
|
25877
|
-
return CdromReader.read_one(reader)
|
25878
|
-
ensure
|
25879
|
-
reader.close
|
25880
|
-
end
|
25881
|
-
else
|
25882
|
-
check_fault(response)
|
25883
|
-
end
|
25884
|
-
end
|
25885
|
-
|
25886
|
-
#
|
25887
|
-
# Returns the representation of the object managed by this service.
|
26162
|
+
# Returns the list of CDROM devices of the virtual machine.
|
25888
26163
|
#
|
25889
26164
|
# @param opts [Hash] Additional options.
|
25890
26165
|
#
|
@@ -25915,7 +26190,7 @@ module OvirtSDK4
|
|
25915
26190
|
end
|
25916
26191
|
|
25917
26192
|
#
|
25918
|
-
#
|
26193
|
+
# Returns a reference to the service that manages a specific CDROM device.
|
25919
26194
|
#
|
25920
26195
|
# @param id [String] The identifier of the `cdrom`.
|
25921
26196
|
#
|
@@ -25993,7 +26268,7 @@ module OvirtSDK4
|
|
25993
26268
|
when 200
|
25994
26269
|
action = check_action(response)
|
25995
26270
|
else
|
25996
|
-
|
26271
|
+
check_action(response)
|
25997
26272
|
end
|
25998
26273
|
end
|
25999
26274
|
|
@@ -26020,7 +26295,7 @@ module OvirtSDK4
|
|
26020
26295
|
when 200
|
26021
26296
|
action = check_action(response)
|
26022
26297
|
else
|
26023
|
-
|
26298
|
+
check_action(response)
|
26024
26299
|
end
|
26025
26300
|
end
|
26026
26301
|
|
@@ -26049,7 +26324,7 @@ module OvirtSDK4
|
|
26049
26324
|
when 200
|
26050
26325
|
action = check_action(response)
|
26051
26326
|
else
|
26052
|
-
|
26327
|
+
check_action(response)
|
26053
26328
|
end
|
26054
26329
|
end
|
26055
26330
|
|
@@ -26102,7 +26377,7 @@ module OvirtSDK4
|
|
26102
26377
|
when 200
|
26103
26378
|
action = check_action(response)
|
26104
26379
|
else
|
26105
|
-
|
26380
|
+
check_action(response)
|
26106
26381
|
end
|
26107
26382
|
end
|
26108
26383
|
|
@@ -26429,7 +26704,7 @@ module OvirtSDK4
|
|
26429
26704
|
action = check_action(response)
|
26430
26705
|
return action.proxy_ticket
|
26431
26706
|
else
|
26432
|
-
|
26707
|
+
check_action(response)
|
26433
26708
|
end
|
26434
26709
|
end
|
26435
26710
|
|
@@ -26725,7 +27000,7 @@ module OvirtSDK4
|
|
26725
27000
|
when 200
|
26726
27001
|
action = check_action(response)
|
26727
27002
|
else
|
26728
|
-
|
27003
|
+
check_action(response)
|
26729
27004
|
end
|
26730
27005
|
end
|
26731
27006
|
|
@@ -26752,7 +27027,7 @@ module OvirtSDK4
|
|
26752
27027
|
when 200
|
26753
27028
|
action = check_action(response)
|
26754
27029
|
else
|
26755
|
-
|
27030
|
+
check_action(response)
|
26756
27031
|
end
|
26757
27032
|
end
|
26758
27033
|
|
@@ -27309,7 +27584,7 @@ module OvirtSDK4
|
|
27309
27584
|
when 200
|
27310
27585
|
action = check_action(response)
|
27311
27586
|
else
|
27312
|
-
|
27587
|
+
check_action(response)
|
27313
27588
|
end
|
27314
27589
|
end
|
27315
27590
|
|
@@ -28997,7 +29272,7 @@ module OvirtSDK4
|
|
28997
29272
|
when 200
|
28998
29273
|
action = check_action(response)
|
28999
29274
|
else
|
29000
|
-
|
29275
|
+
check_action(response)
|
29001
29276
|
end
|
29002
29277
|
end
|
29003
29278
|
|
@@ -29028,7 +29303,7 @@ module OvirtSDK4
|
|
29028
29303
|
when 200
|
29029
29304
|
action = check_action(response)
|
29030
29305
|
else
|
29031
|
-
|
29306
|
+
check_action(response)
|
29032
29307
|
end
|
29033
29308
|
end
|
29034
29309
|
|
@@ -29083,7 +29358,7 @@ module OvirtSDK4
|
|
29083
29358
|
when 200
|
29084
29359
|
action = check_action(response)
|
29085
29360
|
else
|
29086
|
-
|
29361
|
+
check_action(response)
|
29087
29362
|
end
|
29088
29363
|
end
|
29089
29364
|
|
@@ -29310,7 +29585,7 @@ module OvirtSDK4
|
|
29310
29585
|
when 200
|
29311
29586
|
action = check_action(response)
|
29312
29587
|
else
|
29313
|
-
|
29588
|
+
check_action(response)
|
29314
29589
|
end
|
29315
29590
|
end
|
29316
29591
|
|
@@ -29357,7 +29632,7 @@ module OvirtSDK4
|
|
29357
29632
|
when 200
|
29358
29633
|
action = check_action(response)
|
29359
29634
|
else
|
29360
|
-
|
29635
|
+
check_action(response)
|
29361
29636
|
end
|
29362
29637
|
end
|
29363
29638
|
|
@@ -29584,7 +29859,7 @@ module OvirtSDK4
|
|
29584
29859
|
when 200
|
29585
29860
|
action = check_action(response)
|
29586
29861
|
else
|
29587
|
-
|
29862
|
+
check_action(response)
|
29588
29863
|
end
|
29589
29864
|
end
|
29590
29865
|
|
@@ -29691,7 +29966,7 @@ module OvirtSDK4
|
|
29691
29966
|
action = check_action(response)
|
29692
29967
|
return action.details
|
29693
29968
|
else
|
29694
|
-
|
29969
|
+
check_action(response)
|
29695
29970
|
end
|
29696
29971
|
end
|
29697
29972
|
|
@@ -29722,7 +29997,7 @@ module OvirtSDK4
|
|
29722
29997
|
when 200
|
29723
29998
|
action = check_action(response)
|
29724
29999
|
else
|
29725
|
-
|
30000
|
+
check_action(response)
|
29726
30001
|
end
|
29727
30002
|
end
|
29728
30003
|
|
@@ -29769,7 +30044,7 @@ module OvirtSDK4
|
|
29769
30044
|
when 200
|
29770
30045
|
action = check_action(response)
|
29771
30046
|
else
|
29772
|
-
|
30047
|
+
check_action(response)
|
29773
30048
|
end
|
29774
30049
|
end
|
29775
30050
|
|
@@ -29800,7 +30075,7 @@ module OvirtSDK4
|
|
29800
30075
|
when 200
|
29801
30076
|
action = check_action(response)
|
29802
30077
|
else
|
29803
|
-
|
30078
|
+
check_action(response)
|
29804
30079
|
end
|
29805
30080
|
end
|
29806
30081
|
|
@@ -29829,7 +30104,7 @@ module OvirtSDK4
|
|
29829
30104
|
when 200
|
29830
30105
|
action = check_action(response)
|
29831
30106
|
else
|
29832
|
-
|
30107
|
+
check_action(response)
|
29833
30108
|
end
|
29834
30109
|
end
|
29835
30110
|
|
@@ -29858,7 +30133,7 @@ module OvirtSDK4
|
|
29858
30133
|
when 200
|
29859
30134
|
action = check_action(response)
|
29860
30135
|
else
|
29861
|
-
|
30136
|
+
check_action(response)
|
29862
30137
|
end
|
29863
30138
|
end
|
29864
30139
|
|
@@ -29885,7 +30160,7 @@ module OvirtSDK4
|
|
29885
30160
|
when 200
|
29886
30161
|
action = check_action(response)
|
29887
30162
|
else
|
29888
|
-
|
30163
|
+
check_action(response)
|
29889
30164
|
end
|
29890
30165
|
end
|
29891
30166
|
|
@@ -29914,7 +30189,7 @@ module OvirtSDK4
|
|
29914
30189
|
when 200
|
29915
30190
|
action = check_action(response)
|
29916
30191
|
else
|
29917
|
-
|
30192
|
+
check_action(response)
|
29918
30193
|
end
|
29919
30194
|
end
|
29920
30195
|
|
@@ -29941,7 +30216,7 @@ module OvirtSDK4
|
|
29941
30216
|
when 200
|
29942
30217
|
action = check_action(response)
|
29943
30218
|
else
|
29944
|
-
|
30219
|
+
check_action(response)
|
29945
30220
|
end
|
29946
30221
|
end
|
29947
30222
|
|
@@ -29968,7 +30243,7 @@ module OvirtSDK4
|
|
29968
30243
|
when 200
|
29969
30244
|
action = check_action(response)
|
29970
30245
|
else
|
29971
|
-
|
30246
|
+
check_action(response)
|
29972
30247
|
end
|
29973
30248
|
end
|
29974
30249
|
|
@@ -30064,7 +30339,7 @@ module OvirtSDK4
|
|
30064
30339
|
when 200
|
30065
30340
|
action = check_action(response)
|
30066
30341
|
else
|
30067
|
-
|
30342
|
+
check_action(response)
|
30068
30343
|
end
|
30069
30344
|
end
|
30070
30345
|
|
@@ -30093,7 +30368,7 @@ module OvirtSDK4
|
|
30093
30368
|
when 200
|
30094
30369
|
action = check_action(response)
|
30095
30370
|
else
|
30096
|
-
|
30371
|
+
check_action(response)
|
30097
30372
|
end
|
30098
30373
|
end
|
30099
30374
|
|
@@ -30120,7 +30395,7 @@ module OvirtSDK4
|
|
30120
30395
|
when 200
|
30121
30396
|
action = check_action(response)
|
30122
30397
|
else
|
30123
|
-
|
30398
|
+
check_action(response)
|
30124
30399
|
end
|
30125
30400
|
end
|
30126
30401
|
|
@@ -30152,7 +30427,7 @@ module OvirtSDK4
|
|
30152
30427
|
when 200
|
30153
30428
|
action = check_action(response)
|
30154
30429
|
else
|
30155
|
-
|
30430
|
+
check_action(response)
|
30156
30431
|
end
|
30157
30432
|
end
|
30158
30433
|
|
@@ -30179,7 +30454,7 @@ module OvirtSDK4
|
|
30179
30454
|
when 200
|
30180
30455
|
action = check_action(response)
|
30181
30456
|
else
|
30182
|
-
|
30457
|
+
check_action(response)
|
30183
30458
|
end
|
30184
30459
|
end
|
30185
30460
|
|
@@ -30211,7 +30486,7 @@ module OvirtSDK4
|
|
30211
30486
|
action = check_action(response)
|
30212
30487
|
return action.power_management
|
30213
30488
|
else
|
30214
|
-
|
30489
|
+
check_action(response)
|
30215
30490
|
end
|
30216
30491
|
end
|
30217
30492
|
|
@@ -30238,7 +30513,7 @@ module OvirtSDK4
|
|
30238
30513
|
when 200
|
30239
30514
|
action = check_action(response)
|
30240
30515
|
else
|
30241
|
-
|
30516
|
+
check_action(response)
|
30242
30517
|
end
|
30243
30518
|
end
|
30244
30519
|
|
@@ -30316,7 +30591,7 @@ module OvirtSDK4
|
|
30316
30591
|
when 200
|
30317
30592
|
action = check_action(response)
|
30318
30593
|
else
|
30319
|
-
|
30594
|
+
check_action(response)
|
30320
30595
|
end
|
30321
30596
|
end
|
30322
30597
|
|
@@ -30348,7 +30623,7 @@ module OvirtSDK4
|
|
30348
30623
|
action = check_action(response)
|
30349
30624
|
return action.iscsi_targets
|
30350
30625
|
else
|
30351
|
-
|
30626
|
+
check_action(response)
|
30352
30627
|
end
|
30353
30628
|
end
|
30354
30629
|
|
@@ -30377,7 +30652,7 @@ module OvirtSDK4
|
|
30377
30652
|
when 200
|
30378
30653
|
action = check_action(response)
|
30379
30654
|
else
|
30380
|
-
|
30655
|
+
check_action(response)
|
30381
30656
|
end
|
30382
30657
|
end
|
30383
30658
|
|
@@ -30404,7 +30679,7 @@ module OvirtSDK4
|
|
30404
30679
|
when 200
|
30405
30680
|
action = check_action(response)
|
30406
30681
|
else
|
30407
|
-
|
30682
|
+
check_action(response)
|
30408
30683
|
end
|
30409
30684
|
end
|
30410
30685
|
|
@@ -30603,7 +30878,7 @@ module OvirtSDK4
|
|
30603
30878
|
when 200
|
30604
30879
|
action = check_action(response)
|
30605
30880
|
else
|
30606
|
-
|
30881
|
+
check_action(response)
|
30607
30882
|
end
|
30608
30883
|
end
|
30609
30884
|
|
@@ -30635,7 +30910,7 @@ module OvirtSDK4
|
|
30635
30910
|
action = check_action(response)
|
30636
30911
|
return action.storage_domains
|
30637
30912
|
else
|
30638
|
-
|
30913
|
+
check_action(response)
|
30639
30914
|
end
|
30640
30915
|
end
|
30641
30916
|
|
@@ -30705,7 +30980,7 @@ module OvirtSDK4
|
|
30705
30980
|
when 200
|
30706
30981
|
action = check_action(response)
|
30707
30982
|
else
|
30708
|
-
|
30983
|
+
check_action(response)
|
30709
30984
|
end
|
30710
30985
|
end
|
30711
30986
|
|
@@ -31001,7 +31276,7 @@ module OvirtSDK4
|
|
31001
31276
|
when 200
|
31002
31277
|
action = check_action(response)
|
31003
31278
|
else
|
31004
|
-
|
31279
|
+
check_action(response)
|
31005
31280
|
end
|
31006
31281
|
end
|
31007
31282
|
|