summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-29 16:09:30 +0900
committerShinya Maeda <shinya@gitlab.com>2017-09-03 23:49:10 +0900
commit13b9b5f11a556b2841aabbf46516d1acab79aa0d (patch)
treecad36554f682546915249aa4a8c9fc415cb3a808 /lib
parent1024718e9fddbb0d61d3f64f44303964641fcdd8 (diff)
downloadgitlab-ce-13b9b5f11a556b2841aabbf46516d1acab79aa0d.tar.gz
Improve API arguments as String
Diffstat (limited to 'lib')
-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 d8fc44e5790..d3559ef71be 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'
- optional :access_level, type: Integer, desc: 'The access_level of the runner'
+ optional :access_level, type: String, values: Ci::Runner.access_levels.keys,
+ desc: 'The access_level of the runner'
at_least_one_of :description, :active, :tag_list, :run_untagged, :locked, :access_level
end
put ':id' do