From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 0BDFB1FF17A for ; Tue, 25 Nov 2025 12:39:47 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DD55A14DFD; Tue, 25 Nov 2025 12:39:56 +0100 (CET) From: Dietmar Maurer To: pve-devel@lists.proxmox.com Date: Tue, 25 Nov 2025 12:39:21 +0100 Message-ID: <20251125113921.3738852-1-dietmar@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.584 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Subject: [pve-devel] [PATCH pve-api-types] api-types: add lxc pending config, move_volume and resize api X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" And rename QemuPendingConfigValue to PvePendingConfigValue. Signed-off-by: Dietmar Maurer --- 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'); +api(GET => '/nodes/{node}/qemu/{vmid}/pending', 'qemu_get_pending', 'param-name' => 'FixmeQemuGetPending', 'output-type' => 'Vec'); 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'); @@ -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'); +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