diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2018-08-25 05:38:54 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-08-25 05:38:54 +0000 |
commit | 08cc6afc6eaa05fbc072452901a7d381bbdb2af8 (patch) | |
tree | c6e4f3779ff9ff13e3539681a7ac34488aaa8d16 /lib/api/entities.rb | |
parent | 26ea5437f17ce2a6546fbfd644b93b7f18896783 (diff) | |
download | gitlab-ce-08cc6afc6eaa05fbc072452901a7d381bbdb2af8.tar.gz |
API: Protected tags
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 06262f0f991..95b25d7351a 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -429,6 +429,11 @@ module API expose :merge_access_levels, using: Entities::ProtectedRefAccess end + class ProtectedTag < Grape::Entity + expose :name + expose :create_access_levels, using: Entities::ProtectedRefAccess + end + class Milestone < Grape::Entity expose :id, :iid expose :project_id, if: -> (entity, options) { entity&.project_id } |