summaryrefslogtreecommitdiff
path: root/docs/gl_objects/features.rst
blob: 9f5e685a674fe7c2d27e218dd987618e593ee5f5 (plain)
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
27
28
29
30
##############
Features flags
##############

Reference
---------

* v4 API:

  + :class:`gitlab.v4.objects.Feature`
  + :class:`gitlab.v4.objects.FeatureManager`
  + :attr:`gitlab.Gitlab.features`

* GitLab API: https://docs.gitlab.com/ce/api/features.html

Examples
--------

List features::

    features = gl.features.list()

Create or set a feature::

    feature = gl.features.set(feature_name, True)
    feature = gl.features.set(feature_name, 30)

Delete a feature::

    feature.delete()