tgstation-server 6.12.0
The /tg/station 13 server suite
|
Public Member Functions | |||||
UsersClient (IApiClient apiClient) | |||||
Initializes a new instance of the UsersClient class. | |||||
ValueTask< UserResponse > | Create (UserCreateRequest user, CancellationToken cancellationToken) | ||||
Create a new user .
| |||||
ValueTask< UserResponse > | GetId (EntityId user, CancellationToken cancellationToken) | ||||
Get a specific user .
| |||||
ValueTask< List< UserResponse > > | List (PaginationSettings? paginationSettings, CancellationToken cancellationToken) | ||||
List all UserResponses.
| |||||
ValueTask< UserResponse > | Read (CancellationToken cancellationToken) | ||||
Read the current user's information and general rights.
| |||||
ValueTask< UserResponse > | Update (UserUpdateRequest user, CancellationToken cancellationToken) | ||||
Update a user .
| |||||
Public Member Functions inherited from Tgstation.Server.Client.PaginatedClient | |||||
PaginatedClient (IApiClient apiClient) | |||||
Initializes a new instance of the PaginatedClient class. | |||||
Private Member Functions | |
ValueTask< UserResponse > | UserResponse (Routes.User, user ?? throw new ArgumentNullException(nameof(user)), cancellationToken) |
ValueTask< UserResponse > | UserResponse (Routes.User, user ?? throw new ArgumentNullException(nameof(user)), cancellationToken) |
Additional Inherited Members | |
Protected Member Functions inherited from Tgstation.Server.Client.PaginatedClient | |
async ValueTask< List< TModel > > | ReadPaged< TModel > (PaginationSettings? paginationSettings, string route, long? instanceId, CancellationToken cancellationToken) |
Reads a given route with paged results. | |
Properties inherited from Tgstation.Server.Client.PaginatedClient | |
IApiClient | ApiClient [get] |
The IApiClient for the PaginatedClient. | |
Definition at line 14 of file UsersClient.cs.
Tgstation.Server.Client.UsersClient.UsersClient | ( | IApiClient | apiClient | ) |
Initializes a new instance of the UsersClient class.
apiClient | The IApiClient for the PaginatedClient. |
Definition at line 20 of file UsersClient.cs.
ValueTask< UserResponse > Tgstation.Server.Client.UsersClient.Create | ( | UserCreateRequest | user, |
CancellationToken | cancellationToken | ||
) |
Create a new user .
user | The UserCreateRequest. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IUsersClient.
ValueTask< UserResponse > Tgstation.Server.Client.UsersClient.GetId | ( | EntityId | user, |
CancellationToken | cancellationToken | ||
) |
Get a specific user .
user | The EntityId of the UserResponse to get. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IUsersClient.
ValueTask< List< UserResponse > > Tgstation.Server.Client.UsersClient.List | ( | PaginationSettings? | paginationSettings, |
CancellationToken | cancellationToken | ||
) |
List all UserResponses.
paginationSettings | The optional PaginationSettings for the operation. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IUsersClient.
ValueTask< UserResponse > Tgstation.Server.Client.UsersClient.Read | ( | CancellationToken | cancellationToken | ) |
Read the current user's information and general rights.
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IUsersClient.
ValueTask< UserResponse > Tgstation.Server.Client.UsersClient.Update | ( | UserUpdateRequest | user, |
CancellationToken | cancellationToken | ||
) |
Update a user .
user | The UserUpdateRequest used to update the UserResponse. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IUsersClient.
|
private |
|
private |