Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-23 19:28:57 +0300
committerShinya Maeda <shinya@gitlab.com>2017-09-03 17:49:10 +0300
commit6f19fc1147a60f279db35428993ac532841195ad (patch)
treee54e06487c4f13290890806df85d9272cb65a4ad /lib/api/runners.rb
parentaf112c55e54874a37e780de6723c64e9be61b6e8 (diff)
Add API support
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r--lib/api/runners.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 1ea9a7918d7..d8fc44e5790 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -55,7 +55,8 @@ module API
optional :tag_list, type: Array[String], desc: 'The list of tags for a runner'
optional :run_untagged, type: Boolean, desc: 'Flag indicating the runner can execute untagged jobs'
optional :locked, type: Boolean, desc: 'Flag indicating the runner is locked'
- at_least_one_of :description, :active, :tag_list, :run_untagged, :locked
+ optional :access_level, type: Integer, desc: 'The access_level of the runner'
+ at_least_one_of :description, :active, :tag_list, :run_untagged, :locked, :access_level
end
put ':id' do
runner = get_runner(params.delete(:id))