jnpr/space/rest.py
def put(self, put_url, headers, body):
        """Performs an HTTP PUT on the given url. Acts as a wrapper over
        requests.put() function.

        :param str url: URL for performing PUT
        :param dict headers: A dict with the headers that need to be sent with
            the PUT request. This is a mandatory parameter.
        :param str body: A string that forms the body of the PUT request.
            This is a mandatory parameter.

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

        :param str url: URL for performing PUT
        :param dict headers: A dict with the headers that need to be sent with
            the PUT request. This is a mandatory parameter.
        :param str body: A string that forms the body of the PUT request.
            This is a mandatory parameter.

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

        :param str url: URL for performing PUT
        :param dict headers: A dict with the headers that need to be sent with
            the PUT request. This is a mandatory parameter.
        :param str body: A string that forms the body of the PUT request.
            This is a mandatory parameter.

        :returns:  The response object (`requests.Response <http://docs.python-requests.org/en/latest/api/#requests.Response />`_)
                   returned by the PUT request.
        """
The response object (`requests.Response `_)
returned by the PUT request.
The response object ( ` requests . Response ` _ ) returned by the PUT request .
self
put_url
headers
A dict with the headers that need to be sent with
the PUT request. This is a mandatory parameter.
A dict with the headers that need to be sent with the PUT request . This is a mandatory parameter .
body
A string that forms the body of the PUT request.
This is a mandatory parameter.
A string that forms the body of the PUT request . This is a mandatory parameter .
url
URL for performing PUT
URL for performing PUT