Module: Gitlab::Client::Packages
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/packages.rb
Overview
Defines methods related to GitLab Packages.
Instance Method Summary collapse
-
#delete_project_package(project, id) ⇒ void
Deletes a project package.
-
#delete_project_package_file(project, package_id, file_id) ⇒ void
Delete a package file.
-
#group_packages(group, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of project packages.
-
#project_package(project, id) ⇒ Gitlab::ObjectifiedHash
Get a single project package.
-
#project_package_files(project, id) ⇒ Array<Gitlab::ObjectifiedHash>
Get a list of package files of a single package.
-
#project_packages(project, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of project packages.
Instance Method Details
#delete_project_package(project, id) ⇒ void
This method returns an undefined value.
Deletes a project package.
78 79 80 |
# File 'lib/gitlab/client/packages.rb', line 78 def delete_project_package(project, id) delete("/projects/#{url_encode project}/packages/#{id}") end |
#delete_project_package_file(project, package_id, file_id) ⇒ void
This method returns an undefined value.
Delete a package file.
91 92 93 |
# File 'lib/gitlab/client/packages.rb', line 91 def delete_project_package_file(project, package_id, file_id) delete("/projects/#{url_encode project}/packages/#{package_id}/package_files/#{file_id}") end |
#group_packages(group, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of project packages.
42 43 44 |
# File 'lib/gitlab/client/packages.rb', line 42 def group_packages(group, = {}) get("/groups/#{url_encode group}/packages", query: ) end |
#project_package(project, id) ⇒ Gitlab::ObjectifiedHash
Get a single project package.
54 55 56 |
# File 'lib/gitlab/client/packages.rb', line 54 def project_package(project, id) get("/projects/#{url_encode project}/packages/#{id}") end |
#project_package_files(project, id) ⇒ Array<Gitlab::ObjectifiedHash>
Get a list of package files of a single package.
66 67 68 |
# File 'lib/gitlab/client/packages.rb', line 66 def project_package_files(project, id) get("/projects/#{url_encode project}/packages/#{id}/package_files") end |
#project_packages(project, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of project packages.
22 23 24 |
# File 'lib/gitlab/client/packages.rb', line 22 def project_packages(project, = {}) get("/projects/#{url_encode project}/packages", query: ) end |