Return the MailboxSettings. :rtype: mailboxsettings
(self)
| 1027 | ) |
| 1028 | |
| 1029 | def get_settings(self): |
| 1030 | """Return the MailboxSettings. |
| 1031 | |
| 1032 | :rtype: mailboxsettings |
| 1033 | """ |
| 1034 | url = self.build_url(self._endpoints.get("settings")) |
| 1035 | params = {} |
| 1036 | |
| 1037 | response = self.con.get(url, params=params) |
| 1038 | |
| 1039 | if not response: |
| 1040 | return iter(()) |
| 1041 | |
| 1042 | data = response.json() |
| 1043 | |
| 1044 | return self.mailbox_settings_constructor( |
| 1045 | parent=self, **{self._cloud_data_key: data} |
| 1046 | ) |
| 1047 |
no test coverage detected