summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
authorMax Wittig <max.wittig95@gmail.com>2020-03-01 23:24:19 +0100
committerGitHub <noreply@github.com>2020-03-01 23:24:19 +0100
commite5afb554bf4bcc28555bde4030f50558f175a53b (patch)
treece89fa6b548a89e1dcceeef5711f714e7ca1f3b9 /gitlab/v4/objects.py
parentfbcc8204a7f69405ec9a9a32b1e26256c7831e10 (diff)
parent4e12356d6da58c9ef3d8bf9ae67e8aef8fafac0a (diff)
downloadgitlab-e5afb554bf4bcc28555bde4030f50558f175a53b.tar.gz
Merge pull request #1034 from filipowm/feat/api-oauth-applications
feat(api): add support for GitLab OAuth Applications using Applications API
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 92650b1..a349aff 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -5141,3 +5141,14 @@ class GeoNodeManager(RetrieveMixin, UpdateMixin, DeleteMixin, RESTManager):
list: The list of failures
"""
return self.gitlab.http_list("/geo_nodes/current/failures", **kwargs)
+
+
+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",))