debian-mirror-gitlab/lib/api/entities/ci/job_request/service.rb
2022-08-13 15:12:31 +05:30

18 lines
432 B
Ruby

# frozen_string_literal: true
module API
module Entities
module Ci
module JobRequest
class Service < Grape::Entity
expose :name, :entrypoint
expose :ports, using: Entities::Ci::JobRequest::Port
expose :pull_policy, if: ->(_) { ::Feature.enabled?(:ci_docker_image_pull_policy) }
expose :alias, :command
expose :variables
end
end
end
end
end