Module: Gitlab::Client::AccessRequests
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/access_requests.rb
Overview
Defines methods related to Award Emojis.
Instance Method Summary collapse
-
#approve_group_access_request(group, user_id, options = {}) ⇒ Gitlab::ObjectifiedHash
Approves a group access request for the given user.
-
#approve_project_access_request(project, user_id, options = {}) ⇒ Gitlab::ObjectifiedHash
Approves a project access request for the given user.
-
#deny_group_access_request(group, user_id) ⇒ void
Denies a group access request for the given user.
-
#deny_project_access_request(project, user_id) ⇒ void
Denies a project access request for the given user.
-
#group_access_requests(group) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of access requests for a group viewable by the authenticated user.
-
#project_access_requests(project) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of access requests for a project viewable by the authenticated user.
-
#request_group_access(group) ⇒ Gitlab::ObjectifiedHash
Requests access for the authenticated user to a group.
-
#request_project_access(project) ⇒ Gitlab::ObjectifiedHash
Requests access for the authenticated user to a project.
Instance Method Details
#approve_group_access_request(group, user_id, options = {}) ⇒ Gitlab::ObjectifiedHash
Approves a group access request for the given user.
75 76 77 |
# File 'lib/gitlab/client/access_requests.rb', line 75 def approve_group_access_request(group, user_id, = {}) put("/groups/#{url_encode group}/access_requests/#{user_id}/approve", body: ) end |
#approve_project_access_request(project, user_id, options = {}) ⇒ Gitlab::ObjectifiedHash
Approves a project access request for the given user.
61 62 63 |
# File 'lib/gitlab/client/access_requests.rb', line 61 def approve_project_access_request(project, user_id, = {}) put("/projects/#{url_encode project}/access_requests/#{user_id}/approve", body: ) end |
#deny_group_access_request(group, user_id) ⇒ void
This method returns an undefined value.
Denies a group access request for the given user.
99 100 101 |
# File 'lib/gitlab/client/access_requests.rb', line 99 def deny_group_access_request(group, user_id) delete("/groups/#{url_encode group}/access_requests/#{user_id}") end |
#deny_project_access_request(project, user_id) ⇒ void
This method returns an undefined value.
Denies a project access request for the given user.
87 88 89 |
# File 'lib/gitlab/client/access_requests.rb', line 87 def deny_project_access_request(project, user_id) delete("/projects/#{url_encode project}/access_requests/#{user_id}") end |
#group_access_requests(group) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of access requests for a group viewable by the authenticated user.
25 26 27 |
# File 'lib/gitlab/client/access_requests.rb', line 25 def group_access_requests(group) get("/groups/#{url_encode group}/access_requests") end |
#project_access_requests(project) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of access requests for a project viewable by the authenticated user.
14 15 16 |
# File 'lib/gitlab/client/access_requests.rb', line 14 def project_access_requests(project) get("/projects/#{url_encode project}/access_requests") end |
#request_group_access(group) ⇒ Gitlab::ObjectifiedHash
Requests access for the authenticated user to a group.
47 48 49 |
# File 'lib/gitlab/client/access_requests.rb', line 47 def request_group_access(group) post("/groups/#{url_encode group}/access_requests") end |
#request_project_access(project) ⇒ Gitlab::ObjectifiedHash
Requests access for the authenticated user to a project.
36 37 38 |
# File 'lib/gitlab/client/access_requests.rb', line 36 def request_project_access(project) post("/projects/#{url_encode project}/access_requests") end |