# frozen_string_literal: true class Gitlab::Client # Defines methods related to Protected Tags. # @see https://docs.gitlab.com/ce/api/protected_tags.html module ProtectedTags # Gets a list of protected tags from a project # # @example # Gitlab.protected_tags(1) # # @param [Integer, String] project(required) The ID or name of a project. # @option options [Integer] :page The page number. # @option options [Integer] :per_page The number of results per page. # @return [Array] List of all protected tags requested def protected_tags(project, options = {}) get("/projects/#{url_encode project}/protected_tags", query: options) end # Gets a single protected tag or wildcard protected tag. # # @example # Gitlab.protected_tag(1, 'release-1-0') # # @param [Integer, String] project(required) The ID or name of a project. # @param [String] name(required) The name of the tag or wildcard # @return