Updates this drive with data from the server :return: Success / Failure :rtype: bool
(self)
| 1731 | return File |
| 1732 | |
| 1733 | def refresh(self): |
| 1734 | """ Updates this drive with data from the server |
| 1735 | |
| 1736 | :return: Success / Failure |
| 1737 | :rtype: bool |
| 1738 | """ |
| 1739 | |
| 1740 | if self.object_id is None: |
| 1741 | url = self.build_url(self._endpoints.get('default_drive')) |
| 1742 | else: |
| 1743 | url = self.build_url( |
| 1744 | self._endpoints.get('get_drive').format(id=self.object_id)) |
| 1745 | |
| 1746 | response = self.con.get(url) |
| 1747 | if not response: |
| 1748 | return False |
| 1749 | |
| 1750 | drive = response.json() |
| 1751 | |
| 1752 | self._update_data({self._cloud_data_key: drive}) |
| 1753 | return True |
| 1754 | |
| 1755 | def search(self, search_text, limit=None, *, query=None, order_by=None, |
| 1756 | batch=None): |
nothing calls this directly
no test coverage detected