debian-mirror-gitlab/lib/api/entities/batched_background_migration.rb

15 lines
666 B
Ruby
Raw Normal View History

2022-10-11 01:57:18 +05:30
# frozen_string_literal: true
module API
module Entities
class BatchedBackgroundMigration < Grape::Entity
2023-03-04 22:38:38 +05:30
expose :id, documentation: { type: :string, example: "1234" }
expose :job_class_name, documentation: { type: :string, example: "CopyColumnUsingBackgroundMigrationJob" }
expose :table_name, documentation: { type: :string, example: "events" }
expose :status_name, as: :status, override: true, documentation: { type: :string, example: "active" }
expose :progress, documentation: { type: :float, example: 50 }
expose :created_at, documentation: { type: :dateTime, example: "2022-11-28T16:26:39+02:00" }
2022-10-11 01:57:18 +05:30
end
end
end