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-11-01 08:10:18 -04:00
|
|
|
expose :tier, documentation: { type: 'string', example: 'development' }
|
2020-02-13 16:08:59 -05:00
|
|
|
expose :project, using: Entities::BasicProjectDetails
|
|
|
|
expose :last_deployment, using: Entities::Deployment, if: { last_deployment: true }
|
2022-11-01 08:10:18 -04:00
|
|
|
expose :state, documentation: { type: 'string', example: 'available' }
|
2020-02-13 16:08:59 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|