From 4c4ac5ca1e5cabc4ea4b12734a7b091bc4c224b5 Mon Sep 17 00:00:00 2001 From: Max Wittig Date: Tue, 21 Jan 2020 18:46:27 +0100 Subject: feat: add appearance API --- docs/api-objects.rst | 1 + docs/gl_objects/appearance.rst | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 docs/gl_objects/appearance.rst (limited to 'docs') diff --git a/docs/api-objects.rst b/docs/api-objects.rst index 4767c48..569435c 100644 --- a/docs/api-objects.rst +++ b/docs/api-objects.rst @@ -6,6 +6,7 @@ API examples :maxdepth: 1 gl_objects/access_requests + gl_objects/appearance gl_objects/emojis gl_objects/badges gl_objects/branches diff --git a/docs/gl_objects/appearance.rst b/docs/gl_objects/appearance.rst new file mode 100644 index 0000000..0c05268 --- /dev/null +++ b/docs/gl_objects/appearance.rst @@ -0,0 +1,26 @@ +########## +Appearance +########## + +Reference +--------- + +* v4 API: + + + :class:`gitlab.v4.objects.ApplicationAppearance` + + :class:`gitlab.v4.objects.ApplicationAppearanceManager` + + :attr:`gitlab.Gitlab.appearance` + +* GitLab API: https://docs.gitlab.com/ce/api/appearance.html + +Examples +-------- + +Get the appearance:: + + appearance = gl.appearance.get() + +Update the appearance:: + + appearance.title = "Test" + appearance.save() -- cgit v1.2.1