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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
1 KiB
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
module API
module Entities
class RemoteMirror < Grape::Entity
2023-01-13 00:05:48 +05:30
expose :id, documentation: { type: 'integer', example: 101486 }
expose :enabled, documentation: { type: 'boolean', example: true }
expose :safe_url, as: :url, documentation: { type: 'string', example: 'https://*****:*****@example.com/gitlab/example.git' }
expose :update_status, documentation: { type: 'string', example: 'finished' }
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:31:55.864Z' }
expose :last_error, documentation: { type: 'integer', example: 'The remote mirror URL is invalid.' }
expose :only_protected_branches, documentation: { type: 'boolean' }
expose :keep_divergent_refs, documentation: { type: 'boolean' }
2020-03-13 15:44:24 +05:30
end
end
end