2using System.Collections.Generic;
4using System.Threading.Tasks;
51 if (!instance.
Id.HasValue)
Common base of entities with IDs.
virtual ? long Id
The ID of the entity.
Metadata about a server instance.
A request to create an Instance.
A request to update an Instance.
Server response for Instances.
Routes to a server actions.
static string SetID(string route, long id)
Apply an id postfix to a route .
const string InstanceManager
The Models.Instance controller.
static string ListRoute(string route)
Get the /List postfix for a route .
ValueTask Delete(string route, CancellationToken cancellationToken)
Run an HTTP DELETE request.A ValueTask representing the running operation.
ValueTask Patch(string route, CancellationToken cancellationToken)
Run an HTTP PATCH request.A ValueTask representing the running operation.
ValueTask< InstanceResponse > CreateOrAttach(InstanceCreateRequest instance, CancellationToken cancellationToken)
Create or attach an instance .A ValueTask<TResult> resulting in the created or attached Instance.
ValueTask GrantPermissions(EntityId instance, CancellationToken cancellationToken)
Gives the user full permissions on an instance .A ValueTask representing the running operation.
ValueTask< InstanceResponse > Update(InstanceUpdateRequest instance, CancellationToken cancellationToken)
Relocates, renamed, and/or on/offlines an instance .A ValueTask<TResult> resulting in the updated Ins...
ValueTask< InstanceResponse > GetId(EntityId instance, CancellationToken cancellationToken)
Get a specific instance .A ValueTask<TResult> resulting in the Instance.
InstanceManagerClient(IApiClient apiClient)
Initializes a new instance of the InstanceManagerClient class.
ValueTask Detach(EntityId instance, CancellationToken cancellationToken)
Deletes an instance .A ValueTask representing the running operation.
ValueTask< List< InstanceResponse > > List(PaginationSettings? paginationSettings, CancellationToken cancellationToken)
Get all IInstanceClients for Instances the user can view.A ValueTask<TResult> resulting in a List<T> ...
IInstanceClient CreateClient(Instance instance)
Create an IInstanceClient for a given Instance.A new IInstanceClient.
Client that deals with getting paginated results.
For managing a single Instance.
Web interface for the API.