module Gitlab::Client::ProjectExports
def export_project(id, options = {})
-
(Gitlab::ObjectifiedHash)
-
Options Hash:
(**options)
-
upload[http_method](optional)
(String
) -- The HTTP method to upload the exported project. Only PUT and POST methods allowed. Default is PUT -
upload[url]
(String
) -- TThe URL to upload the project -
upload(optional)
(hash
) -- Hash that contains the information to upload the exported project to a web server -
description(optional)
(String
) -- Overrides the project description
Parameters:
-
options
(Hash
) -- A customizable set of options. -
id
(Integer, String
) -- The ID or path of a project.
def export_project(id, options = {}) post("/projects/#{url_encode id}/export", body: options) end
def export_project_status(id)
-
(Gitlab::ObjectifiedHash)
-
Parameters:
-
id
(Integer, String
) -- The ID or path of a project.
def export_project_status(id) get("/projects/#{url_encode id}/export") end
def exported_project_download(id)
-
(Gitlab::FileResponse)
-
Parameters:
-
id
(Integer, String
) -- The ID or path of a project.
def exported_project_download(id) get("/projects/#{url_encode id}/export/download", format: nil, headers: { Accept: 'application/octet-stream' }, parser: proc { |body, _| if body.encoding == Encoding::ASCII_8BIT # binary response ::Gitlab::FileResponse.new StringIO.new(body, 'rb+') else # error with json response ::Gitlab::Request.parse(body) end }) end