72 files changed
@@ -16,7 +16,7 @@ To connect to GitLab.com or another GitLab instance, create a ``gitlab.Gitlab`` | |||
| 16 | 16 | access token. | |
| 17 | 17 | ||
| 18 | 18 | For the full list of available options and how to obtain these tokens, please see | |
| 19 | - https://docs.gitlab.com/ee/api/rest/authentication.html. | ||
| 19 | + https://docs.gitlab.com/api/rest/authentication/. | ||
| 20 | 20 | ||
| 21 | 21 | .. code-block:: python | |
| 22 | 22 | ||
@@ -39,7 +39,7 @@ To connect to GitLab.com or another GitLab instance, create a ``gitlab.Gitlab`` | |||
| 39 | 39 | ||
| 40 | 40 | # job token authentication (to be used in CI) | |
| 41 | 41 | # bear in mind the limitations of the API endpoints it supports: | |
| 42 | - # https://docs.gitlab.com/ee/ci/jobs/ci_job_token.html | ||
| 42 | + # https://docs.gitlab.com/ci/jobs/ci_job_token | ||
| 43 | 43 | import os | |
| 44 | 44 | gl = gitlab.Gitlab('https://gitlab.example.com', job_token=os.environ['CI_JOB_TOKEN']) | |
| 45 | 45 | ||
@@ -83,7 +83,7 @@ Note on password authentication | |||
| 83 | 83 | ------------------------------- | |
| 84 | 84 | ||
| 85 | 85 | GitLab has long removed password-based basic authentication. You can currently still use the | |
| 86 | - `resource owner password credentials <https://docs.gitlab.com/ee/api/oauth2.html#resource-owner-password-credentials-flow>`_ | ||
| 86 | + `resource owner password credentials <https://docs.gitlab.com/api/oauth2#resource-owner-password-credentials-flow>`_ | ||
| 87 | 87 | flow to obtain an OAuth token. | |
| 88 | 88 | ||
| 89 | 89 | However, we do not recommend this as it will not work with 2FA enabled, and GitLab is removing | |
@@ -364,7 +364,7 @@ order options. At the time of writing, only ``order_by="id"`` works. | |||
| 364 | 364 | gl.projects.list(get_all=True) | |
| 365 | 365 | ||
| 366 | 366 | Reference: | |
| 367 | - https://docs.gitlab.com/ce/api/README.html#keyset-based-pagination | ||
| 367 | + https://docs.gitlab.com/api/rest/#keyset-based-pagination | ||
| 368 | 368 | ||
| 369 | 369 | ``list()`` methods can also return a generator object, by passing the argument | |
| 370 | 370 | ``iterator=True``, which will handle the next calls to the API when required. This | |
@@ -392,7 +392,7 @@ The generator exposes extra listing information as received from the server: | |||
| 392 | 392 | ``total_pages`` and ``total`` will have a value of ``None``. | |
| 393 | 393 | ||
| 394 | 394 | For more information see: | |
| 395 | - https://docs.gitlab.com/ee/user/gitlab_com/index.html#pagination-response-headers | ||
| 395 | + https://docs.gitlab.com/user/gitlab_com/index#pagination-response-headers | ||
| 396 | 396 | ||
| 397 | 397 | .. note:: | |
| 398 | 398 | Prior to python-gitlab 3.6.0 the argument ``as_list`` was used instead of | |
@@ -165,14 +165,14 @@ We recommend that you use `Credential helpers`_ to securely store your tokens. | |||
| 165 | 165 | * - ``private_token`` | |
| 166 | 166 | - Your user token. Login/password is not supported. Refer to `the | |
| 167 | 167 | official documentation | |
| 168 | - <https://docs.gitlab.com/ce/user/profile/personal_access_tokens.html>`__ | ||
| 168 | + <https://docs.gitlab.com/user/profile/personal_access_tokens>`__ | ||
| 169 | 169 | to learn how to obtain a token. | |
| 170 | 170 | * - ``oauth_token`` | |
| 171 | 171 | - An Oauth token for authentication. The Gitlab server must be configured | |
| 172 | 172 | to support this authentication method. | |
| 173 | 173 | * - ``job_token`` | |
| 174 | 174 | - Your job token. See `the official documentation | |
| 175 | - <https://docs.gitlab.com/ce/api/jobs.html#get-job-artifacts>`__ | ||
| 175 | + <https://docs.gitlab.com/api/jobs#get-job-artifacts>`__ | ||
| 176 | 176 | to learn how to obtain a token. | |
| 177 | 177 | * - ``api_version`` | |
| 178 | 178 | - GitLab API version to use. Only ``4`` is available since 1.5.0. | |
@@ -25,7 +25,7 @@ References | |||
| 25 | 25 | + :class:`gitlab.v4.objects.GroupAccessRequestManager` | |
| 26 | 26 | + :attr:`gitlab.v4.objects.Group.accessrequests` | |
| 27 | 27 | ||
| 28 | - * GitLab API: https://docs.gitlab.com/ce/api/access_requests.html | ||
| 28 | + * GitLab API: https://docs.gitlab.com/api/access_requests | ||
| 29 | 29 | ||
| 30 | 30 | Examples | |
| 31 | 31 | -------- | |
@@ -11,7 +11,7 @@ Reference | |||
| 11 | 11 | + :class:`gitlab.v4.objects.ApplicationAppearanceManager` | |
| 12 | 12 | + :attr:`gitlab.Gitlab.appearance` | |
| 13 | 13 | ||
| 14 | - * GitLab API: https://docs.gitlab.com/ce/api/appearance.html | ||
| 14 | + * GitLab API: https://docs.gitlab.com/api/appearance | ||
| 15 | 15 | ||
| 16 | 16 | Examples | |
| 17 | 17 | -------- | |
@@ -11,7 +11,7 @@ Reference | |||
| 11 | 11 | + :class:`gitlab.v4.objects.ApplicationManager` | |
| 12 | 12 | + :attr:`gitlab.Gitlab.applications` | |
| 13 | 13 | ||
| 14 | - * GitLab API: https://docs.gitlab.com/ce/api/applications.html | ||
| 14 | + * GitLab API: https://docs.gitlab.com/api/applications | ||
| 15 | 15 | ||
| 16 | 16 | Examples | |
| 17 | 17 | -------- | |
@@ -18,8 +18,8 @@ Reference | |||
| 18 | 18 | ||
| 19 | 19 | * GitLab API: | |
| 20 | 20 | ||
| 21 | - + https://docs.gitlab.com/ce/api/group_badges.html | ||
| 22 | - + https://docs.gitlab.com/ce/api/project_badges.html | ||
| 21 | + + https://docs.gitlab.com/api/group_badges | ||
| 22 | + + https://docs.gitlab.com/api/project_badges | ||
| 23 | 23 | ||
| 24 | 24 | Examples | |
| 25 | 25 | -------- | |
@@ -23,8 +23,8 @@ Reference | |||
| 23 | 23 | ||
| 24 | 24 | * GitLab API: | |
| 25 | 25 | ||
| 26 | - + https://docs.gitlab.com/ce/api/boards.html | ||
| 27 | - + https://docs.gitlab.com/ce/api/group_boards.html | ||
| 26 | + + https://docs.gitlab.com/api/boards | ||
| 27 | + + https://docs.gitlab.com/api/group_boards | ||
| 28 | 28 | ||
| 29 | 29 | Examples | |
| 30 | 30 | -------- | |
@@ -72,8 +72,8 @@ Reference | |||
| 72 | 72 | ||
| 73 | 73 | * GitLab API: | |
| 74 | 74 | ||
| 75 | - + https://docs.gitlab.com/ce/api/boards.html | ||
| 76 | - + https://docs.gitlab.com/ce/api/group_boards.html | ||
| 75 | + + https://docs.gitlab.com/api/boards | ||
| 76 | + + https://docs.gitlab.com/api/group_boards | ||
| 77 | 77 | ||
| 78 | 78 | Examples | |
| 79 | 79 | -------- | |
@@ -11,7 +11,7 @@ References | |||
| 11 | 11 | + :class:`gitlab.v4.objects.ProjectBranchManager` | |
| 12 | 12 | + :attr:`gitlab.v4.objects.Project.branches` | |
| 13 | 13 | ||
| 14 | - * GitLab API: https://docs.gitlab.com/ce/api/branches.html | ||
| 14 | + * GitLab API: https://docs.gitlab.com/api/branches | ||
| 15 | 15 | ||
| 16 | 16 | Examples | |
| 17 | 17 | -------- | |
@@ -17,7 +17,7 @@ References | |||
| 17 | 17 | + :class:`gitlab.v4.objects.BulkImportEntityManager` | |
| 18 | 18 | + :attr:`gitlab.v4.objects.BulkImport.entities` | |
| 19 | 19 | ||
| 20 | - * GitLab API: https://docs.gitlab.com/ee/api/bulk_imports.html | ||
| 20 | + * GitLab API: https://docs.gitlab.com/api/bulk_imports | ||
| 21 | 21 | ||
| 22 | 22 | Examples | |
| 23 | 23 | -------- | |
@@ -14,7 +14,7 @@ Reference | |||
| 14 | 14 | + :class:`gitlab.v4.objects.ProjectCiLintManager` | |
| 15 | 15 | + :attr:`gitlab.v4.objects.Project.ci_lint` | |
| 16 | 16 | ||
| 17 | - * GitLab API: https://docs.gitlab.com/ee/api/lint.html | ||
| 17 | + * GitLab API: https://docs.gitlab.com/api/lint | ||
| 18 | 18 | ||
| 19 | 19 | Examples | |
| 20 | 20 | --------- | |
0 commit comments