public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dietmar Maurer <dietmar@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve-api-types] api-types: add lxc pending config, move_volume and resize api
Date: Tue, 25 Nov 2025 12:39:21 +0100	[thread overview]
Message-ID: <20251125113921.3738852-1-dietmar@proxmox.com> (raw)

And rename QemuPendingConfigValue to PvePendingConfigValue.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
---
 pve-api-types/generate.pl | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/pve-api-types/generate.pl b/pve-api-types/generate.pl
index ef0d92f5..363210d4 100644
--- a/pve-api-types/generate.pl
+++ b/pve-api-types/generate.pl
@@ -126,6 +126,7 @@ Schema2Rust::generate_enum('IsRunning', {
 # We have a textual description of the default value in there, just pick the cgroupv2 one:
 Schema2Rust::register_api_override('UpdateQemuConfig', '/properties/cpuunits/default', 1024);
 Schema2Rust::register_api_override('UpdateQemuConfigAsync', '/properties/cpuunits/default', 1024);
+Schema2Rust::register_api_override('UpdateLxcConfig', '/properties/cpuunits/default', 100);
 
 Schema2Rust::register_api_override('QemuConfig', '/properties/cpuunits/default', 1024);
 Schema2Rust::register_api_override('LxcConfig', '/properties/cpuunits/default', 1024);
@@ -141,6 +142,7 @@ Schema2Rust::register_api_override('RemoteMigrateLxc', '/properties/bwlimit/defa
 
 # We have a textual description of the default value in there, simply set to undef
 Schema2Rust::register_api_override('QemuMoveDisk', '/properties/bwlimit/default', undef);
+Schema2Rust::register_api_override('LxcMoveDisk', '/properties/bwlimit/default', undef);
 
 # Token api is missing some descriptions and has textual defaults for integers
 Schema2Rust::register_api_extensions('CreateTokenResponseInfo', {
@@ -231,7 +233,7 @@ api(DELETE => '/nodes/{node}/tasks/{upid}',     'stop_task');
 
 api(GET => '/nodes/{node}/qemu', 'list_qemu', 'param-name' => 'FixmeListQemu', 'return-name' => 'VmEntry');
 api(GET => '/nodes/{node}/qemu/{vmid}/config', 'qemu_get_config', 'param-name' => 'FixmeQemuGetConfig', 'return-name' => 'QemuConfig');
-api(GET => '/nodes/{node}/qemu/{vmid}/pending', 'qemu_get_pending', 'param-name' => 'FixmeQemuGetPending', 'output-type' => 'Vec<QemuPendingConfigValue>');
+api(GET => '/nodes/{node}/qemu/{vmid}/pending', 'qemu_get_pending', 'param-name' => 'FixmeQemuGetPending', 'output-type' => 'Vec<PvePendingConfigValue>');
 api(GET => '/nodes/{node}/qemu/{vmid}/status/current', 'qemu_get_status', 'return-name' => 'QemuStatus');
 api(PUT => '/nodes/{node}/qemu/{vmid}/config', 'qemu_update_config', 'param-name' => 'UpdateQemuConfig');
 api(POST => '/nodes/{node}/qemu/{vmid}/config', 'qemu_update_config_async', 'param-name' => 'UpdateQemuConfigAsync', 'output-type' => 'Option<PveUpid>');
@@ -256,6 +258,10 @@ api(POST => '/nodes/{node}/qemu/{vmid}/remote_migrate', 'remote_migrate_qemu',
 api(GET => '/nodes/{node}/lxc',                         'list_lxc',            'param-name' => 'FixmeListLxc',      'return-name' => 'LxcEntry');
 api(GET => '/nodes/{node}/lxc/{vmid}/config',           'lxc_get_config',      'param-name' => 'FixmeLxcGetConfig', 'return-name' => 'LxcConfig');
 Schema2Rust::derive('LxcConfigNet' => 'Clone', 'PartialEq');
+api(PUT => '/nodes/{node}/lxc/{vmid}/config', 'lxc_update_config', 'param-name' => 'UpdateLxcConfig');
+api(GET => '/nodes/{node}/lxc/{vmid}/pending', 'lxc_get_pending', 'param-name' => 'FixmeLxcGetPending', 'output-type' => 'Vec<PvePendingConfigValue>');
+api(POST => '/nodes/{node}/lxc/{vmid}/move_volume', 'lxc_move_volume', 'param-name' => 'LxcMoveVolume', 'output-type' => 'PveUpid');
+api(PUT => '/nodes/{node}/lxc/{vmid}/resize', 'lxc_resize', 'param-name' => 'LxcResize', 'output-type' => 'PveUpid');
 api(GET => '/nodes/{node}/lxc/{vmid}/status/current',   'lxc_get_status',      'return-name' => 'LxcStatus');
 api(POST => '/nodes/{node}/lxc/{vmid}/status/start',    'start_lxc_async',     'output-type' => 'PveUpid', 'param-name' => 'StartLxc');
 api(POST => '/nodes/{node}/lxc/{vmid}/status/stop',     'stop_lxc_async',      'output-type' => 'PveUpid', 'param-name' => 'StopLxc');
-- 
2.47.3


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


                 reply	other threads:[~2025-11-25 11:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251125113921.3738852-1-dietmar@proxmox.com \
    --to=dietmar@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal