feat: add remote reboot support
This commit is contained in:
@@ -181,7 +181,7 @@ class APIv2_13: BaseAPIClient, ServerAPIProtocol {
|
||||
}
|
||||
|
||||
guard httpResponse.statusCode == 200 else {
|
||||
throw APIError.httpError(httpResponse.statusCode)
|
||||
throw APIError.httpError(httpResponse.statusCode, nil)
|
||||
}
|
||||
|
||||
let decoder = JSONDecoder()
|
||||
@@ -189,6 +189,10 @@ class APIv2_13: BaseAPIClient, ServerAPIProtocol {
|
||||
let envelope = try decoder.decode(ServerSummaryEnvelope.self, from: data)
|
||||
return envelope.toDomain()
|
||||
}
|
||||
|
||||
func restartServer(apiKey: String) async throws {
|
||||
throw APIError.unsupportedFeature("Server reboot")
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Server Summary Mapping
|
||||
|
||||
Reference in New Issue
Block a user