diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-05-23 21:53:34 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-05-23 21:53:34 +0200 |
commit | af70ec3e2ff17385c4b72fe4d317313e94f5cb0b (patch) | |
tree | bbfbdf9475a1d88f0c1162f76b82b827b7a667de | |
parent | 17dffdffdc638111d0652526fcaf17f373ed1ee3 (diff) | |
download | gitlab-af70ec3e2ff17385c4b72fe4d317313e94f5cb0b.tar.gz |
[v4] projects.search() has been removed
-rw-r--r-- | gitlab/v4/objects.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 0bfacc5..3cf22c0 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -2168,35 +2168,6 @@ class TodoManager(BaseManager): class ProjectManager(BaseManager): obj_cls = Project - def search(self, query, **kwargs): - """Search projects by name. - - API v3 only. - - .. note:: - - The search is only performed on the project name (not on the - namespace or the description). To perform a smarter search, use the - ``search`` argument of the ``list()`` method: - - .. code-block:: python - - gl.projects.list(search=your_search_string) - - Args: - query (str): The query string to send to GitLab for the search. - all (bool): If True, return all the items, without pagination - **kwargs: Additional arguments to send to GitLab. - - Returns: - list(gitlab.Gitlab.Project): A list of matching projects. - """ - if self.gitlab.api_version == '4': - raise NotImplementedError("Not supported by v4 API") - - return self.gitlab._raw_list("/projects/search/" + query, Project, - **kwargs) - def all(self, **kwargs): """List all the projects (need admin rights). |