ovirt-engine-sdk 4.3.1 → 4.4.0
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 +5 -5
- data/CHANGES.adoc +11 -30
- data/lib/ovirtsdk4/connection.rb +21 -18
- data/lib/ovirtsdk4/probe.rb +5 -5
- data/lib/ovirtsdk4/reader.rb +10 -5
- data/lib/ovirtsdk4/readers.rb +193 -1
- data/lib/ovirtsdk4/service.rb +13 -0
- data/lib/ovirtsdk4/services.rb +815 -161
- data/lib/ovirtsdk4/types.rb +715 -6
- data/lib/ovirtsdk4/version.rb +1 -1
- data/lib/ovirtsdk4/writers.rb +75 -1
- metadata +38 -38
data/lib/ovirtsdk4/service.rb
CHANGED
@@ -43,6 +43,7 @@ module OvirtSDK4
|
|
43
43
|
def wait
|
44
44
|
response = @service.connection.wait(@request)
|
45
45
|
raise response if response.is_a?(Exception)
|
46
|
+
|
46
47
|
@block.call(response)
|
47
48
|
end
|
48
49
|
|
@@ -116,6 +117,7 @@ module OvirtSDK4
|
|
116
117
|
connection.raise_error(response, body) if body.is_a?(Fault)
|
117
118
|
if body.is_a?(Action)
|
118
119
|
return body if body.fault.nil?
|
120
|
+
|
119
121
|
connection.raise_error(response, body.fault)
|
120
122
|
end
|
121
123
|
raise Error, "Expected an action or a fault, but got '#{body.class.name.split('::').last}'"
|
@@ -133,6 +135,7 @@ module OvirtSDK4
|
|
133
135
|
#
|
134
136
|
def connection
|
135
137
|
return @parent if @parent.is_a? Connection
|
138
|
+
|
136
139
|
@parent.connection
|
137
140
|
end
|
138
141
|
|
@@ -191,6 +194,7 @@ module OvirtSDK4
|
|
191
194
|
connection.send(request)
|
192
195
|
result = Future.new(self, request) do |response|
|
193
196
|
raise response if response.is_a?(Exception)
|
197
|
+
|
194
198
|
case response.code
|
195
199
|
when 200
|
196
200
|
internal_read_body(response)
|
@@ -241,6 +245,7 @@ module OvirtSDK4
|
|
241
245
|
connection.send(request)
|
242
246
|
result = Future.new(self, request) do |response|
|
243
247
|
raise response if response.is_a?(Exception)
|
248
|
+
|
244
249
|
case response.code
|
245
250
|
when 200, 201, 202
|
246
251
|
internal_read_body(response)
|
@@ -291,6 +296,7 @@ module OvirtSDK4
|
|
291
296
|
connection.send(request)
|
292
297
|
result = Future.new(self, request) do |response|
|
293
298
|
raise response if response.is_a?(Exception)
|
299
|
+
|
294
300
|
case response.code
|
295
301
|
when 200
|
296
302
|
internal_read_body(response)
|
@@ -337,6 +343,7 @@ module OvirtSDK4
|
|
337
343
|
connection.send(request)
|
338
344
|
result = Future.new(self, request) do |response|
|
339
345
|
raise response if response.is_a?(Exception)
|
346
|
+
|
340
347
|
check_fault(response) unless response.code == 200
|
341
348
|
end
|
342
349
|
result = result.wait if wait
|
@@ -383,6 +390,7 @@ module OvirtSDK4
|
|
383
390
|
connection.send(request)
|
384
391
|
result = Future.new(self, request) do |response|
|
385
392
|
raise response if response.is_a?(Exception)
|
393
|
+
|
386
394
|
case response.code
|
387
395
|
when 200, 201, 202
|
388
396
|
action = check_action(response)
|
@@ -428,8 +436,10 @@ module OvirtSDK4
|
|
428
436
|
#
|
429
437
|
def absolute_path
|
430
438
|
return @path if @parent.is_a? Connection
|
439
|
+
|
431
440
|
prefix = @parent.absolute_path
|
432
441
|
return @path if prefix.empty?
|
442
|
+
|
433
443
|
"#{prefix}/#{@path}"
|
434
444
|
end
|
435
445
|
|
@@ -444,6 +454,7 @@ module OvirtSDK4
|
|
444
454
|
#
|
445
455
|
def check_bad_opts(specs, opts)
|
446
456
|
return if opts.empty?
|
457
|
+
|
447
458
|
bad_names = opts.keys
|
448
459
|
bad_text = nice_list(bad_names)
|
449
460
|
if bad_names.length > 1
|
@@ -472,9 +483,11 @@ module OvirtSDK4
|
|
472
483
|
#
|
473
484
|
def nice_list(items)
|
474
485
|
return nil if items.empty?
|
486
|
+
|
475
487
|
items = items.sort
|
476
488
|
items = items.map { |item| "'#{item}'" }
|
477
489
|
return items.first if items.length == 1
|
490
|
+
|
478
491
|
head = items[0, items.length - 1].join(', ')
|
479
492
|
tail = items.last
|
480
493
|
"#{head} and #{tail}"
|
data/lib/ovirtsdk4/services.rb
CHANGED
@@ -23,12 +23,18 @@ module OvirtSDK4
|
|
23
23
|
class AffinityGroupService < Service
|
24
24
|
end
|
25
25
|
|
26
|
+
class AffinityGroupHostService < Service
|
27
|
+
end
|
28
|
+
|
26
29
|
class AffinityGroupHostLabelService < Service
|
27
30
|
end
|
28
31
|
|
29
32
|
class AffinityGroupHostLabelsService < Service
|
30
33
|
end
|
31
34
|
|
35
|
+
class AffinityGroupHostsService < Service
|
36
|
+
end
|
37
|
+
|
32
38
|
class AffinityGroupVmService < Service
|
33
39
|
end
|
34
40
|
|
@@ -221,6 +227,12 @@ module OvirtSDK4
|
|
221
227
|
class EventService < Service
|
222
228
|
end
|
223
229
|
|
230
|
+
class EventSubscriptionService < Service
|
231
|
+
end
|
232
|
+
|
233
|
+
class EventSubscriptionsService < Service
|
234
|
+
end
|
235
|
+
|
224
236
|
class EventsService < Service
|
225
237
|
end
|
226
238
|
|
@@ -953,6 +965,17 @@ module OvirtSDK4
|
|
953
965
|
@host_labels_service ||= AffinityGroupHostLabelsService.new(self, 'hostlabels')
|
954
966
|
end
|
955
967
|
|
968
|
+
#
|
969
|
+
# Returns a reference to the service that manages the
|
970
|
+
# list of all hosts attached to this affinity
|
971
|
+
# group.
|
972
|
+
#
|
973
|
+
# @return [AffinityGroupHostsService] A reference to `hosts` service.
|
974
|
+
#
|
975
|
+
def hosts_service
|
976
|
+
@hosts_service ||= AffinityGroupHostsService.new(self, 'hosts')
|
977
|
+
end
|
978
|
+
|
956
979
|
#
|
957
980
|
# Returns a reference to the service that manages the
|
958
981
|
# list of all virtual machine labels attached to this affinity
|
@@ -992,6 +1015,12 @@ module OvirtSDK4
|
|
992
1015
|
if path.start_with?('hostlabels/')
|
993
1016
|
return host_labels_service.service(path[11..-1])
|
994
1017
|
end
|
1018
|
+
if path == 'hosts'
|
1019
|
+
return hosts_service
|
1020
|
+
end
|
1021
|
+
if path.start_with?('hosts/')
|
1022
|
+
return hosts_service.service(path[6..-1])
|
1023
|
+
end
|
995
1024
|
if path == 'vmlabels'
|
996
1025
|
return vm_labels_service
|
997
1026
|
end
|
@@ -1009,6 +1038,49 @@ module OvirtSDK4
|
|
1009
1038
|
|
1010
1039
|
end
|
1011
1040
|
|
1041
|
+
class AffinityGroupHostService < Service
|
1042
|
+
|
1043
|
+
REMOVE = [
|
1044
|
+
[:async, TrueClass].freeze,
|
1045
|
+
].freeze
|
1046
|
+
|
1047
|
+
private_constant :REMOVE
|
1048
|
+
|
1049
|
+
#
|
1050
|
+
# Remove host from the affinity group.
|
1051
|
+
#
|
1052
|
+
# @param opts [Hash] Additional options.
|
1053
|
+
#
|
1054
|
+
# @option opts [Boolean] :async Indicates if the removal should be performed asynchronously.
|
1055
|
+
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
1056
|
+
#
|
1057
|
+
# @option opts [Hash] :query ({}) Additional URL query parameters.
|
1058
|
+
#
|
1059
|
+
# @option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
|
1060
|
+
# given then the timeout set globally for the connection will be used.
|
1061
|
+
#
|
1062
|
+
# @option opts [Boolean] :wait (true) If `true` wait for the response.
|
1063
|
+
#
|
1064
|
+
def remove(opts = {})
|
1065
|
+
internal_remove(REMOVE, opts)
|
1066
|
+
end
|
1067
|
+
|
1068
|
+
#
|
1069
|
+
# Locates the service corresponding to the given path.
|
1070
|
+
#
|
1071
|
+
# @param path [String] The path of the service.
|
1072
|
+
#
|
1073
|
+
# @return [Service] A reference to the service.
|
1074
|
+
#
|
1075
|
+
def service(path)
|
1076
|
+
if path.nil? || path == ''
|
1077
|
+
return self
|
1078
|
+
end
|
1079
|
+
raise Error.new("The path \"#{path}\" doesn't correspond to any service")
|
1080
|
+
end
|
1081
|
+
|
1082
|
+
end
|
1083
|
+
|
1012
1084
|
class AffinityGroupHostLabelService < Service
|
1013
1085
|
|
1014
1086
|
REMOVE = [
|
@@ -1156,7 +1228,116 @@ module OvirtSDK4
|
|
1156
1228
|
if index.nil?
|
1157
1229
|
return label_service(path)
|
1158
1230
|
end
|
1159
|
-
return label_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
1231
|
+
return label_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
1232
|
+
end
|
1233
|
+
|
1234
|
+
end
|
1235
|
+
|
1236
|
+
class AffinityGroupHostsService < Service
|
1237
|
+
|
1238
|
+
ADD = [
|
1239
|
+
].freeze
|
1240
|
+
|
1241
|
+
private_constant :ADD
|
1242
|
+
|
1243
|
+
#
|
1244
|
+
# Adds a host to the affinity group.
|
1245
|
+
#
|
1246
|
+
# For example, to add the host `789` to the affinity group `456` of cluster `123`, send a request like
|
1247
|
+
# this:
|
1248
|
+
#
|
1249
|
+
# ....
|
1250
|
+
# POST /ovirt-engine/api/clusters/123/affinitygroups/456/hosts
|
1251
|
+
# ....
|
1252
|
+
#
|
1253
|
+
# With the following body:
|
1254
|
+
#
|
1255
|
+
# [source,xml]
|
1256
|
+
# ----
|
1257
|
+
# <host id="789"/>
|
1258
|
+
# ----
|
1259
|
+
#
|
1260
|
+
# @param host [Host] The host to be added to the affinity group.
|
1261
|
+
#
|
1262
|
+
# @param opts [Hash] Additional options.
|
1263
|
+
#
|
1264
|
+
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
1265
|
+
#
|
1266
|
+
# @option opts [Hash] :query ({}) Additional URL query parameters.
|
1267
|
+
#
|
1268
|
+
# @option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
|
1269
|
+
# given then the timeout set globally for the connection will be used.
|
1270
|
+
#
|
1271
|
+
# @option opts [Boolean] :wait (true) If `true` wait for the response.
|
1272
|
+
#
|
1273
|
+
# @return [Host]
|
1274
|
+
#
|
1275
|
+
def add(host, opts = {})
|
1276
|
+
internal_add(host, Host, ADD, opts)
|
1277
|
+
end
|
1278
|
+
|
1279
|
+
LIST = [
|
1280
|
+
[:follow, String].freeze,
|
1281
|
+
[:max, Integer].freeze,
|
1282
|
+
].freeze
|
1283
|
+
|
1284
|
+
private_constant :LIST
|
1285
|
+
|
1286
|
+
#
|
1287
|
+
# List all hosts assigned to this affinity group.
|
1288
|
+
#
|
1289
|
+
# The order of the returned hosts isn't guaranteed.
|
1290
|
+
#
|
1291
|
+
# @param opts [Hash] Additional options.
|
1292
|
+
#
|
1293
|
+
# @option opts [String] :follow Indicates which inner links should be _followed_. The objects referenced by these links will be fetched as part
|
1294
|
+
# of the current request. See <<documents/003_common_concepts/follow, here>> for details.
|
1295
|
+
#
|
1296
|
+
# @option opts [Integer] :max Sets the maximum number of hosts to return. If not specified, all the hosts are
|
1297
|
+
# returned.
|
1298
|
+
#
|
1299
|
+
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
1300
|
+
#
|
1301
|
+
# @option opts [Hash] :query ({}) Additional URL query parameters.
|
1302
|
+
#
|
1303
|
+
# @option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
|
1304
|
+
# given then the timeout set globally for the connection will be used.
|
1305
|
+
#
|
1306
|
+
# @option opts [Boolean] :wait (true) If `true` wait for the response.
|
1307
|
+
#
|
1308
|
+
# @return [Array<Host>]
|
1309
|
+
#
|
1310
|
+
def list(opts = {})
|
1311
|
+
internal_get(LIST, opts)
|
1312
|
+
end
|
1313
|
+
|
1314
|
+
#
|
1315
|
+
# Access the service that manages the host assignment to this affinity group.
|
1316
|
+
#
|
1317
|
+
# @param id [String] The identifier of the `host`.
|
1318
|
+
#
|
1319
|
+
# @return [AffinityGroupHostService] A reference to the `host` service.
|
1320
|
+
#
|
1321
|
+
def host_service(id)
|
1322
|
+
AffinityGroupHostService.new(self, id)
|
1323
|
+
end
|
1324
|
+
|
1325
|
+
#
|
1326
|
+
# Locates the service corresponding to the given path.
|
1327
|
+
#
|
1328
|
+
# @param path [String] The path of the service.
|
1329
|
+
#
|
1330
|
+
# @return [Service] A reference to the service.
|
1331
|
+
#
|
1332
|
+
def service(path)
|
1333
|
+
if path.nil? || path == ''
|
1334
|
+
return self
|
1335
|
+
end
|
1336
|
+
index = path.index('/')
|
1337
|
+
if index.nil?
|
1338
|
+
return host_service(path)
|
1339
|
+
end
|
1340
|
+
return host_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
1160
1341
|
end
|
1161
1342
|
|
1162
1343
|
end
|
@@ -1351,7 +1532,7 @@ module OvirtSDK4
|
|
1351
1532
|
if index.nil?
|
1352
1533
|
return label_service(path)
|
1353
1534
|
end
|
1354
|
-
return label_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
1535
|
+
return label_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
1355
1536
|
end
|
1356
1537
|
|
1357
1538
|
end
|
@@ -1460,7 +1641,7 @@ module OvirtSDK4
|
|
1460
1641
|
if index.nil?
|
1461
1642
|
return vm_service(path)
|
1462
1643
|
end
|
1463
|
-
return vm_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
1644
|
+
return vm_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
1464
1645
|
end
|
1465
1646
|
|
1466
1647
|
end
|
@@ -1577,7 +1758,7 @@ module OvirtSDK4
|
|
1577
1758
|
if index.nil?
|
1578
1759
|
return group_service(path)
|
1579
1760
|
end
|
1580
|
-
return group_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
1761
|
+
return group_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
1581
1762
|
end
|
1582
1763
|
|
1583
1764
|
end
|
@@ -1867,7 +2048,7 @@ module OvirtSDK4
|
|
1867
2048
|
if index.nil?
|
1868
2049
|
return host_service(path)
|
1869
2050
|
end
|
1870
|
-
return host_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
2051
|
+
return host_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
1871
2052
|
end
|
1872
2053
|
|
1873
2054
|
end
|
@@ -2029,7 +2210,7 @@ module OvirtSDK4
|
|
2029
2210
|
if index.nil?
|
2030
2211
|
return vm_service(path)
|
2031
2212
|
end
|
2032
|
-
return vm_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
2213
|
+
return vm_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
2033
2214
|
end
|
2034
2215
|
|
2035
2216
|
end
|
@@ -2124,7 +2305,7 @@ module OvirtSDK4
|
|
2124
2305
|
if index.nil?
|
2125
2306
|
return label_service(path)
|
2126
2307
|
end
|
2127
|
-
return label_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
2308
|
+
return label_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
2128
2309
|
end
|
2129
2310
|
|
2130
2311
|
end
|
@@ -2304,7 +2485,7 @@ module OvirtSDK4
|
|
2304
2485
|
if index.nil?
|
2305
2486
|
return label_service(path)
|
2306
2487
|
end
|
2307
|
-
return label_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
2488
|
+
return label_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
2308
2489
|
end
|
2309
2490
|
|
2310
2491
|
end
|
@@ -2470,7 +2651,7 @@ module OvirtSDK4
|
|
2470
2651
|
if index.nil?
|
2471
2652
|
return profile_service(path)
|
2472
2653
|
end
|
2473
|
-
return profile_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
2654
|
+
return profile_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
2474
2655
|
end
|
2475
2656
|
|
2476
2657
|
end
|
@@ -2636,7 +2817,7 @@ module OvirtSDK4
|
|
2636
2817
|
if index.nil?
|
2637
2818
|
return profile_service(path)
|
2638
2819
|
end
|
2639
|
-
return profile_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
2820
|
+
return profile_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
2640
2821
|
end
|
2641
2822
|
|
2642
2823
|
end
|
@@ -3050,7 +3231,7 @@ module OvirtSDK4
|
|
3050
3231
|
if index.nil?
|
3051
3232
|
return permission_service(path)
|
3052
3233
|
end
|
3053
|
-
return permission_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
3234
|
+
return permission_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
3054
3235
|
end
|
3055
3236
|
|
3056
3237
|
end
|
@@ -3117,7 +3298,7 @@ module OvirtSDK4
|
|
3117
3298
|
if index.nil?
|
3118
3299
|
return role_service(path)
|
3119
3300
|
end
|
3120
|
-
return role_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
3301
|
+
return role_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
3121
3302
|
end
|
3122
3303
|
|
3123
3304
|
end
|
@@ -3337,7 +3518,7 @@ module OvirtSDK4
|
|
3337
3518
|
if index.nil?
|
3338
3519
|
return tag_service(path)
|
3339
3520
|
end
|
3340
|
-
return tag_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
3521
|
+
return tag_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
3341
3522
|
end
|
3342
3523
|
|
3343
3524
|
end
|
@@ -3518,7 +3699,7 @@ module OvirtSDK4
|
|
3518
3699
|
if index.nil?
|
3519
3700
|
return profile_service(path)
|
3520
3701
|
end
|
3521
|
-
return profile_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
3702
|
+
return profile_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
3522
3703
|
end
|
3523
3704
|
|
3524
3705
|
end
|
@@ -3845,7 +4026,7 @@ module OvirtSDK4
|
|
3845
4026
|
if index.nil?
|
3846
4027
|
return disk_service(path)
|
3847
4028
|
end
|
3848
|
-
return disk_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
4029
|
+
return disk_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
3849
4030
|
end
|
3850
4031
|
|
3851
4032
|
end
|
@@ -3939,7 +4120,7 @@ module OvirtSDK4
|
|
3939
4120
|
if index.nil?
|
3940
4121
|
return storage_domain_service(path)
|
3941
4122
|
end
|
3942
|
-
return storage_domain_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
4123
|
+
return storage_domain_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
3943
4124
|
end
|
3944
4125
|
|
3945
4126
|
end
|
@@ -4111,7 +4292,7 @@ module OvirtSDK4
|
|
4111
4292
|
if index.nil?
|
4112
4293
|
return balance_service(path)
|
4113
4294
|
end
|
4114
|
-
return balance_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
4295
|
+
return balance_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
4115
4296
|
end
|
4116
4297
|
|
4117
4298
|
end
|
@@ -4381,7 +4562,7 @@ module OvirtSDK4
|
|
4381
4562
|
if index.nil?
|
4382
4563
|
return bookmark_service(path)
|
4383
4564
|
end
|
4384
|
-
return bookmark_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
4565
|
+
return bookmark_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
4385
4566
|
end
|
4386
4567
|
|
4387
4568
|
end
|
@@ -4496,6 +4677,37 @@ module OvirtSDK4
|
|
4496
4677
|
internal_get(GET, opts)
|
4497
4678
|
end
|
4498
4679
|
|
4680
|
+
REFRESH_GLUSTER_HEAL_STATUS = [
|
4681
|
+
].freeze
|
4682
|
+
|
4683
|
+
private_constant :REFRESH_GLUSTER_HEAL_STATUS
|
4684
|
+
|
4685
|
+
#
|
4686
|
+
# Refresh the Gluster heal info for all volumes in cluster.
|
4687
|
+
#
|
4688
|
+
# For example, Cluster `123`, send a request like
|
4689
|
+
# this:
|
4690
|
+
#
|
4691
|
+
# [source]
|
4692
|
+
# ----
|
4693
|
+
# POST /ovirt-engine/api/clusters/123/refreshglusterhealstatus
|
4694
|
+
# ----
|
4695
|
+
#
|
4696
|
+
# @param opts [Hash] Additional options.
|
4697
|
+
#
|
4698
|
+
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
4699
|
+
#
|
4700
|
+
# @option opts [Hash] :query ({}) Additional URL query parameters.
|
4701
|
+
#
|
4702
|
+
# @option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
|
4703
|
+
# given then the timeout set globally for the connection will be used.
|
4704
|
+
#
|
4705
|
+
# @option opts [Boolean] :wait (true) If `true` wait for the response.
|
4706
|
+
#
|
4707
|
+
def refresh_gluster_heal_status(opts = {})
|
4708
|
+
internal_action(:refreshglusterhealstatus, nil, REFRESH_GLUSTER_HEAL_STATUS, opts)
|
4709
|
+
end
|
4710
|
+
|
4499
4711
|
REMOVE = [
|
4500
4712
|
[:async, TrueClass].freeze,
|
4501
4713
|
].freeze
|
@@ -5047,7 +5259,7 @@ module OvirtSDK4
|
|
5047
5259
|
if index.nil?
|
5048
5260
|
return feature_service(path)
|
5049
5261
|
end
|
5050
|
-
return feature_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
5262
|
+
return feature_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
5051
5263
|
end
|
5052
5264
|
|
5053
5265
|
end
|
@@ -5238,7 +5450,7 @@ module OvirtSDK4
|
|
5238
5450
|
if index.nil?
|
5239
5451
|
return feature_service(path)
|
5240
5452
|
end
|
5241
|
-
return feature_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
5453
|
+
return feature_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
5242
5454
|
end
|
5243
5455
|
|
5244
5456
|
end
|
@@ -5412,7 +5624,7 @@ module OvirtSDK4
|
|
5412
5624
|
if index.nil?
|
5413
5625
|
return level_service(path)
|
5414
5626
|
end
|
5415
|
-
return level_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
5627
|
+
return level_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
5416
5628
|
end
|
5417
5629
|
|
5418
5630
|
end
|
@@ -5616,7 +5828,7 @@ module OvirtSDK4
|
|
5616
5828
|
if index.nil?
|
5617
5829
|
return network_service(path)
|
5618
5830
|
end
|
5619
|
-
return network_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
5831
|
+
return network_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
5620
5832
|
end
|
5621
5833
|
|
5622
5834
|
end
|
@@ -5767,7 +5979,7 @@ module OvirtSDK4
|
|
5767
5979
|
if index.nil?
|
5768
5980
|
return cluster_service(path)
|
5769
5981
|
end
|
5770
|
-
return cluster_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
5982
|
+
return cluster_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
5771
5983
|
end
|
5772
5984
|
|
5773
5985
|
end
|
@@ -6021,7 +6233,7 @@ module OvirtSDK4
|
|
6021
6233
|
if index.nil?
|
6022
6234
|
return profile_service(path)
|
6023
6235
|
end
|
6024
|
-
return profile_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
6236
|
+
return profile_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
6025
6237
|
end
|
6026
6238
|
|
6027
6239
|
end
|
@@ -6532,7 +6744,7 @@ module OvirtSDK4
|
|
6532
6744
|
if index.nil?
|
6533
6745
|
return network_service(path)
|
6534
6746
|
end
|
6535
|
-
return network_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
6747
|
+
return network_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
6536
6748
|
end
|
6537
6749
|
|
6538
6750
|
end
|
@@ -6712,7 +6924,7 @@ module OvirtSDK4
|
|
6712
6924
|
if index.nil?
|
6713
6925
|
return data_center_service(path)
|
6714
6926
|
end
|
6715
|
-
return data_center_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
6927
|
+
return data_center_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
6716
6928
|
end
|
6717
6929
|
|
6718
6930
|
end
|
@@ -7042,7 +7254,7 @@ module OvirtSDK4
|
|
7042
7254
|
if index.nil?
|
7043
7255
|
return attachment_service(path)
|
7044
7256
|
end
|
7045
|
-
return attachment_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
7257
|
+
return attachment_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
7046
7258
|
end
|
7047
7259
|
|
7048
7260
|
end
|
@@ -7252,7 +7464,7 @@ module OvirtSDK4
|
|
7252
7464
|
if index.nil?
|
7253
7465
|
return disk_profile_service(path)
|
7254
7466
|
end
|
7255
|
-
return disk_profile_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
7467
|
+
return disk_profile_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
7256
7468
|
end
|
7257
7469
|
|
7258
7470
|
end
|
@@ -7391,7 +7603,7 @@ module OvirtSDK4
|
|
7391
7603
|
if index.nil?
|
7392
7604
|
return snapshot_service(path)
|
7393
7605
|
end
|
7394
|
-
return snapshot_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
7606
|
+
return snapshot_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
7395
7607
|
end
|
7396
7608
|
|
7397
7609
|
end
|
@@ -7731,7 +7943,7 @@ module OvirtSDK4
|
|
7731
7943
|
if index.nil?
|
7732
7944
|
return disk_service(path)
|
7733
7945
|
end
|
7734
|
-
return disk_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
7946
|
+
return disk_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
7735
7947
|
end
|
7736
7948
|
|
7737
7949
|
end
|
@@ -7949,7 +8161,7 @@ module OvirtSDK4
|
|
7949
8161
|
if index.nil?
|
7950
8162
|
return group_service(path)
|
7951
8163
|
end
|
7952
|
-
return group_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
8164
|
+
return group_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
7953
8165
|
end
|
7954
8166
|
|
7955
8167
|
end
|
@@ -8164,7 +8376,7 @@ module OvirtSDK4
|
|
8164
8376
|
if index.nil?
|
8165
8377
|
return user_service(path)
|
8166
8378
|
end
|
8167
|
-
return user_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
8379
|
+
return user_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
8168
8380
|
end
|
8169
8381
|
|
8170
8382
|
end
|
@@ -8252,7 +8464,7 @@ module OvirtSDK4
|
|
8252
8464
|
if index.nil?
|
8253
8465
|
return domain_service(path)
|
8254
8466
|
end
|
8255
|
-
return domain_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
8467
|
+
return domain_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
8256
8468
|
end
|
8257
8469
|
|
8258
8470
|
end
|
@@ -8364,6 +8576,240 @@ module OvirtSDK4
|
|
8364
8576
|
|
8365
8577
|
end
|
8366
8578
|
|
8579
|
+
class EventSubscriptionService < Service
|
8580
|
+
|
8581
|
+
GET = [
|
8582
|
+
].freeze
|
8583
|
+
|
8584
|
+
private_constant :GET
|
8585
|
+
|
8586
|
+
#
|
8587
|
+
# Gets the information about the event-subscription.
|
8588
|
+
#
|
8589
|
+
# For example to retrieve the information about the subscription of user '123' to
|
8590
|
+
# the event 'vm_console_detected':
|
8591
|
+
#
|
8592
|
+
# ....
|
8593
|
+
# GET /ovirt-engine/api/users/123/vm_console_detected
|
8594
|
+
# ....
|
8595
|
+
#
|
8596
|
+
# [source,xml]
|
8597
|
+
# ----
|
8598
|
+
# <event-subscription href="/ovirt-engine/api/users/123/event-subscriptions/vm_console_detected">
|
8599
|
+
# <event>vm_console_detected</event>
|
8600
|
+
# <notification_method>smtp</notification_method>
|
8601
|
+
# <user href="/ovirt-engine/api/users/123" id="123"/>
|
8602
|
+
# <address>a@b.com</address>
|
8603
|
+
# </event-subscription>
|
8604
|
+
# ----
|
8605
|
+
#
|
8606
|
+
# @param opts [Hash] Additional options.
|
8607
|
+
#
|
8608
|
+
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
8609
|
+
#
|
8610
|
+
# @option opts [Hash] :query ({}) Additional URL query parameters.
|
8611
|
+
#
|
8612
|
+
# @option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
|
8613
|
+
# given then the timeout set globally for the connection will be used.
|
8614
|
+
#
|
8615
|
+
# @option opts [Boolean] :wait (true) If `true` wait for the response.
|
8616
|
+
#
|
8617
|
+
# @return [EventSubscription]
|
8618
|
+
#
|
8619
|
+
def get(opts = {})
|
8620
|
+
internal_get(GET, opts)
|
8621
|
+
end
|
8622
|
+
|
8623
|
+
REMOVE = [
|
8624
|
+
[:async, TrueClass].freeze,
|
8625
|
+
].freeze
|
8626
|
+
|
8627
|
+
private_constant :REMOVE
|
8628
|
+
|
8629
|
+
#
|
8630
|
+
# Removes the event-subscription from the system.
|
8631
|
+
#
|
8632
|
+
# For example to remove user 123's subscription to `vm_console_detected` event:
|
8633
|
+
#
|
8634
|
+
# ....
|
8635
|
+
# DELETE /ovirt-engine/api/users/123/vm_console_detected
|
8636
|
+
# ....
|
8637
|
+
#
|
8638
|
+
# @param opts [Hash] Additional options.
|
8639
|
+
#
|
8640
|
+
# @option opts [Boolean] :async Indicates if the remove should be performed asynchronously.
|
8641
|
+
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
8642
|
+
#
|
8643
|
+
# @option opts [Hash] :query ({}) Additional URL query parameters.
|
8644
|
+
#
|
8645
|
+
# @option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
|
8646
|
+
# given then the timeout set globally for the connection will be used.
|
8647
|
+
#
|
8648
|
+
# @option opts [Boolean] :wait (true) If `true` wait for the response.
|
8649
|
+
#
|
8650
|
+
def remove(opts = {})
|
8651
|
+
internal_remove(REMOVE, opts)
|
8652
|
+
end
|
8653
|
+
|
8654
|
+
#
|
8655
|
+
# Locates the service corresponding to the given path.
|
8656
|
+
#
|
8657
|
+
# @param path [String] The path of the service.
|
8658
|
+
#
|
8659
|
+
# @return [Service] A reference to the service.
|
8660
|
+
#
|
8661
|
+
def service(path)
|
8662
|
+
if path.nil? || path == ''
|
8663
|
+
return self
|
8664
|
+
end
|
8665
|
+
raise Error.new("The path \"#{path}\" doesn't correspond to any service")
|
8666
|
+
end
|
8667
|
+
|
8668
|
+
end
|
8669
|
+
|
8670
|
+
class EventSubscriptionsService < Service
|
8671
|
+
|
8672
|
+
ADD = [
|
8673
|
+
].freeze
|
8674
|
+
|
8675
|
+
private_constant :ADD
|
8676
|
+
|
8677
|
+
#
|
8678
|
+
# Add a new event-subscription to the system.
|
8679
|
+
#
|
8680
|
+
# An event-subscription is always added in the context of a user. For example, to add new
|
8681
|
+
# event-subscription for `host_high_cpu_use` for user `123`, and have the notification
|
8682
|
+
# sent to the e-mail address: `a@b.com`, send a request like this:
|
8683
|
+
#
|
8684
|
+
# ....
|
8685
|
+
# POST /ovirt-engine/api/users/123/eventsubscriptions
|
8686
|
+
# ....
|
8687
|
+
#
|
8688
|
+
# With a request body like this:
|
8689
|
+
#
|
8690
|
+
# [source,xml]
|
8691
|
+
# ----
|
8692
|
+
# <event_subscription>
|
8693
|
+
# <event>host_high_cpu_use</event>
|
8694
|
+
# <address>a@b.com</address>
|
8695
|
+
# </event_subscription>
|
8696
|
+
# ----
|
8697
|
+
#
|
8698
|
+
# The event name will become the ID of the new event-subscription entity:
|
8699
|
+
# GET .../api/users/123/eventsubscriptions/host_high_cpu_use
|
8700
|
+
#
|
8701
|
+
# Note that no user id is provided in the request body. This is because the user-id (in this case 123)
|
8702
|
+
# is already known to the API from the context. Note also that event-subscription entity contains
|
8703
|
+
# notification-method field, but it is not provided either in the request body. This is because currently
|
8704
|
+
# it's always set to SMTP as SNMP notifications are still unsupported by the API layer.
|
8705
|
+
#
|
8706
|
+
# @param event_subscription [EventSubscription] The added event-subscription.
|
8707
|
+
#
|
8708
|
+
# @param opts [Hash] Additional options.
|
8709
|
+
#
|
8710
|
+
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
8711
|
+
#
|
8712
|
+
# @option opts [Hash] :query ({}) Additional URL query parameters.
|
8713
|
+
#
|
8714
|
+
# @option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
|
8715
|
+
# given then the timeout set globally for the connection will be used.
|
8716
|
+
#
|
8717
|
+
# @option opts [Boolean] :wait (true) If `true` wait for the response.
|
8718
|
+
#
|
8719
|
+
# @return [EventSubscription]
|
8720
|
+
#
|
8721
|
+
def add(event_subscription, opts = {})
|
8722
|
+
internal_add(event_subscription, EventSubscription, ADD, opts)
|
8723
|
+
end
|
8724
|
+
|
8725
|
+
LIST = [
|
8726
|
+
[:follow, String].freeze,
|
8727
|
+
[:max, Integer].freeze,
|
8728
|
+
].freeze
|
8729
|
+
|
8730
|
+
private_constant :LIST
|
8731
|
+
|
8732
|
+
#
|
8733
|
+
# List the event-subscriptions for the provided user.
|
8734
|
+
#
|
8735
|
+
# For example to list event-subscriptions for user `123`:
|
8736
|
+
#
|
8737
|
+
# ....
|
8738
|
+
# GET /ovirt-engine/api/users/123/event-subscriptions
|
8739
|
+
# ....
|
8740
|
+
#
|
8741
|
+
# [source,xml]
|
8742
|
+
# ----
|
8743
|
+
# <event-subscriptions>
|
8744
|
+
# <event-subscription href="/ovirt-engine/api/users/123/event-subscriptions/host_install_failed">
|
8745
|
+
# <event>host_install_failed</event>
|
8746
|
+
# <notification_method>smtp</notification_method>
|
8747
|
+
# <user href="/ovirt-engine/api/users/123" id="123"/>
|
8748
|
+
# <address>a@b.com</address>
|
8749
|
+
# </event-subscription>
|
8750
|
+
# <event-subscription href="/ovirt-engine/api/users/123/event-subscriptions/vm_paused">
|
8751
|
+
# <event>vm_paused</event>
|
8752
|
+
# <notification_method>smtp</notification_method>
|
8753
|
+
# <user href="/ovirt-engine/api/users/123" id="123"/>
|
8754
|
+
# <address>a@b.com</address>
|
8755
|
+
# </event-subscription>
|
8756
|
+
# </event-subscriptions>
|
8757
|
+
# ----
|
8758
|
+
#
|
8759
|
+
# @param opts [Hash] Additional options.
|
8760
|
+
#
|
8761
|
+
# @option opts [String] :follow Indicates which inner links should be _followed_. The objects referenced by these links will be fetched as part
|
8762
|
+
# of the current request. See <<documents/003_common_concepts/follow, here>> for details.
|
8763
|
+
#
|
8764
|
+
# @option opts [Integer] :max Sets the maximum number of event-subscriptions to return.
|
8765
|
+
# If not specified all the event-subscriptions are returned.
|
8766
|
+
#
|
8767
|
+
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
8768
|
+
#
|
8769
|
+
# @option opts [Hash] :query ({}) Additional URL query parameters.
|
8770
|
+
#
|
8771
|
+
# @option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
|
8772
|
+
# given then the timeout set globally for the connection will be used.
|
8773
|
+
#
|
8774
|
+
# @option opts [Boolean] :wait (true) If `true` wait for the response.
|
8775
|
+
#
|
8776
|
+
# @return [Array<EventSubscription>]
|
8777
|
+
#
|
8778
|
+
def list(opts = {})
|
8779
|
+
internal_get(LIST, opts)
|
8780
|
+
end
|
8781
|
+
|
8782
|
+
#
|
8783
|
+
# Reference to the service that manages a specific event-subscription.
|
8784
|
+
#
|
8785
|
+
# @param id [String] The identifier of the `event_subscription`.
|
8786
|
+
#
|
8787
|
+
# @return [EventSubscriptionService] A reference to the `event_subscription` service.
|
8788
|
+
#
|
8789
|
+
def event_subscription_service(id)
|
8790
|
+
EventSubscriptionService.new(self, id)
|
8791
|
+
end
|
8792
|
+
|
8793
|
+
#
|
8794
|
+
# Locates the service corresponding to the given path.
|
8795
|
+
#
|
8796
|
+
# @param path [String] The path of the service.
|
8797
|
+
#
|
8798
|
+
# @return [Service] A reference to the service.
|
8799
|
+
#
|
8800
|
+
def service(path)
|
8801
|
+
if path.nil? || path == ''
|
8802
|
+
return self
|
8803
|
+
end
|
8804
|
+
index = path.index('/')
|
8805
|
+
if index.nil?
|
8806
|
+
return event_subscription_service(path)
|
8807
|
+
end
|
8808
|
+
return event_subscription_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
8809
|
+
end
|
8810
|
+
|
8811
|
+
end
|
8812
|
+
|
8367
8813
|
class EventsService < Service
|
8368
8814
|
|
8369
8815
|
ADD = [
|
@@ -8643,7 +9089,7 @@ module OvirtSDK4
|
|
8643
9089
|
if index.nil?
|
8644
9090
|
return event_service(path)
|
8645
9091
|
end
|
8646
|
-
return event_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
9092
|
+
return event_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
8647
9093
|
end
|
8648
9094
|
|
8649
9095
|
end
|
@@ -8798,7 +9244,7 @@ module OvirtSDK4
|
|
8798
9244
|
if index.nil?
|
8799
9245
|
return resource_service(path)
|
8800
9246
|
end
|
8801
|
-
return resource_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
9247
|
+
return resource_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
8802
9248
|
end
|
8803
9249
|
|
8804
9250
|
end
|
@@ -8967,7 +9413,7 @@ module OvirtSDK4
|
|
8967
9413
|
if index.nil?
|
8968
9414
|
return host_service(path)
|
8969
9415
|
end
|
8970
|
-
return host_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
9416
|
+
return host_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
8971
9417
|
end
|
8972
9418
|
|
8973
9419
|
end
|
@@ -9174,7 +9620,7 @@ module OvirtSDK4
|
|
9174
9620
|
if index.nil?
|
9175
9621
|
return group_service(path)
|
9176
9622
|
end
|
9177
|
-
return group_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
9623
|
+
return group_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
9178
9624
|
end
|
9179
9625
|
|
9180
9626
|
end
|
@@ -9271,7 +9717,7 @@ module OvirtSDK4
|
|
9271
9717
|
if index.nil?
|
9272
9718
|
return provider_service(path)
|
9273
9719
|
end
|
9274
|
-
return provider_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
9720
|
+
return provider_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
9275
9721
|
end
|
9276
9722
|
|
9277
9723
|
end
|
@@ -9338,7 +9784,7 @@ module OvirtSDK4
|
|
9338
9784
|
if index.nil?
|
9339
9785
|
return host_service(path)
|
9340
9786
|
end
|
9341
|
-
return host_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
9787
|
+
return host_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
9342
9788
|
end
|
9343
9789
|
|
9344
9790
|
end
|
@@ -9449,7 +9895,7 @@ module OvirtSDK4
|
|
9449
9895
|
if index.nil?
|
9450
9896
|
return configuration_service(path)
|
9451
9897
|
end
|
9452
|
-
return configuration_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
9898
|
+
return configuration_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
9453
9899
|
end
|
9454
9900
|
|
9455
9901
|
end
|
@@ -9687,7 +10133,7 @@ module OvirtSDK4
|
|
9687
10133
|
if index.nil?
|
9688
10134
|
return certificate_service(path)
|
9689
10135
|
end
|
9690
|
-
return certificate_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
10136
|
+
return certificate_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
9691
10137
|
end
|
9692
10138
|
|
9693
10139
|
end
|
@@ -9900,6 +10346,73 @@ module OvirtSDK4
|
|
9900
10346
|
#
|
9901
10347
|
# Add a new fencing-agent to the host.
|
9902
10348
|
#
|
10349
|
+
# [source]
|
10350
|
+
#
|
10351
|
+
# ----
|
10352
|
+
# POST /ovirt-engine/api/hosts/123/fenceagents
|
10353
|
+
#
|
10354
|
+
# You should consult the /usr/sbin/fence_<agent_name> manual page for
|
10355
|
+
# the legal parameters to [name1=value1, name2=value2,...] in the options field.
|
10356
|
+
# If any parameter in options appears by name that means that it is mandatory.
|
10357
|
+
# For example in <options>slot=7[,name1=value1, name2=value2,...]</options>
|
10358
|
+
# slot is mandatory.
|
10359
|
+
# ----
|
10360
|
+
#
|
10361
|
+
# apc, bladecenter, wti fencing agent/s sample request:
|
10362
|
+
#
|
10363
|
+
# [source,xml]
|
10364
|
+
#
|
10365
|
+
# <agent>
|
10366
|
+
# <type>apc</type>
|
10367
|
+
# <order>1</order>
|
10368
|
+
# <ip>192.168.1.101</ip>
|
10369
|
+
# <user>user</user>
|
10370
|
+
# <password>xxx</password>
|
10371
|
+
# <port>9</port>
|
10372
|
+
# <options>slot=7[,name1=value1, name2=value2,...]</options>
|
10373
|
+
# </agent>
|
10374
|
+
#
|
10375
|
+
# apc_snmp, hpblade, ilo, ilo2, ilo_ssh, redfish, rsa fencing agent/s sample request:
|
10376
|
+
#
|
10377
|
+
# [source,xml]
|
10378
|
+
#
|
10379
|
+
# <agent>
|
10380
|
+
# <type>apc_snmp</type>
|
10381
|
+
# <order>1</order>
|
10382
|
+
# <ip>192.168.1.101</ip>
|
10383
|
+
# <user>user</user>
|
10384
|
+
# <password>xxx</password>
|
10385
|
+
# <port>9</port>
|
10386
|
+
# <options>[name1=value1, name2=value2,...]</options>
|
10387
|
+
# </agent>
|
10388
|
+
#
|
10389
|
+
#
|
10390
|
+
# cisco_ucs, drac5, eps fencing agent/s sample request:
|
10391
|
+
#
|
10392
|
+
# [source,xml]
|
10393
|
+
#
|
10394
|
+
# <agent>
|
10395
|
+
# <type>cisco_ucs</type>
|
10396
|
+
# <order>1</order>
|
10397
|
+
# <ip>192.168.1.101</ip>
|
10398
|
+
# <user>user</user>
|
10399
|
+
# <password>xxx</password>
|
10400
|
+
# <options>slot=7[,name1=value1, name2=value2,...]</options>
|
10401
|
+
# </agent>
|
10402
|
+
#
|
10403
|
+
# drac7, ilo3, ilo4, ipmilan, rsb fencing agent/s sample request:
|
10404
|
+
#
|
10405
|
+
# [source,xml]
|
10406
|
+
#
|
10407
|
+
# <agent>
|
10408
|
+
# <type>drac7</type>
|
10409
|
+
# <order>1</order>
|
10410
|
+
# <ip>192.168.1.101</ip>
|
10411
|
+
# <user>user</user>
|
10412
|
+
# <password>xxx</password>
|
10413
|
+
# <options>[name1=value1, name2=value2,...]</options>
|
10414
|
+
# </agent>
|
10415
|
+
#
|
9903
10416
|
# @param agent [Agent] The `agent` to add.
|
9904
10417
|
#
|
9905
10418
|
# @param opts [Hash] Additional options.
|
@@ -10002,7 +10515,7 @@ module OvirtSDK4
|
|
10002
10515
|
if index.nil?
|
10003
10516
|
return agent_service(path)
|
10004
10517
|
end
|
10005
|
-
return agent_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
10518
|
+
return agent_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
10006
10519
|
end
|
10007
10520
|
|
10008
10521
|
end
|
@@ -10142,7 +10655,7 @@ module OvirtSDK4
|
|
10142
10655
|
if index.nil?
|
10143
10656
|
return file_service(path)
|
10144
10657
|
end
|
10145
|
-
return file_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
10658
|
+
return file_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
10146
10659
|
end
|
10147
10660
|
|
10148
10661
|
end
|
@@ -10314,7 +10827,7 @@ module OvirtSDK4
|
|
10314
10827
|
if index.nil?
|
10315
10828
|
return filter_service(path)
|
10316
10829
|
end
|
10317
|
-
return filter_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
10830
|
+
return filter_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
10318
10831
|
end
|
10319
10832
|
|
10320
10833
|
end
|
@@ -10695,7 +11208,7 @@ module OvirtSDK4
|
|
10695
11208
|
if index.nil?
|
10696
11209
|
return brick_service(path)
|
10697
11210
|
end
|
10698
|
-
return brick_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
11211
|
+
return brick_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
10699
11212
|
end
|
10700
11213
|
|
10701
11214
|
end
|
@@ -10928,7 +11441,7 @@ module OvirtSDK4
|
|
10928
11441
|
if index.nil?
|
10929
11442
|
return hook_service(path)
|
10930
11443
|
end
|
10931
|
-
return hook_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
11444
|
+
return hook_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
10932
11445
|
end
|
10933
11446
|
|
10934
11447
|
end
|
@@ -11074,7 +11587,7 @@ module OvirtSDK4
|
|
11074
11587
|
if index.nil?
|
11075
11588
|
return volume_service(path)
|
11076
11589
|
end
|
11077
|
-
return volume_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
11590
|
+
return volume_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
11078
11591
|
end
|
11079
11592
|
|
11080
11593
|
end
|
@@ -11368,7 +11881,7 @@ module OvirtSDK4
|
|
11368
11881
|
if index.nil?
|
11369
11882
|
return group_service(path)
|
11370
11883
|
end
|
11371
|
-
return group_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
11884
|
+
return group_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
11372
11885
|
end
|
11373
11886
|
|
11374
11887
|
end
|
@@ -11501,7 +12014,7 @@ module OvirtSDK4
|
|
11501
12014
|
if index.nil?
|
11502
12015
|
return device_service(path)
|
11503
12016
|
end
|
11504
|
-
return device_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
12017
|
+
return device_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
11505
12018
|
end
|
11506
12019
|
|
11507
12020
|
end
|
@@ -11615,7 +12128,7 @@ module OvirtSDK4
|
|
11615
12128
|
if index.nil?
|
11616
12129
|
return hook_service(path)
|
11617
12130
|
end
|
11618
|
-
return hook_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
12131
|
+
return hook_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
11619
12132
|
end
|
11620
12133
|
|
11621
12134
|
end
|
@@ -11699,7 +12212,7 @@ module OvirtSDK4
|
|
11699
12212
|
if index.nil?
|
11700
12213
|
return nic_service(path)
|
11701
12214
|
end
|
11702
|
-
return nic_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
12215
|
+
return nic_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
11703
12216
|
end
|
11704
12217
|
|
11705
12218
|
end
|
@@ -11766,7 +12279,7 @@ module OvirtSDK4
|
|
11766
12279
|
if index.nil?
|
11767
12280
|
return node_service(path)
|
11768
12281
|
end
|
11769
|
-
return node_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
12282
|
+
return node_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
11770
12283
|
end
|
11771
12284
|
|
11772
12285
|
end
|
@@ -11898,7 +12411,7 @@ module OvirtSDK4
|
|
11898
12411
|
if index.nil?
|
11899
12412
|
return storage_service(path)
|
11900
12413
|
end
|
11901
|
-
return storage_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
12414
|
+
return storage_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
11902
12415
|
end
|
11903
12416
|
|
11904
12417
|
end
|
@@ -12232,7 +12745,7 @@ module OvirtSDK4
|
|
12232
12745
|
if index.nil?
|
12233
12746
|
return host_service(path)
|
12234
12747
|
end
|
12235
|
-
return host_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
12748
|
+
return host_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
12236
12749
|
end
|
12237
12750
|
|
12238
12751
|
end
|
@@ -12379,7 +12892,7 @@ module OvirtSDK4
|
|
12379
12892
|
if index.nil?
|
12380
12893
|
return icon_service(path)
|
12381
12894
|
end
|
12382
|
-
return icon_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
12895
|
+
return icon_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
12383
12896
|
end
|
12384
12897
|
|
12385
12898
|
end
|
@@ -12881,7 +13394,7 @@ module OvirtSDK4
|
|
12881
13394
|
if index.nil?
|
12882
13395
|
return image_transfer_service(path)
|
12883
13396
|
end
|
12884
|
-
return image_transfer_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
13397
|
+
return image_transfer_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
12885
13398
|
end
|
12886
13399
|
|
12887
13400
|
end
|
@@ -12948,7 +13461,7 @@ module OvirtSDK4
|
|
12948
13461
|
if index.nil?
|
12949
13462
|
return image_service(path)
|
12950
13463
|
end
|
12951
|
-
return image_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
13464
|
+
return image_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
12952
13465
|
end
|
12953
13466
|
|
12954
13467
|
end
|
@@ -13302,7 +13815,7 @@ module OvirtSDK4
|
|
13302
13815
|
if index.nil?
|
13303
13816
|
return console_service(path)
|
13304
13817
|
end
|
13305
|
-
return console_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
13818
|
+
return console_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
13306
13819
|
end
|
13307
13820
|
|
13308
13821
|
end
|
@@ -13500,7 +14013,7 @@ module OvirtSDK4
|
|
13500
14013
|
if index.nil?
|
13501
14014
|
return nic_service(path)
|
13502
14015
|
end
|
13503
|
-
return nic_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
14016
|
+
return nic_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
13504
14017
|
end
|
13505
14018
|
|
13506
14019
|
end
|
@@ -13699,7 +14212,7 @@ module OvirtSDK4
|
|
13699
14212
|
if index.nil?
|
13700
14213
|
return watchdog_service(path)
|
13701
14214
|
end
|
13702
|
-
return watchdog_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
14215
|
+
return watchdog_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
13703
14216
|
end
|
13704
14217
|
|
13705
14218
|
end
|
@@ -13886,7 +14399,7 @@ module OvirtSDK4
|
|
13886
14399
|
if index.nil?
|
13887
14400
|
return instance_type_service(path)
|
13888
14401
|
end
|
13889
|
-
return instance_type_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
14402
|
+
return instance_type_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
13890
14403
|
end
|
13891
14404
|
|
13892
14405
|
end
|
@@ -14160,7 +14673,7 @@ module OvirtSDK4
|
|
14160
14673
|
if index.nil?
|
14161
14674
|
return iscsi_bond_service(path)
|
14162
14675
|
end
|
14163
|
-
return iscsi_bond_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
14676
|
+
return iscsi_bond_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
14164
14677
|
end
|
14165
14678
|
|
14166
14679
|
end
|
@@ -14509,7 +15022,7 @@ module OvirtSDK4
|
|
14509
15022
|
if index.nil?
|
14510
15023
|
return job_service(path)
|
14511
15024
|
end
|
14512
|
-
return job_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
15025
|
+
return job_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
14513
15026
|
end
|
14514
15027
|
|
14515
15028
|
end
|
@@ -14606,7 +15119,7 @@ module OvirtSDK4
|
|
14606
15119
|
if index.nil?
|
14607
15120
|
return katello_erratum_service(path)
|
14608
15121
|
end
|
14609
|
-
return katello_erratum_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
15122
|
+
return katello_erratum_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
14610
15123
|
end
|
14611
15124
|
|
14612
15125
|
end
|
@@ -14985,7 +15498,7 @@ module OvirtSDK4
|
|
14985
15498
|
if index.nil?
|
14986
15499
|
return mac_pool_service(path)
|
14987
15500
|
end
|
14988
|
-
return mac_pool_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
15501
|
+
return mac_pool_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
14989
15502
|
end
|
14990
15503
|
|
14991
15504
|
end
|
@@ -15493,7 +16006,7 @@ module OvirtSDK4
|
|
15493
16006
|
if index.nil?
|
15494
16007
|
return attachment_service(path)
|
15495
16008
|
end
|
15496
|
-
return attachment_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
16009
|
+
return attachment_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
15497
16010
|
end
|
15498
16011
|
|
15499
16012
|
end
|
@@ -15604,7 +16117,7 @@ module OvirtSDK4
|
|
15604
16117
|
if index.nil?
|
15605
16118
|
return network_filter_service(path)
|
15606
16119
|
end
|
15607
|
-
return network_filter_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
16120
|
+
return network_filter_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
15608
16121
|
end
|
15609
16122
|
|
15610
16123
|
end
|
@@ -15794,7 +16307,7 @@ module OvirtSDK4
|
|
15794
16307
|
if index.nil?
|
15795
16308
|
return label_service(path)
|
15796
16309
|
end
|
15797
|
-
return label_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
16310
|
+
return label_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
15798
16311
|
end
|
15799
16312
|
|
15800
16313
|
end
|
@@ -15979,7 +16492,7 @@ module OvirtSDK4
|
|
15979
16492
|
if index.nil?
|
15980
16493
|
return network_service(path)
|
15981
16494
|
end
|
15982
|
-
return network_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
16495
|
+
return network_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
15983
16496
|
end
|
15984
16497
|
|
15985
16498
|
end
|
@@ -16210,7 +16723,7 @@ module OvirtSDK4
|
|
16210
16723
|
if index.nil?
|
16211
16724
|
return parameter_service(path)
|
16212
16725
|
end
|
16213
|
-
return parameter_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
16726
|
+
return parameter_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
16214
16727
|
end
|
16215
16728
|
|
16216
16729
|
end
|
@@ -16607,7 +17120,7 @@ module OvirtSDK4
|
|
16607
17120
|
if index.nil?
|
16608
17121
|
return provider_service(path)
|
16609
17122
|
end
|
16610
|
-
return provider_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
17123
|
+
return provider_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
16611
17124
|
end
|
16612
17125
|
|
16613
17126
|
end
|
@@ -16674,7 +17187,7 @@ module OvirtSDK4
|
|
16674
17187
|
if index.nil?
|
16675
17188
|
return image_service(path)
|
16676
17189
|
end
|
16677
|
-
return image_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
17190
|
+
return image_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
16678
17191
|
end
|
16679
17192
|
|
16680
17193
|
end
|
@@ -17096,7 +17609,7 @@ module OvirtSDK4
|
|
17096
17609
|
if index.nil?
|
17097
17610
|
return provider_service(path)
|
17098
17611
|
end
|
17099
|
-
return provider_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
17612
|
+
return provider_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
17100
17613
|
end
|
17101
17614
|
|
17102
17615
|
end
|
@@ -17163,7 +17676,7 @@ module OvirtSDK4
|
|
17163
17676
|
if index.nil?
|
17164
17677
|
return network_service(path)
|
17165
17678
|
end
|
17166
|
-
return network_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
17679
|
+
return network_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
17167
17680
|
end
|
17168
17681
|
|
17169
17682
|
end
|
@@ -17329,7 +17842,7 @@ module OvirtSDK4
|
|
17329
17842
|
if index.nil?
|
17330
17843
|
return subnet_service(path)
|
17331
17844
|
end
|
17332
|
-
return subnet_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
17845
|
+
return subnet_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
17333
17846
|
end
|
17334
17847
|
|
17335
17848
|
end
|
@@ -17521,7 +18034,7 @@ module OvirtSDK4
|
|
17521
18034
|
if index.nil?
|
17522
18035
|
return key_service(path)
|
17523
18036
|
end
|
17524
|
-
return key_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
18037
|
+
return key_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
17525
18038
|
end
|
17526
18039
|
|
17527
18040
|
end
|
@@ -17851,7 +18364,7 @@ module OvirtSDK4
|
|
17851
18364
|
if index.nil?
|
17852
18365
|
return provider_service(path)
|
17853
18366
|
end
|
17854
|
-
return provider_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
18367
|
+
return provider_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
17855
18368
|
end
|
17856
18369
|
|
17857
18370
|
end
|
@@ -17965,7 +18478,7 @@ module OvirtSDK4
|
|
17965
18478
|
if index.nil?
|
17966
18479
|
return type_service(path)
|
17967
18480
|
end
|
17968
|
-
return type_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
18481
|
+
return type_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
17969
18482
|
end
|
17970
18483
|
|
17971
18484
|
end
|
@@ -18079,7 +18592,7 @@ module OvirtSDK4
|
|
18079
18592
|
if index.nil?
|
18080
18593
|
return operating_system_service(path)
|
18081
18594
|
end
|
18082
|
-
return operating_system_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
18595
|
+
return operating_system_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
18083
18596
|
end
|
18084
18597
|
|
18085
18598
|
end
|
@@ -18376,7 +18889,7 @@ module OvirtSDK4
|
|
18376
18889
|
if index.nil?
|
18377
18890
|
return permit_service(path)
|
18378
18891
|
end
|
18379
|
-
return permit_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
18892
|
+
return permit_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
18380
18893
|
end
|
18381
18894
|
|
18382
18895
|
end
|
@@ -18657,7 +19170,7 @@ module OvirtSDK4
|
|
18657
19170
|
if index.nil?
|
18658
19171
|
return qos_service(path)
|
18659
19172
|
end
|
18660
|
-
return qos_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
19173
|
+
return qos_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
18661
19174
|
end
|
18662
19175
|
|
18663
19176
|
end
|
@@ -19015,7 +19528,7 @@ module OvirtSDK4
|
|
19015
19528
|
if index.nil?
|
19016
19529
|
return limit_service(path)
|
19017
19530
|
end
|
19018
|
-
return limit_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
19531
|
+
return limit_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
19019
19532
|
end
|
19020
19533
|
|
19021
19534
|
end
|
@@ -19214,7 +19727,7 @@ module OvirtSDK4
|
|
19214
19727
|
if index.nil?
|
19215
19728
|
return limit_service(path)
|
19216
19729
|
end
|
19217
|
-
return limit_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
19730
|
+
return limit_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
19218
19731
|
end
|
19219
19732
|
|
19220
19733
|
end
|
@@ -19323,7 +19836,7 @@ module OvirtSDK4
|
|
19323
19836
|
if index.nil?
|
19324
19837
|
return quota_service(path)
|
19325
19838
|
end
|
19326
|
-
return quota_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
19839
|
+
return quota_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
19327
19840
|
end
|
19328
19841
|
|
19329
19842
|
end
|
@@ -19622,7 +20135,7 @@ module OvirtSDK4
|
|
19622
20135
|
if index.nil?
|
19623
20136
|
return role_service(path)
|
19624
20137
|
end
|
19625
|
-
return role_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
20138
|
+
return role_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
19626
20139
|
end
|
19627
20140
|
|
19628
20141
|
end
|
@@ -19719,7 +20232,7 @@ module OvirtSDK4
|
|
19719
20232
|
if index.nil?
|
19720
20233
|
return policy_service(path)
|
19721
20234
|
end
|
19722
|
-
return policy_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
20235
|
+
return policy_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
19723
20236
|
end
|
19724
20237
|
|
19725
20238
|
end
|
@@ -20013,7 +20526,7 @@ module OvirtSDK4
|
|
20013
20526
|
if index.nil?
|
20014
20527
|
return unit_service(path)
|
20015
20528
|
end
|
20016
|
-
return unit_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
20529
|
+
return unit_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
20017
20530
|
end
|
20018
20531
|
|
20019
20532
|
end
|
@@ -20325,7 +20838,7 @@ module OvirtSDK4
|
|
20325
20838
|
if index.nil?
|
20326
20839
|
return cdrom_service(path)
|
20327
20840
|
end
|
20328
|
-
return cdrom_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
20841
|
+
return cdrom_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
20329
20842
|
end
|
20330
20843
|
|
20331
20844
|
end
|
@@ -20439,7 +20952,7 @@ module OvirtSDK4
|
|
20439
20952
|
if index.nil?
|
20440
20953
|
return disk_service(path)
|
20441
20954
|
end
|
20442
|
-
return disk_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
20955
|
+
return disk_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
20443
20956
|
end
|
20444
20957
|
|
20445
20958
|
end
|
@@ -20553,7 +21066,7 @@ module OvirtSDK4
|
|
20553
21066
|
if index.nil?
|
20554
21067
|
return nic_service(path)
|
20555
21068
|
end
|
20556
|
-
return nic_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
21069
|
+
return nic_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
20557
21070
|
end
|
20558
21071
|
|
20559
21072
|
end
|
@@ -20717,7 +21230,7 @@ module OvirtSDK4
|
|
20717
21230
|
if index.nil?
|
20718
21231
|
return snapshot_service(path)
|
20719
21232
|
end
|
20720
|
-
return snapshot_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
21233
|
+
return snapshot_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
20721
21234
|
end
|
20722
21235
|
|
20723
21236
|
end
|
@@ -20951,7 +21464,7 @@ module OvirtSDK4
|
|
20951
21464
|
if index.nil?
|
20952
21465
|
return key_service(path)
|
20953
21466
|
end
|
20954
|
-
return key_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
21467
|
+
return key_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
20955
21468
|
end
|
20956
21469
|
|
20957
21470
|
end
|
@@ -21121,7 +21634,7 @@ module OvirtSDK4
|
|
21121
21634
|
if index.nil?
|
21122
21635
|
return statistic_service(path)
|
21123
21636
|
end
|
21124
|
-
return statistic_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
21637
|
+
return statistic_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
21125
21638
|
end
|
21126
21639
|
|
21127
21640
|
end
|
@@ -21419,7 +21932,7 @@ module OvirtSDK4
|
|
21419
21932
|
if index.nil?
|
21420
21933
|
return step_service(path)
|
21421
21934
|
end
|
21422
|
-
return step_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
21935
|
+
return step_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
21423
21936
|
end
|
21424
21937
|
|
21425
21938
|
end
|
@@ -22127,7 +22640,7 @@ module OvirtSDK4
|
|
22127
22640
|
if index.nil?
|
22128
22641
|
return disk_service(path)
|
22129
22642
|
end
|
22130
|
-
return disk_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
22643
|
+
return disk_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
22131
22644
|
end
|
22132
22645
|
|
22133
22646
|
end
|
@@ -22569,7 +23082,7 @@ module OvirtSDK4
|
|
22569
23082
|
if index.nil?
|
22570
23083
|
return disk_service(path)
|
22571
23084
|
end
|
22572
|
-
return disk_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
23085
|
+
return disk_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
22573
23086
|
end
|
22574
23087
|
|
22575
23088
|
end
|
@@ -22735,7 +23248,7 @@ module OvirtSDK4
|
|
22735
23248
|
if index.nil?
|
22736
23249
|
return connection_service(path)
|
22737
23250
|
end
|
22738
|
-
return connection_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
23251
|
+
return connection_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
22739
23252
|
end
|
22740
23253
|
|
22741
23254
|
end
|
@@ -23034,7 +23547,7 @@ module OvirtSDK4
|
|
23034
23547
|
if index.nil?
|
23035
23548
|
return template_service(path)
|
23036
23549
|
end
|
23037
|
-
return template_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
23550
|
+
return template_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
23038
23551
|
end
|
23039
23552
|
|
23040
23553
|
end
|
@@ -23438,7 +23951,7 @@ module OvirtSDK4
|
|
23438
23951
|
if index.nil?
|
23439
23952
|
return attachment_service(path)
|
23440
23953
|
end
|
23441
|
-
return attachment_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
23954
|
+
return attachment_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
23442
23955
|
end
|
23443
23956
|
|
23444
23957
|
end
|
@@ -23519,7 +24032,7 @@ module OvirtSDK4
|
|
23519
24032
|
if index.nil?
|
23520
24033
|
return vm_service(path)
|
23521
24034
|
end
|
23522
|
-
return vm_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
24035
|
+
return vm_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
23523
24036
|
end
|
23524
24037
|
|
23525
24038
|
end
|
@@ -23830,7 +24343,7 @@ module OvirtSDK4
|
|
23830
24343
|
if index.nil?
|
23831
24344
|
return storage_domain_service(path)
|
23832
24345
|
end
|
23833
|
-
return storage_domain_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
24346
|
+
return storage_domain_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
23834
24347
|
end
|
23835
24348
|
|
23836
24349
|
end
|
@@ -24392,7 +24905,7 @@ module OvirtSDK4
|
|
24392
24905
|
if index.nil?
|
24393
24906
|
return storage_connection_extension_service(path)
|
24394
24907
|
end
|
24395
|
-
return storage_connection_extension_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
24908
|
+
return storage_connection_extension_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
24396
24909
|
end
|
24397
24910
|
|
24398
24911
|
end
|
@@ -24643,7 +25156,7 @@ module OvirtSDK4
|
|
24643
25156
|
if index.nil?
|
24644
25157
|
return storage_connection_service(path)
|
24645
25158
|
end
|
24646
|
-
return storage_connection_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
25159
|
+
return storage_connection_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
24647
25160
|
end
|
24648
25161
|
|
24649
25162
|
end
|
@@ -25531,7 +26044,7 @@ module OvirtSDK4
|
|
25531
26044
|
if index.nil?
|
25532
26045
|
return option_service(path)
|
25533
26046
|
end
|
25534
|
-
return option_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
26047
|
+
return option_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
25535
26048
|
end
|
25536
26049
|
|
25537
26050
|
end
|
@@ -25945,7 +26458,7 @@ module OvirtSDK4
|
|
25945
26458
|
if index.nil?
|
25946
26459
|
return permission_service(path)
|
25947
26460
|
end
|
25948
|
-
return permission_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
26461
|
+
return permission_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
25949
26462
|
end
|
25950
26463
|
|
25951
26464
|
end
|
@@ -26250,7 +26763,7 @@ module OvirtSDK4
|
|
26250
26763
|
if index.nil?
|
26251
26764
|
return tag_service(path)
|
26252
26765
|
end
|
26253
|
-
return tag_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
26766
|
+
return tag_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
26254
26767
|
end
|
26255
26768
|
|
26256
26769
|
end
|
@@ -26742,7 +27255,7 @@ module OvirtSDK4
|
|
26742
27255
|
if index.nil?
|
26743
27256
|
return cdrom_service(path)
|
26744
27257
|
end
|
26745
|
-
return cdrom_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
27258
|
+
return cdrom_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
26746
27259
|
end
|
26747
27260
|
|
26748
27261
|
end
|
@@ -27025,7 +27538,7 @@ module OvirtSDK4
|
|
27025
27538
|
if index.nil?
|
27026
27539
|
return attachment_service(path)
|
27027
27540
|
end
|
27028
|
-
return attachment_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
27541
|
+
return attachment_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
27029
27542
|
end
|
27030
27543
|
|
27031
27544
|
end
|
@@ -27092,7 +27605,7 @@ module OvirtSDK4
|
|
27092
27605
|
if index.nil?
|
27093
27606
|
return disk_service(path)
|
27094
27607
|
end
|
27095
|
-
return disk_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
27608
|
+
return disk_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
27096
27609
|
end
|
27097
27610
|
|
27098
27611
|
end
|
@@ -27258,7 +27771,7 @@ module OvirtSDK4
|
|
27258
27771
|
if index.nil?
|
27259
27772
|
return console_service(path)
|
27260
27773
|
end
|
27261
|
-
return console_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
27774
|
+
return console_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
27262
27775
|
end
|
27263
27776
|
|
27264
27777
|
end
|
@@ -27453,7 +27966,7 @@ module OvirtSDK4
|
|
27453
27966
|
if index.nil?
|
27454
27967
|
return nic_service(path)
|
27455
27968
|
end
|
27456
|
-
return nic_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
27969
|
+
return nic_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
27457
27970
|
end
|
27458
27971
|
|
27459
27972
|
end
|
@@ -27648,7 +28161,7 @@ module OvirtSDK4
|
|
27648
28161
|
if index.nil?
|
27649
28162
|
return watchdog_service(path)
|
27650
28163
|
end
|
27651
|
-
return watchdog_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
28164
|
+
return watchdog_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
27652
28165
|
end
|
27653
28166
|
|
27654
28167
|
end
|
@@ -28112,7 +28625,7 @@ module OvirtSDK4
|
|
28112
28625
|
if index.nil?
|
28113
28626
|
return template_service(path)
|
28114
28627
|
end
|
28115
|
-
return template_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
28628
|
+
return template_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
28116
28629
|
end
|
28117
28630
|
|
28118
28631
|
end
|
@@ -28251,7 +28764,7 @@ module OvirtSDK4
|
|
28251
28764
|
if index.nil?
|
28252
28765
|
return unmanaged_network_service(path)
|
28253
28766
|
end
|
28254
|
-
return unmanaged_network_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
28767
|
+
return unmanaged_network_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
28255
28768
|
end
|
28256
28769
|
|
28257
28770
|
end
|
@@ -28347,6 +28860,64 @@ module OvirtSDK4
|
|
28347
28860
|
internal_remove(REMOVE, opts)
|
28348
28861
|
end
|
28349
28862
|
|
28863
|
+
UPDATE = [
|
28864
|
+
].freeze
|
28865
|
+
|
28866
|
+
private_constant :UPDATE
|
28867
|
+
|
28868
|
+
#
|
28869
|
+
# Updates information about the user.
|
28870
|
+
#
|
28871
|
+
# Only the `user_options` field can be updated.
|
28872
|
+
#
|
28873
|
+
# For example, to update user options:
|
28874
|
+
#
|
28875
|
+
# [source]
|
28876
|
+
# ----
|
28877
|
+
# PUT /ovirt-engine/api/users/123
|
28878
|
+
# ----
|
28879
|
+
#
|
28880
|
+
# With a request body like this:
|
28881
|
+
#
|
28882
|
+
# [source,xml]
|
28883
|
+
# ----
|
28884
|
+
# <user>
|
28885
|
+
# <user_options>
|
28886
|
+
# <property>
|
28887
|
+
# <name>test</name>
|
28888
|
+
# <value>test1</value>
|
28889
|
+
# </property>
|
28890
|
+
# </user_options>
|
28891
|
+
# </user>
|
28892
|
+
# ----
|
28893
|
+
#
|
28894
|
+
# @param user [User] The `user` to update.
|
28895
|
+
# @param opts [Hash] Additional options.
|
28896
|
+
#
|
28897
|
+
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
28898
|
+
#
|
28899
|
+
# @option opts [Hash] :query ({}) Additional URL query parameters.
|
28900
|
+
#
|
28901
|
+
# @option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
|
28902
|
+
# given then the timeout set globally for the connection will be used.
|
28903
|
+
#
|
28904
|
+
# @option opts [Boolean] :wait (true) If `true` wait for the response.
|
28905
|
+
#
|
28906
|
+
# @return [User]
|
28907
|
+
#
|
28908
|
+
def update(user, opts = {})
|
28909
|
+
internal_update(user, User, UPDATE, opts)
|
28910
|
+
end
|
28911
|
+
|
28912
|
+
#
|
28913
|
+
# List of event-subscriptions for this user.
|
28914
|
+
#
|
28915
|
+
# @return [EventSubscriptionsService] A reference to `event_subscriptions` service.
|
28916
|
+
#
|
28917
|
+
def event_subscriptions_service
|
28918
|
+
@event_subscriptions_service ||= EventSubscriptionsService.new(self, 'eventsubscriptions')
|
28919
|
+
end
|
28920
|
+
|
28350
28921
|
#
|
28351
28922
|
# Locates the `groups` service.
|
28352
28923
|
#
|
@@ -28403,6 +28974,12 @@ module OvirtSDK4
|
|
28403
28974
|
if path.nil? || path == ''
|
28404
28975
|
return self
|
28405
28976
|
end
|
28977
|
+
if path == 'eventsubscriptions'
|
28978
|
+
return event_subscriptions_service
|
28979
|
+
end
|
28980
|
+
if path.start_with?('eventsubscriptions/')
|
28981
|
+
return event_subscriptions_service.service(path[19..-1])
|
28982
|
+
end
|
28406
28983
|
if path == 'groups'
|
28407
28984
|
return groups_service
|
28408
28985
|
end
|
@@ -28601,7 +29178,7 @@ module OvirtSDK4
|
|
28601
29178
|
if index.nil?
|
28602
29179
|
return user_service(path)
|
28603
29180
|
end
|
28604
|
-
return user_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
29181
|
+
return user_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
28605
29182
|
end
|
28606
29183
|
|
28607
29184
|
end
|
@@ -28767,7 +29344,7 @@ module OvirtSDK4
|
|
28767
29344
|
if index.nil?
|
28768
29345
|
return network_service(path)
|
28769
29346
|
end
|
28770
|
-
return network_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
29347
|
+
return network_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
28771
29348
|
end
|
28772
29349
|
|
28773
29350
|
end
|
@@ -28815,6 +29392,8 @@ module OvirtSDK4
|
|
28815
29392
|
|
28816
29393
|
CLONE = [
|
28817
29394
|
[:async, TrueClass].freeze,
|
29395
|
+
[:discard_snapshots, TrueClass].freeze,
|
29396
|
+
[:storage_domain, StorageDomain].freeze,
|
28818
29397
|
[:vm, Vm].freeze,
|
28819
29398
|
].freeze
|
28820
29399
|
|
@@ -28827,6 +29406,11 @@ module OvirtSDK4
|
|
28827
29406
|
#
|
28828
29407
|
# @option opts [Boolean] :async Indicates if the clone should be performed asynchronously.
|
28829
29408
|
#
|
29409
|
+
# @option opts [Boolean] :discard_snapshots Use the `discard_snapshots` parameter when the virtual machine should be clone with its
|
29410
|
+
# snapshots collapsed. Default is true.
|
29411
|
+
#
|
29412
|
+
# @option opts [StorageDomain] :storage_domain The storage domain on which the virtual machines disks will be copied to.
|
29413
|
+
#
|
28830
29414
|
# @option opts [Vm] :vm
|
28831
29415
|
#
|
28832
29416
|
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
@@ -29441,6 +30025,7 @@ module OvirtSDK4
|
|
29441
30025
|
|
29442
30026
|
SHUTDOWN = [
|
29443
30027
|
[:async, TrueClass].freeze,
|
30028
|
+
[:reason, String].freeze,
|
29444
30029
|
].freeze
|
29445
30030
|
|
29446
30031
|
private_constant :SHUTDOWN
|
@@ -29467,6 +30052,9 @@ module OvirtSDK4
|
|
29467
30052
|
#
|
29468
30053
|
# @option opts [Boolean] :async Indicates if the shutdown should be performed asynchronously.
|
29469
30054
|
#
|
30055
|
+
# @option opts [String] :reason The reason the virtual machine was stopped.
|
30056
|
+
# Optionally set by user when shutting down the virtual machine.
|
30057
|
+
#
|
29470
30058
|
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
29471
30059
|
#
|
29472
30060
|
# @option opts [Hash] :query ({}) Additional URL query parameters.
|
@@ -29486,6 +30074,7 @@ module OvirtSDK4
|
|
29486
30074
|
[:filter, TrueClass].freeze,
|
29487
30075
|
[:pause, TrueClass].freeze,
|
29488
30076
|
[:use_cloud_init, TrueClass].freeze,
|
30077
|
+
[:use_ignition, TrueClass].freeze,
|
29489
30078
|
[:use_initialization, TrueClass].freeze,
|
29490
30079
|
[:use_sysprep, TrueClass].freeze,
|
29491
30080
|
[:vm, Vm].freeze,
|
@@ -29527,6 +30116,9 @@ module OvirtSDK4
|
|
29527
30116
|
# @option opts [Boolean] :use_cloud_init If set to `true`, the initialization type is set to _cloud-init_. The default value is `false`.
|
29528
30117
|
# See https://cloudinit.readthedocs.io/en/latest[this] for details.
|
29529
30118
|
#
|
30119
|
+
# @option opts [Boolean] :use_ignition If set to `true`, the initialization type is set to _Ignition_. The default value is `false`.
|
30120
|
+
# See https://coreos.com/ignition/docs/latest/[this] for details.
|
30121
|
+
#
|
29530
30122
|
# @option opts [Boolean] :use_initialization If set to `true`, the initialization type is set by the VM's OS.
|
29531
30123
|
# Windows will set to _Sysprep_, Linux to _cloud-init_ and RedHat CoreOS to _Ignition_.
|
29532
30124
|
# If any of the initialization-types are explicitly set (useCloudInit, useSysprep or useIgnition),
|
@@ -29576,6 +30168,7 @@ module OvirtSDK4
|
|
29576
30168
|
|
29577
30169
|
STOP = [
|
29578
30170
|
[:async, TrueClass].freeze,
|
30171
|
+
[:reason, String].freeze,
|
29579
30172
|
].freeze
|
29580
30173
|
|
29581
30174
|
private_constant :STOP
|
@@ -29602,6 +30195,9 @@ module OvirtSDK4
|
|
29602
30195
|
#
|
29603
30196
|
# @option opts [Boolean] :async Indicates if the stop action should be performed asynchronously.
|
29604
30197
|
#
|
30198
|
+
# @option opts [String] :reason The reason the virtual machine was stopped.
|
30199
|
+
# Optionally set by user when shutting down the virtual machine.
|
30200
|
+
#
|
29605
30201
|
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
29606
30202
|
#
|
29607
30203
|
# @option opts [Hash] :query ({}) Additional URL query parameters.
|
@@ -30303,7 +30899,7 @@ module OvirtSDK4
|
|
30303
30899
|
if index.nil?
|
30304
30900
|
return application_service(path)
|
30305
30901
|
end
|
30306
|
-
return application_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
30902
|
+
return application_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
30307
30903
|
end
|
30308
30904
|
|
30309
30905
|
end
|
@@ -30502,7 +31098,7 @@ module OvirtSDK4
|
|
30502
31098
|
if index.nil?
|
30503
31099
|
return disk_service(path)
|
30504
31100
|
end
|
30505
|
-
return disk_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
31101
|
+
return disk_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
30506
31102
|
end
|
30507
31103
|
|
30508
31104
|
end
|
@@ -30633,7 +31229,7 @@ module OvirtSDK4
|
|
30633
31229
|
if index.nil?
|
30634
31230
|
return backup_service(path)
|
30635
31231
|
end
|
30636
|
-
return backup_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
31232
|
+
return backup_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
30637
31233
|
end
|
30638
31234
|
|
30639
31235
|
end
|
@@ -30882,7 +31478,7 @@ module OvirtSDK4
|
|
30882
31478
|
if index.nil?
|
30883
31479
|
return cdrom_service(path)
|
30884
31480
|
end
|
30885
|
-
return cdrom_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
31481
|
+
return cdrom_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
30886
31482
|
end
|
30887
31483
|
|
30888
31484
|
end
|
@@ -31251,7 +31847,7 @@ module OvirtSDK4
|
|
31251
31847
|
if index.nil?
|
31252
31848
|
return disk_service(path)
|
31253
31849
|
end
|
31254
|
-
return disk_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
31850
|
+
return disk_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
31255
31851
|
end
|
31256
31852
|
|
31257
31853
|
end
|
@@ -31645,7 +32241,7 @@ module OvirtSDK4
|
|
31645
32241
|
if index.nil?
|
31646
32242
|
return console_service(path)
|
31647
32243
|
end
|
31648
|
-
return console_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
32244
|
+
return console_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
31649
32245
|
end
|
31650
32246
|
|
31651
32247
|
end
|
@@ -31873,7 +32469,7 @@ module OvirtSDK4
|
|
31873
32469
|
if index.nil?
|
31874
32470
|
return device_service(path)
|
31875
32471
|
end
|
31876
|
-
return device_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
32472
|
+
return device_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
31877
32473
|
end
|
31878
32474
|
|
31879
32475
|
end
|
@@ -32264,7 +32860,7 @@ module OvirtSDK4
|
|
32264
32860
|
if index.nil?
|
32265
32861
|
return nic_service(path)
|
32266
32862
|
end
|
32267
|
-
return nic_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
32863
|
+
return nic_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
32268
32864
|
end
|
32269
32865
|
|
32270
32866
|
end
|
@@ -32513,7 +33109,7 @@ module OvirtSDK4
|
|
32513
33109
|
if index.nil?
|
32514
33110
|
return node_service(path)
|
32515
33111
|
end
|
32516
|
-
return node_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
33112
|
+
return node_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
32517
33113
|
end
|
32518
33114
|
|
32519
33115
|
end
|
@@ -32864,7 +33460,7 @@ module OvirtSDK4
|
|
32864
33460
|
if index.nil?
|
32865
33461
|
return pool_service(path)
|
32866
33462
|
end
|
32867
|
-
return pool_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
33463
|
+
return pool_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
32868
33464
|
end
|
32869
33465
|
|
32870
33466
|
end
|
@@ -32978,7 +33574,7 @@ module OvirtSDK4
|
|
32978
33574
|
if index.nil?
|
32979
33575
|
return reported_device_service(path)
|
32980
33576
|
end
|
32981
|
-
return reported_device_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
33577
|
+
return reported_device_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
32982
33578
|
end
|
32983
33579
|
|
32984
33580
|
end
|
@@ -33116,7 +33712,7 @@ module OvirtSDK4
|
|
33116
33712
|
if index.nil?
|
33117
33713
|
return session_service(path)
|
33118
33714
|
end
|
33119
|
-
return session_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
33715
|
+
return session_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
33120
33716
|
end
|
33121
33717
|
|
33122
33718
|
end
|
@@ -33371,7 +33967,7 @@ module OvirtSDK4
|
|
33371
33967
|
if index.nil?
|
33372
33968
|
return watchdog_service(path)
|
33373
33969
|
end
|
33374
|
-
return watchdog_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
33970
|
+
return watchdog_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
33375
33971
|
end
|
33376
33972
|
|
33377
33973
|
end
|
@@ -34006,7 +34602,7 @@ module OvirtSDK4
|
|
34006
34602
|
if index.nil?
|
34007
34603
|
return vm_service(path)
|
34008
34604
|
end
|
34009
|
-
return vm_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
34605
|
+
return vm_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
34010
34606
|
end
|
34011
34607
|
|
34012
34608
|
end
|
@@ -34281,7 +34877,7 @@ module OvirtSDK4
|
|
34281
34877
|
if index.nil?
|
34282
34878
|
return profile_service(path)
|
34283
34879
|
end
|
34284
|
-
return profile_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
34880
|
+
return profile_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
34285
34881
|
end
|
34286
34882
|
|
34287
34883
|
end
|
@@ -34453,7 +35049,7 @@ module OvirtSDK4
|
|
34453
35049
|
if index.nil?
|
34454
35050
|
return weight_service(path)
|
34455
35051
|
end
|
34456
|
-
return weight_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
35052
|
+
return weight_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
34457
35053
|
end
|
34458
35054
|
|
34459
35055
|
end
|
@@ -35138,10 +35734,19 @@ module OvirtSDK4
|
|
35138
35734
|
private_constant :UPDATE
|
35139
35735
|
|
35140
35736
|
#
|
35141
|
-
#
|
35142
|
-
#
|
35737
|
+
# Updates the parameters of the specified disk.
|
35738
|
+
#
|
35739
|
+
# This operation allows updating the following floating disk properties:
|
35740
|
+
#
|
35741
|
+
# * For Image disks: `provisioned_size`, `alias`, `description`, `wipe_after_delete`, `shareable`, `backup` and `disk_profile`.
|
35742
|
+
#
|
35743
|
+
# * For LUN disks: `alias`, `description` and `shareable`.
|
35143
35744
|
#
|
35144
|
-
# For
|
35745
|
+
# * For Cinder and Managed Block disks: `provisioned_size`, `alias` and `description`.
|
35746
|
+
#
|
35747
|
+
# * For VM attached disks, the `qcow_version` can also be updated.
|
35748
|
+
#
|
35749
|
+
# For example, a disk's update can be done by using the following request:
|
35145
35750
|
#
|
35146
35751
|
# [source]
|
35147
35752
|
# ----
|
@@ -35154,6 +35759,8 @@ module OvirtSDK4
|
|
35154
35759
|
# ----
|
35155
35760
|
# <disk>
|
35156
35761
|
# <qcow_version>qcow2_v3</qcow_version>
|
35762
|
+
# <alias>new-alias</alias>
|
35763
|
+
# <description>new-desc</description>
|
35157
35764
|
# </disk>
|
35158
35765
|
# ----
|
35159
35766
|
#
|
@@ -35316,7 +35923,7 @@ module OvirtSDK4
|
|
35316
35923
|
if index.nil?
|
35317
35924
|
return katello_erratum_service(path)
|
35318
35925
|
end
|
35319
|
-
return katello_erratum_service(path[0..(index - 1)]).service(path[(index +1)..-1])
|
35926
|
+
return katello_erratum_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
|
35320
35927
|
end
|
35321
35928
|
|
35322
35929
|
end
|
@@ -36408,6 +37015,51 @@ module OvirtSDK4
|
|
36408
37015
|
internal_action(:commitnetconfig, nil, COMMIT_NET_CONFIG, opts)
|
36409
37016
|
end
|
36410
37017
|
|
37018
|
+
COPY_HOST_NETWORKS = [
|
37019
|
+
[:async, TrueClass].freeze,
|
37020
|
+
[:source_host, Host].freeze,
|
37021
|
+
].freeze
|
37022
|
+
|
37023
|
+
private_constant :COPY_HOST_NETWORKS
|
37024
|
+
|
37025
|
+
#
|
37026
|
+
# Copy the network configuration of the specified host to current host.
|
37027
|
+
#
|
37028
|
+
# To copy networks from another host, send a request like this:
|
37029
|
+
#
|
37030
|
+
# [source]
|
37031
|
+
# ----
|
37032
|
+
# POST /ovirt-engine/api/hosts/123/copyhostnetworks
|
37033
|
+
# ----
|
37034
|
+
#
|
37035
|
+
# With a request body like this:
|
37036
|
+
#
|
37037
|
+
# [source,xml]
|
37038
|
+
# ----
|
37039
|
+
# <action>
|
37040
|
+
# <sourceHost id="456" />
|
37041
|
+
# </action>
|
37042
|
+
# ----
|
37043
|
+
#
|
37044
|
+
# @param opts [Hash] Additional options.
|
37045
|
+
#
|
37046
|
+
# @option opts [Boolean] :async Indicates if the action should be performed asynchronously.
|
37047
|
+
#
|
37048
|
+
# @option opts [Host] :source_host The host to copy networks from.
|
37049
|
+
#
|
37050
|
+
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
37051
|
+
#
|
37052
|
+
# @option opts [Hash] :query ({}) Additional URL query parameters.
|
37053
|
+
#
|
37054
|
+
# @option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
|
37055
|
+
# given then the timeout set globally for the connection will be used.
|
37056
|
+
#
|
37057
|
+
# @option opts [Boolean] :wait (true) If `true` wait for the response.
|
37058
|
+
#
|
37059
|
+
def copy_host_networks(opts = {})
|
37060
|
+
internal_action(:copyhostnetworks, nil, COPY_HOST_NETWORKS, opts)
|
37061
|
+
end
|
37062
|
+
|
36411
37063
|
DEACTIVATE = [
|
36412
37064
|
[:async, TrueClass].freeze,
|
36413
37065
|
[:reason, String].freeze,
|
@@ -36471,6 +37123,7 @@ module OvirtSDK4
|
|
36471
37123
|
FENCE = [
|
36472
37124
|
[:async, TrueClass].freeze,
|
36473
37125
|
[:fence_type, String].freeze,
|
37126
|
+
[:maintenance_after_restart, TrueClass].freeze,
|
36474
37127
|
].freeze
|
36475
37128
|
|
36476
37129
|
private_constant :FENCE
|
@@ -36510,6 +37163,8 @@ module OvirtSDK4
|
|
36510
37163
|
#
|
36511
37164
|
# @option opts [String] :fence_type
|
36512
37165
|
#
|
37166
|
+
# @option opts [Boolean] :maintenance_after_restart Indicates if host should be put into maintenance after restart.
|
37167
|
+
#
|
36513
37168
|
# @option opts [PowerManagement] :power_management
|
36514
37169
|
#
|
36515
37170
|
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
@@ -36658,7 +37313,7 @@ module OvirtSDK4
|
|
36658
37313
|
# "https://engine.example.com/ovirt-engine/api/hosts/123"
|
36659
37314
|
# ----
|
36660
37315
|
#
|
36661
|
-
# Example of installing a host
|
37316
|
+
# Example of installing a host using `curl` and JSON with hosted engine components:
|
36662
37317
|
#
|
36663
37318
|
# [source,bash]
|
36664
37319
|
# ----
|
@@ -36679,7 +37334,7 @@ module OvirtSDK4
|
|
36679
37334
|
# "https://engine.example.com/ovirt-engine/api/hosts/123?deploy_hosted_engine=true"
|
36680
37335
|
# ----
|
36681
37336
|
#
|
36682
|
-
# IMPORTANT: Since version 4.1.2 of the engine when a host is reinstalled we override the host firewall
|
37337
|
+
# IMPORTANT: Since version 4.1.2 of the engine, when a host is reinstalled we override the host firewall
|
36683
37338
|
# definitions by default.
|
36684
37339
|
#
|
36685
37340
|
# @param opts [Hash] Additional options.
|
@@ -36690,8 +37345,8 @@ module OvirtSDK4
|
|
36690
37345
|
#
|
36691
37346
|
# @option opts [Boolean] :async Indicates if the installation should be performed asynchronously.
|
36692
37347
|
#
|
36693
|
-
# @option opts [Boolean] :deploy_hosted_engine When set to `true`
|
36694
|
-
# is treated as `true` i.e deploy. Omitting this parameter means `false` and will perform
|
37348
|
+
# @option opts [Boolean] :deploy_hosted_engine When set to `true` this host will also deploy the self-hosted engine components. A missing value
|
37349
|
+
# is treated as `true` i.e deploy. Omitting this parameter means `false` and will not perform any operation in the
|
36695
37350
|
# self-hosted engine area.
|
36696
37351
|
#
|
36697
37352
|
# @option opts [Host] :host The `override_iptables` property is used to indicate if the firewall configuration should be replaced by the
|
@@ -36699,13 +37354,13 @@ module OvirtSDK4
|
|
36699
37354
|
#
|
36700
37355
|
# @option opts [String] :image When installing {hypervisor-name}, an ISO image file is required.
|
36701
37356
|
#
|
36702
|
-
# @option opts [String] :root_password The password of
|
37357
|
+
# @option opts [String] :root_password The password of the `root` user used to connect to the host via SSH.
|
36703
37358
|
#
|
36704
37359
|
# @option opts [Ssh] :ssh The SSH details used to connect to the host.
|
36705
37360
|
#
|
36706
|
-
# @option opts [Boolean] :undeploy_hosted_engine When set to `true`
|
36707
|
-
# not function as part of the High Availability cluster. A missing value is treated as `true` i.e un-deploy
|
36708
|
-
# Omitting this parameter means `false` and will perform
|
37361
|
+
# @option opts [Boolean] :undeploy_hosted_engine When set to `true` this host will un-deploy the self-hosted engine components, and this host will
|
37362
|
+
# not function as part of the High Availability cluster. A missing value is treated as `true` i.e un-deploy.
|
37363
|
+
# Omitting this parameter means `false` and will not perform any operation in the self-hosted engine area.
|
36709
37364
|
#
|
36710
37365
|
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
36711
37366
|
#
|
@@ -36995,7 +37650,7 @@ module OvirtSDK4
|
|
36995
37650
|
# <ip address="192.168.122.10" netmask="255.255.255.0"/>
|
36996
37651
|
# ----
|
36997
37652
|
#
|
36998
|
-
#
|
37653
|
+
# The same thing can be done using the Python SDK with the following code:
|
36999
37654
|
#
|
37000
37655
|
# [source,python]
|
37001
37656
|
# ----
|
@@ -37252,13 +37907,12 @@ module OvirtSDK4
|
|
37252
37907
|
#
|
37253
37908
|
# @option opts [Boolean] :async Indicates if the upgrade should be performed asynchronously.
|
37254
37909
|
#
|
37255
|
-
# @option opts [String] :image
|
37256
|
-
# upgrade Vintage Node hosts and it is not relevant for other hosts types.
|
37910
|
+
# @option opts [String] :image This property is no longer relevant, since Vintage Node is no longer supported, and has been deprecated.
|
37257
37911
|
#
|
37258
|
-
# @option opts [Boolean] :reboot Indicates if the host should be rebooted after upgrade.
|
37912
|
+
# @option opts [Boolean] :reboot Indicates if the host should be rebooted after the upgrade.
|
37259
37913
|
# By default the host is rebooted.
|
37260
37914
|
#
|
37261
|
-
# NOTE: This parameter is ignored for {hypervisor-name}, which is always rebooted after upgrade.
|
37915
|
+
# NOTE: This parameter is ignored for {hypervisor-name}, which is always rebooted after the upgrade.
|
37262
37916
|
#
|
37263
37917
|
# @option opts [Integer] :timeout Upgrade timeout.
|
37264
37918
|
#
|
@@ -37366,8 +38020,8 @@ module OvirtSDK4
|
|
37366
38020
|
#
|
37367
38021
|
# @option opts [Boolean] :async Indicates if the installation should be performed asynchronously.
|
37368
38022
|
#
|
37369
|
-
# @option opts [Boolean] :deploy_hosted_engine When set to `true`
|
37370
|
-
# is treated as `true` i.e deploy. Omitting this parameter means `false` and will perform
|
38023
|
+
# @option opts [Boolean] :deploy_hosted_engine When set to `true` this host will also deploy the self-hosted engine components. A missing value
|
38024
|
+
# is treated as `true` i.e deploy. Omitting this parameter means `false` and will not perform any operation in the
|
37371
38025
|
# self-hosted engine area.
|
37372
38026
|
#
|
37373
38027
|
# @option opts [Host] :host The `override_iptables` property is used to indicate if the firewall configuration should be replaced by the
|
@@ -37375,13 +38029,13 @@ module OvirtSDK4
|
|
37375
38029
|
#
|
37376
38030
|
# @option opts [String] :image When installing {hypervisor-name}, an ISO image file is required.
|
37377
38031
|
#
|
37378
|
-
# @option opts [String] :root_password The password of
|
38032
|
+
# @option opts [String] :root_password The password of the `root` user used to connect to the host via SSH.
|
37379
38033
|
#
|
37380
38034
|
# @option opts [Ssh] :ssh The SSH details used to connect to the host.
|
37381
38035
|
#
|
37382
|
-
# @option opts [Boolean] :undeploy_hosted_engine When set to `true`
|
37383
|
-
# not function as part of the High Availability cluster. A missing value is treated as `true` i.e un-deploy
|
37384
|
-
# Omitting this parameter means `false` and will perform
|
38036
|
+
# @option opts [Boolean] :undeploy_hosted_engine When set to `true` this host will un-deploy the self-hosted engine components, and this host will
|
38037
|
+
# not function as part of the High Availability cluster. A missing value is treated as `true` i.e un-deploy.
|
38038
|
+
# Omitting this parameter means `false` and will not perform any operation in the self-hosted engine area.
|
37385
38039
|
#
|
37386
38040
|
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
37387
38041
|
#
|
@@ -37488,8 +38142,8 @@ module OvirtSDK4
|
|
37488
38142
|
#
|
37489
38143
|
# @option opts [Boolean] :async Indicates if the installation should be performed asynchronously.
|
37490
38144
|
#
|
37491
|
-
# @option opts [Boolean] :deploy_hosted_engine When set to `true`
|
37492
|
-
# is treated as `true` i.e deploy. Omitting this parameter means `false` and will perform
|
38145
|
+
# @option opts [Boolean] :deploy_hosted_engine When set to `true` this host will also deploy the self-hosted engine components. A missing value
|
38146
|
+
# is treated as `true` i.e deploy. Omitting this parameter means `false` and will not perform any operation in the
|
37493
38147
|
# self-hosted engine area.
|
37494
38148
|
#
|
37495
38149
|
# @option opts [Host] :host The `override_iptables` property is used to indicate if the firewall configuration should be replaced by the
|
@@ -37497,13 +38151,13 @@ module OvirtSDK4
|
|
37497
38151
|
#
|
37498
38152
|
# @option opts [String] :image When installing {hypervisor-name}, an ISO image file is required.
|
37499
38153
|
#
|
37500
|
-
# @option opts [String] :root_password The password of
|
38154
|
+
# @option opts [String] :root_password The password of the `root` user used to connect to the host via SSH.
|
37501
38155
|
#
|
37502
38156
|
# @option opts [Ssh] :ssh The SSH details used to connect to the host.
|
37503
38157
|
#
|
37504
|
-
# @option opts [Boolean] :undeploy_hosted_engine When set to `true`
|
37505
|
-
# not function as part of the High Availability cluster. A missing value is treated as `true` i.e un-deploy
|
37506
|
-
# Omitting this parameter means `false` and will perform
|
38158
|
+
# @option opts [Boolean] :undeploy_hosted_engine When set to `true` this host will un-deploy the self-hosted engine components, and this host will
|
38159
|
+
# not function as part of the High Availability cluster. A missing value is treated as `true` i.e un-deploy.
|
38160
|
+
# Omitting this parameter means `false` and will not perform any operation in the self-hosted engine area.
|
37507
38161
|
#
|
37508
38162
|
# @option opts [Hash] :headers ({}) Additional HTTP headers.
|
37509
38163
|
#
|