Welcome to mirror list, hosted at ThFree Co, Russian Federation.

batched_background_migration.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 08e4681e0aa1975cee2fdda75e93cdf615948593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module API
  module Entities
    class BatchedBackgroundMigration < Grape::Entity
      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" }
    end
  end
end