tgstation-server 6.12.3
The /tg/station 13 server suite
|
Web interface for the API. More...
Public Member Functions | |
void | AddRequestLogger (IRequestLogger requestLogger) |
Adds a requestLogger to the request pipeline. | |
ValueTask< IAsyncDisposable > | CreateHubConnection< THubImplementation > (THubImplementation hubImplementation, IRetryPolicy? retryPolicy, Action< ILoggingBuilder >? loggingConfigureAction, CancellationToken cancellationToken) |
Subscribe to all job updates available to the IRestServerClient. | |
ValueTask< TResult > | Create< TBody, TResult > (string route, TBody body, CancellationToken cancellationToken) |
Run an HTTP PUT request. | |
ValueTask< TResult > | Create< TResult > (string route, CancellationToken cancellationToken) |
Run an HTTP PUT request. | |
ValueTask< TResult > | Read< TResult > (string route, CancellationToken cancellationToken) |
Run an HTTP GET request. | |
ValueTask< TResult > | Update< TBody, TResult > (string route, TBody body, CancellationToken cancellationToken) |
Run an HTTP POST request. | |
ValueTask< TResult > | Update< TResult > (string route, CancellationToken cancellationToken) |
Run an HTTP POST request. | |
ValueTask | Update< TBody > (string route, TBody body, CancellationToken cancellationToken) |
Run an HTTP POST request. | |
ValueTask | Patch (string route, CancellationToken cancellationToken) |
Run an HTTP PATCH request. | |
ValueTask | Delete (string route, CancellationToken cancellationToken) |
Run an HTTP DELETE request. | |
ValueTask< TResult > | Create< TBody, TResult > (string route, TBody body, long instanceId, CancellationToken cancellationToken) |
Run an HTTP PUT request. | |
ValueTask< TResult > | Create< TResult > (string route, long instanceId, CancellationToken cancellationToken) |
Run an HTTP PUT request. | |
ValueTask< TResult > | Patch< TResult > (string route, long instanceId, CancellationToken cancellationToken) |
Run an HTTP PATCH request. | |
ValueTask< TResult > | Read< TResult > (string route, long instanceId, CancellationToken cancellationToken) |
Run an HTTP GET request. | |
ValueTask< TResult > | Update< TBody, TResult > (string route, TBody body, long instanceId, CancellationToken cancellationToken) |
Run an HTTP POST request. | |
ValueTask | Delete (string route, long instanceId, CancellationToken cancellationToken) |
Run an HTTP DELETE request. | |
ValueTask | Delete< TBody > (string route, TBody body, long instanceId, CancellationToken cancellationToken) |
Run an HTTP DELETE request. | |
ValueTask< TResult > | Delete< TResult > (string route, long instanceId, CancellationToken cancellationToken) |
Run an HTTP DELETE request. | |
ValueTask< TResult > | Delete< TBody, TResult > (string route, TBody body, long instanceId, CancellationToken cancellationToken) |
Run an HTTP DELETE request. | |
Public Member Functions inherited from Tgstation.Server.Client.ITransferClient | |
ValueTask< Stream > | Download (FileTicketResponse ticket, CancellationToken cancellationToken) |
Downloads a file Stream for a given ticket . | |
ValueTask | Upload (FileTicketResponse ticket, Stream? uploadStream, CancellationToken cancellationToken) |
Uploads a given uploadStream for a given ticket . | |
Properties | |
ApiHeaders | Headers [get, set] |
The ApiHeaders the IApiClient uses. | |
Uri | Url [get] |
The Uri pointing the tgstation-server. | |
TimeSpan | Timeout [get, set] |
The request timeout. | |
Web interface for the API.
Definition at line 16 of file IApiClient.cs.
void Tgstation.Server.Client.IApiClient.AddRequestLogger | ( | IRequestLogger | requestLogger | ) |
Adds a requestLogger to the request pipeline.
requestLogger | The IRequestLogger to add. |
Implemented in Tgstation.Server.Client.ApiClient.
Referenced by Tgstation.Server.Client.RestServerClientFactory.GetServerInformation().
ValueTask< TResult > Tgstation.Server.Client.IApiClient.Create< TBody, TResult > | ( | string | route, |
TBody | body, | ||
CancellationToken | cancellationToken | ||
) |
Run an HTTP PUT request.
TBody | The type to of the request body. |
TResult | The type of the response body. |
route | The server route to make the request to. |
body | The request body. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
TBody | : | class |
ValueTask< TResult > Tgstation.Server.Client.IApiClient.Create< TBody, TResult > | ( | string | route, |
TBody | body, | ||
long | instanceId, | ||
CancellationToken | cancellationToken | ||
) |
Run an HTTP PUT request.
TBody | The type to of the request body. |
TResult | The type of the response body. |
route | The server route to make the request to. |
body | The request body. |
instanceId | The instance EntityId.Id to make the request to. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
TBody | : | class |
ValueTask< TResult > Tgstation.Server.Client.IApiClient.Create< TResult > | ( | string | route, |
CancellationToken | cancellationToken | ||
) |
Run an HTTP PUT request.
TResult | The type of the response body. |
route | The server route to make the request to. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
ValueTask< TResult > Tgstation.Server.Client.IApiClient.Create< TResult > | ( | string | route, |
long | instanceId, | ||
CancellationToken | cancellationToken | ||
) |
Run an HTTP PUT request.
TResult | The type of the response body. |
route | The server route to make the request to. |
instanceId | The instance EntityId.Id to make the request to. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
ValueTask< IAsyncDisposable > Tgstation.Server.Client.IApiClient.CreateHubConnection< THubImplementation > | ( | THubImplementation | hubImplementation, |
IRetryPolicy? | retryPolicy, | ||
Action< ILoggingBuilder >? | loggingConfigureAction, | ||
CancellationToken | cancellationToken | ||
) |
Subscribe to all job updates available to the IRestServerClient.
THubImplementation | The Type of the hub being implemented. |
hubImplementation | The THubImplementation to use for proxying the methods of the hub connection. |
retryPolicy | The optional IRetryPolicy to use for the backing connection. The default retry policy waits for 1, 2, 4, 8, and 16 seconds, then 30s repeatedly. |
loggingConfigureAction | The optional Action<T1> used to configure a ILoggingBuilder. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
THubImplementation | : | class |
ValueTask Tgstation.Server.Client.IApiClient.Delete | ( | string | route, |
CancellationToken | cancellationToken | ||
) |
Run an HTTP DELETE request.
route | The server route to make the request to. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
ValueTask Tgstation.Server.Client.IApiClient.Delete | ( | string | route, |
long | instanceId, | ||
CancellationToken | cancellationToken | ||
) |
Run an HTTP DELETE request.
route | The server route to make the request to. |
instanceId | The instance EntityId.Id to make the request to. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
ValueTask Tgstation.Server.Client.IApiClient.Delete< TBody > | ( | string | route, |
TBody | body, | ||
long | instanceId, | ||
CancellationToken | cancellationToken | ||
) |
Run an HTTP DELETE request.
TBody | The type to of the request body. |
route | The server route to make the request to. |
body | The request body. |
instanceId | The instance EntityId.Id to make the request to. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
TBody | : | class |
ValueTask< TResult > Tgstation.Server.Client.IApiClient.Delete< TBody, TResult > | ( | string | route, |
TBody | body, | ||
long | instanceId, | ||
CancellationToken | cancellationToken | ||
) |
Run an HTTP DELETE request.
TBody | The type to of the request body. |
TResult | The type of the response body. |
route | The server route to make the request to. |
body | The request body. |
instanceId | The instance EntityId.Id to make the request to. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
TBody | : | class |
ValueTask< TResult > Tgstation.Server.Client.IApiClient.Delete< TResult > | ( | string | route, |
long | instanceId, | ||
CancellationToken | cancellationToken | ||
) |
Run an HTTP DELETE request.
TResult | The type of the response body. |
route | The server route to make the request to. |
instanceId | The instance EntityId.Id to make the request to. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
ValueTask Tgstation.Server.Client.IApiClient.Patch | ( | string | route, |
CancellationToken | cancellationToken | ||
) |
Run an HTTP PATCH request.
route | The server route to make the request to. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
ValueTask< TResult > Tgstation.Server.Client.IApiClient.Patch< TResult > | ( | string | route, |
long | instanceId, | ||
CancellationToken | cancellationToken | ||
) |
Run an HTTP PATCH request.
TResult | The type of the response body. |
route | The server route to make the request to. |
instanceId | The instance EntityId.Id to make the request to. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
ValueTask< TResult > Tgstation.Server.Client.IApiClient.Read< TResult > | ( | string | route, |
CancellationToken | cancellationToken | ||
) |
Run an HTTP GET request.
TResult | The type of the response body. |
route | The server route to make the request to. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
ValueTask< TResult > Tgstation.Server.Client.IApiClient.Read< TResult > | ( | string | route, |
long | instanceId, | ||
CancellationToken | cancellationToken | ||
) |
Run an HTTP GET request.
TResult | The type of the response body. |
route | The server route to make the request to. |
instanceId | The instance EntityId.Id to make the request to. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
ValueTask Tgstation.Server.Client.IApiClient.Update< TBody > | ( | string | route, |
TBody | body, | ||
CancellationToken | cancellationToken | ||
) |
Run an HTTP POST request.
TBody | The type to of the request body. |
route | The server route to make the request to. |
body | The request body. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
TBody | : | class |
ValueTask< TResult > Tgstation.Server.Client.IApiClient.Update< TBody, TResult > | ( | string | route, |
TBody | body, | ||
CancellationToken | cancellationToken | ||
) |
Run an HTTP POST request.
TBody | The type to of the request body. |
TResult | The type of the response body. |
route | The server route to make the request to. |
body | The request body. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
TBody | : | class |
ValueTask< TResult > Tgstation.Server.Client.IApiClient.Update< TBody, TResult > | ( | string | route, |
TBody | body, | ||
long | instanceId, | ||
CancellationToken | cancellationToken | ||
) |
Run an HTTP POST request.
TBody | The type to of the request body. |
TResult | The type of the response body. |
route | The server route to make the request to. |
body | The request body. |
instanceId | The instance EntityId.Id to make the request to. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
TBody | : | class |
ValueTask< TResult > Tgstation.Server.Client.IApiClient.Update< TResult > | ( | string | route, |
CancellationToken | cancellationToken | ||
) |
Run an HTTP POST request.
TResult | The type of the response body. |
route | The server route to make the request to. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
|
getset |
The ApiHeaders the IApiClient uses.
Implemented in Tgstation.Server.Client.ApiClient.
Definition at line 21 of file IApiClient.cs.
|
getset |
The request timeout.
Implemented in Tgstation.Server.Client.ApiClient.
Definition at line 31 of file IApiClient.cs.
|
get |
The Uri pointing the tgstation-server.
Implemented in Tgstation.Server.Client.ApiClient.
Definition at line 26 of file IApiClient.cs.