def put(self, url):
        """Sends this `Resource` instance to the service with a
        ``PUT`` request to the given URL."""
        response = self.http_request(url, 'PUT', self, {'Content-Type': 'application/xml; charset=utf-8'})
        if response.status != 200:
            self.raise_http_error(response)

        response_xml = response.read()
        logging.getLogger('recurly.http.response').debug(response_xml)
        self.update_from_element(ElementTree.fromstring(response_xml))
def put ( self , url ) : response = self . http_request ( url , 'PUT' , self , { 'Content-Type' : 'application/xml; charset=utf-8' } ) if response . status != 200 : self . raise_http_error ( response ) response_xml = response . read ( ) logging . getLogger ( 'recurly.http.response' ) . debug ( response_xml ) self . update_from_element ( ElementTree . fromstring ( response_xml ) )
Sends this `Resource` instance to the service with a
        ``PUT`` request to the given URL.