Files
tgstation-server/_user_group_controller_8cs_source.html

259 lines
60 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>tgstation-server: src/Tgstation.Server.Host/Controllers/UserGroupController.cs Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">tgstation-server<span id="projectnumber">&#160;6.19.3</span>
</div>
<div id="projectbrief">The /tg/station 13 server suite</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_34761767c1c3cd212f9d2f80ea0828a8.html">Tgstation.Server.Host</a></li><li class="navelem"><a class="el" href="dir_38cec1532eaed7aa1de0b599a76e3e80.html">Controllers</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">UserGroupController.cs</div></div>
</div><!--header-->
<div class="contents">
<a href="_user_group_controller_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="keyword">using </span>System;</div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="keyword">using </span>System.Linq;</div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="keyword">using </span>System.Threading;</div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="keyword">using </span>System.Threading.Tasks;</div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="keyword">using </span>Microsoft.AspNetCore.Authorization;</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="keyword">using </span>Microsoft.AspNetCore.Mvc;</div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="keyword">using </span>Microsoft.Extensions.Logging;</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api.html">Tgstation.Server.Api</a>;</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html">Tgstation.Server.Api.Models</a>;</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_request.html">Tgstation.Server.Api.Models.Request</a>;</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_response.html">Tgstation.Server.Api.Models.Response</a>;</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_authority.html">Tgstation.Server.Host.Authority</a>;</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_results.html">Tgstation.Server.Host.Controllers.Results</a>;</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_database.html">Tgstation.Server.Host.Database</a>;</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_models.html">Tgstation.Server.Host.Models</a>;</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_security.html">Tgstation.Server.Host.Security</a>;</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_utils.html">Tgstation.Server.Host.Utils</a>;</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_controllers.html">Tgstation.Server.Host.Controllers</a></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span>{</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> [Route(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Routes</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a5dc5a42a07297f8f007f215b179042fe">UserGroup</a>)]</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> [Authorize]</div>
<div class="foldopen" id="foldopen00028" data-start="{" data-end="};">
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html"> 28</a></span> <span class="keyword">public</span> <span class="keyword">class </span><a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html">UserGroupController</a> : <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_controller.html">ApiController</a></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> {</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a9a5a8b47c10877ec39eb7066423ff818"> 33</a></span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">readonly</a> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_authority_1_1_i_rest_authority_invoker.html">IRestAuthorityInvoker&lt;IUserGroupAuthority&gt;</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a9a5a8b47c10877ec39eb7066423ff818">userGroupAuthority</a>;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="foldopen" id="foldopen00043" data-start="{" data-end="}">
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#afb356155f5df2f274d432fcfb2ccb929"> 43</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#afb356155f5df2f274d432fcfb2ccb929">UserGroupController</a>(</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_database_1_1_i_database_context.html">IDatabaseContext</a> databaseContext,</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_security_1_1_i_authentication_context.html">IAuthenticationContext</a> authenticationContext,</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_i_api_headers_provider.html">IApiHeadersProvider</a> apiHeaders,</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ILogger&lt;UserGroupController&gt;</a> logger,</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_authority_1_1_i_rest_authority_invoker.html">IRestAuthorityInvoker&lt;IUserGroupAuthority&gt;</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a9a5a8b47c10877ec39eb7066423ff818">userGroupAuthority</a>)</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> : <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">base</a>(</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> databaseContext,</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> authenticationContext,</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> apiHeaders,</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> logger,</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">true</a>)</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> {</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">this.userGroupAuthority</a> = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a9a5a8b47c10877ec39eb7066423ff818">userGroupAuthority</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ArgumentNullException</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">nameof</a>(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a9a5a8b47c10877ec39eb7066423ff818">userGroupAuthority</a>));</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> }</div>
</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
<div class="foldopen" id="foldopen00064" data-start="{" data-end="}">
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a05e1cafe299ac39c5f75954b13a42c7b"> 64</a></span> <span class="keyword">static</span> Models.PermissionSet? <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a05e1cafe299ac39c5f75954b13a42c7b">TransformApiPermissionSet</a>(<a class="code hl_enumvalue" href="namespace_tgstation_1_1_server_1_1_api.html#a622da263c0ca2e2060d2daf329c2c2bca72664dc0959f3b0c04891f8c7046a9f3">Api</a>.Models.PermissionSet? permissionSet)</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> =&gt; permissionSet != <span class="keyword">null</span></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> ? <span class="keyword">new</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_permission_set.html">Models.PermissionSet</a></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> {</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> InstanceManagerRights = permissionSet?.InstanceManagerRights,</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> AdministrationRights = permissionSet?.AdministrationRights,</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> }</div>
</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> : <span class="keyword">null</span>;</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">HttpPut</a>]</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ProducesResponseType</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">typeof</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_user_group_response.html">UserGroupResponse</a>), 201)]</div>
<div class="foldopen" id="foldopen00082" data-start="{" data-end="}">
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a5b547f1c8e7186c021436dacdccddcc4"> 82</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">async</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ValueTask&lt;IActionResult&gt;</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a5b547f1c8e7186c021436dacdccddcc4">Create</a>([<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">FromBody</a>] <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_1_1_user_group_create_request.html">UserGroupCreateRequest</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">model</a>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">CancellationToken</a> cancellationToken)</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> {</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ArgumentNullException</a>.ThrowIfNull(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">model</a>);</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">model</a>.Name == <span class="keyword">null</span>)</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keywordflow">return</span> BadRequest(<span class="keyword">new</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response.html">ErrorMessageResponse</a>(<a class="code hl_enumeration" href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html#a1a6adb59dd51244efabf4e548e7075c8">ErrorCode</a>.ModelValidationFailure));</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keywordflow">return</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">await</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a9a5a8b47c10877ec39eb7066423ff818">userGroupAuthority</a>.InvokeTransformable&lt;<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_user_group.html">UserGroup</a>, <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_user_group_response.html">UserGroupResponse</a>&gt;(</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keyword">this</span>,</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">authority</a> =&gt; <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">authority</a>.Create(</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">model</a>.Name,</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a05e1cafe299ac39c5f75954b13a42c7b">TransformApiPermissionSet</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">model</a>.PermissionSet),</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> cancellationToken));</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> }</div>
</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">HttpPost</a>]</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ProducesResponseType</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">typeof</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_user_group_response.html">UserGroupResponse</a>), 200)]</div>
<div class="foldopen" id="foldopen00107" data-start="{" data-end="}">
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#adff7dab0a867c19bad3c07b1f744ae0e"> 107</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ValueTask&lt;IActionResult&gt;</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#adff7dab0a867c19bad3c07b1f744ae0e">Update</a>([<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">FromBody</a>] <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_1_1_user_group_update_request.html">UserGroupUpdateRequest</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">model</a>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">CancellationToken</a> cancellationToken)</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> {</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ArgumentNullException</a>.ThrowIfNull(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">model</a>);</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a9a5a8b47c10877ec39eb7066423ff818">userGroupAuthority</a>.InvokeTransformable&lt;<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_user_group.html">UserGroup</a>, <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_user_group_response.html">UserGroupResponse</a>&gt;(</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">this</span>,</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">authority</a> =&gt; <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">authority</a>.Update(</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">model</a>.Require(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">x</a> =&gt; <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">x</a>.Id),</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">model</a>.Name,</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a05e1cafe299ac39c5f75954b13a42c7b">TransformApiPermissionSet</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">model</a>.PermissionSet),</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> cancellationToken));</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> }</div>
</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">HttpGet</a>(<span class="stringliteral">&quot;{id}&quot;</span>)]</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ProducesResponseType</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">typeof</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_user_group_response.html">UserGroupResponse</a>), 200)]</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ProducesResponseType</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">typeof</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response.html">ErrorMessageResponse</a>), 410)]</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a68d14c64459a99a3103efec53a85655c"> 131</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ValueTask&lt;IActionResult&gt;</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a68d14c64459a99a3103efec53a85655c">GetId</a>(<span class="keywordtype">long</span> <span class="keywordtype">id</span>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">CancellationToken</a> cancellationToken)</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a878c132da38acfcae8de0d3e6376b514"> 132</a></span> =&gt; <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a9a5a8b47c10877ec39eb7066423ff818">userGroupAuthority</a>.InvokeTransformable&lt;<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_user_group.html">UserGroup</a>, <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_user_group_response.html">UserGroupResponse</a>&gt;(<span class="keyword">this</span>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">authority</a> =&gt; <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">authority</a>.GetId(<span class="keywordtype">id</span>, <span class="keyword">true</span>, cancellationToken));</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">HttpGet</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Routes</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a63077d90c7d1f0afef5045211241fb47">List</a>)]</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ProducesResponseType</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">typeof</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_paginated_response.html">PaginatedResponse&lt;UserGroupResponse&gt;</a>), 200)]</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1"> 144</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ValueTask&lt;IActionResult&gt;</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">List</a>([<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">FromQuery</a>] <span class="keywordtype">int</span>? <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">page</a>, [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">FromQuery</a>] <span class="keywordtype">int</span>? <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">pageSize</a>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">CancellationToken</a> cancellationToken)</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a4cbac80e02c504787299afac797226d2"> 145</a></span> =&gt; <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">Paginated&lt;UserGroup, UserGroupResponse&gt;</a>(</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">async</a> () =&gt;</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> {</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">var</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">queryable</a> = <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">await</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a9a5a8b47c10877ec39eb7066423ff818">userGroupAuthority</a></div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> .InvokeQueryable(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">authority</a> =&gt; <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">authority</a>.Queryable(<span class="keyword">true</span>));</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">queryable</a> == <span class="keyword">null</span>)</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="keywordflow">return</span> <span class="keyword">null</span>;</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> </div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">PaginatableResult&lt;UserGroup&gt;</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">queryable</a>.OrderBy(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">x</a> =&gt; <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">x</a>.Id));</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> },</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keyword">null</span>,</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">page</a>,</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">pageSize</a>,</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> cancellationToken);</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> </div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">HttpDelete</a>(<span class="stringliteral">&quot;{id}&quot;</span>)]</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ProducesResponseType</a>(204)]</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ProducesResponseType</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">typeof</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response.html">ErrorMessageResponse</a>), 409)]</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ProducesResponseType</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">typeof</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response.html">ErrorMessageResponse</a>), 410)]</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a0cc889cd893772b59033dfd80ae43994"> 173</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">ValueTask&lt;IActionResult&gt;</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a0cc889cd893772b59033dfd80ae43994">Delete</a>(<span class="keywordtype">long</span> <span class="keywordtype">id</span>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">CancellationToken</a> cancellationToken)</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span><span class="preprocessor">#pragma warning disable API1001 </span><span class="comment">// The response type is RIGHT THERE ^^^</span></div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> =&gt; <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a9a5a8b47c10877ec39eb7066423ff818">userGroupAuthority</a>.<a class="code hl_function" href="interface_tgstation_1_1_server_1_1_host_1_1_authority_1_1_i_rest_authority_invoker.html#a9057830ff4d94f69ce51bf8f6c7f3889">Invoke</a>(<span class="keyword">this</span>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">authority</a> =&gt; <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">authority</a>.DeleteEmpty(<span class="keywordtype">id</span>, cancellationToken));</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span><span class="preprocessor">#pragma warning restore API1001</span></div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> }</div>
</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span>}</div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_1_1_user_group_create_request_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_1_1_user_group_create_request.html">Tgstation.Server.Api.Models.Request.UserGroupCreateRequest</a></div><div class="ttdoc">Request to create a user group.</div><div class="ttdef"><b>Definition</b> <a href="_user_group_create_request_8cs_source.html#l00006">UserGroupCreateRequest.cs:7</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_1_1_user_group_update_request_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_1_1_user_group_update_request.html">Tgstation.Server.Api.Models.Request.UserGroupUpdateRequest</a></div><div class="ttdoc">Request to update a user group.</div><div class="ttdef"><b>Definition</b> <a href="_user_group_update_request_8cs_source.html#l00008">UserGroupUpdateRequest.cs:9</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response.html">Tgstation.Server.Api.Models.Response.ErrorMessageResponse</a></div><div class="ttdoc">Represents an error message returned by the server.</div><div class="ttdef"><b>Definition</b> <a href="_error_message_response_8cs_source.html#l00011">ErrorMessageResponse.cs:12</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_paginated_response_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_paginated_response.html">Tgstation.Server.Api.Models.Response.PaginatedResponse</a></div><div class="ttdoc">Represents a paginated set of models.</div><div class="ttdef"><b>Definition</b> <a href="_paginated_response_8cs_source.html#l00010">PaginatedResponse.cs:11</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_user_group_response_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_user_group_response.html">Tgstation.Server.Api.Models.Response.UserGroupResponse</a></div><div class="ttdef"><b>Definition</b> <a href="_user_group_response_8cs_source.html#l00008">UserGroupResponse.cs:9</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_routes_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Tgstation.Server.Api.Routes</a></div><div class="ttdoc">Routes to a server actions.</div><div class="ttdef"><b>Definition</b> <a href="_routes_8cs_source.html#l00008">Routes.cs:9</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_routes_html_a5dc5a42a07297f8f007f215b179042fe"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a5dc5a42a07297f8f007f215b179042fe">Tgstation.Server.Api.Routes.UserGroup</a></div><div class="ttdeci">const string UserGroup</div><div class="ttdoc">The user group controller.</div><div class="ttdef"><b>Definition</b> <a href="_routes_8cs_source.html#l00043">Routes.cs:43</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_routes_html_a63077d90c7d1f0afef5045211241fb47"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a63077d90c7d1f0afef5045211241fb47">Tgstation.Server.Api.Routes.List</a></div><div class="ttdeci">const string List</div><div class="ttdoc">The postfix for list operations.</div><div class="ttdef"><b>Definition</b> <a href="_routes_8cs_source.html#l00113">Routes.cs:113</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_controller_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_controller.html">Tgstation.Server.Host.Controllers.ApiController</a></div><div class="ttdoc">Base Controller for API functions.</div><div class="ttdef"><b>Definition</b> <a href="_api_controller_8cs_source.html#l00036">ApiController.cs:37</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html">Tgstation.Server.Host.Controllers.UserGroupController</a></div><div class="ttdoc">ApiController for managing UserGroupResponses.</div><div class="ttdef"><b>Definition</b> <a href="_user_group_controller_8cs_source.html#l00028">UserGroupController.cs:29</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller_html_a05e1cafe299ac39c5f75954b13a42c7b"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a05e1cafe299ac39c5f75954b13a42c7b">Tgstation.Server.Host.Controllers.UserGroupController.TransformApiPermissionSet</a></div><div class="ttdeci">static Models.? PermissionSet TransformApiPermissionSet(Api.Models.PermissionSet? permissionSet)</div><div class="ttdoc">Transform a Api.Models.PermissionSet into a PermissionSet.</div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller_html_a0cc889cd893772b59033dfd80ae43994"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a0cc889cd893772b59033dfd80ae43994">Tgstation.Server.Host.Controllers.UserGroupController.Delete</a></div><div class="ttdeci">ValueTask&lt; IActionResult &gt; Delete(long id, CancellationToken cancellationToken)</div><div class="ttdoc">Delete a UserGroup.</div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller_html_a5b547f1c8e7186c021436dacdccddcc4"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a5b547f1c8e7186c021436dacdccddcc4">Tgstation.Server.Host.Controllers.UserGroupController.Create</a></div><div class="ttdeci">async ValueTask&lt; IActionResult &gt; Create([FromBody] UserGroupCreateRequest model, CancellationToken cancellationToken)</div><div class="ttdoc">Create a new UserGroup.</div><div class="ttdef"><b>Definition</b> <a href="_user_group_controller_8cs_source.html#l00082">UserGroupController.cs:82</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller_html_a68d14c64459a99a3103efec53a85655c"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a68d14c64459a99a3103efec53a85655c">Tgstation.Server.Host.Controllers.UserGroupController.GetId</a></div><div class="ttdeci">ValueTask&lt; IActionResult &gt; GetId(long id, CancellationToken cancellationToken)</div><div class="ttdoc">Gets a specific UserGroup.</div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller_html_a9a5a8b47c10877ec39eb7066423ff818"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#a9a5a8b47c10877ec39eb7066423ff818">Tgstation.Server.Host.Controllers.UserGroupController.userGroupAuthority</a></div><div class="ttdeci">readonly IRestAuthorityInvoker&lt; IUserGroupAuthority &gt; userGroupAuthority</div><div class="ttdoc">The IUserGroupAuthority for the UserGroupController.</div><div class="ttdef"><b>Definition</b> <a href="_user_group_controller_8cs_source.html#l00033">UserGroupController.cs:33</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller_html_adff7dab0a867c19bad3c07b1f744ae0e"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#adff7dab0a867c19bad3c07b1f744ae0e">Tgstation.Server.Host.Controllers.UserGroupController.Update</a></div><div class="ttdeci">ValueTask&lt; IActionResult &gt; Update([FromBody] UserGroupUpdateRequest model, CancellationToken cancellationToken)</div><div class="ttdoc">Update a UserGroup.</div><div class="ttdef"><b>Definition</b> <a href="_user_group_controller_8cs_source.html#l00107">UserGroupController.cs:107</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller_html_ae0e3b707befe9d0804806ed31a4457f1"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#ae0e3b707befe9d0804806ed31a4457f1">Tgstation.Server.Host.Controllers.UserGroupController.List</a></div><div class="ttdeci">ValueTask&lt; IActionResult &gt; List([FromQuery] int? page, [FromQuery] int? pageSize, CancellationToken cancellationToken)</div><div class="ttdoc">Lists all UserGroups.</div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller_html_afb356155f5df2f274d432fcfb2ccb929"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_user_group_controller.html#afb356155f5df2f274d432fcfb2ccb929">Tgstation.Server.Host.Controllers.UserGroupController.UserGroupController</a></div><div class="ttdeci">UserGroupController(IDatabaseContext databaseContext, IAuthenticationContext authenticationContext, IApiHeadersProvider apiHeaders, ILogger&lt; UserGroupController &gt; logger, IRestAuthorityInvoker&lt; IUserGroupAuthority &gt; userGroupAuthority)</div><div class="ttdoc">Initializes a new instance of the UserGroupController class.</div><div class="ttdef"><b>Definition</b> <a href="_user_group_controller_8cs_source.html#l00043">UserGroupController.cs:43</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_models_1_1_permission_set_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_permission_set.html">Tgstation.Server.Host.Models.PermissionSet</a></div><div class="ttdef"><b>Definition</b> <a href="_tgstation_8_server_8_host_2_models_2_permission_set_8cs_source.html#l00008">PermissionSet.cs:9</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_models_1_1_user_group_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_user_group.html">Tgstation.Server.Host.Models.UserGroup</a></div><div class="ttdoc">Represents a group of Users.</div><div class="ttdef"><b>Definition</b> <a href="_tgstation_8_server_8_host_2_models_2_user_group_8cs_source.html#l00015">UserGroup.cs:16</a></div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_authority_1_1_i_rest_authority_invoker_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_authority_1_1_i_rest_authority_invoker.html">Tgstation.Server.Host.Authority.IRestAuthorityInvoker</a></div><div class="ttdoc">Invokes TAuthority methods and generates IActionResult responses.</div><div class="ttdef"><b>Definition</b> <a href="_i_rest_authority_invoker_02_t_authority_03_8cs_source.html#l00016">IRestAuthorityInvoker{TAuthority}.cs:18</a></div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_authority_1_1_i_rest_authority_invoker_html_a9057830ff4d94f69ce51bf8f6c7f3889"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_authority_1_1_i_rest_authority_invoker.html#a9057830ff4d94f69ce51bf8f6c7f3889">Tgstation.Server.Host.Authority.IRestAuthorityInvoker.Invoke</a></div><div class="ttdeci">ValueTask&lt; IActionResult &gt; Invoke(ApiController controller, Func&lt; TAuthority, RequirementsGated&lt; AuthorityResponse &gt; &gt; authorityInvoker)</div><div class="ttdoc">Invoke a TAuthority method with no success result.</div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_database_1_1_i_database_context_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_database_1_1_i_database_context.html">Tgstation.Server.Host.Database.IDatabaseContext</a></div><div class="ttdoc">Represents the database.</div><div class="ttdef"><b>Definition</b> <a href="_i_database_context_8cs_source.html#l00016">IDatabaseContext.cs:17</a></div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_security_1_1_i_authentication_context_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_security_1_1_i_authentication_context.html">Tgstation.Server.Host.Security.IAuthenticationContext</a></div><div class="ttdoc">For creating and accessing authentication contexts.</div><div class="ttdef"><b>Definition</b> <a href="_i_authentication_context_8cs_source.html#l00011">IAuthenticationContext.cs:12</a></div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_i_api_headers_provider_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_i_api_headers_provider.html">Tgstation.Server.Host.Utils.IApiHeadersProvider</a></div><div class="ttdoc">Provides ApiHeaders.</div><div class="ttdef"><b>Definition</b> <a href="_i_api_headers_provider_8cs_source.html#l00008">IApiHeadersProvider.cs:9</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_request.html">Tgstation.Server.Api.Models.Request</a></div><div class="ttdef"><b>Definition</b> <a href="_chat_bot_create_request_8cs_source.html#l00003">ChatBotCreateRequest.cs:4</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_response.html">Tgstation.Server.Api.Models.Response</a></div><div class="ttdef"><b>Definition</b> <a href="_administration_response_8cs_source.html#l00005">AdministrationResponse.cs:6</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_1_1_models_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html">Tgstation.Server.Api.Models</a></div><div class="ttdef"><b>Definition</b> <a href="_tgstation_8_server_8_api_2_models_2_chat_channel_8cs_source.html#l00005">ChatChannel.cs:6</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_1_1_models_html_a1a6adb59dd51244efabf4e548e7075c8"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html#a1a6adb59dd51244efabf4e548e7075c8">Tgstation.Server.Api.Models.ErrorCode</a></div><div class="ttdeci">ErrorCode</div><div class="ttdoc">Types of Response.ErrorMessageResponses that the API may return.</div><div class="ttdef"><b>Definition</b> <a href="_error_code_8cs_source.html#l00011">ErrorCode.cs:12</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api.html">Tgstation.Server.Api</a></div><div class="ttdef"><b>Definition</b> <a href="_api_headers_8cs_source.html#l00019">ApiHeaders.cs:20</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_html_a622da263c0ca2e2060d2daf329c2c2bca72664dc0959f3b0c04891f8c7046a9f3"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api.html#a622da263c0ca2e2060d2daf329c2c2bca72664dc0959f3b0c04891f8c7046a9f3">Tgstation.Server.Api.HeaderErrorTypes.Api</a></div><div class="ttdeci">@ Api</div><div class="ttdoc">The ApiHeaders.ApiVersionHeader header is missing or invalid.</div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_authority_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_authority.html">Tgstation.Server.Host.Authority</a></div><div class="ttdef"><b>Definition</b> <a href="_administration_authority_8cs_source.html#l00025">AdministrationAuthority.cs:26</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_results_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_results.html">Tgstation.Server.Host.Controllers.Results</a></div><div class="ttdef"><b>Definition</b> <a href="_limited_stream_result_8cs_source.html#l00013">LimitedStreamResult.cs:14</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_controllers_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_controllers.html">Tgstation.Server.Host.Controllers</a></div><div class="ttdef"><b>Definition</b> <a href="_administration_controller_8cs_source.html#l00026">AdministrationController.cs:27</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_database_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_database.html">Tgstation.Server.Host.Database</a></div><div class="ttdef"><b>Definition</b> <a href="_database_collection_8cs_source.html#l00009">DatabaseCollection.cs:10</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_models_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_models.html">Tgstation.Server.Host.Models</a></div><div class="ttdef"><b>Definition</b> <a href="_models_2_chat_bot_8cs_source.html#l00008">ChatBot.cs:9</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_security_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_security.html">Tgstation.Server.Host.Security</a></div><div class="ttdef"><b>Definition</b> <a href="_authentication_context_8cs_source.html#l00007">AuthenticationContext.cs:8</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_utils_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_utils.html">Tgstation.Server.Host.Utils</a></div><div class="ttdef"><b>Definition</b> <a href="_graph_q_l_git_lab_client_8cs_source.html#l00006">GraphQLGitLabClient.cs:7</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>