tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
InstanceClient.cs
Go to the documentation of this file.
1using System;
2
4
6{
9 {
11 public Instance Metadata { get; }
12
14 public IEngineClient Engine { get; }
15
18
21
24
27
29 public IChatBotsClient ChatBots { get; }
30
33
35 public IJobsClient Jobs { get; }
36
42 public InstanceClient(IApiClient apiClient, Instance instance)
43 {
44 if (apiClient == null)
45 throw new ArgumentNullException(nameof(apiClient));
46 if (!instance.Id.HasValue)
47 throw new ArgumentException("Instance missing ID!", nameof(instance));
48
49 Metadata = instance ?? throw new ArgumentNullException(nameof(instance));
50
51 Engine = new EngineClient(apiClient, instance);
52 Repository = new RepositoryClient(apiClient, instance);
53 DreamDaemon = new DreamDaemonClient(apiClient, instance);
54 Configuration = new ConfigurationClient(apiClient, instance);
55 PermissionSets = new InstancePermissionSetClient(apiClient, instance);
56 ChatBots = new ChatBotsClient(apiClient, instance);
57 DreamMaker = new DreamMakerClient(apiClient, instance);
58 Jobs = new JobsClient(apiClient, instance);
59 }
60 }
61}
virtual ? long Id
The ID of the entity.
Definition EntityId.cs:13
Metadata about a server instance.
Definition Instance.cs:9
Instance Metadata
The Instance used to create the IInstanceClient.
IEngineClient Engine
Access the IEngineClient.
IDreamDaemonClient DreamDaemon
Access the IDreamDaemonClient.
IConfigurationClient Configuration
Access the IConfigurationClient.
IRepositoryClient Repository
Access the IRepositoryClient.
IInstancePermissionSetClient PermissionSets
Access the IInstancePermissionSetClient.
IJobsClient Jobs
Access the IJobsClient.
IChatBotsClient ChatBots
Access the IChatBotsClient.
InstanceClient(IApiClient apiClient, Instance instance)
Initializes a new instance of the InstanceClient class.
IDreamMakerClient DreamMaker
Access the IDreamMakerClient.
For managing the engine installations.
Web interface for the API.
Definition IApiClient.cs:17