File: settings.rst

package info (click to toggle)
python-gitlab 1%3A8.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,884 kB
  • sloc: python: 25,823; makefile: 171; ruby: 27; javascript: 3
file content (26 lines) | stat: -rw-r--r-- 409 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
########
Settings
########

Reference
---------

* v4 API:

  + :class:`gitlab.v4.objects.ApplicationSettings`
  + :class:`gitlab.v4.objects.ApplicationSettingsManager`
  + :attr:`gitlab.Gitlab.settings`

* GitLab API: https://docs.gitlab.com/api/settings

Examples
--------

Get the settings::

    settings = gl.settings.get()

Update the settings::

    settings.signin_enabled = False
    settings.save()