-
-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Outlook API new types & model updates
- Loading branch information
Showing
38 changed files
with
506 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
""" | ||
Create calendarPermission | ||
Demonstrates how to share my calendar with another user | ||
https://learn.microsoft.com/en-us/graph/api/calendar-post-calendarpermissions?view=graph-rest-1.0 | ||
""" | ||
from office365.graph_client import GraphClient | ||
from office365.outlook.calendar.role_type import CalendarRoleType | ||
from tests.graph_case import acquire_token_by_username_password | ||
|
||
client = GraphClient(acquire_token_by_username_password) | ||
my_cal = client.me.calendar | ||
cal_perm = my_cal.calendar_permissions.add("[email protected]", CalendarRoleType.read).execute_query() | ||
print(cal_perm) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ def __init__(self): | |
pass | ||
|
||
unknown = 0 | ||
|
||
skypeForBusiness = 1 | ||
|
||
skypeForConsumer = 2 | ||
|
||
teamsForBusiness = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from datetime import datetime | ||
|
||
from office365.runtime.client_value import ClientValue | ||
|
||
|
||
class UsageDetails(ClientValue): | ||
"""Complex type containing properties of Used items. Information on when the resource was last accessed (viewed) | ||
or modified (edited) by the user.""" | ||
|
||
def __init__(self, last_accessed_datetime=None, last_modified_datetime=None): | ||
""" | ||
:param datetime.datetime last_accessed_datetime: The date and time the resource was last accessed by the user. | ||
:param datetime.datetime last_modified_datetime: The date and time the resource was last modified by the user. | ||
""" | ||
self.lastAccessedDateTime = last_accessed_datetime | ||
self.lastModifiedDateTime = last_modified_datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from office365.entity import Entity | ||
|
||
|
||
class DeviceCompliancePolicy(Entity): | ||
"""This is the base class for Compliance policy. Compliance policies are platform specific and individual | ||
per-platform compliance policies inherit from here""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from office365.entity import Entity | ||
|
||
|
||
class DeviceCompliancePolicyState(Entity): | ||
"""Device Compliance Policy State for a given device""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from office365.entity import Entity | ||
|
||
|
||
class DeviceManagementReports(Entity): | ||
"""Device management reports entity""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.