Skip to content

Commit 41f141d

Browse files
author
Gauvain Pocentek
committed
[v4] Drop ProjectKeyManager.enable()
1 parent e789cee commit 41f141d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

gitlab/v4/objects.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -854,12 +854,6 @@ def enable(self, key_id):
854854
r = self.gitlab._raw_post(url)
855855
raise_error_from_response(r, GitlabProjectDeployKeyError, 201)
856856

857-
def disable(self, key_id):
858-
"""Disable a deploy key for a project."""
859-
url = '/projects/%s/deploy_keys/%s/disable' % (self.parent.id, key_id)
860-
r = self.gitlab._raw_delete(url)
861-
raise_error_from_response(r, GitlabProjectDeployKeyError, 200)
862-
863857

864858
class ProjectEvent(GitlabObject):
865859
_url = '/projects/%(project_id)s/events'

0 commit comments

Comments
 (0)