summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2017-05-23 15:37:43 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2017-05-23 15:38:41 +0200
commitce3dd0d1ac3fbed3cf671720e273470fb1ccdbc6 (patch)
treec98922592043c7b064e5c3a4f4ec7155087ad70c /gitlab/objects.py
parent7def297fdf1e0d6926669a4a51cdb8519da1dca1 (diff)
downloadgitlab-ce3dd0d1ac3fbed3cf671720e273470fb1ccdbc6.tar.gz
Add 'search' attribute to projects.list()
projects.search() has been deprecated by Gitlab
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index 98c1a32..0def183 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -2276,6 +2276,7 @@ class ProjectRunnerManager(BaseManager):
class Project(GitlabObject):
_url = '/projects'
_constructorTypes = {'owner': 'User', 'namespace': 'Group'}
+ optionalListAttrs = ['search']
requiredCreateAttrs = ['name']
optionalCreateAttrs = ['path', 'namespace_id', 'description',
'issues_enabled', 'merge_requests_enabled',