# frozen_string_literal: true class Gitlab::Client # Defines methods related to Award Emojis. # @see https://docs.gitlab.com/ce/api/access_requests.html module AccessRequests # Gets a list of access requests for a project viewable by the authenticated user. # # @example # Gitlab.project_access_requests(1) # # @param [Integer, String] :project(required) The ID or name of a project. # @return [Array] List of project access requests def project_access_requests(project) get("/projects/#{url_encode project}/access_requests") end # Gets a list of access requests for a group viewable by the authenticated user. # # @example # Gitlab.group_access_requests(1) # # @param [Integer, String] :group(required) The ID or name of a group. # @return [Array] List of group access requests def group_access_requests(group) get("/groups/#{url_encode group}/access_requests") end # Requests access for the authenticated user to a project. # # @example # Gitlab.request_project_access(1) # # @param [Integer, String] :project(required) The ID or name of a project. # @return