@@ -1776,7 +1776,9 @@ class Project(GitlabObject):
1776
1776
_constructorTypes = {'owner' :'User' ,'namespace' :'Group' }
1777
1777
optionalListAttrs = ['search' ]
1778
1778
requiredCreateAttrs = ['name' ]
1779
- optionalListAttrs = ['search' ]
1779
+ optionalListAttrs = ['search' ,'owned' ,'starred' ,'archived' ,
1780
+ 'visibility' ,'order_by' ,'sort' ,'simple' ,
1781
+ 'membership' ,'statistics' ]
1780
1782
optionalCreateAttrs = ['path' ,'namespace_id' ,'description' ,
1781
1783
'issues_enabled' ,'merge_requests_enabled' ,
1782
1784
'builds_enabled' ,'wiki_enabled' ,
@@ -2167,42 +2169,6 @@ def delete_all(self, **kwargs):
2167
2169
class ProjectManager (BaseManager ):
2168
2170
obj_cls = Project
2169
2171
2170
- def all (self ,** kwargs ):
2171
- """List all the projects (need admin rights).
2172
-
2173
- Args:
2174
- all (bool): If True, return all the items, without pagination
2175
- **kwargs: Additional arguments to send to GitLab.
2176
-
2177
- Returns:
2178
- list(gitlab.Gitlab.Project): The list of projects.
2179
- """
2180
- return self .gitlab ._raw_list ("/projects/all" ,Project ,** kwargs )
2181
-
2182
- def owned (self ,** kwargs ):
2183
- """List owned projects.
2184
-
2185
- Args:
2186
- all (bool): If True, return all the items, without pagination
2187
- **kwargs: Additional arguments to send to GitLab.
2188
-
2189
- Returns:
2190
- list(gitlab.Gitlab.Project): The list of owned projects.
2191
- """
2192
- return self .gitlab ._raw_list ("/projects/owned" ,Project ,** kwargs )
2193
-
2194
- def starred (self ,** kwargs ):
2195
- """List starred projects.
2196
-
2197
- Args:
2198
- all (bool): If True, return all the items, without pagination
2199
- **kwargs: Additional arguments to send to GitLab.
2200
-
2201
- Returns:
2202
- list(gitlab.Gitlab.Project): The list of starred projects.
2203
- """
2204
- return self .gitlab ._raw_list ("/projects/starred" ,Project ,** kwargs )
2205
-
2206
2172
2207
2173
class GroupProject (Project ):
2208
2174
_url = '/groups/%(group_id)s/projects'