Skip to content

Commit 1a2e6d6

Browse files
committed
new types & methods for Outlook API
1 parent d463689 commit 1a2e6d6

File tree

21 files changed

+467
-101
lines changed

21 files changed

+467
-101
lines changed

examples/onedrive/workbook/populate_template.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@
1111
test_client_id, test_username, test_password
1212
)
1313

14-
local_path = "../../data/templates/Simple invoice that calculates total.xlsx"
14+
# local_path = "../../data/templates/Simple invoice that calculates total.xlsx"
15+
local_path = "../../data/Financial Sample.xlsx"
1516
excel_file = client.me.drive.root.upload_file(local_path).execute_query()
17+
print(excel_file.web_url)

examples/onedrive/workbook/read_workbook.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
from tests import (
77
test_client_id,
88
test_password,
9-
test_team_site_url,
9+
test_site_url,
1010
test_tenant,
1111
test_username,
1212
)
1313

14-
file_abs_url = "{0}/Shared Documents/Financial Sample.xlsx".format(test_team_site_url)
14+
file_abs_url = "{0}/Shared Documents/Financial Sample.xlsx".format(test_site_url)
1515

1616
client = GraphClient(tenant=test_tenant).with_username_and_password(
1717
test_client_id, test_username, test_password

generator/import_metadata.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ def export_to_file(path, content):
2626
"--endpoint",
2727
dest="endpoint",
2828
help="Import metadata endpoint",
29-
default="sharepoint",
29+
default="graph",
3030
)
3131
parser.add_argument(
3232
"-p",
3333
"--path",
3434
dest="path",
35-
default="./metadata/SharePoint.xml",
35+
default="./metadata/Graph.xml",
3636
help="Import metadata endpoint",
3737
)
3838

generator/metadata/Graph.xml

+6-63
Original file line numberDiff line numberDiff line change
@@ -35884,6 +35884,9 @@ within the time frame of their original request."/>
3588435884
<Parameter Name="autoReconcileProxyConflict" Type="Edm.Boolean">
3588535885
<Annotation Term="Org.OData.Core.V1.OptionalParameter"/>
3588635886
</Parameter>
35887+
<Parameter Name="newUserPrincipalName" Type="Edm.String" Unicode="false">
35888+
<Annotation Term="Org.OData.Core.V1.OptionalParameter"/>
35889+
</Parameter>
3588735890
<ReturnType Type="graph.directoryObject"/>
3588835891
</Action>
3588935892
<Action Name="restore" IsBound="true">
@@ -41273,12 +41276,6 @@ within the time frame of their original request."/>
4127341276
<Member Name="allVersions" Value="1"/>
4127441277
<Member Name="linkedFiles" Value="2"/>
4127541278
<Member Name="unknownFutureValue" Value="4"/>
41276-
<Member Name="advancedIndexing" Value="8"/>
41277-
<Member Name="listAttachments" Value="16"/>
41278-
<Member Name="htmlTranscripts" Value="32"/>
41279-
<Member Name="messageConversationExpansion" Value="64"/>
41280-
<Member Name="locationsWithoutHits" Value="256"/>
41281-
<Member Name="allItemsInFolder" Value="512"/>
4128241279
</EnumType>
4128341280
<EnumType Name="additionalOptions" IsFlags="true">
4128441281
<Member Name="none" Value="0"/>
@@ -41288,15 +41285,6 @@ within the time frame of their original request."/>
4128841285
<Member Name="subfolderContents" Value="8"/>
4128941286
<Member Name="listAttachments" Value="16"/>
4129041287
<Member Name="unknownFutureValue" Value="32"/>
41291-
<Member Name="htmlTranscripts" Value="64"/>
41292-
<Member Name="advancedIndexing" Value="128"/>
41293-
<Member Name="allItemsInFolder" Value="256"/>
41294-
<Member Name="includeFolderAndPath" Value="512"/>
41295-
<Member Name="condensePaths" Value="1024"/>
41296-
<Member Name="friendlyName" Value="2048"/>
41297-
<Member Name="splitSource" Value="4096"/>
41298-
<Member Name="optimizedPartitionSize" Value="8192"/>
41299-
<Member Name="includeReport" Value="16384"/>
4130041288
</EnumType>
4130141289
<EnumType Name="caseAction">
4130241290
<Member Name="contentExport" Value="0"/>
@@ -41334,13 +41322,6 @@ within the time frame of their original request."/>
4133441322
<Member Name="Many" Value="1"/>
4133541323
<Member Name="unknownFutureValue" Value="2"/>
4133641324
</EnumType>
41337-
<EnumType Name="cloudAttachmentVersion">
41338-
<Member Name="latest" Value="1"/>
41339-
<Member Name="recent10" Value="2"/>
41340-
<Member Name="recent100" Value="3"/>
41341-
<Member Name="all" Value="4"/>
41342-
<Member Name="unknownFutureValue" Value="5"/>
41343-
</EnumType>
4134441325
<EnumType Name="dataSourceContainerStatus">
4134541326
<Member Name="active" Value="1"/>
4134641327
<Member Name="released" Value="2"/>
@@ -41362,13 +41343,6 @@ within the time frame of their original request."/>
4136241343
<Member Name="allCaseNoncustodialDataSources" Value="8"/>
4136341344
<Member Name="unknownFutureValue" Value="16"/>
4136441345
</EnumType>
41365-
<EnumType Name="documentVersion">
41366-
<Member Name="latest" Value="1"/>
41367-
<Member Name="recent10" Value="2"/>
41368-
<Member Name="recent100" Value="3"/>
41369-
<Member Name="all" Value="4"/>
41370-
<Member Name="unknownFutureValue" Value="5"/>
41371-
</EnumType>
4137241346
<EnumType Name="exportCriteria" IsFlags="true">
4137341347
<Member Name="searchHits" Value="1"/>
4137441348
<Member Name="partiallyIndexed" Value="2"/>
@@ -41379,7 +41353,6 @@ within the time frame of their original request."/>
4137941353
<Member Name="directory" Value="1"/>
4138041354
<Member Name="pst" Value="2"/>
4138141355
<Member Name="unknownFutureValue" Value="3"/>
41382-
<Member Name="msg" Value="4"/>
4138341356
</EnumType>
4138441357
<EnumType Name="exportFormat">
4138541358
<Member Name="pst" Value="0"/>
@@ -41398,16 +41371,6 @@ within the time frame of their original request."/>
4139841371
<Member Name="pdfReplacement" Value="4"/>
4139941372
<Member Name="tags" Value="16"/>
4140041373
<Member Name="unknownFutureValue" Value="32"/>
41401-
<Member Name="splitSource" Value="64"/>
41402-
<Member Name="includeFolderAndPath" Value="128"/>
41403-
<Member Name="friendlyName" Value="256"/>
41404-
<Member Name="condensePaths" Value="512"/>
41405-
<Member Name="optimizedPartitionSize" Value="1024"/>
41406-
</EnumType>
41407-
<EnumType Name="itemsToInclude" IsFlags="true">
41408-
<Member Name="searchHits" Value="1"/>
41409-
<Member Name="partiallyIndexed" Value="2"/>
41410-
<Member Name="unknownFutureValue" Value="4"/>
4141141374
</EnumType>
4141241375
<EnumType Name="purgeAreas" IsFlags="true">
4141341376
<Member Name="mailboxes" Value="1"/>
@@ -41424,14 +41387,6 @@ within the time frame of their original request."/>
4142441387
<Member Name="site" Value="2"/>
4142541388
<Member Name="unknownFutureValue" Value="4"/>
4142641389
</EnumType>
41427-
<EnumType Name="statisticsOptions" IsFlags="true">
41428-
<Member Name="includeRefiners" Value="1"/>
41429-
<Member Name="includeQueryStats" Value="2"/>
41430-
<Member Name="includeUnindexedStats" Value="4"/>
41431-
<Member Name="advancedIndexing" Value="8"/>
41432-
<Member Name="locationsWithoutHits" Value="16"/>
41433-
<Member Name="unknownFutureValue" Value="32"/>
41434-
</EnumType>
4143541390
<EnumType Name="deploymentStatus">
4143641391
<Member Name="upToDate" Value="1"/>
4143741392
<Member Name="outdated" Value="2"/>
@@ -41866,6 +41821,7 @@ within the time frame of their original request."/>
4186641821
<Property Name="classification" Type="microsoft.graph.security.alertClassification"/>
4186741822
<Property Name="comments" Type="Collection(microsoft.graph.security.alertComment)"/>
4186841823
<Property Name="createdDateTime" Type="Edm.DateTimeOffset"/>
41824+
<Property Name="customDetails" Type="microsoft.graph.security.dictionary"/>
4186941825
<Property Name="description" Type="Edm.String"/>
4187041826
<Property Name="detectionSource" Type="microsoft.graph.security.detectionSource"/>
4187141827
<Property Name="detectorId" Type="Edm.String"/>
@@ -42017,10 +41973,6 @@ within the time frame of their original request."/>
4201741973
<Property Name="status" Type="microsoft.graph.security.dataSourceContainerStatus"/>
4201841974
</EntityType>
4201941975
<EntityType Name="ediscoveryAddToReviewSetOperation" BaseType="microsoft.graph.security.caseOperation">
42020-
<Property Name="additionalDataOptions" Type="microsoft.graph.security.additionalDataOptions" Nullable="false"/>
42021-
<Property Name="cloudAttachmentVersion" Type="microsoft.graph.security.cloudAttachmentVersion" Nullable="false"/>
42022-
<Property Name="documentVersion" Type="microsoft.graph.security.documentVersion" Nullable="false"/>
42023-
<Property Name="itemsToInclude" Type="microsoft.graph.security.itemsToInclude" Nullable="false"/>
4202441976
<NavigationProperty Name="reviewSet" Type="microsoft.graph.security.ediscoveryReviewSet"/>
4202541977
<NavigationProperty Name="search" Type="microsoft.graph.security.ediscoverySearch"/>
4202641978
</EntityType>
@@ -42090,7 +42042,6 @@ within the time frame of their original request."/>
4209042042
<Property Name="indexedItemsSize" Type="Edm.Int64"/>
4209142043
<Property Name="mailboxCount" Type="Edm.Int32"/>
4209242044
<Property Name="siteCount" Type="Edm.Int32"/>
42093-
<Property Name="statisticsOptions" Type="microsoft.graph.security.statisticsOptions" Nullable="false"/>
4209442045
<Property Name="unindexedItemCount" Type="Edm.Int64"/>
4209542046
<Property Name="unindexedItemsSize" Type="Edm.Int64"/>
4209642047
<NavigationProperty Name="search" Type="microsoft.graph.security.ediscoverySearch"/>
@@ -42109,10 +42060,8 @@ within the time frame of their original request."/>
4210942060
<EntityType Name="ediscoveryPurgeDataOperation" BaseType="microsoft.graph.security.caseOperation"/>
4211042061
<EntityType Name="ediscoverySearchExportOperation" BaseType="microsoft.graph.security.caseOperation">
4211142062
<Property Name="additionalOptions" Type="microsoft.graph.security.additionalOptions"/>
42112-
<Property Name="cloudAttachmentVersion" Type="microsoft.graph.security.cloudAttachmentVersion" Nullable="false"/>
4211342063
<Property Name="description" Type="Edm.String"/>
4211442064
<Property Name="displayName" Type="Edm.String"/>
42115-
<Property Name="documentVersion" Type="microsoft.graph.security.documentVersion" Nullable="false"/>
4211642065
<Property Name="exportCriteria" Type="microsoft.graph.security.exportCriteria"/>
4211742066
<Property Name="exportFileMetadata" Type="Collection(microsoft.graph.security.exportFileMetadata)"/>
4211842067
<Property Name="exportFormat" Type="microsoft.graph.security.exportFormat"/>
@@ -42341,8 +42290,10 @@ within the time frame of their original request."/>
4234142290
<Property Name="filePublisher" Type="Edm.String"/>
4234242291
<Property Name="fileSize" Type="Edm.Int64"/>
4234342292
<Property Name="issuer" Type="Edm.String"/>
42293+
<Property Name="md5" Type="Edm.String"/>
4234442294
<Property Name="sha1" Type="Edm.String"/>
4234542295
<Property Name="sha256" Type="Edm.String"/>
42296+
<Property Name="sha256Ac" Type="Edm.String"/>
4234642297
<Property Name="signer" Type="Edm.String"/>
4234742298
</ComplexType>
4234842299
<ComplexType Name="fileEvidence" BaseType="microsoft.graph.security.alertEvidence">
@@ -43039,9 +42990,6 @@ within the time frame of their original request."/>
4303942990
<Parameter Name="bindingParameter" Type="microsoft.graph.security.ediscoveryReviewSet"/>
4304042991
<Parameter Name="search" Type="microsoft.graph.security.ediscoverySearch"/>
4304142992
<Parameter Name="additionalDataOptions" Type="microsoft.graph.security.additionalDataOptions"/>
43042-
<Parameter Name="itemsToInclude" Type="microsoft.graph.security.itemsToInclude"/>
43043-
<Parameter Name="cloudAttachmentVersion" Type="microsoft.graph.security.cloudAttachmentVersion"/>
43044-
<Parameter Name="documentVersion" Type="microsoft.graph.security.documentVersion"/>
4304542993
</Action>
4304642994
<Action Name="export" IsBound="true">
4304742995
<Parameter Name="bindingParameter" Type="microsoft.graph.security.ediscoveryReviewSet"/>
@@ -43070,7 +43018,6 @@ within the time frame of their original request."/>
4307043018
</Action>
4307143019
<Action Name="estimateStatistics" IsBound="true">
4307243020
<Parameter Name="bindingParameter" Type="microsoft.graph.security.ediscoverySearch"/>
43073-
<Parameter Name="statisticsOptions" Type="microsoft.graph.security.statisticsOptions"/>
4307443021
</Action>
4307543022
<Action Name="exportReport" IsBound="true">
4307643023
<Parameter Name="bindingParameter" Type="microsoft.graph.security.ediscoverySearch"/>
@@ -43079,8 +43026,6 @@ within the time frame of their original request."/>
4307943026
<Parameter Name="exportCriteria" Type="microsoft.graph.security.exportCriteria"/>
4308043027
<Parameter Name="exportLocation" Type="microsoft.graph.security.exportLocation"/>
4308143028
<Parameter Name="additionalOptions" Type="microsoft.graph.security.additionalOptions"/>
43082-
<Parameter Name="cloudAttachmentVersion" Type="microsoft.graph.security.cloudAttachmentVersion"/>
43083-
<Parameter Name="documentVersion" Type="microsoft.graph.security.documentVersion"/>
4308443029
</Action>
4308543030
<Action Name="exportResult" IsBound="true">
4308643031
<Parameter Name="bindingParameter" Type="microsoft.graph.security.ediscoverySearch"/>
@@ -43091,8 +43036,6 @@ within the time frame of their original request."/>
4309143036
<Parameter Name="additionalOptions" Type="microsoft.graph.security.additionalOptions"/>
4309243037
<Parameter Name="exportFormat" Type="microsoft.graph.security.exportFormat"/>
4309343038
<Parameter Name="exportSingleItems" Type="Edm.Boolean"/>
43094-
<Parameter Name="cloudAttachmentVersion" Type="microsoft.graph.security.cloudAttachmentVersion"/>
43095-
<Parameter Name="documentVersion" Type="microsoft.graph.security.documentVersion"/>
4309643039
</Action>
4309743040
<Action Name="purgeData" IsBound="true">
4309843041
<Parameter Name="bindingParameter" Type="microsoft.graph.security.ediscoverySearch"/>

0 commit comments

Comments
 (0)