summaryrefslogtreecommitdiff
path: root/gitlab/v3/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/v3/objects.py')
-rw-r--r--gitlab/v3/objects.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/gitlab/v3/objects.py b/gitlab/v3/objects.py
index ebe0785..ab81521 100644
--- a/gitlab/v3/objects.py
+++ b/gitlab/v3/objects.py
@@ -19,7 +19,6 @@ from __future__ import print_function
from __future__ import absolute_import
import base64
import json
-import warnings
import six
from six.moves import urllib
@@ -295,23 +294,6 @@ class BroadcastMessageManager(BaseManager):
obj_cls = BroadcastMessage
-class Key(GitlabObject):
- _url = '/deploy_keys'
- canGet = 'from_list'
- canCreate = False
- canUpdate = False
- canDelete = False
-
- def __init__(self, *args, **kwargs):
- warnings.warn("`Key` is deprecated, use `DeployKey` instead",
- DeprecationWarning)
- super(Key, self).__init__(*args, **kwargs)
-
-
-class KeyManager(BaseManager):
- obj_cls = Key
-
-
class DeployKey(GitlabObject):
_url = '/deploy_keys'
canGet = 'from_list'
@@ -2043,11 +2025,6 @@ class Project(GitlabObject):
raise_error_from_response(r, GitlabCreateError, 201)
return Project(self.gitlab, r.json()) if r.status_code == 201 else self
- def archive_(self, **kwargs):
- warnings.warn("`archive_()` is deprecated, use `archive()` instead",
- DeprecationWarning)
- return self.archive(**kwargs)
-
def unarchive(self, **kwargs):
"""Unarchive a project.
@@ -2063,12 +2040,6 @@ class Project(GitlabObject):
raise_error_from_response(r, GitlabCreateError, 201)
return Project(self.gitlab, r.json()) if r.status_code == 201 else self
- def unarchive_(self, **kwargs):
- warnings.warn("`unarchive_()` is deprecated, "
- "use `unarchive()` instead",
- DeprecationWarning)
- return self.unarchive(**kwargs)
-
def share(self, group_id, group_access, **kwargs):
"""Share the project with a group.