/// <summary> /// Edit the server sharing settings for a user. /// </summary> /// <param name="serverUuid">The UUID of the server to make the changes to.</param> /// <param name="userUuid">The UUID of the user to update the settings for.</param> /// <param name="changes">The changes to make.</param> public virtual Task <TUserSharingEntity> EditServerUserSharingAsync <TUserSharingEntity>(Guid serverUuid, Guid userUuid, UserSharingEditEntity changes, CancellationToken cancellationToken = default) where TUserSharingEntity : class { return(ApiRequestor.RequestJsonSerializedAsync <UserSharingEditEntity, TUserSharingEntity>(HttpMethod.Post, $"server/{serverUuid}/sharing/{userUuid}", changes, cancellationToken)); }
/// <summary> /// Edit the server sharing settings for a user. /// </summary> /// <param name="serverUuid">The UUID of the server to make the changes to.</param> /// <param name="userUuid">The UUID of the user to update the settings for.</param> /// <param name="changes">The changes to make.</param> public virtual Task <UserSharingEntity> EditServerUserSharingAsync(Guid serverUuid, Guid userUuid, UserSharingEditEntity changes, CancellationToken cancellationToken = default) { return(((IServerSharingOperations)this).EditServerUserSharingAsync <UserSharingEntity>(serverUuid, userUuid, changes, cancellationToken)); }