Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
561cef95
Commit
561cef95
authored
Aug 04, 2018
by
Greg Messner
Browse files
Code cleanup and Javadoc fixes.
parent
8d917f17
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/RunnersApi.java
View file @
561cef95
...
@@ -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 registe
re
d 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"
);
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment