File tree Expand file tree Collapse file tree 5 files changed +605
-8
lines changed Expand file tree Collapse file tree 5 files changed +605
-8
lines changed Original file line number Diff line number Diff line change 17
17
from ms_graph .drive_items import DriveItems
18
18
from ms_graph .search import Search
19
19
from ms_graph .personal_contacts import PersonalContacts
20
+ from ms_graph .mail import Mail
20
21
21
22
22
23
class MicrosoftGraphClient ():
@@ -397,7 +398,7 @@ def notes(self) -> Notes:
397
398
398
399
### Returns
399
400
---
400
- Groups :
401
+ Notes :
401
402
The `Notes` services Object.
402
403
"""
403
404
@@ -411,7 +412,7 @@ def search(self) -> Search:
411
412
412
413
### Returns
413
414
---
414
- Groups :
415
+ Search :
415
416
The `Search` services Object.
416
417
"""
417
418
@@ -425,11 +426,25 @@ def personal_contacts(self) -> PersonalContacts:
425
426
426
427
### Returns
427
428
---
428
- Groups :
429
+ PersonalContacts :
429
430
The `PersonalContacts` services Object.
430
431
"""
431
432
432
433
# Grab the `PersonalContacts` Object for the session.
433
434
personal_contacts_object : PersonalContacts = PersonalContacts (session = self .graph_session )
434
435
435
436
return personal_contacts_object
437
+
438
+ def mail (self ) -> Mail :
439
+ """Used to access the Mail Services and metadata.
440
+
441
+ ### Returns
442
+ ---
443
+ Mail:
444
+ The `Mail` services Object.
445
+ """
446
+
447
+ # Grab the `Mail` Object for the session.
448
+ mail_service : Mail = Mail (session = self .graph_session )
449
+
450
+ return mail_service
You can’t perform that action at this time.
0 commit comments