summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2020-04-05 23:43:34 +0200
committerNejc Habjan <hab.nejc@gmail.com>2020-04-05 23:43:34 +0200
commit847da6063b4c63c8133e5e5b5b45e5b4f004bdc4 (patch)
tree439b9f59c766331bdd8da4d77e3415fb337acc91
parent8c3d744ec6393ad536b565c94f120b3e26b6f3e8 (diff)
downloadgitlab-feat/group-import-export.tar.gz
chore: rename ExportMixin to DownloadMixinfeat/group-import-export
-rw-r--r--gitlab/mixins.py2
-rw-r--r--gitlab/v4/objects.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/gitlab/mixins.py b/gitlab/mixins.py
index 3053427..9c00c32 100644
--- a/gitlab/mixins.py
+++ b/gitlab/mixins.py
@@ -443,7 +443,7 @@ class AccessRequestMixin(object):
self._update_attrs(server_data)
-class ExportMixin(object):
+class DownloadMixin(object):
@cli.register_custom_action(("GroupExport", "ProjectExport"))
@exc.on_http_error(exc.GitlabGetError)
def download(self, streamed=False, action=None, chunk_size=1024, **kwargs):
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 02e6981..09160c8 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -991,7 +991,7 @@ class GroupEpicManager(CRUDMixin, RESTManager):
_types = {"labels": types.ListAttribute}
-class GroupExport(ExportMixin, RESTObject):
+class GroupExport(DownloadMixin, RESTObject):
_id_attr = None
@@ -4147,7 +4147,7 @@ class ProjectWikiManager(CRUDMixin, RESTManager):
_list_filters = ("with_content",)
-class ProjectExport(ExportMixin, RefreshMixin, RESTObject):
+class ProjectExport(DownloadMixin, RefreshMixin, RESTObject):
_id_attr = None