diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 09:55:51 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 09:55:51 +0000 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /app/presenters/packages/nuget/service_index_presenter.rb | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) | |
download | gitlab-ce-e8d2c2579383897a1dd7f9debd359abe8ae8373d.tar.gz |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'app/presenters/packages/nuget/service_index_presenter.rb')
-rw-r--r-- | app/presenters/packages/nuget/service_index_presenter.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/presenters/packages/nuget/service_index_presenter.rb b/app/presenters/packages/nuget/service_index_presenter.rb index b3cc912b811..033a1845c1c 100644 --- a/app/presenters/packages/nuget/service_index_presenter.rb +++ b/app/presenters/packages/nuget/service_index_presenter.rb @@ -8,6 +8,7 @@ module Packages SERVICE_VERSIONS = { download: %w[PackageBaseAddress/3.0.0], search: %w[SearchQueryService SearchQueryService/3.0.0-beta SearchQueryService/3.0.0-rc], + symbol: %w[SymbolPackagePublish/4.9.0], publish: %w[PackagePublish/2.0.0], metadata: %w[RegistrationsBaseUrl RegistrationsBaseUrl/3.0.0-beta RegistrationsBaseUrl/3.0.0-rc] }.freeze @@ -15,13 +16,14 @@ module Packages SERVICE_COMMENTS = { download: 'Get package content (.nupkg).', search: 'Filter and search for packages by keyword.', + symbol: 'Push symbol packages.', publish: 'Push and delete (or unlist) packages.', metadata: 'Get package metadata.' }.freeze VERSION = '3.0.0' - PROJECT_LEVEL_SERVICES = %i[download publish].freeze + PROJECT_LEVEL_SERVICES = %i[download publish symbol].freeze GROUP_LEVEL_SERVICES = %i[search metadata].freeze def initialize(project_or_group) @@ -63,6 +65,8 @@ module Packages download_service_url when :search search_service_url + when :symbol + symbol_service_url when :metadata metadata_service_url when :publish @@ -124,6 +128,10 @@ module Packages def publish_service_url api_v4_projects_packages_nuget_path(id: @project_or_group.id) end + + def symbol_service_url + api_v4_projects_packages_nuget_symbolpackage_path(id: @project_or_group.id) + end end end end |