SystemResource.cs 636 B

1234567891011121314151617181920212223242526
  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. {
  6. public const string KindLabel = "System";
  7. public static readonly string[] ValidSystemTypes =
  8. [
  9. "baremetal",
  10. "hypervisor",
  11. "vm",
  12. "container",
  13. "embedded",
  14. "cloud",
  15. "other"
  16. ];
  17. public string? Type { get; set; }
  18. public string? Os { get; set; }
  19. public int? Cores { get; set; }
  20. public int? Ram { get; set; }
  21. public List<Drive>? Drives { get; set; }
  22. }