diff options
author | Karol Ossowski <karol.ossowski@gmail.com> | 2019-04-24 11:44:21 +0200 |
---|---|---|
committer | Karol Ossowski <karol.ossowski@gmail.com> | 2019-05-01 22:45:39 +0200 |
commit | 0b79ce9c32cbc0bf49d877e123e49e2eb199b8af (patch) | |
tree | 78e0549b6780ac68e9c60a78b3aa787e5dddb49c /gitlab/v4/objects.py | |
parent | 340cd370000bbb48b81a5b7c1a7bf9f33997cef9 (diff) | |
download | gitlab-0b79ce9c32cbc0bf49d877e123e49e2eb199b8af.tar.gz |
register cli action for delete_in_bulk
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r-- | gitlab/v4/objects.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index f494cc1..18b6203 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -1196,6 +1196,7 @@ class ProjectRegistryTagManager(DeleteMixin, RetrieveMixin, RESTManager): _from_parent_attrs = {'project_id': 'project_id', 'repository_id': 'id'} _path = '/projects/%(project_id)s/registry/repositories/%(repository_id)s/tags' + @cli.register_custom_action('ProjectRegistryTagManager', optional=('name_regex', 'keep_n', 'older_than')) @exc.on_http_error(exc.GitlabDeleteError) def delete_in_bulk(self, name_regex='.*', **kwargs): """Delete Tag by name or in bulk |