module Gitlab::Client::ProjectReleaseLinks

def create_project_release_link(project, tag_name, options = {})

Returns:
  • (Gitlab::ObjectifiedHash) - Information about the created release link.

Options Hash: (**options)
  • :url(required) (String) -- The URL of the link.
  • :name(required) (String) -- The name of the link.

Parameters:
  • options (Hash) -- A customizable set of options.
  • tag_name (String) -- The tag associated with the Release.
  • project (Integer, String) -- The ID or name of a project.
def create_project_release_link(project, tag_name, options = {})
  post("/projects/#{url_encode project}/releases/#{tag_name}/assets/links", body: options)
end

def delete_project_release_link(project, tag_name, link_id)

Returns:
  • (Gitlab::ObjectifiedHash) - Information about the deleted release link.

Parameters:
  • link_id (Integer) -- The id of the link.
  • tag_name (String) -- The tag where the release will be created from.
  • project (Integer, String) -- The ID or name of a project.
def delete_project_release_link(project, tag_name, link_id)
  delete("/projects/#{url_encode project}/releases/#{tag_name}/assets/links/#{link_id}")
end

def project_release_link(project, tag_name, link_id)

Returns:
  • (Gitlab::ObjectifiedHash) - Information about the release link

Parameters:
  • link_id (Integer) -- The id of the link.
  • tag_name (String) -- The tag associated with the Release.
  • project (Integer, String) -- The ID or name of a project.
def project_release_link(project, tag_name, link_id)
  get("/projects/#{url_encode project}/releases/#{tag_name}/assets/links/#{link_id}")
end

def project_release_links(project, tag_name)

Returns:
  • (Array) - List of assets as links from a Release.

Parameters:
  • tag_name (String) -- The tag associated with the Release.
  • project (Integer, String) -- The ID or name of a project.
def project_release_links(project, tag_name)
  get("/projects/#{url_encode project}/releases/#{tag_name}/assets/links")
end

def update_project_release_link(project, tag_name, link_id, options = {})

Returns:
  • (Gitlab::ObjectifiedHash) - Information about the updated release link.

Options Hash: (**options)
  • :url(optional) (String) -- The URL of the link.
  • :name(optional) (String) -- The name of the link.

Parameters:
  • options (Hash) -- A customizable set of options.
  • link_id (Integer) -- The id of the link.
  • tag_name (String) -- The tag where the release will be created from.
  • project (Integer, String) -- The ID or name of a project.
def update_project_release_link(project, tag_name, link_id, options = {})
  put("/projects/#{url_encode project}/releases/#{tag_name}/assets/links/#{link_id}", body: options)
end