Skip to content

Commit 9fcd962

Browse files
authored
Merge pull request #1288 from python-gitlab/refactor/split-objects
refactor(v4): split objects and managers per API resource
2 parents 76e6f87 + f05c287 commit 9fcd962

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+6715
-5850
lines changed

gitlab/base.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
import importlib
1919

2020

21+
__all__ = [
22+
"RESTObject",
23+
"RESTObjectList",
24+
"RESTManager",
25+
]
26+
27+
2128
class RESTObject(object):
2229
"""Represents an object built from server data.
2330

gitlab/mixins.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,31 @@
2323
from gitlab import utils
2424

2525

26+
__all__ = [
27+
"GetMixin",
28+
"GetWithoutIdMixin",
29+
"RefreshMixin",
30+
"ListMixin",
31+
"RetrieveMixin",
32+
"CreateMixin",
33+
"UpdateMixin",
34+
"SetMixin",
35+
"DeleteMixin",
36+
"CRUDMixin",
37+
"NoUpdateMixin",
38+
"SaveMixin",
39+
"ObjectDeleteMixin",
40+
"UserAgentDetailMixin",
41+
"AccessRequestMixin",
42+
"DownloadMixin",
43+
"SubscribableMixin",
44+
"TodoMixin",
45+
"TimeTrackingMixin",
46+
"ParticipantsMixin",
47+
"BadgeRenderMixin",
48+
]
49+
50+
2651
class GetMixin(object):
2752
@exc.on_http_error(exc.GitlabGetError)
2853
def get(self, id, lazy=False, **kwargs):

0 commit comments

Comments
 (0)