def create(self, label, contents):
   """ Creates a new deploy key. """
   url = repository_deploy_keys_url(self._namespace, self._repository_name)
   return self._dispatcher.dispatch(url, method='POST', access_token=self._access_token,
                                    access_token_secret=self._access_token_secret,
                                    label=label, key=contents)
 def all(self):
   """ Returns a list of the deploy keys found under the repository. """
   url = repository_deploy_keys_url(self._namespace, self._repository_name)
   return self._dispatcher.dispatch(url, access_token=self._access_token,
                                         access_token_secret=self._access_token_secret)