2020-02-13 16:08:59 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class Environment < Entities::EnvironmentBasic
|
2021-05-03 08:09:49 -04:00
|
|
|
include RequestAwareEntity
|
|
|
|
|
2022-05-02 23:10:17 -04:00
|
|
|
expose :tier
|
2020-02-13 16:08:59 -05:00
|
|
|
expose :project, using: Entities::BasicProjectDetails
|
|
|
|
expose :last_deployment, using: Entities::Deployment, if: { last_deployment: true }
|
|
|
|
expose :state
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|