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

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

module API
  module Entities
    class PullMirror < Grape::Entity
      expose :id, documentation: { type: 'integer', example: 101486 }
      expose :status, as: :update_status, documentation: { type: 'string', example: 'finished' }
      expose :url,
documentation: { type: 'string',
                 example: 'https://*****:*****@gitlab.com/gitlab-org/security/gitlab.git' } do |import_state|
        import_state.project.safe_import_url
      end
      expose :last_error, documentation: { type: 'string', example: nil }
      expose :last_update_at, documentation: { type: 'dateTime', example: '2020-01-06T17:32:02.823Z' }
      expose :last_update_started_at, documentation: { type: 'dateTime', example: '2020-01-06T17:32:02.823Z' }
      expose :last_successful_update_at, documentation: { type: 'dateTime', example: '2020-01-06T17:32:02.823Z' }
    end
  end
end