2using System.Collections.Generic;
5using System.Threading.Tasks;
30 this.instance =
instance ??
throw new ArgumentNullException(nameof(
instance));
47 if (installRequest ==
null)
48 throw new ArgumentNullException(nameof(installRequest));
50 throw new ArgumentNullException(nameof(zipFileStream));
57 .ConfigureAwait(
false);
60 await
ApiClient.
Upload(result, zipFileStream, cancellationToken).ConfigureAwait(
false);
virtual ? long Id
The ID of the entity.
Metadata about a server instance.
A request to delete a specific EngineVersion.
A request to switch to a given EngineVersion.
bool? UploadCustomZip
If a custom BYOND version is to be uploaded.
Represents an engine installation job. FileTicketResponse.FileTicket is used to upload custom version...
Represents an installed Models.EngineVersion.
Represents a long running job on the server. Model is read-only, updates attempt to cancel the job.
Routes to a server actions.
static string ListRoute(string route)
Get the /List postfix for a route .
const string Engine
The engine controller.
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.
readonly Instance instance
The Instance for the EngineClient.
async ValueTask< EngineInstallResponse > SetActiveVersion(EngineVersionRequest installRequest, Stream? zipFileStream, CancellationToken cancellationToken)
Updates the active engine version. A ValueTask<TResult> resulting in the EngineInstallResponse.
ValueTask< EngineResponse > ActiveVersion(CancellationToken cancellationToken)
Get the EngineInstallResponse active Api.Models.EngineVersion. A ValueTask<TResult> resulting in the ...
EngineClient(IApiClient apiClient, Instance instance)
Initializes a new instance of the EngineClient class.
ValueTask< List< EngineResponse > > InstalledVersions(PaginationSettings? paginationSettings, CancellationToken cancellationToken)
Get all installed EngineInstallResponse System.Versions. A ValueTask<TResult> resulting in an List<T>...
ValueTask< JobResponse > DeleteVersion(EngineVersionDeleteRequest deleteRequest, CancellationToken cancellationToken)
Starts a job to delete a specific engine version. A ValueTask<TResult> resulting in the JobResponse f...
Client that deals with getting paginated results.
For managing the engine installations.
Web interface for the API.