summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/hook.py
blob: 94d35761b07a541338bcd61f5e841034bbac0f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from gitlab.base import *  # noqa
from gitlab.exceptions import *  # noqa
from gitlab.mixins import *  # noqa
from gitlab import types
from gitlab import utils


class Hook(ObjectDeleteMixin, RESTObject):
    _url = "/hooks"
    _short_print_attr = "url"


class HookManager(NoUpdateMixin, RESTManager):
    _path = "/hooks"
    _obj_cls = Hook
    _create_attrs = (("url",), tuple())