tgstation-server 6.12.0
The /tg/station 13 server suite
|
Public Member Functions | |||||
InstanceManagerClient (IApiClient apiClient) | |||||
Initializes a new instance of the InstanceManagerClient class. | |||||
ValueTask< InstanceResponse > | CreateOrAttach (InstanceCreateRequest instance, CancellationToken cancellationToken) | ||||
Create or attach an instance .
| |||||
ValueTask | Detach (EntityId instance, CancellationToken cancellationToken) | ||||
Deletes an instance .
| |||||
ValueTask< List< InstanceResponse > > | List (PaginationSettings? paginationSettings, CancellationToken cancellationToken) | ||||
Get all IInstanceClients for Instances the user can view.
| |||||
ValueTask< InstanceResponse > | Update (InstanceUpdateRequest instance, CancellationToken cancellationToken) | ||||
Relocates, renamed, and/or on/offlines an instance .
| |||||
ValueTask< InstanceResponse > | GetId (EntityId instance, CancellationToken cancellationToken) | ||||
Get a specific instance .
| |||||
ValueTask | GrantPermissions (EntityId instance, CancellationToken cancellationToken) | ||||
Gives the user full permissions on an instance .
| |||||
IInstanceClient | CreateClient (Instance instance) | ||||
Create an IInstanceClient for a given Instance.
| |||||
Public Member Functions inherited from Tgstation.Server.Client.PaginatedClient | |||||
PaginatedClient (IApiClient apiClient) | |||||
Initializes a new instance of the PaginatedClient class. | |||||
Private Member Functions | |
ValueTask< InstanceResponse > | InstanceResponse (Routes.InstanceManager, instance ?? throw new ArgumentNullException(nameof(instance)), cancellationToken) |
ValueTask< InstanceResponse > | InstanceResponse (Routes.InstanceManager, instance ?? throw new ArgumentNullException(nameof(instance)), 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 15 of file InstanceManagerClient.cs.
Tgstation.Server.Client.InstanceManagerClient.InstanceManagerClient | ( | IApiClient | apiClient | ) |
Initializes a new instance of the InstanceManagerClient class.
apiClient | The IApiClient for the PaginatedClient. |
Definition at line 21 of file InstanceManagerClient.cs.
IInstanceClient Tgstation.Server.Client.InstanceManagerClient.CreateClient | ( | Instance | instance | ) |
Create an IInstanceClient for a given Instance.
instance | The EntityId of the Instance to create an IInstanceClient for. |
Implements Tgstation.Server.Client.IInstanceManagerClient.
Definition at line 46 of file InstanceManagerClient.cs.
References Tgstation.Server.Api.Models.EntityId.Id, and Tgstation.Server.Client.InstanceManagerClient.List().
ValueTask< InstanceResponse > Tgstation.Server.Client.InstanceManagerClient.CreateOrAttach | ( | InstanceCreateRequest | instance, |
CancellationToken | cancellationToken | ||
) |
Create or attach an instance .
instance | The InstanceCreateRequest. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IInstanceManagerClient.
ValueTask Tgstation.Server.Client.InstanceManagerClient.Detach | ( | EntityId | instance, |
CancellationToken | cancellationToken | ||
) |
Deletes an instance .
instance | The EntityId of the Instance to delete. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IInstanceManagerClient.
ValueTask< InstanceResponse > Tgstation.Server.Client.InstanceManagerClient.GetId | ( | EntityId | instance, |
CancellationToken | cancellationToken | ||
) |
Get a specific instance .
instance | The Instance to get. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IInstanceManagerClient.
ValueTask Tgstation.Server.Client.InstanceManagerClient.GrantPermissions | ( | EntityId | instance, |
CancellationToken | cancellationToken | ||
) |
Gives the user full permissions on an instance .
instance | The EntityId of the Instance to grant permissions on. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IInstanceManagerClient.
|
private |
|
private |
ValueTask< List< InstanceResponse > > Tgstation.Server.Client.InstanceManagerClient.List | ( | PaginationSettings? | paginationSettings, |
CancellationToken | cancellationToken | ||
) |
Get all IInstanceClients for Instances the user can view.
paginationSettings | The optional PaginationSettings for the operation. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IInstanceManagerClient.
Referenced by Tgstation.Server.Client.InstanceManagerClient.CreateClient().
ValueTask< InstanceResponse > Tgstation.Server.Client.InstanceManagerClient.Update | ( | InstanceUpdateRequest | instance, |
CancellationToken | cancellationToken | ||
) |
Relocates, renamed, and/or on/offlines an instance .
instance | The InstanceUpdateRequest. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IInstanceManagerClient.