public ExternalServerDTO GetDTO() { return(new() { Id = Id, Status = Status, StatusLastChecked = StatusLastChecked, ReservationType = ReservationType, ReservedFor = ReservedFor?.ToString() ?? "unset", PublicAddress = PublicAddress, RunningSince = RunningSince, ProvisionedFully = ProvisionedFully, WantsMaintenance = WantsMaintenance, LastMaintenance = LastMaintenance, UsedDiskSpace = UsedDiskSpace, CleanUpQueued = CleanUpQueued, SSHKeyFileName = SSHKeyFileName, Priority = Priority, CreatedAt = CreatedAt, UpdatedAt = UpdatedAt, }); }
public ControlledServerDTO GetDTO() { return(new() { Id = Id, Status = Status, StatusLastChecked = StatusLastChecked, ReservationType = ReservationType, ReservedFor = ReservedFor?.ToString() ?? "unset", PublicAddress = PublicAddress, RunningSince = RunningSince, TotalRuntime = TotalRuntime, ProvisionedFully = ProvisionedFully, InstanceId = InstanceId, WantsMaintenance = WantsMaintenance, LastMaintenance = LastMaintenance, UsedDiskSpace = UsedDiskSpace, CleanUpQueued = CleanUpQueued, CreatedAt = CreatedAt, UpdatedAt = UpdatedAt, }); }