ovirt-engine-sdk 4.4.1 → 4.6.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 +4 -4
- data/CHANGES.adoc +10 -3
- data/ext/ovirtsdk4c/ov_http_client.c +10 -2
- data/ext/ovirtsdk4c/ov_http_request.c +1 -1
- data/ext/ovirtsdk4c/ov_http_response.c +1 -1
- data/ext/ovirtsdk4c/ov_http_transfer.c +1 -1
- data/ext/ovirtsdk4c/ov_xml_reader.c +1 -1
- data/lib/ovirtsdk4/readers.rb +538 -0
- data/lib/ovirtsdk4/services.rb +1226 -199
- data/lib/ovirtsdk4/types.rb +1996 -49
- data/lib/ovirtsdk4/version.rb +1 -1
- data/lib/ovirtsdk4/writers.rb +182 -0
- metadata +26 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 593677086e88de577c872f2e3629dabf7d2e4cefa26e73595d19c3127e77008e
|
4
|
+
data.tar.gz: 39a8361a675a62f8b462715a06a0de2d63f8c7c579eca10ff0cb936327580d09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d99f97a8fd180f9c9b6ee0c9c8a5681001f4a83a1fc5b88909c64dae6bcb09ef157d114ea80328900f11762853b0ef0f7971d97f701c9f19e6c638ad3e26e296
|
7
|
+
data.tar.gz: e3bfb91602e07cfbb35b641acd589e6973280479d2cb98246cbd0a565598bdf93368cd40b0641d81534675ab64a52086822e037a83312fde2f06ed8bd4ce2b80
|
data/CHANGES.adoc
CHANGED
@@ -2,8 +2,15 @@
|
|
2
2
|
|
3
3
|
This document describes the relevant changes between releases of the SDK.
|
4
4
|
|
5
|
+
== 4.6.0 / Feb 1 2024
|
6
|
+
Upgrade to model 4.6.0 and metamodel 1.3.10
|
7
|
+
|
8
|
+
New features:
|
9
|
+
|
10
|
+
* Replace rb_cData with rb_cObject, making it compatible with ruby 3.1+
|
11
|
+
|
5
12
|
== 4.4.1 / Feb 23 2021
|
6
|
-
Upgrade to model 4.4.
|
13
|
+
Upgrade to model 4.4.26, metamodel 1.3.4
|
7
14
|
|
8
15
|
* Remove python dependencies from build scripts
|
9
16
|
|
@@ -26,7 +33,7 @@ Deprecations:
|
|
26
33
|
|
27
34
|
* packaging: drop fc28, fc29, el7
|
28
35
|
|
29
|
-
* automation: drop fc28, fc29, el7
|
36
|
+
* automation: drop fc28, fc29, el7
|
30
37
|
|
31
38
|
== 4.3.0 / Jan 16 2018
|
32
39
|
Update to model 4.3.21.
|
@@ -117,7 +124,7 @@ New features:
|
|
117
124
|
|
118
125
|
* Add `cancel` action to transfer image session.
|
119
126
|
|
120
|
-
* Add `export` template as OVA to a given path on a host
|
127
|
+
* Add `export` template as OVA to a given path on a host
|
121
128
|
https://bugzilla.redhat.com/1526033[#1526033].
|
122
129
|
|
123
130
|
* Add service to list user groups
|
@@ -490,12 +490,20 @@ static int ov_http_client_debug_function(CURL* handle, curl_infotype type, char*
|
|
490
490
|
/* Get the pointer to the transfer: */
|
491
491
|
ov_http_transfer_ptr(transfer, transfer_ptr);
|
492
492
|
|
493
|
-
/*
|
493
|
+
/* The global interpreter lock may be acquired or not, so we need to check and either call the task directly
|
494
|
+
or else call it after acquiring the lock. Note that the `ruby_thread_has_gvl_p` function that we ue to
|
495
|
+
check if the GVL is acquired is marked as experimental, and not defined in `thread.h`, so it may be
|
496
|
+
removed at any time, but I didn't find any other way to check if the GVL is acquired. */
|
494
497
|
context.client = transfer_ptr->client;
|
495
498
|
context.type = type;
|
496
499
|
context.data = data;
|
497
500
|
context.size = size;
|
498
|
-
|
501
|
+
if (ruby_thread_has_gvl_p()) {
|
502
|
+
ov_http_client_debug_task(&context);
|
503
|
+
}
|
504
|
+
else {
|
505
|
+
rb_thread_call_with_gvl(ov_http_client_debug_task, &context);
|
506
|
+
}
|
499
507
|
return 0;
|
500
508
|
}
|
501
509
|
|
@@ -344,7 +344,7 @@ static VALUE ov_http_request_initialize(int argc, VALUE* argv, VALUE self) {
|
|
344
344
|
|
345
345
|
void ov_http_request_define(void) {
|
346
346
|
/* Define the class: */
|
347
|
-
ov_http_request_class = rb_define_class_under(ov_module, "HttpRequest",
|
347
|
+
ov_http_request_class = rb_define_class_under(ov_module, "HttpRequest", rb_cObject);
|
348
348
|
|
349
349
|
/* Define the constructor: */
|
350
350
|
rb_define_alloc_func(ov_http_request_class, ov_http_request_alloc);
|
@@ -184,7 +184,7 @@ static VALUE ov_http_response_initialize(int argc, VALUE* argv, VALUE self) {
|
|
184
184
|
|
185
185
|
void ov_http_response_define(void) {
|
186
186
|
/* Define the class: */
|
187
|
-
ov_http_response_class = rb_define_class_under(ov_module, "HttpResponse",
|
187
|
+
ov_http_response_class = rb_define_class_under(ov_module, "HttpResponse", rb_cObject);
|
188
188
|
|
189
189
|
/* Define the constructor: */
|
190
190
|
rb_define_alloc_func(ov_http_response_class, ov_http_response_alloc);
|
@@ -80,7 +80,7 @@ static VALUE ov_http_transfer_inspect(VALUE self) {
|
|
80
80
|
|
81
81
|
void ov_http_transfer_define(void) {
|
82
82
|
/* Define the class: */
|
83
|
-
ov_http_transfer_class = rb_define_class_under(ov_module, "HttpTransfer",
|
83
|
+
ov_http_transfer_class = rb_define_class_under(ov_module, "HttpTransfer", rb_cObject);
|
84
84
|
|
85
85
|
/* Define the constructor: */
|
86
86
|
rb_define_alloc_func(ov_http_transfer_class, ov_http_transfer_alloc);
|
@@ -430,7 +430,7 @@ void ov_xml_reader_define(void) {
|
|
430
430
|
rb_require("stringio");
|
431
431
|
|
432
432
|
/* Define the class: */
|
433
|
-
ov_xml_reader_class = rb_define_class_under(ov_module, "XmlReader",
|
433
|
+
ov_xml_reader_class = rb_define_class_under(ov_module, "XmlReader", rb_cObject);
|
434
434
|
|
435
435
|
/* Define the constructor: */
|
436
436
|
rb_define_alloc_func(ov_xml_reader_class, ov_xml_reader_alloc);
|