2020-02-13 21:08:59 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class Deployment < Grape::Entity
|
|
|
|
expose :id, :iid, :ref, :sha, :created_at, :updated_at
|
|
|
|
expose :user, using: Entities::UserBasic
|
|
|
|
expose :environment, using: Entities::EnvironmentBasic
|
2020-08-13 18:10:36 +00:00
|
|
|
expose :deployable, using: Entities::Ci::Job
|
2020-02-13 21:08:59 +00:00
|
|
|
expose :status
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|