diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2020-04-05 23:43:34 +0200 |
---|---|---|
committer | Nejc Habjan <hab.nejc@gmail.com> | 2020-04-05 23:43:34 +0200 |
commit | 847da6063b4c63c8133e5e5b5b45e5b4f004bdc4 (patch) | |
tree | 439b9f59c766331bdd8da4d77e3415fb337acc91 | |
parent | 8c3d744ec6393ad536b565c94f120b3e26b6f3e8 (diff) | |
download | gitlab-feat/group-import-export.tar.gz |
chore: rename ExportMixin to DownloadMixinfeat/group-import-export
-rw-r--r-- | gitlab/mixins.py | 2 | ||||
-rw-r--r-- | gitlab/v4/objects.py | 4 |
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 |