From a5a48ad08577be70c6ca511d3b4803624e5c2043 Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Sun, 7 Feb 2021 00:29:59 +0100 Subject: refactor(v4): split objects and managers per API resource --- gitlab/v4/objects/applications.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gitlab/v4/objects/applications.py (limited to 'gitlab/v4/objects/applications.py') diff --git a/gitlab/v4/objects/applications.py b/gitlab/v4/objects/applications.py new file mode 100644 index 0000000..3fa1983 --- /dev/null +++ b/gitlab/v4/objects/applications.py @@ -0,0 +1,13 @@ +from gitlab.base import * # noqa +from gitlab.mixins import * # noqa + + +class Application(ObjectDeleteMixin, RESTObject): + _url = "/applications" + _short_print_attr = "name" + + +class ApplicationManager(ListMixin, CreateMixin, DeleteMixin, RESTManager): + _path = "/applications" + _obj_cls = Application + _create_attrs = (("name", "redirect_uri", "scopes"), ("confidential",)) -- cgit v1.2.1