jnpr/space/rest.py
def delete(self, delete_url):
        """Performs an HTTP DELETE on the given url. Acts as a wrapper over
        requests.delete() function.

        :param str url: URL for performing DELETE

        :returns:  The response object (`requests.Response <http://docs.python-requests.org/en/latest/api/#requests.Response />`_)
                   returned by the POST request.
        """
        req_url = self.space_url + delete_url
        self._logger.debug("DELETE %s", req_url)
        if self._use_session:
            resp = self._connection.get_session().delete(req_url, verify=False)
        else:
            if self.cert is not None:
                resp = requests.delete(req_url, cert=self.cert, verify=False)
            else:
                resp = requests.delete(req_url,
                                       auth=(self.space_user, self.space_passwd),
                                       verify=False)
        self._logger.debug(resp)
        self._logger.debug(resp.headers)
        self._logger.debug(resp.cookies)
        self._logger.debug(resp.text)
        self._log_time('DELETE', delete_url, resp)
        return resp
Performs an HTTP DELETE on the given url. Acts as a wrapper over
        requests.delete() function.

        :param str url: URL for performing DELETE

        :returns:  The response object (`requests.Response <http://docs.python-requests.org/en/latest/api/#requests.Response />`_)
                   returned by the POST request.
        
Performs an HTTP DELETE on the given url. Acts as a wrapper over
requests.delete() function.
Performs an HTTP DELETE on the given url . Acts as a wrapper over requests . delete () function .
def delete(self, delete_url):
        req_url = self.space_url + delete_url
        self._logger.debug("DELETE %s", req_url)
        if self._use_session:
            resp = self._connection.get_session().delete(req_url, verify=False)
        else:
            if self.cert is not None:
                resp = requests.delete(req_url, cert=self.cert, verify=False)
            else:
                resp = requests.delete(req_url,
                                       auth=(self.space_user, self.space_passwd),
                                       verify=False)
        self._logger.debug(resp)
        self._logger.debug(resp.headers)
        self._logger.debug(resp.cookies)
        self._logger.debug(resp.text)
        self._log_time('DELETE', delete_url, resp)
        return resp
def delete ( self , delete_url ) : req_url = self . space_url + delete_url self . _logger . debug ( "DELETE %s" , req_url ) if self . _use_session : resp = self . _connection . get_session ( ) . delete ( req_url , verify = False ) else : if self . cert is not None : resp = requests . delete ( req_url , cert = self . cert , verify = False ) else : resp = requests . delete ( req_url , auth = ( self . space_user , self . space_passwd ) , verify = False ) self . _logger . debug ( resp ) self . _logger . debug ( resp . headers ) self . _logger . debug ( resp . cookies ) self . _logger . debug ( resp . text ) self . _log_time ( 'DELETE' , delete_url , resp ) return resp
Performs an HTTP DELETE on the given url.
Performs an HTTP DELETE on the given url .
"""Performs an HTTP DELETE on the given url. Acts as a wrapper over
        requests.delete() function.

        :param str url: URL for performing DELETE

        :returns:  The response object (`requests.Response <http://docs.python-requests.org/en/latest/api/#requests.Response />`_)
                   returned by the POST request.
        """
The response object (`requests.Response `_)
returned by the POST request.
The response object ( ` requests . Response ` _ ) returned by the POST request .
self
delete_url
url
URL for performing DELETE
URL for performing DELETE