13
13
* This class provides an entry point to all the GitLab API repository files calls.
14
14
*/
15
15
public class RunnersApi extends AbstractApi {
16
+
16
17
public RunnersApi (GitLabApi gitLabApi ) {
17
18
super (gitLabApi );
18
19
}
@@ -417,12 +418,13 @@ public Runner disableRunner(Integer projectId, Integer runnerId) throws GitLabAp
417
418
*
418
419
* POST /runners/
419
420
*
420
- * @param token the token of the project (for project specific runners) or the token from the admin page.
421
+ * @param token the token of the project (for project specific runners) or the token from the admin page
421
422
* @param description The description of a runner
422
423
* @param active The state of a runner; can be set to true or false
423
424
* @param tagList The list of tags for a runner; put array of tags, that should be finally assigned to a runner
424
425
* @param runUntagged Flag indicating the runner can execute untagged jobs
425
426
* @param locked Flag indicating the runner is locked
427
+ * @param maximumTimeout the maximum timeout set when this Runner will handle the job
426
428
* @return RunnerDetail instance.
427
429
* @throws GitLabApiException if any exception occurs
428
430
*/
@@ -442,10 +444,11 @@ public RunnerDetail registerRunner(String token, String description, Boolean act
442
444
}
443
445
444
446
/**
445
- * Deletes a registed Runner.
447
+ * Deletes a registered Runner.
446
448
*
447
449
* DELETE /runners/
448
450
*
451
+ * @param token the runners authentication token
449
452
* @throws GitLabApiException if any exception occurs
450
453
*/
451
454
public void deleteRunner (String token ) throws GitLabApiException {
@@ -454,6 +457,4 @@ public void deleteRunner(String token) throws GitLabApiException {
454
457
455
458
delete (Response .Status .NO_CONTENT , formData .asMap (), "runners" );
456
459
}
457
-
458
-
459
460
}
0 commit comments