@@ -307,23 +307,6 @@ class BroadcastMessageManager(BaseManager):
307
307
obj_cls = BroadcastMessage
308
308
309
309
310
- class Key (GitlabObject ):
311
- _url = '/deploy_keys'
312
- canGet = 'from_list'
313
- canCreate = False
314
- canUpdate = False
315
- canDelete = False
316
-
317
- def __init__ (self , * args , ** kwargs ):
318
- warnings .warn ("`Key` is deprecated, use `DeployKey` instead" ,
319
- DeprecationWarning )
320
- super (Key , self ).__init__ (* args , ** kwargs )
321
-
322
-
323
- class KeyManager (BaseManager ):
324
- obj_cls = Key
325
-
326
-
327
310
class DeployKey (GitlabObject ):
328
311
_url = '/deploy_keys'
329
312
canGet = 'from_list'
@@ -2047,11 +2030,6 @@ def archive(self, **kwargs):
2047
2030
raise_error_from_response (r , GitlabCreateError , 201 )
2048
2031
return Project (self .gitlab , r .json ()) if r .status_code == 201 else self
2049
2032
2050
- def archive_ (self , ** kwargs ):
2051
- warnings .warn ("`archive_()` is deprecated, use `archive()` instead" ,
2052
- DeprecationWarning )
2053
- return self .archive (** kwargs )
2054
-
2055
2033
def unarchive (self , ** kwargs ):
2056
2034
"""Unarchive a project.
2057
2035
@@ -2067,12 +2045,6 @@ def unarchive(self, **kwargs):
2067
2045
raise_error_from_response (r , GitlabCreateError , 201 )
2068
2046
return Project (self .gitlab , r .json ()) if r .status_code == 201 else self
2069
2047
2070
- def unarchive_ (self , ** kwargs ):
2071
- warnings .warn ("`unarchive_()` is deprecated, "
2072
- "use `unarchive()` instead" ,
2073
- DeprecationWarning )
2074
- return self .unarchive (** kwargs )
2075
-
2076
2048
def share (self , group_id , group_access , ** kwargs ):
2077
2049
"""Share the project with a group.
2078
2050
0 commit comments