2using System.Collections.Generic;
5using System.Threading.Tasks;
virtual ? long Id
The ID of the entity.
Metadata about a server instance.
Represents a request to update a configuration file.
Response when reading configuration files.
Routes to a server actions.
static string ListRoute(string route)
Get the /List postfix for a route .
static string SanitizeGetPath(string path)
Sanitize a Models.Response.FileTicketResponse path for use in a GET Uri.
const string Configuration
The configuration controller.
ValueTask< Stream > Download(FileTicketResponse ticket, CancellationToken cancellationToken)
Downloads a file Stream for a given ticket .A ValueTask<TResult> resulting in the downloaded Stream.
async ValueTask Upload(FileTicketResponse ticket, Stream? uploadStream, CancellationToken cancellationToken)
Uploads a given uploadStream for a given ticket .A ValueTask representing the running operation.
ValueTask Delete(string route, CancellationToken cancellationToken)
Run an HTTP DELETE request.A ValueTask representing the running operation.
ValueTask DeleteEmptyDirectory(IConfigurationFile directory, CancellationToken cancellationToken)
Delete an empty directory .A ValueTask representing the running operation.
async ValueTask< Tuple< ConfigurationFileResponse, Stream > > Read(IConfigurationFile file, CancellationToken cancellationToken)
Read a file .A ValueTask resulting in a Tuple<T1, T2> containing the ConfigurationFileResponse and do...
ValueTask< ConfigurationFileResponse > CreateDirectory(IConfigurationFile directory, CancellationToken cancellationToken)
Creates an empty directory .A ValueTask<TResult> resulting in the new ConfigurationFileResponse.
readonly Instance instance
The Instance for the ConfigurationClient.
async ValueTask< ConfigurationFileResponse > Write(ConfigurationFileRequest file, Stream uploadStream, CancellationToken cancellationToken)
Overwrite a file .A ValueTask<TResult> resulting in the new ConfigurationFileResponse.
ValueTask< List< ConfigurationFileResponse > > List(PaginationSettings? paginationSettings, string directory, CancellationToken cancellationToken)
List configuration files.A List<T> of ConfigurationFileResponses in the directory .
ConfigurationClient(IApiClient apiClient, Instance instance)
Initializes a new instance of the ConfigurationClient class.
Client that deals with getting paginated results.
Represents a game configuration file. Create and delete actions uncerimonuously overwrite/delete file...
For managing IConfigurationFiles.
Web interface for the API.