def create(self, session, prepend_key=True):
    request = self._prepare_request(requires_id=True, prepend_key=prepend_key)
    headers = {'Client-ID': (self.client_id or str(uuid.uuid4())), 'X-PROJECT-ID': (self.project_id or session.get_project_id())}
    request.headers.update(headers)
    response = session.put(request.url, json=request.body, headers=request.headers)
    self._translate_response(response, has_body=False)
    return self
def create(self, session, prepend_key=True):
    request = self._prepare_request(requires_id=True, prepend_key=prepend_key)
    headers = {'Client-ID': (self.client_id or str(uuid.uuid4())), 'X-PROJECT-ID': (self.project_id or session.get_project_id())}
    request.headers.update(headers)
    response = session.put(request.url, json=request.body, headers=request.headers)
    self._translate_response(response, has_body=False)
    return self