Added owner field to server crud. Started update for server crud

This commit is contained in:
2024-12-20 18:45:38 +01:00
parent e9279fa3d1
commit 0baf9668f9
13 changed files with 381 additions and 27 deletions

View File

@@ -16,8 +16,6 @@ public class UpdateServerRequest
[Range(1, int.MaxValue, ErrorMessage = "You need to provide a valid disk amount")]
public int Disk { get; set; }
public bool UseVirtualDisk { get; set; }
[Range(0, int.MaxValue, ErrorMessage = "You need to provide a valid bandwidth amount")]
public int Bandwidth { get; set; }
@@ -26,10 +24,11 @@ public class UpdateServerRequest
public int DockerImageIndex { get; set; }
public int StarId { get; set; }
// TODO: Add star change
//public int StarId { get; set; }
public int NodeId { get; set; }
// TODO: Add transfer
//public int NodeId { get; set; }
public int[] AllocationIds { get; set; } = [];
public Dictionary<string, string> Variables { get; set; } = new();
}

View File

@@ -7,7 +7,6 @@ public class NodeDetailResponse
public string Name { get; set; }
public string Fqdn { get; set; }
public string Token { get; set; }
public int HttpPort { get; set; }
public int FtpPort { get; set; }

View File

@@ -22,4 +22,6 @@ public class ServerDetailResponse
public int StarId { get; set; }
public int NodeId { get; set; }
public int[] AllocationIds { get; set; } = [];
}