#NEWLINE# def _post( self , url , json , response_key = None , return_raw = False ) : #NEWLINE# #INDENT# "Create an object.\n\n        :param url: a partial URL, e.g., '/servers'\n        :param json: data that will be encoded as JSON and passed in POST\n            request (GET will be sent by default)\n        :param response_key: the key to be looked up in response dictionary,\n            e.g., 'server'. If response_key is None - all response body\n            will be used.\n        :param return_raw: flag to force returning raw JSON instead of\n            Python object of self.resource_class\n        " #NEWLINE# body = self . client . post ( url , json = json ) . json ( ) #NEWLINE# data = ( body [ response_key ] if ( response_key is not None ) else body ) #NEWLINE# if return_raw : #NEWLINE# #INDENT# return data #NEWLINE# #UNINDENT# return self . resource_class ( self , data )