diff options
| author | Gauvain Pocentek <gauvain@pocentek.net> | 2013-03-24 11:30:17 +0100 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain@pocentek.net> | 2013-03-24 11:30:17 +0100 |
| commit | 1e3061c826a643204cef425758996d01d3b40f74 (patch) | |
| tree | c2fc694d9855e3887e9714f70f65dd130ec12710 /gitlab.py | |
| parent | 42bef0aa598af1517810813d1bf7e10cac121690 (diff) | |
| download | gitlab-1e3061c826a643204cef425758996d01d3b40f74.tar.gz | |
add support for project deploy keys
Diffstat (limited to 'gitlab.py')
| -rw-r--r-- | gitlab.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -485,6 +485,7 @@ class ProjectBranch(GitlabObject): def unprotect(self): self.protect(False) + class ProjectCommit(GitlabObject): _url = '/projects/%(project_id)d/repository/commits' canGet = False @@ -493,6 +494,11 @@ class ProjectCommit(GitlabObject): canCreate = False +class ProjectKey(GitlabObject): + _url = '/projects/%(project_id)d/keys' + canUpdate = False + + class ProjectHook(GitlabObject): _url = '/projects/%(project_id)d/hooks' @@ -602,6 +608,11 @@ class Project(GitlabObject): project_id=self.id, **kwargs) + def Key(self, id=None, **kwargs): + return self._getListOrObject(ProjectKey, id, + project_id=self.id, + **kwargs) + def Issue(self, id=None, **kwargs): return self._getListOrObject(ProjectIssue, id, project_id=self.id, |
