ovirt-engine-sdk 4.1.13 → 4.2.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.adoc +2 -96
- data/README.adoc +22 -74
- data/ext/ovirtsdk4c/ov_http_client.c +27 -140
- data/ext/ovirtsdk4c/ov_http_client.h +1 -6
- data/ext/ovirtsdk4c/ov_http_request.c +40 -79
- data/ext/ovirtsdk4c/ov_http_request.h +10 -11
- data/ext/ovirtsdk4c/ov_http_response.c +0 -14
- data/ext/ovirtsdk4c/ov_http_transfer.c +0 -11
- data/ext/ovirtsdk4c/ov_module.h +2 -2
- data/lib/ovirtsdk4/connection.rb +57 -122
- data/lib/ovirtsdk4/probe.rb +2 -55
- data/lib/ovirtsdk4/reader.rb +3 -3
- data/lib/ovirtsdk4/readers.rb +91 -206
- data/lib/ovirtsdk4/service.rb +31 -104
- data/lib/ovirtsdk4/services.rb +9612 -7822
- data/lib/ovirtsdk4/types.rb +225 -491
- data/lib/ovirtsdk4/version.rb +1 -1
- data/lib/ovirtsdk4/writers.rb +36 -73
- metadata +5 -5
data/lib/ovirtsdk4/probe.rb
CHANGED
@@ -67,45 +67,6 @@ module OvirtSDK4
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
ENGINE_CERTIFICATE_PATH =
|
71
|
-
'/ovirt-engine/services/pki-resource?resource=engine-certificate&format=OPENSSH-PUBKEY'.freeze
|
72
|
-
|
73
|
-
#
|
74
|
-
# This class method receives a set of options that define the server to probe and returns a boolean value
|
75
|
-
# that represents whether an oVirt instance was detected.
|
76
|
-
#
|
77
|
-
# @param opts [Hash] The options used to create the probe.
|
78
|
-
#
|
79
|
-
# @option opts [String] :host The name or IP address of the host to probe.
|
80
|
-
#
|
81
|
-
# @option opts [Integer] :port (443) The port number to probe.
|
82
|
-
#
|
83
|
-
# @option opts [String] :log The logger where the log messages will be written.
|
84
|
-
#
|
85
|
-
# @option opts [Boolean] :debug (false) A boolean flag indicating if debug output should be generated. If the
|
86
|
-
# values is `true` and the `log` parameter isn't `nil` then the data sent to and received from the server will
|
87
|
-
# be written to the log. Be aware that user names and passwords will also be written, so handle with care.
|
88
|
-
#
|
89
|
-
# @option opts [String] :proxy_url A string containing the protocol, address and port number of the proxy server
|
90
|
-
# to use to connect to the server. For example, in order to use the HTTP proxy `proxy.example.com` that is
|
91
|
-
# listening on port `3128` the value should be `http://proxy.example.com:3128`. This is optional, and if not
|
92
|
-
# given the connection will go directly to the server specified in the `url` parameter.
|
93
|
-
#
|
94
|
-
# @option opts [Integer] :timeout (0) Set a connection timeout, in seconds. If the value is 0 no timeout is set.
|
95
|
-
#
|
96
|
-
# @return [Boolean] Boolean value, `true` if an oVirt instance was detected.
|
97
|
-
#
|
98
|
-
def self.exists?(opts)
|
99
|
-
probe = nil
|
100
|
-
begin
|
101
|
-
opts[:insecure] = true
|
102
|
-
probe = Probe.new(opts)
|
103
|
-
probe.exists?
|
104
|
-
ensure
|
105
|
-
probe.close if probe
|
106
|
-
end
|
107
|
-
end
|
108
|
-
|
109
70
|
#
|
110
71
|
# Creates a new probe.
|
111
72
|
#
|
@@ -156,7 +117,6 @@ module OvirtSDK4
|
|
156
117
|
@proxy_url = opts[:proxy_url]
|
157
118
|
@proxy_username = opts[:proxy_username]
|
158
119
|
@proxy_password = opts[:proxy_password]
|
159
|
-
@timeout = opts[:timeout]
|
160
120
|
|
161
121
|
# Create the HTTP client:
|
162
122
|
@client = HttpClient.new(
|
@@ -168,8 +128,7 @@ module OvirtSDK4
|
|
168
128
|
debug: @debug,
|
169
129
|
proxy_url: @proxy_url,
|
170
130
|
proxy_username: @proxy_username,
|
171
|
-
proxy_password: @proxy_password
|
172
|
-
timeout: @timeout
|
131
|
+
proxy_password: @proxy_password
|
173
132
|
)
|
174
133
|
end
|
175
134
|
|
@@ -186,18 +145,6 @@ module OvirtSDK4
|
|
186
145
|
detect_version(path).map { |version| ProbeResult.new(version: version) }
|
187
146
|
end
|
188
147
|
|
189
|
-
#
|
190
|
-
# Probes the server to detect if it has an ovirt instance running on it
|
191
|
-
#
|
192
|
-
# @return [Boolean] `true` if oVirt instance was detected, false otherwise
|
193
|
-
#
|
194
|
-
# @api private
|
195
|
-
#
|
196
|
-
def exists?
|
197
|
-
response = send(path: ENGINE_CERTIFICATE_PATH)
|
198
|
-
response.code == 200
|
199
|
-
end
|
200
|
-
|
201
148
|
#
|
202
149
|
# Releases the resources used by this probe.
|
203
150
|
#
|
@@ -237,8 +184,8 @@ module OvirtSDK4
|
|
237
184
|
|
238
185
|
# Set authentication:
|
239
186
|
request.username = @username
|
240
|
-
|
241
187
|
request.password = @password
|
188
|
+
|
242
189
|
# Send the request and wait for the response:
|
243
190
|
@client.send(request)
|
244
191
|
response = @client.wait(request)
|
data/lib/ovirtsdk4/reader.rb
CHANGED
@@ -92,7 +92,7 @@ module OvirtSDK4
|
|
92
92
|
return nil if text.nil?
|
93
93
|
begin
|
94
94
|
return Integer(text, 10)
|
95
|
-
rescue
|
95
|
+
rescue
|
96
96
|
raise Error, "The text '#{text}' isn't a valid integer value."
|
97
97
|
end
|
98
98
|
end
|
@@ -127,7 +127,7 @@ module OvirtSDK4
|
|
127
127
|
return nil if text.nil?
|
128
128
|
begin
|
129
129
|
return Float(text)
|
130
|
-
rescue
|
130
|
+
rescue
|
131
131
|
raise Error, "The text '#{text}' isn't a valid decimal value."
|
132
132
|
end
|
133
133
|
end
|
@@ -163,7 +163,7 @@ module OvirtSDK4
|
|
163
163
|
return nil if text.nil?
|
164
164
|
begin
|
165
165
|
return DateTime.xmlschema(text)
|
166
|
-
rescue
|
166
|
+
rescue
|
167
167
|
raise Error, "The text '#{text}' isn't a valid date."
|
168
168
|
end
|
169
169
|
end
|
data/lib/ovirtsdk4/readers.rb
CHANGED
@@ -2012,8 +2012,6 @@ module OvirtSDK4
|
|
2012
2012
|
object.cpu_profiles = CpuProfileReader.read_many(reader)
|
2013
2013
|
when 'data_center'
|
2014
2014
|
object.data_center = DataCenterReader.read_one(reader)
|
2015
|
-
when 'enabled_features'
|
2016
|
-
object.enabled_features = ClusterFeatureReader.read_many(reader)
|
2017
2015
|
when 'gluster_hooks'
|
2018
2016
|
object.gluster_hooks = GlusterHookReader.read_many(reader)
|
2019
2017
|
when 'gluster_volumes'
|
@@ -2080,8 +2078,6 @@ module OvirtSDK4
|
|
2080
2078
|
object.affinity_groups = list
|
2081
2079
|
when 'cpuprofiles'
|
2082
2080
|
object.cpu_profiles = list
|
2083
|
-
when 'enabledfeatures'
|
2084
|
-
object.enabled_features = list
|
2085
2081
|
when 'glusterhooks'
|
2086
2082
|
object.gluster_hooks = list
|
2087
2083
|
when 'glustervolumes'
|
@@ -2101,82 +2097,6 @@ module OvirtSDK4
|
|
2101
2097
|
|
2102
2098
|
end
|
2103
2099
|
|
2104
|
-
class ClusterFeatureReader < Reader
|
2105
|
-
|
2106
|
-
def self.read_one(reader)
|
2107
|
-
# Do nothing if there aren't more tags:
|
2108
|
-
return nil unless reader.forward
|
2109
|
-
|
2110
|
-
# Create the object:
|
2111
|
-
object = ClusterFeature.new
|
2112
|
-
|
2113
|
-
# Process the attributes:
|
2114
|
-
object.href = reader.get_attribute('href')
|
2115
|
-
value = reader.get_attribute('comment')
|
2116
|
-
object.comment = value if not value.nil?
|
2117
|
-
value = reader.get_attribute('description')
|
2118
|
-
object.description = value if not value.nil?
|
2119
|
-
value = reader.get_attribute('id')
|
2120
|
-
object.id = value if not value.nil?
|
2121
|
-
value = reader.get_attribute('name')
|
2122
|
-
object.name = value if not value.nil?
|
2123
|
-
|
2124
|
-
# Discard the start tag:
|
2125
|
-
empty = reader.empty_element?
|
2126
|
-
reader.read
|
2127
|
-
return object if empty
|
2128
|
-
|
2129
|
-
# Process the inner elements:
|
2130
|
-
while reader.forward do
|
2131
|
-
case reader.node_name
|
2132
|
-
when 'comment'
|
2133
|
-
object.comment = Reader.read_string(reader)
|
2134
|
-
when 'description'
|
2135
|
-
object.description = Reader.read_string(reader)
|
2136
|
-
when 'id'
|
2137
|
-
object.id = Reader.read_string(reader)
|
2138
|
-
when 'name'
|
2139
|
-
object.name = Reader.read_string(reader)
|
2140
|
-
when 'cluster_level'
|
2141
|
-
object.cluster_level = ClusterLevelReader.read_one(reader)
|
2142
|
-
else
|
2143
|
-
reader.next_element
|
2144
|
-
end
|
2145
|
-
end
|
2146
|
-
|
2147
|
-
# Discard the end tag:
|
2148
|
-
reader.read
|
2149
|
-
|
2150
|
-
return object
|
2151
|
-
end
|
2152
|
-
|
2153
|
-
|
2154
|
-
def self.read_many(reader)
|
2155
|
-
# Do nothing if there aren't more tags:
|
2156
|
-
list = List.new
|
2157
|
-
return list unless reader.forward
|
2158
|
-
|
2159
|
-
# Process the attributes:
|
2160
|
-
list.href = reader.get_attribute('href')
|
2161
|
-
|
2162
|
-
# Discard the start tag:
|
2163
|
-
empty = reader.empty_element?
|
2164
|
-
reader.read
|
2165
|
-
return list if empty
|
2166
|
-
|
2167
|
-
# Process the inner elements:
|
2168
|
-
while reader.forward do
|
2169
|
-
list << read_one(reader)
|
2170
|
-
end
|
2171
|
-
|
2172
|
-
# Discard the end tag:
|
2173
|
-
reader.read
|
2174
|
-
|
2175
|
-
return list
|
2176
|
-
end
|
2177
|
-
|
2178
|
-
end
|
2179
|
-
|
2180
2100
|
class ClusterLevelReader < Reader
|
2181
2101
|
|
2182
2102
|
def self.read_one(reader)
|
@@ -2217,10 +2137,6 @@ module OvirtSDK4
|
|
2217
2137
|
object.name = Reader.read_string(reader)
|
2218
2138
|
when 'permits'
|
2219
2139
|
object.permits = PermitReader.read_many(reader)
|
2220
|
-
when 'cluster_features'
|
2221
|
-
object.cluster_features = ClusterFeatureReader.read_many(reader)
|
2222
|
-
when 'link'
|
2223
|
-
read_link(reader, object)
|
2224
2140
|
else
|
2225
2141
|
reader.next_element
|
2226
2142
|
end
|
@@ -2257,23 +2173,6 @@ module OvirtSDK4
|
|
2257
2173
|
return list
|
2258
2174
|
end
|
2259
2175
|
|
2260
|
-
def self.read_link(reader, object)
|
2261
|
-
# Process the attributes:
|
2262
|
-
rel = reader.get_attribute('rel')
|
2263
|
-
href = reader.get_attribute('href')
|
2264
|
-
if rel && href
|
2265
|
-
list = List.new
|
2266
|
-
list.href = href
|
2267
|
-
case rel
|
2268
|
-
when 'clusterfeatures'
|
2269
|
-
object.cluster_features = list
|
2270
|
-
end
|
2271
|
-
end
|
2272
|
-
|
2273
|
-
# Discard the rest of the element:
|
2274
|
-
reader.next_element
|
2275
|
-
end
|
2276
|
-
|
2277
2176
|
end
|
2278
2177
|
|
2279
2178
|
class ConfigurationReader < Reader
|
@@ -3403,8 +3302,6 @@ module OvirtSDK4
|
|
3403
3302
|
object.name = value if not value.nil?
|
3404
3303
|
value = reader.get_attribute('pass_discard')
|
3405
3304
|
object.pass_discard = value if not value.nil?
|
3406
|
-
value = reader.get_attribute('read_only')
|
3407
|
-
object.read_only = value if not value.nil?
|
3408
3305
|
value = reader.get_attribute('uses_scsi_reservation')
|
3409
3306
|
object.uses_scsi_reservation = value if not value.nil?
|
3410
3307
|
|
@@ -3434,8 +3331,6 @@ module OvirtSDK4
|
|
3434
3331
|
object.name = Reader.read_string(reader)
|
3435
3332
|
when 'pass_discard'
|
3436
3333
|
object.pass_discard = Reader.read_boolean(reader)
|
3437
|
-
when 'read_only'
|
3438
|
-
object.read_only = Reader.read_boolean(reader)
|
3439
3334
|
when 'uses_scsi_reservation'
|
3440
3335
|
object.uses_scsi_reservation = Reader.read_boolean(reader)
|
3441
3336
|
when 'disk'
|
@@ -4272,8 +4167,6 @@ module OvirtSDK4
|
|
4272
4167
|
object.flood_rate = value if not value.nil?
|
4273
4168
|
value = reader.get_attribute('id')
|
4274
4169
|
object.id = value if not value.nil?
|
4275
|
-
value = reader.get_attribute('index')
|
4276
|
-
object.index = value if not value.nil?
|
4277
4170
|
value = reader.get_attribute('name')
|
4278
4171
|
object.name = value if not value.nil?
|
4279
4172
|
value = reader.get_attribute('origin')
|
@@ -4307,8 +4200,6 @@ module OvirtSDK4
|
|
4307
4200
|
object.flood_rate = Reader.read_integer(reader)
|
4308
4201
|
when 'id'
|
4309
4202
|
object.id = Reader.read_string(reader)
|
4310
|
-
when 'index'
|
4311
|
-
object.index = Reader.read_integer(reader)
|
4312
4203
|
when 'name'
|
4313
4204
|
object.name = Reader.read_string(reader)
|
4314
4205
|
when 'origin'
|
@@ -7179,7 +7070,7 @@ module OvirtSDK4
|
|
7179
7070
|
when 'network_attachments'
|
7180
7071
|
object.network_attachments = NetworkAttachmentReader.read_many(reader)
|
7181
7072
|
when 'nics'
|
7182
|
-
object.nics =
|
7073
|
+
object.nics = NicReader.read_many(reader)
|
7183
7074
|
when 'host_numa_nodes'
|
7184
7075
|
object.numa_nodes = NumaNodeReader.read_many(reader)
|
7185
7076
|
when 'permissions'
|
@@ -7294,8 +7185,6 @@ module OvirtSDK4
|
|
7294
7185
|
object.comment = value if not value.nil?
|
7295
7186
|
value = reader.get_attribute('description')
|
7296
7187
|
object.description = value if not value.nil?
|
7297
|
-
value = reader.get_attribute('driver')
|
7298
|
-
object.driver = value if not value.nil?
|
7299
7188
|
value = reader.get_attribute('id')
|
7300
7189
|
object.id = value if not value.nil?
|
7301
7190
|
value = reader.get_attribute('iommu_group')
|
@@ -7321,8 +7210,6 @@ module OvirtSDK4
|
|
7321
7210
|
object.comment = Reader.read_string(reader)
|
7322
7211
|
when 'description'
|
7323
7212
|
object.description = Reader.read_string(reader)
|
7324
|
-
when 'driver'
|
7325
|
-
object.driver = Reader.read_string(reader)
|
7326
7213
|
when 'id'
|
7327
7214
|
object.id = Reader.read_string(reader)
|
7328
7215
|
when 'iommu_group'
|
@@ -9344,94 +9231,6 @@ module OvirtSDK4
|
|
9344
9231
|
|
9345
9232
|
end
|
9346
9233
|
|
9347
|
-
class LinkLayerDiscoveryProtocolElementReader < Reader
|
9348
|
-
|
9349
|
-
def self.read_one(reader)
|
9350
|
-
# Do nothing if there aren't more tags:
|
9351
|
-
return nil unless reader.forward
|
9352
|
-
|
9353
|
-
# Create the object:
|
9354
|
-
object = LinkLayerDiscoveryProtocolElement.new
|
9355
|
-
|
9356
|
-
# Process the attributes:
|
9357
|
-
object.href = reader.get_attribute('href')
|
9358
|
-
value = reader.get_attribute('comment')
|
9359
|
-
object.comment = value if not value.nil?
|
9360
|
-
value = reader.get_attribute('description')
|
9361
|
-
object.description = value if not value.nil?
|
9362
|
-
value = reader.get_attribute('id')
|
9363
|
-
object.id = value if not value.nil?
|
9364
|
-
value = reader.get_attribute('name')
|
9365
|
-
object.name = value if not value.nil?
|
9366
|
-
value = reader.get_attribute('oui')
|
9367
|
-
object.oui = value if not value.nil?
|
9368
|
-
value = reader.get_attribute('subtype')
|
9369
|
-
object.subtype = value if not value.nil?
|
9370
|
-
value = reader.get_attribute('type')
|
9371
|
-
object.type = value if not value.nil?
|
9372
|
-
|
9373
|
-
# Discard the start tag:
|
9374
|
-
empty = reader.empty_element?
|
9375
|
-
reader.read
|
9376
|
-
return object if empty
|
9377
|
-
|
9378
|
-
# Process the inner elements:
|
9379
|
-
while reader.forward do
|
9380
|
-
case reader.node_name
|
9381
|
-
when 'comment'
|
9382
|
-
object.comment = Reader.read_string(reader)
|
9383
|
-
when 'description'
|
9384
|
-
object.description = Reader.read_string(reader)
|
9385
|
-
when 'id'
|
9386
|
-
object.id = Reader.read_string(reader)
|
9387
|
-
when 'name'
|
9388
|
-
object.name = Reader.read_string(reader)
|
9389
|
-
when 'oui'
|
9390
|
-
object.oui = Reader.read_integer(reader)
|
9391
|
-
when 'properties'
|
9392
|
-
object.properties = PropertyReader.read_many(reader)
|
9393
|
-
when 'subtype'
|
9394
|
-
object.subtype = Reader.read_integer(reader)
|
9395
|
-
when 'type'
|
9396
|
-
object.type = Reader.read_integer(reader)
|
9397
|
-
else
|
9398
|
-
reader.next_element
|
9399
|
-
end
|
9400
|
-
end
|
9401
|
-
|
9402
|
-
# Discard the end tag:
|
9403
|
-
reader.read
|
9404
|
-
|
9405
|
-
return object
|
9406
|
-
end
|
9407
|
-
|
9408
|
-
|
9409
|
-
def self.read_many(reader)
|
9410
|
-
# Do nothing if there aren't more tags:
|
9411
|
-
list = List.new
|
9412
|
-
return list unless reader.forward
|
9413
|
-
|
9414
|
-
# Process the attributes:
|
9415
|
-
list.href = reader.get_attribute('href')
|
9416
|
-
|
9417
|
-
# Discard the start tag:
|
9418
|
-
empty = reader.empty_element?
|
9419
|
-
reader.read
|
9420
|
-
return list if empty
|
9421
|
-
|
9422
|
-
# Process the inner elements:
|
9423
|
-
while reader.forward do
|
9424
|
-
list << read_one(reader)
|
9425
|
-
end
|
9426
|
-
|
9427
|
-
# Discard the end tag:
|
9428
|
-
reader.read
|
9429
|
-
|
9430
|
-
return list
|
9431
|
-
end
|
9432
|
-
|
9433
|
-
end
|
9434
|
-
|
9435
9234
|
class LogicalUnitReader < Reader
|
9436
9235
|
|
9437
9236
|
def self.read_one(reader)
|
@@ -10493,6 +10292,84 @@ module OvirtSDK4
|
|
10493
10292
|
|
10494
10293
|
end
|
10495
10294
|
|
10295
|
+
class NetworkFilterParameterReader < Reader
|
10296
|
+
|
10297
|
+
def self.read_one(reader)
|
10298
|
+
# Do nothing if there aren't more tags:
|
10299
|
+
return nil unless reader.forward
|
10300
|
+
|
10301
|
+
# Create the object:
|
10302
|
+
object = NetworkFilterParameter.new
|
10303
|
+
|
10304
|
+
# Process the attributes:
|
10305
|
+
object.href = reader.get_attribute('href')
|
10306
|
+
value = reader.get_attribute('comment')
|
10307
|
+
object.comment = value if not value.nil?
|
10308
|
+
value = reader.get_attribute('description')
|
10309
|
+
object.description = value if not value.nil?
|
10310
|
+
value = reader.get_attribute('id')
|
10311
|
+
object.id = value if not value.nil?
|
10312
|
+
value = reader.get_attribute('name')
|
10313
|
+
object.name = value if not value.nil?
|
10314
|
+
value = reader.get_attribute('value')
|
10315
|
+
object.value = value if not value.nil?
|
10316
|
+
|
10317
|
+
# Discard the start tag:
|
10318
|
+
empty = reader.empty_element?
|
10319
|
+
reader.read
|
10320
|
+
return object if empty
|
10321
|
+
|
10322
|
+
# Process the inner elements:
|
10323
|
+
while reader.forward do
|
10324
|
+
case reader.node_name
|
10325
|
+
when 'comment'
|
10326
|
+
object.comment = Reader.read_string(reader)
|
10327
|
+
when 'description'
|
10328
|
+
object.description = Reader.read_string(reader)
|
10329
|
+
when 'id'
|
10330
|
+
object.id = Reader.read_string(reader)
|
10331
|
+
when 'name'
|
10332
|
+
object.name = Reader.read_string(reader)
|
10333
|
+
when 'value'
|
10334
|
+
object.value = Reader.read_string(reader)
|
10335
|
+
else
|
10336
|
+
reader.next_element
|
10337
|
+
end
|
10338
|
+
end
|
10339
|
+
|
10340
|
+
# Discard the end tag:
|
10341
|
+
reader.read
|
10342
|
+
|
10343
|
+
return object
|
10344
|
+
end
|
10345
|
+
|
10346
|
+
|
10347
|
+
def self.read_many(reader)
|
10348
|
+
# Do nothing if there aren't more tags:
|
10349
|
+
list = List.new
|
10350
|
+
return list unless reader.forward
|
10351
|
+
|
10352
|
+
# Process the attributes:
|
10353
|
+
list.href = reader.get_attribute('href')
|
10354
|
+
|
10355
|
+
# Discard the start tag:
|
10356
|
+
empty = reader.empty_element?
|
10357
|
+
reader.read
|
10358
|
+
return list if empty
|
10359
|
+
|
10360
|
+
# Process the inner elements:
|
10361
|
+
while reader.forward do
|
10362
|
+
list << read_one(reader)
|
10363
|
+
end
|
10364
|
+
|
10365
|
+
# Discard the end tag:
|
10366
|
+
reader.read
|
10367
|
+
|
10368
|
+
return list
|
10369
|
+
end
|
10370
|
+
|
10371
|
+
end
|
10372
|
+
|
10496
10373
|
class NetworkLabelReader < Reader
|
10497
10374
|
|
10498
10375
|
def self.read_one(reader)
|
@@ -10699,6 +10576,8 @@ module OvirtSDK4
|
|
10699
10576
|
object.network = NetworkReader.read_one(reader)
|
10700
10577
|
when 'network_attachments'
|
10701
10578
|
object.network_attachments = NetworkAttachmentReader.read_many(reader)
|
10579
|
+
when 'network_filter_parameters'
|
10580
|
+
object.network_filter_parameters = NetworkFilterParameterReader.read_many(reader)
|
10702
10581
|
when 'network_labels'
|
10703
10582
|
object.network_labels = NetworkLabelReader.read_many(reader)
|
10704
10583
|
when 'reported_devices'
|
@@ -10765,6 +10644,8 @@ module OvirtSDK4
|
|
10765
10644
|
case rel
|
10766
10645
|
when 'networkattachments'
|
10767
10646
|
object.network_attachments = list
|
10647
|
+
when 'networkfilterparameters'
|
10648
|
+
object.network_filter_parameters = list
|
10768
10649
|
when 'networklabels'
|
10769
10650
|
object.network_labels = list
|
10770
10651
|
when 'reporteddevices'
|
@@ -10799,6 +10680,8 @@ module OvirtSDK4
|
|
10799
10680
|
object.href = reader.get_attribute('href')
|
10800
10681
|
value = reader.get_attribute('boot_protocol')
|
10801
10682
|
object.boot_protocol = value if not value.nil?
|
10683
|
+
value = reader.get_attribute('ipv6_boot_protocol')
|
10684
|
+
object.ipv6_boot_protocol = value if not value.nil?
|
10802
10685
|
value = reader.get_attribute('name')
|
10803
10686
|
object.name = value if not value.nil?
|
10804
10687
|
value = reader.get_attribute('on_boot')
|
@@ -10816,6 +10699,10 @@ module OvirtSDK4
|
|
10816
10699
|
object.boot_protocol = Reader.read_enum(BootProtocol, reader)
|
10817
10700
|
when 'ip'
|
10818
10701
|
object.ip = IpReader.read_one(reader)
|
10702
|
+
when 'ipv6'
|
10703
|
+
object.ipv6 = IpReader.read_one(reader)
|
10704
|
+
when 'ipv6_boot_protocol'
|
10705
|
+
object.ipv6_boot_protocol = Reader.read_enum(BootProtocol, reader)
|
10819
10706
|
when 'name'
|
10820
10707
|
object.name = Reader.read_string(reader)
|
10821
10708
|
when 'on_boot'
|
@@ -18657,8 +18544,6 @@ module OvirtSDK4
|
|
18657
18544
|
Reader.register('cloud_inits', CloudInitReader.method(:read_many))
|
18658
18545
|
Reader.register('cluster', ClusterReader.method(:read_one))
|
18659
18546
|
Reader.register('clusters', ClusterReader.method(:read_many))
|
18660
|
-
Reader.register('cluster_feature', ClusterFeatureReader.method(:read_one))
|
18661
|
-
Reader.register('cluster_features', ClusterFeatureReader.method(:read_many))
|
18662
18547
|
Reader.register('cluster_level', ClusterLevelReader.method(:read_one))
|
18663
18548
|
Reader.register('cluster_levels', ClusterLevelReader.method(:read_many))
|
18664
18549
|
Reader.register('configuration', ConfigurationReader.method(:read_one))
|
@@ -18807,8 +18692,6 @@ module OvirtSDK4
|
|
18807
18692
|
Reader.register('kernels', KernelReader.method(:read_many))
|
18808
18693
|
Reader.register('ksm', KsmReader.method(:read_one))
|
18809
18694
|
Reader.register('ksms', KsmReader.method(:read_many))
|
18810
|
-
Reader.register('link_layer_discovery_protocol_element', LinkLayerDiscoveryProtocolElementReader.method(:read_one))
|
18811
|
-
Reader.register('link_layer_discovery_protocol_elements', LinkLayerDiscoveryProtocolElementReader.method(:read_many))
|
18812
18695
|
Reader.register('logical_unit', LogicalUnitReader.method(:read_one))
|
18813
18696
|
Reader.register('logical_units', LogicalUnitReader.method(:read_many))
|
18814
18697
|
Reader.register('mac', MacReader.method(:read_one))
|
@@ -18835,6 +18718,8 @@ module OvirtSDK4
|
|
18835
18718
|
Reader.register('network_configurations', NetworkConfigurationReader.method(:read_many))
|
18836
18719
|
Reader.register('network_filter', NetworkFilterReader.method(:read_one))
|
18837
18720
|
Reader.register('network_filters', NetworkFilterReader.method(:read_many))
|
18721
|
+
Reader.register('network_filter_parameter', NetworkFilterParameterReader.method(:read_one))
|
18722
|
+
Reader.register('network_filter_parameters', NetworkFilterParameterReader.method(:read_many))
|
18838
18723
|
Reader.register('network_label', NetworkLabelReader.method(:read_one))
|
18839
18724
|
Reader.register('network_labels', NetworkLabelReader.method(:read_many))
|
18840
18725
|
Reader.register('nfs_profile_detail', NfsProfileDetailReader.method(:read_one))
|