[pve-devel] [PATCH dart_api_client] add win11 ostype

Dominik Csapak d.csapak at proxmox.com
Wed Nov 17 12:45:33 CET 2021


or else the deserialization will fail for vms with that ostype set

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 lib/src/models/pve_nodes_qemu_config_model.dart | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/src/models/pve_nodes_qemu_config_model.dart b/lib/src/models/pve_nodes_qemu_config_model.dart
index 0445476..bbe5d00 100644
--- a/lib/src/models/pve_nodes_qemu_config_model.dart
+++ b/lib/src/models/pve_nodes_qemu_config_model.dart
@@ -139,6 +139,7 @@ class OSType extends EnumClass {
   static const OSType win7 = _$win7;
   static const OSType win8 = _$win8;
   static const OSType win10 = _$win10;
+  static const OSType win11 = _$win11;
   static const OSType l24 = _$l24;
   static const OSType l26 = _$l26;
   static const OSType solaris = _$solaris;
@@ -152,6 +153,7 @@ class OSType extends EnumClass {
     l26: {'desc': '5.x - 2.6 Kernel', 'type': 'Linux'},
     l24: {'desc': '2.4 Kernel', 'type': 'Linux'},
     win10: {'desc': '10/2016/2019', 'type': 'Microsoft Windows'},
+    win11: {'desc': '11/2022', 'type': 'Microsoft Windows'},
     win8: {'desc': '8.x/2012/2012r2', 'type': 'Microsoft Windows'},
     win7: {'desc': '7/2008r2', 'type': 'Microsoft Windows'},
     w2k8: {'desc': 'Vista/2008', 'type': 'Microsoft Windows'},
-- 
2.30.2





More information about the pve-devel mailing list