SystemResource.cs 696 B

12345678910111213141516171819202122232425262728
  1. using RackPeek.Domain.Resources.Servers;
  2. using RackPeek.Domain.Resources.SubResources;
  3. namespace RackPeek.Domain.Resources.SystemResources;
  4. public class SystemResource : Resource, IDriveResource {
  5. public const string KindLabel = "System";
  6. public static readonly string[] ValidSystemTypes =
  7. [
  8. "baremetal",
  9. "hypervisor",
  10. "vm",
  11. "container",
  12. "embedded",
  13. "cloud",
  14. "cluster",
  15. "other"
  16. ];
  17. public string? Type { get; set; }
  18. public string? Os { get; set; }
  19. public int? Cores { get; set; }
  20. public double? Ram { get; set; }
  21. public string? Ip { get; set; }
  22. public List<Drive>? Drives { get; set; }
  23. }