diff options
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r-- | gitlab/objects.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py index 60ca43a..7c76d53 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -747,6 +747,18 @@ class IssueManager(BaseManager): obj_cls = Issue +class License(GitlabObject): + _url = '/licenses' + canDelete = False + canUpdate = False + canCreate = False + idAttr = 'key' + + +class LicenseManager(BaseManager): + obj_cls = License + + class ProjectBranch(GitlabObject): _url = '/projects/%(project_id)s/repository/branches' _constructorTypes = {'author': 'User', "committer": "User"} |