@@ -163,7 +163,7 @@ open class CoderRestClient(
163
163
164
164
/* *
165
165
* Retrieves the available workspaces created by the user.
166
- * @throws [ApiResponseException ].
166
+ * @throws [APIResponseException ].
167
167
*/
168
168
fun workspaces (): List <Workspace > {
169
169
val workspacesResponse = retroRestClient.workspaces(" owner:me" ).execute()
@@ -193,7 +193,7 @@ open class CoderRestClient(
193
193
* does not include agents when the workspace is off so this can be used to
194
194
* get them instead, just like `coder config-ssh` does (otherwise we risk
195
195
* removing hosts from the SSH config when they are off).
196
- * @throws [ApiResponseException ].
196
+ * @throws [APIResponseException ].
197
197
*/
198
198
fun resources (workspace : Workspace ): List <WorkspaceResource > {
199
199
val resourcesResponse = retroRestClient.templateVersionResources(workspace.latestBuild.templateVersionID).execute()
@@ -212,7 +212,7 @@ open class CoderRestClient(
212
212
}
213
213
214
214
/* *
215
- * @throws [ApiResponseException ].
215
+ * @throws [APIResponseException ].
216
216
*/
217
217
private fun template (templateID : UUID ): Template {
218
218
val templateResponse = retroRestClient.template(templateID).execute()
@@ -223,7 +223,7 @@ open class CoderRestClient(
223
223
}
224
224
225
225
/* *
226
- * @throws [ApiResponseException ].
226
+ * @throws [APIResponseException ].
227
227
*/
228
228
fun startWorkspace (workspace : Workspace ): WorkspaceBuild {
229
229
val buildRequest = CreateWorkspaceBuildRequest (null , WorkspaceTransition .START )
@@ -235,7 +235,7 @@ open class CoderRestClient(
235
235
}
236
236
237
237
/* *
238
- * @throws [ApiResponseException ].
238
+ * @throws [APIResponseException ].
239
239
*/
240
240
fun stopWorkspace (workspace : Workspace ): WorkspaceBuild {
241
241
val buildRequest = CreateWorkspaceBuildRequest (null , WorkspaceTransition .STOP )
@@ -254,7 +254,7 @@ open class CoderRestClient(
254
254
* 2. The agent gets a new ID and token on each START build. Many template
255
255
* authors are not diligent about making sure the agent gets restarted
256
256
* with this information when we do two START builds in a row.
257
- * @throws [ApiResponseException ].
257
+ * @throws [APIResponseException ].
258
258
*/
259
259
fun updateWorkspace (workspace : Workspace ): WorkspaceBuild {
260
260
val template = template(workspace.templateID)
0 commit comments