Skip to content

Commit 09e5d3a

Browse files
committed
chore: sync from pve-openapi@466feb3
fix(sdk-gen): repair 16 generator bugs flagged by live SDK E2E suite
1 parent 0b19010 commit 09e5d3a

1,254 files changed

Lines changed: 29039 additions & 9932 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,6 @@ clientapi_pve/models/nodes_storage_rrd_response.py
999999
clientapi_pve/models/nodes_storage_rrddata_response.py
10001000
clientapi_pve/models/nodes_storage_updateattributes_request.py
10011001
clientapi_pve/models/nodes_storage_updateattributes_response.py
1002-
clientapi_pve/models/nodes_storage_upload_request.py
10031002
clientapi_pve/models/nodes_storage_upload_response.py
10041003
clientapi_pve/models/nodes_subscription_create_subscription_request.py
10051004
clientapi_pve/models/nodes_subscription_create_subscription_response.py

clientapi_pve/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,6 @@
10161016
"NodesStorageRrddataResponse",
10171017
"NodesStorageUpdateattributesRequest",
10181018
"NodesStorageUpdateattributesResponse",
1019-
"NodesStorageUploadRequest",
10201019
"NodesStorageUploadResponse",
10211020
"NodesSubscriptionCreateSubscriptionRequest",
10221021
"NodesSubscriptionCreateSubscriptionResponse",
@@ -2561,7 +2560,6 @@
25612560
from clientapi_pve.models.nodes_storage_rrddata_response import NodesStorageRrddataResponse as NodesStorageRrddataResponse
25622561
from clientapi_pve.models.nodes_storage_updateattributes_request import NodesStorageUpdateattributesRequest as NodesStorageUpdateattributesRequest
25632562
from clientapi_pve.models.nodes_storage_updateattributes_response import NodesStorageUpdateattributesResponse as NodesStorageUpdateattributesResponse
2564-
from clientapi_pve.models.nodes_storage_upload_request import NodesStorageUploadRequest as NodesStorageUploadRequest
25652563
from clientapi_pve.models.nodes_storage_upload_response import NodesStorageUploadResponse as NodesStorageUploadResponse
25662564
from clientapi_pve.models.nodes_subscription_create_subscription_request import NodesSubscriptionCreateSubscriptionRequest as NodesSubscriptionCreateSubscriptionRequest
25672565
from clientapi_pve.models.nodes_subscription_create_subscription_response import NodesSubscriptionCreateSubscriptionResponse as NodesSubscriptionCreateSubscriptionResponse

clientapi_pve/api/access_acl_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,13 @@ def _update_acl_serialize(
565565
)
566566

567567
# set the HTTP header `Content-Type`
568+
# Only emit Content-Type when there's actually a body/form/file to send.
569+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
570+
# application/json ("malformed JSON string"); other Proxmox products are
571+
# equally fussy. An explicit `_content_type` override always wins.
568572
if _content_type:
569573
_header_params['Content-Type'] = _content_type
570-
else:
574+
elif _body_params is not None or _form_params or _files:
571575
_default_content_type = (
572576
self.api_client.select_header_content_type(
573577
[

clientapi_pve/api/access_api.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,13 @@ def _change_password_serialize(
302302
)
303303

304304
# set the HTTP header `Content-Type`
305+
# Only emit Content-Type when there's actually a body/form/file to send.
306+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
307+
# application/json ("malformed JSON string"); other Proxmox products are
308+
# equally fussy. An explicit `_content_type` override always wins.
305309
if _content_type:
306310
_header_params['Content-Type'] = _content_type
307-
else:
311+
elif _body_params is not None or _form_params or _files:
308312
_default_content_type = (
309313
self.api_client.select_header_content_type(
310314
[
@@ -1171,9 +1175,13 @@ def _verify_vnc_ticket_serialize(
11711175
)
11721176

11731177
# set the HTTP header `Content-Type`
1178+
# Only emit Content-Type when there's actually a body/form/file to send.
1179+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
1180+
# application/json ("malformed JSON string"); other Proxmox products are
1181+
# equally fussy. An explicit `_content_type` override always wins.
11741182
if _content_type:
11751183
_header_params['Content-Type'] = _content_type
1176-
else:
1184+
elif _body_params is not None or _form_params or _files:
11771185
_default_content_type = (
11781186
self.api_client.select_header_content_type(
11791187
[

clientapi_pve/api/access_domains_api.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,13 @@ def _create_domains_serialize(
305305
)
306306

307307
# set the HTTP header `Content-Type`
308+
# Only emit Content-Type when there's actually a body/form/file to send.
309+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
310+
# application/json ("malformed JSON string"); other Proxmox products are
311+
# equally fussy. An explicit `_content_type` override always wins.
308312
if _content_type:
309313
_header_params['Content-Type'] = _content_type
310-
else:
314+
elif _body_params is not None or _form_params or _files:
311315
_default_content_type = (
312316
self.api_client.select_header_content_type(
313317
[
@@ -1452,9 +1456,13 @@ def _sync_serialize(
14521456
)
14531457

14541458
# set the HTTP header `Content-Type`
1459+
# Only emit Content-Type when there's actually a body/form/file to send.
1460+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
1461+
# application/json ("malformed JSON string"); other Proxmox products are
1462+
# equally fussy. An explicit `_content_type` override always wins.
14551463
if _content_type:
14561464
_header_params['Content-Type'] = _content_type
1457-
else:
1465+
elif _body_params is not None or _form_params or _files:
14581466
_default_content_type = (
14591467
self.api_client.select_header_content_type(
14601468
[
@@ -1765,9 +1773,13 @@ def _update_domains_serialize(
17651773
)
17661774

17671775
# set the HTTP header `Content-Type`
1776+
# Only emit Content-Type when there's actually a body/form/file to send.
1777+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
1778+
# application/json ("malformed JSON string"); other Proxmox products are
1779+
# equally fussy. An explicit `_content_type` override always wins.
17681780
if _content_type:
17691781
_header_params['Content-Type'] = _content_type
1770-
else:
1782+
elif _body_params is not None or _form_params or _files:
17711783
_default_content_type = (
17721784
self.api_client.select_header_content_type(
17731785
[

clientapi_pve/api/access_groups_api.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,13 @@ def _create_group_serialize(
303303
)
304304

305305
# set the HTTP header `Content-Type`
306+
# Only emit Content-Type when there's actually a body/form/file to send.
307+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
308+
# application/json ("malformed JSON string"); other Proxmox products are
309+
# equally fussy. An explicit `_content_type` override always wins.
306310
if _content_type:
307311
_header_params['Content-Type'] = _content_type
308-
else:
312+
elif _body_params is not None or _form_params or _files:
309313
_default_content_type = (
310314
self.api_client.select_header_content_type(
311315
[
@@ -1453,9 +1457,13 @@ def _update_group_serialize(
14531457
)
14541458

14551459
# set the HTTP header `Content-Type`
1460+
# Only emit Content-Type when there's actually a body/form/file to send.
1461+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
1462+
# application/json ("malformed JSON string"); other Proxmox products are
1463+
# equally fussy. An explicit `_content_type` override always wins.
14561464
if _content_type:
14571465
_header_params['Content-Type'] = _content_type
1458-
else:
1466+
elif _body_params is not None or _form_params or _files:
14591467
_default_content_type = (
14601468
self.api_client.select_header_content_type(
14611469
[

clientapi_pve/api/access_openid_api.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,13 @@ def _auth_url_serialize(
298298
)
299299

300300
# set the HTTP header `Content-Type`
301+
# Only emit Content-Type when there's actually a body/form/file to send.
302+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
303+
# application/json ("malformed JSON string"); other Proxmox products are
304+
# equally fussy. An explicit `_content_type` override always wins.
301305
if _content_type:
302306
_header_params['Content-Type'] = _content_type
303-
else:
307+
elif _body_params is not None or _form_params or _files:
304308
_default_content_type = (
305309
self.api_client.select_header_content_type(
306310
[
@@ -862,9 +866,13 @@ def _login_serialize(
862866
)
863867

864868
# set the HTTP header `Content-Type`
869+
# Only emit Content-Type when there's actually a body/form/file to send.
870+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
871+
# application/json ("malformed JSON string"); other Proxmox products are
872+
# equally fussy. An explicit `_content_type` override always wins.
865873
if _content_type:
866874
_header_params['Content-Type'] = _content_type
867-
else:
875+
elif _body_params is not None or _form_params or _files:
868876
_default_content_type = (
869877
self.api_client.select_header_content_type(
870878
[

clientapi_pve/api/access_roles_api.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,13 @@ def _create_role_serialize(
303303
)
304304

305305
# set the HTTP header `Content-Type`
306+
# Only emit Content-Type when there's actually a body/form/file to send.
307+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
308+
# application/json ("malformed JSON string"); other Proxmox products are
309+
# equally fussy. An explicit `_content_type` override always wins.
306310
if _content_type:
307311
_header_params['Content-Type'] = _content_type
308-
else:
312+
elif _body_params is not None or _form_params or _files:
309313
_default_content_type = (
310314
self.api_client.select_header_content_type(
311315
[
@@ -1453,9 +1457,13 @@ def _update_role_serialize(
14531457
)
14541458

14551459
# set the HTTP header `Content-Type`
1460+
# Only emit Content-Type when there's actually a body/form/file to send.
1461+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
1462+
# application/json ("malformed JSON string"); other Proxmox products are
1463+
# equally fussy. An explicit `_content_type` override always wins.
14561464
if _content_type:
14571465
_header_params['Content-Type'] = _content_type
1458-
else:
1466+
elif _body_params is not None or _form_params or _files:
14591467
_default_content_type = (
14601468
self.api_client.select_header_content_type(
14611469
[

clientapi_pve/api/access_tfa_api.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,13 @@ def _add_tfa_entry_serialize(
319319
)
320320

321321
# set the HTTP header `Content-Type`
322+
# Only emit Content-Type when there's actually a body/form/file to send.
323+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
324+
# application/json ("malformed JSON string"); other Proxmox products are
325+
# equally fussy. An explicit `_content_type` override always wins.
322326
if _content_type:
323327
_header_params['Content-Type'] = _content_type
324-
else:
328+
elif _body_params is not None or _form_params or _files:
325329
_default_content_type = (
326330
self.api_client.select_header_content_type(
327331
[
@@ -1813,9 +1817,13 @@ def _update_tfa_entry_serialize(
18131817
)
18141818

18151819
# set the HTTP header `Content-Type`
1820+
# Only emit Content-Type when there's actually a body/form/file to send.
1821+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
1822+
# application/json ("malformed JSON string"); other Proxmox products are
1823+
# equally fussy. An explicit `_content_type` override always wins.
18161824
if _content_type:
18171825
_header_params['Content-Type'] = _content_type
1818-
else:
1826+
elif _body_params is not None or _form_params or _files:
18191827
_default_content_type = (
18201828
self.api_client.select_header_content_type(
18211829
[

clientapi_pve/api/access_ticket_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,13 @@ def _create_ticket_serialize(
296296
)
297297

298298
# set the HTTP header `Content-Type`
299+
# Only emit Content-Type when there's actually a body/form/file to send.
300+
# PVE/PMG Perl HTTP server rejects empty bodies with Content-Type:
301+
# application/json ("malformed JSON string"); other Proxmox products are
302+
# equally fussy. An explicit `_content_type` override always wins.
299303
if _content_type:
300304
_header_params['Content-Type'] = _content_type
301-
else:
305+
elif _body_params is not None or _form_params or _files:
302306
_default_content_type = (
303307
self.api_client.select_header_content_type(
304308
[

0 commit comments

Comments
 (0)