|
15 | 15 | # You should have received a copy of the GNU Lesser General Public License |
16 | 16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 |
|
18 | | -import warnings |
19 | 18 | from types import ModuleType |
20 | 19 | from typing import ( |
21 | 20 | Any, |
@@ -927,50 +926,3 @@ def render(self, link_url: str, image_url: str, **kwargs: Any) -> Dict[str, Any] |
927 | 926 | if TYPE_CHECKING: |
928 | 927 | assert not isinstance(result, requests.Response) |
929 | 928 | return result |
930 | | - |
931 | | - |
932 | | -class MemberAllMixin(_RestManagerBase): |
933 | | - """This mixin is deprecated.""" |
934 | | - |
935 | | - _computed_path: Optional[str] |
936 | | - _from_parent_attrs: Dict[str, Any] |
937 | | - _obj_cls: Optional[Type[base.RESTObject]] |
938 | | - _parent: Optional[base.RESTObject] |
939 | | - _parent_attrs: Dict[str, Any] |
940 | | - _path: Optional[str] |
941 | | - gitlab: gitlab.Gitlab |
942 | | - |
943 | | - @cli.register_custom_action(("GroupMemberManager", "ProjectMemberManager")) |
944 | | - @exc.on_http_error(exc.GitlabListError) |
945 | | - def all(self, **kwargs: Any) -> List[base.RESTObject]: |
946 | | - """List all the members, included inherited ones. |
947 | | -
|
948 | | - This Method is deprecated. |
949 | | -
|
950 | | - Args: |
951 | | - all (bool): If True, return all the items, without pagination |
952 | | - per_page (int): Number of items to retrieve per request |
953 | | - page (int): ID of the page to return (starts with page 1) |
954 | | - as_list (bool): If set to False and no pagination option is |
955 | | - defined, return a generator instead of a list |
956 | | - **kwargs: Extra options to send to the server (e.g. sudo) |
957 | | -
|
958 | | - Raises: |
959 | | - GitlabAuthenticationError: If authentication is not correct |
960 | | - GitlabListError: If the list could not be retrieved |
961 | | -
|
962 | | - Returns: |
963 | | - RESTObjectList: The list of members |
964 | | - """ |
965 | | - |
966 | | - warnings.warn( |
967 | | - "The all() method for this object is deprecated " |
968 | | - "and will be removed in a future version. Use .members_all.list(all=True), instead.", |
969 | | - DeprecationWarning, |
970 | | - ) |
971 | | - path = "%s/all" % self.path |
972 | | - |
973 | | - if TYPE_CHECKING: |
974 | | - assert self._obj_cls is not None |
975 | | - obj = self.gitlab.http_list(path, **kwargs) |
976 | | - return [self._obj_cls(self, item) for item in obj] |
0 commit comments