Commit 561cef95 authored by Greg Messner's avatar Greg Messner
Browse files

Code cleanup and Javadoc fixes.

parent 8d917f17
...@@ -13,6 +13,7 @@ import java.util.List; ...@@ -13,6 +13,7 @@ import java.util.List;
* This class provides an entry point to all the GitLab API repository files calls. * This class provides an entry point to all the GitLab API repository files calls.
*/ */
public class RunnersApi extends AbstractApi { public class RunnersApi extends AbstractApi {
public RunnersApi(GitLabApi gitLabApi) { public RunnersApi(GitLabApi gitLabApi) {
super(gitLabApi); super(gitLabApi);
} }
...@@ -417,12 +418,13 @@ public class RunnersApi extends AbstractApi { ...@@ -417,12 +418,13 @@ public class RunnersApi extends AbstractApi {
* *
* POST /runners/ * POST /runners/
* *
* @param token the token of the project (for project specific runners) or the token from the admin page. * @param token the token of the project (for project specific runners) or the token from the admin page
* @param description The description of a runner * @param description The description of a runner
* @param active The state of a runner; can be set to true or false * @param active The state of a runner; can be set to true or false
* @param tagList The list of tags for a runner; put array of tags, that should be finally assigned to a runner * @param tagList The list of tags for a runner; put array of tags, that should be finally assigned to a runner
* @param runUntagged Flag indicating the runner can execute untagged jobs * @param runUntagged Flag indicating the runner can execute untagged jobs
* @param locked Flag indicating the runner is locked * @param locked Flag indicating the runner is locked
* @param maximumTimeout the maximum timeout set when this Runner will handle the job
* @return RunnerDetail instance. * @return RunnerDetail instance.
* @throws GitLabApiException if any exception occurs * @throws GitLabApiException if any exception occurs
*/ */
...@@ -442,10 +444,11 @@ public class RunnersApi extends AbstractApi { ...@@ -442,10 +444,11 @@ public class RunnersApi extends AbstractApi {
} }
/** /**
* Deletes a registed Runner. * Deletes a registered Runner.
* *
* DELETE /runners/ * DELETE /runners/
* *
* @param token the runners authentication token
* @throws GitLabApiException if any exception occurs * @throws GitLabApiException if any exception occurs
*/ */
public void deleteRunner(String token) throws GitLabApiException { public void deleteRunner(String token) throws GitLabApiException {
...@@ -454,6 +457,4 @@ public class RunnersApi extends AbstractApi { ...@@ -454,6 +457,4 @@ public class RunnersApi extends AbstractApi {
delete(Response.Status.NO_CONTENT, formData.asMap(), "runners"); delete(Response.Status.NO_CONTENT, formData.asMap(), "runners");
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment