]> git.proxmox.com Git - flutter/proxmox_dart_api_client.git/commitdiff
add content type to storage content model
authorTim Marx <t.marx@proxmox.com>
Tue, 12 May 2020 11:33:50 +0000 (13:33 +0200)
committerTim Marx <t.marx@proxmox.com>
Tue, 12 May 2020 11:33:50 +0000 (13:33 +0200)
Signed-off-by: Tim Marx <t.marx@proxmox.com>
lib/src/models/pve_nodes_storage_content_model.dart

index 0f545c95b92a8f6ff39af7cd9e137b941cf2ebc5..e8c7df73b173852e0daaaea0968535fb27fa2f9f 100644 (file)
@@ -22,6 +22,9 @@ abstract class PveNodesStorageContentModel
 
   String get volid;
 
+  @nullable
+  PveStorageContentType get content;
+
   static Serializer<PveNodesStorageContentModel> get serializer =>
       _$pveNodesStorageContentModelSerializer;
 
@@ -38,9 +41,14 @@ class PveStorageContentType extends EnumClass {
   static const PveStorageContentType iso = _$iso;
   static const PveStorageContentType backup = _$backup;
   static const PveStorageContentType snippets = _$snippets;
+  @BuiltValueEnumConst(fallback: true)
+  static const PveStorageContentType unknown = _$unknown;
 
   const PveStorageContentType._(String name) : super(name);
 
   static BuiltSet<PveStorageContentType> get values => _$psctValues;
   static PveStorageContentType valueOf(String name) => _$psctValueOf(name);
+
+  static Serializer<PveStorageContentType> get serializer =>
+      _$pveStorageContentTypeSerializer;
 }