File tree 3 files changed +31
-0
lines changed
3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -19,4 +19,5 @@ API objects manipulation
19
19
gl_objects/milestones
20
20
gl_objects/projects
21
21
gl_objects/runners
22
+ gl_objects/settings
22
23
gl_objects/users
Original file line number Diff line number Diff line change
1
+ # get
2
+ settings = gl .settings .get ()
3
+ # end get
4
+
5
+ # update
6
+ s .signin_enabled = False
7
+ s .save ()
8
+ # end update
Original file line number Diff line number Diff line change
1
+ ########
2
+ Settings
3
+ ########
4
+
5
+ Use :class: `~gitlab.objects.ApplicationSettings ` objects to manipulate Gitlab
6
+ settings. The :attr: `gitlab.Gitlab.settings ` manager object provides helper
7
+ functions.
8
+
9
+ Examples
10
+ --------
11
+
12
+ Get the settings:
13
+
14
+ .. literalinclude :: settings.py
15
+ :start-after: # get
16
+ :end-before: # end get
17
+
18
+ Update the settings:
19
+
20
+ .. literalinclude :: settings.py
21
+ :start-after: # update
22
+ :end-before: # end update
You can’t perform that action at this time.
0 commit comments