From a4e5fbd3d2ba790155cabca4ce1854d37a9918d0 Mon Sep 17 00:00:00 2001 From: ste87 Date: Fri, 13 Mar 2026 15:32:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20ProxmoxDiskRepository.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProxmoxDiskRepository.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ProxmoxDiskRepository.php diff --git a/ProxmoxDiskRepository.php b/ProxmoxDiskRepository.php new file mode 100644 index 0000000..636ab11 --- /dev/null +++ b/ProxmoxDiskRepository.php @@ -0,0 +1,31 @@ +server, Server::class); + + $kibibytes = floor($bytes / 1024); + + $response = $this->getHttpClient() + ->withUrlParameters([ + 'node' => $this->node->cluster, + 'server' => $this->server->vmid, + ]) + ->put('/api2/json/nodes/{node}/qemu/{server}/resize', [ + 'disk' => $disk->value, + 'size' => "{$kibibytes}K", + ]) + ->json(); + + return $this->getData($response); + } +}