Returns Microsoft O365/AD plan with given id :rtype: PlanDetails
(self)
| 286 | return self.object_id == other.object_id |
| 287 | |
| 288 | def get_details(self): |
| 289 | """ Returns Microsoft O365/AD plan with given id |
| 290 | |
| 291 | :rtype: PlanDetails |
| 292 | """ |
| 293 | |
| 294 | if not self.object_id: |
| 295 | raise RuntimeError('Plan is not initialized correctly. Id is missing...') |
| 296 | |
| 297 | url = self.build_url( |
| 298 | self._endpoints.get('get_details').format(id=self.object_id)) |
| 299 | |
| 300 | response = self.con.get(url) |
| 301 | |
| 302 | if not response: |
| 303 | return None |
| 304 | |
| 305 | data = response.json() |
| 306 | |
| 307 | return self.task_details_constructor(parent=self, |
| 308 | **{self._cloud_data_key: data}, ) |
| 309 | |
| 310 | def update(self, **kwargs): |
| 311 | """ Updates this task |