started moving api layer to shared abstract class

This commit is contained in:
2021-10-20 16:22:49 -04:00
parent c91a7cf7e2
commit 5b46e2fb15
10 changed files with 90 additions and 18 deletions

View File

@@ -0,0 +1,38 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace WebAPI.Data.Dto
{
public class ServerLimitsModel
{
public int Memory { get; set; }
public int Swap { get; set; }
public int Disk { get; set; }
public int Io { get; set; }
public int Cpu { get; set; }
}
public class ServerFeatureLimits
{
public int Databases { get; set; }
public int Backups { get; set; }
public int Allocations { get; set; }
}
public class ServerAllocationModel
{
public int Default { get; set; }
}
public class ServerModel
{
public string Name { get; set; }
public int User { get; set; }
public int Egg { get; set; }
[JsonPropertyName("docker_image")]
public string DockerImage { get; set; }
public string Startup { get; set; }
public Dictionary<string, string> Environment { get; set; }
public ServerLimitsModel Limits { get; set; }
[JsonPropertyName("feature_limits")]
public ServerFeatureLimits FeatureLimits { get; set; }
public ServerAllocationModel Allocation { get; set; }
}
}