def delete(self, key_id): """ Deletes the specified deploy key. """ url = repository_deploy_key_url(self._namespace, self._repository_name, key_id) return self._dispatcher.dispatch(url, method='DELETE', access_token=self._access_token, access_token_secret=self._access_token_secret)
def get(self, key_id): """ Returns the contents of the specified deploy key. """ url = repository_deploy_key_url(self._namespace, self._repository_name, key_id) return self._dispatcher.dispatch(url, access_token=self._access_token, access_token_secret=self._access_token_secret)