@@ -163,7 +163,7 @@ open class CoderRestClient(
163163
164164/* *
165165 * Retrieves the available workspaces created by the user.
166- * @throws [ApiResponseException ].
166+ * @throws [APIResponseException ].
167167*/
168168fun workspaces ():List <Workspace > {
169169val workspacesResponse= retroRestClient.workspaces(" owner:me" ).execute()
@@ -193,7 +193,7 @@ open class CoderRestClient(
193193 * does not include agents when the workspace is off so this can be used to
194194 * get them instead, just like `coder config-ssh` does (otherwise we risk
195195 * removing hosts from the SSH config when they are off).
196- * @throws [ApiResponseException ].
196+ * @throws [APIResponseException ].
197197*/
198198fun resources (workspace : Workspace ):List <WorkspaceResource > {
199199val resourcesResponse= retroRestClient.templateVersionResources(workspace.latestBuild.templateVersionID).execute()
@@ -212,7 +212,7 @@ open class CoderRestClient(
212212 }
213213
214214/* *
215- * @throws [ApiResponseException ].
215+ * @throws [APIResponseException ].
216216*/
217217private fun template (templateID : UUID ):Template {
218218val templateResponse= retroRestClient.template(templateID).execute()
@@ -223,7 +223,7 @@ open class CoderRestClient(
223223 }
224224
225225/* *
226- * @throws [ApiResponseException ].
226+ * @throws [APIResponseException ].
227227*/
228228fun startWorkspace (workspace : Workspace ):WorkspaceBuild {
229229val buildRequest= CreateWorkspaceBuildRequest (null ,WorkspaceTransition .START )
@@ -235,7 +235,7 @@ open class CoderRestClient(
235235 }
236236
237237/* *
238- * @throws [ApiResponseException ].
238+ * @throws [APIResponseException ].
239239*/
240240fun stopWorkspace (workspace : Workspace ):WorkspaceBuild {
241241val buildRequest= CreateWorkspaceBuildRequest (null ,WorkspaceTransition .STOP )
@@ -254,7 +254,7 @@ open class CoderRestClient(
254254 * 2. The agent gets a new ID and token on each START build. Many template
255255 * authors are not diligent about making sure the agent gets restarted
256256 * with this information when we do two START builds in a row.
257- * @throws [ApiResponseException ].
257+ * @throws [APIResponseException ].
258258*/
259259fun updateWorkspace (workspace : Workspace ):WorkspaceBuild {
260260val template= template(workspace.templateID)