Skip to content

Commit cf3c1dd

Browse files
committed
Replace docs.gitlab.com/ce with docs.gitlab.com/ee
1 parent 8dd825c commit cf3c1dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+986
-987
lines changed

access_requests.go

+12-12
Original file line numberDiff line numberDiff line change
@@ -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
2929
type 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
4343
type 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
5252
type 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
5959
func (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
8585
func (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
111111
func (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
137137
func (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
163163
type 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
171171
func (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
196196
func (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
221221
func (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
240240
func (s *AccessRequestsService) DenyGroupAccessRequest(gid interface{}, user int, options ...RequestOptionFunc) (*Response, error) {
241241
group, err := parseID(gid)
242242
if err != nil {

applications.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type Application struct {
4242
// CreateApplicationOptions represents the available CreateApplication() options.
4343
//
4444
// GitLab API docs:
45-
// https://docs.gitlab.com/ce/api/applications.html#create-an-application
45+
// https://docs.gitlab.com/ee/api/applications.html#create-an-application
4646
type CreateApplicationOptions struct {
4747
Name *string `url:"name,omitempty" json:"name,omitempty"`
4848
RedirectURI *string `url:"redirect_uri,omitempty" json:"redirect_uri,omitempty"`
@@ -52,7 +52,7 @@ type CreateApplicationOptions struct {
5252

5353
// CreateApplication creates a new application owned by the authenticated user.
5454
//
55-
// Gitlab API docs : https://docs.gitlab.com/ce/api/applications.html#create-an-application
55+
// Gitlab API docs : https://docs.gitlab.com/ee/api/applications.html#create-an-application
5656
func (s *ApplicationsService) CreateApplication(opt *CreateApplicationOptions, options ...RequestOptionFunc) (*Application, *Response, error) {
5757
req, err := s.client.NewRequest(http.MethodPost, "applications", opt, options)
5858
if err != nil {
@@ -74,7 +74,7 @@ type ListApplicationsOptions ListOptions
7474

7575
// ListApplications get a list of administrables applications by the authenticated user
7676
//
77-
// Gitlab API docs : https://docs.gitlab.com/ce/api/applications.html#list-all-applications
77+
// Gitlab API docs : https://docs.gitlab.com/ee/api/applications.html#list-all-applications
7878
func (s *ApplicationsService) ListApplications(opt *ListApplicationsOptions, options ...RequestOptionFunc) ([]*Application, *Response, error) {
7979
req, err := s.client.NewRequest(http.MethodGet, "applications", opt, options)
8080
if err != nil {
@@ -93,7 +93,7 @@ func (s *ApplicationsService) ListApplications(opt *ListApplicationsOptions, opt
9393
// DeleteApplication removes a specific application.
9494
//
9595
// GitLab API docs:
96-
// https://docs.gitlab.com/ce/api/applications.html#delete-an-application
96+
// https://docs.gitlab.com/ee/api/applications.html#delete-an-application
9797
func (s *ApplicationsService) DeleteApplication(application int, options ...RequestOptionFunc) (*Response, error) {
9898
u := fmt.Sprintf("applications/%d", application)
9999

0 commit comments

Comments
 (0)