Exemplo n.º 1
0
 /// <summary>
 /// Edit a server within your account.
 /// </summary>
 /// <param name="serverUuid">The UUID of the server to edit.</param>
 /// <param name="changes">The changes to make to the server.</param>
 public virtual Task <TServerEntity> EditServerAsync <TServerEntity>(Guid serverUuid, ServerEditEntity changes, CancellationToken cancellationToken = default)
     where TServerEntity : class
 {
     return(ApiRequestor.RequestJsonSerializedAsync <ServerEditEntity, TServerEntity>(HttpMethod.Post, $"server/{serverUuid}/edit", changes, cancellationToken));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Edit a server within your account.
 /// </summary>
 /// <param name="serverUuid">The UUID of the server to edit.</param>
 /// <param name="changes">The changes to make to the server.</param>
 public virtual Task <ServerEntity> EditServerAsync(Guid serverUuid, ServerEditEntity changes, CancellationToken cancellationToken = default)
 {
     return(((IServerOperations)this).EditServerAsync <ServerEntity>(serverUuid, changes, cancellationToken));
 }