def refresh(self):
if self.object_id is None:<EOL><INDENT>url = self.build_url(self._endpoints.get('<STR_LIT>'))<EOL><DEDENT>else:<EOL><INDENT>url = self.build_url(<EOL>self._endpoints.get('<STR_LIT>').format(id=self.object_id))<EOL><DEDENT>response = self.con.get(url)<EOL>if not response:<EOL><INDENT>return False<EOL><DEDENT>drive = response.json()<EOL>self._update_data({self._cloud_data_key: drive})<EOL>return True<EOL>
Updates this drive with data from the server

        :return: Success / Failure
        :rtype: bool