MCPcopy Create free account
hub / github.com/O365/python-o365 / get_details

Method get_details

O365/planner.py:288–308  ·  view source on GitHub ↗

Returns Microsoft O365/AD plan with given id :rtype: PlanDetails

(self)

Source from the content-addressed store, hash-verified

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

Callers 1

setup_classMethod · 0.45

Calls 3

build_urlMethod · 0.80
jsonMethod · 0.80
getMethod · 0.45

Tested by 1

setup_classMethod · 0.36