@@ -25,7 +25,7 @@ import (
2525// AccessRequest represents a access request for a group or project.
2626//
2727// GitLab API docs:
28- // https://docs.gitlab.com/ce /api/access_requests.html
28+ // https://docs.gitlab.com/ee /api/access_requests.html
2929type AccessRequest struct {
3030 ID int `json:"id"`
3131 Username string `json:"username"`
@@ -39,7 +39,7 @@ type AccessRequest struct {
3939// AccessRequestsService handles communication with the project/group
4040// access requests related methods of the GitLab API.
4141//
42- // GitLab API docs: https://docs.gitlab.com/ce /api/access_requests.html
42+ // GitLab API docs: https://docs.gitlab.com/ee /api/access_requests.html
4343type AccessRequestsService struct {
4444 client * Client
4545}
@@ -48,14 +48,14 @@ type AccessRequestsService struct {
4848// ListProjectAccessRequests() or ListGroupAccessRequests() options.
4949//
5050// GitLab API docs:
51- // https://docs.gitlab.com/ce /api/access_requests.html#list-access-requests-for-a-group-or-project
51+ // https://docs.gitlab.com/ee /api/access_requests.html#list-access-requests-for-a-group-or-project
5252type ListAccessRequestsOptions ListOptions
5353
5454// ListProjectAccessRequests gets a list of access requests
5555// viewable by the authenticated user.
5656//
5757// GitLab API docs:
58- // https://docs.gitlab.com/ce /api/access_requests.html#list-access-requests-for-a-group-or-project
58+ // https://docs.gitlab.com/ee /api/access_requests.html#list-access-requests-for-a-group-or-project
5959func (s * AccessRequestsService ) ListProjectAccessRequests (pid interface {}, opt * ListAccessRequestsOptions , options ... RequestOptionFunc ) ([]* AccessRequest , * Response , error ) {
6060 project , err := parseID (pid )
6161 if err != nil {
@@ -81,7 +81,7 @@ func (s *AccessRequestsService) ListProjectAccessRequests(pid interface{}, opt *
8181// viewable by the authenticated user.
8282//
8383// GitLab API docs:
84- // https://docs.gitlab.com/ce /api/access_requests.html#list-access-requests-for-a-group-or-project
84+ // https://docs.gitlab.com/ee /api/access_requests.html#list-access-requests-for-a-group-or-project
8585func (s * AccessRequestsService ) ListGroupAccessRequests (gid interface {}, opt * ListAccessRequestsOptions , options ... RequestOptionFunc ) ([]* AccessRequest , * Response , error ) {
8686 group , err := parseID (gid )
8787 if err != nil {
@@ -107,7 +107,7 @@ func (s *AccessRequestsService) ListGroupAccessRequests(gid interface{}, opt *Li
107107// to a group or project.
108108//
109109// GitLab API docs:
110- // https://docs.gitlab.com/ce /api/access_requests.html#request-access-to-a-group-or-project
110+ // https://docs.gitlab.com/ee /api/access_requests.html#request-access-to-a-group-or-project
111111func (s * AccessRequestsService ) RequestProjectAccess (pid interface {}, options ... RequestOptionFunc ) (* AccessRequest , * Response , error ) {
112112 project , err := parseID (pid )
113113 if err != nil {
@@ -133,7 +133,7 @@ func (s *AccessRequestsService) RequestProjectAccess(pid interface{}, options ..
133133// to a group or project.
134134//
135135// GitLab API docs:
136- // https://docs.gitlab.com/ce /api/access_requests.html#request-access-to-a-group-or-project
136+ // https://docs.gitlab.com/ee /api/access_requests.html#request-access-to-a-group-or-project
137137func (s * AccessRequestsService ) RequestGroupAccess (gid interface {}, options ... RequestOptionFunc ) (* AccessRequest , * Response , error ) {
138138 group , err := parseID (gid )
139139 if err != nil {
@@ -159,15 +159,15 @@ func (s *AccessRequestsService) RequestGroupAccess(gid interface{}, options ...R
159159// ApproveProjectAccessRequest() and ApproveGroupAccessRequest() options.
160160//
161161// GitLab API docs:
162- // https://docs.gitlab.com/ce /api/access_requests.html#approve-an-access-request
162+ // https://docs.gitlab.com/ee /api/access_requests.html#approve-an-access-request
163163type ApproveAccessRequestOptions struct {
164164 AccessLevel * AccessLevelValue `url:"access_level,omitempty" json:"access_level,omitempty"`
165165}
166166
167167// ApproveProjectAccessRequest approves an access request for the given user.
168168//
169169// GitLab API docs:
170- // https://docs.gitlab.com/ce /api/access_requests.html#approve-an-access-request
170+ // https://docs.gitlab.com/ee /api/access_requests.html#approve-an-access-request
171171func (s * AccessRequestsService ) ApproveProjectAccessRequest (pid interface {}, user int , opt * ApproveAccessRequestOptions , options ... RequestOptionFunc ) (* AccessRequest , * Response , error ) {
172172 project , err := parseID (pid )
173173 if err != nil {
@@ -192,7 +192,7 @@ func (s *AccessRequestsService) ApproveProjectAccessRequest(pid interface{}, use
192192// ApproveGroupAccessRequest approves an access request for the given user.
193193//
194194// GitLab API docs:
195- // https://docs.gitlab.com/ce /api/access_requests.html#approve-an-access-request
195+ // https://docs.gitlab.com/ee /api/access_requests.html#approve-an-access-request
196196func (s * AccessRequestsService ) ApproveGroupAccessRequest (gid interface {}, user int , opt * ApproveAccessRequestOptions , options ... RequestOptionFunc ) (* AccessRequest , * Response , error ) {
197197 group , err := parseID (gid )
198198 if err != nil {
@@ -217,7 +217,7 @@ func (s *AccessRequestsService) ApproveGroupAccessRequest(gid interface{}, user
217217// DenyProjectAccessRequest denies an access request for the given user.
218218//
219219// GitLab API docs:
220- // https://docs.gitlab.com/ce /api/access_requests.html#deny-an-access-request
220+ // https://docs.gitlab.com/ee /api/access_requests.html#deny-an-access-request
221221func (s * AccessRequestsService ) DenyProjectAccessRequest (pid interface {}, user int , options ... RequestOptionFunc ) (* Response , error ) {
222222 project , err := parseID (pid )
223223 if err != nil {
@@ -236,7 +236,7 @@ func (s *AccessRequestsService) DenyProjectAccessRequest(pid interface{}, user i
236236// DenyGroupAccessRequest denies an access request for the given user.
237237//
238238// GitLab API docs:
239- // https://docs.gitlab.com/ce /api/access_requests.html#deny-an-access-request
239+ // https://docs.gitlab.com/ee /api/access_requests.html#deny-an-access-request
240240func (s * AccessRequestsService ) DenyGroupAccessRequest (gid interface {}, user int , options ... RequestOptionFunc ) (* Response , error ) {
241241 group , err := parseID (gid )
242242 if err != nil {
0 commit comments