public async Task <Server> UpdateServerDetailsAsync(string Id, Action <ServerDetailOptions> options, CancellationToken token = default) { var serverOptions = new ServerDetailOptions(); options.Invoke(serverOptions); return(await UpdateServerDetailsAsync(Id, serverOptions, token)); }
public async Task <Server> UpdateServerDetailsAsync(string Id, ServerDetailOptions options, CancellationToken token = default) { var request = new RestRequest($"/api/application/servers/{Id}/ details", Method.PATCH) .AddJsonBody(options); var response = await HandleRequest <Server>(request, token); return(response); }
public async Task <Server> UpdateServerDetailsAsync(Server server, ServerDetailOptions options, CancellationToken token = default) { return(await UpdateServerDetailsAsync(server.Identifier, options, token)); }