Skip to content

Commit c9467cd

Browse files
committed
introduce migration namespace
1 parent 2c49343 commit c9467cd

File tree

29 files changed

+482
-12
lines changed

29 files changed

+482
-12
lines changed

examples/sharepoint/files/get_sharing_info.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""
44

55
from office365.sharepoint.client_context import ClientContext
6-
from office365.sharepoint.listitems.listitem import ListItem
76
from office365.sharepoint.principal.type import PrincipalType
87
from tests import test_client_credentials, test_team_site_url
98

@@ -19,7 +18,7 @@
1918

2019
# per every list item (file facet) retrieve role assignments (where role assignment is associated with a principal,
2120
# which could be a user or a group)
22-
for item in items: # type: ListItem
21+
for item in items:
2322
role_assignments = item.role_assignments.expand(["Member"]).get().execute_query()
2423
print("File: {0}".format(item.properties["EncodedAbsUrl"]))
2524
for ra in role_assignments:
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import logging
2+
3+
from office365.migration.assessment.list_scanner import ListScanner
4+
from office365.sharepoint.client_context import ClientContext
5+
from tests import test_team_site_url, test_user_credentials
6+
7+
logging.basicConfig(
8+
level=logging.INFO,
9+
)
10+
11+
12+
ctx = ClientContext(test_team_site_url).with_credentials(test_user_credentials)
13+
lib = ctx.web.default_document_library()
14+
scanner = ListScanner(lib)
15+
scan_info = scanner.scan()
16+
logging.info(
17+
"List_Usage %s",
18+
scan_info,
19+
)

generator/metadata/Graph.xml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41620,6 +41620,12 @@ within the time frame of their original request."/>
4162041620
<Member Name="allVersions" Value="1"/>
4162141621
<Member Name="linkedFiles" Value="2"/>
4162241622
<Member Name="unknownFutureValue" Value="4"/>
41623+
<Member Name="advancedIndexing" Value="8"/>
41624+
<Member Name="listAttachments" Value="16"/>
41625+
<Member Name="htmlTranscripts" Value="32"/>
41626+
<Member Name="messageConversationExpansion" Value="64"/>
41627+
<Member Name="locationsWithoutHits" Value="256"/>
41628+
<Member Name="allItemsInFolder" Value="512"/>
4162341629
</EnumType>
4162441630
<EnumType Name="additionalOptions" IsFlags="true">
4162541631
<Member Name="none" Value="0"/>
@@ -41629,6 +41635,14 @@ within the time frame of their original request."/>
4162941635
<Member Name="subfolderContents" Value="8"/>
4163041636
<Member Name="listAttachments" Value="16"/>
4163141637
<Member Name="unknownFutureValue" Value="32"/>
41638+
<Member Name="htmlTranscripts" Value="64"/>
41639+
<Member Name="advancedIndexing" Value="128"/>
41640+
<Member Name="allItemsInFolder" Value="256"/>
41641+
<Member Name="includeFolderAndPath" Value="512"/>
41642+
<Member Name="condensePaths" Value="1024"/>
41643+
<Member Name="friendlyName" Value="2048"/>
41644+
<Member Name="splitSource" Value="4096"/>
41645+
<Member Name="includeReport" Value="16384"/>
4163241646
</EnumType>
4163341647
<EnumType Name="caseAction">
4163441648
<Member Name="contentExport" Value="0"/>
@@ -41666,6 +41680,13 @@ within the time frame of their original request."/>
4166641680
<Member Name="Many" Value="1"/>
4166741681
<Member Name="unknownFutureValue" Value="2"/>
4166841682
</EnumType>
41683+
<EnumType Name="cloudAttachmentVersion">
41684+
<Member Name="latest" Value="1"/>
41685+
<Member Name="recent10" Value="2"/>
41686+
<Member Name="recent100" Value="3"/>
41687+
<Member Name="all" Value="4"/>
41688+
<Member Name="unknownFutureValue" Value="5"/>
41689+
</EnumType>
4166941690
<EnumType Name="dataSourceContainerStatus">
4167041691
<Member Name="active" Value="1"/>
4167141692
<Member Name="released" Value="2"/>
@@ -41687,6 +41708,13 @@ within the time frame of their original request."/>
4168741708
<Member Name="allCaseNoncustodialDataSources" Value="8"/>
4168841709
<Member Name="unknownFutureValue" Value="16"/>
4168941710
</EnumType>
41711+
<EnumType Name="documentVersion">
41712+
<Member Name="latest" Value="1"/>
41713+
<Member Name="recent10" Value="2"/>
41714+
<Member Name="recent100" Value="3"/>
41715+
<Member Name="all" Value="4"/>
41716+
<Member Name="unknownFutureValue" Value="5"/>
41717+
</EnumType>
4169041718
<EnumType Name="exportCriteria" IsFlags="true">
4169141719
<Member Name="searchHits" Value="1"/>
4169241720
<Member Name="partiallyIndexed" Value="2"/>
@@ -41697,6 +41725,7 @@ within the time frame of their original request."/>
4169741725
<Member Name="directory" Value="1"/>
4169841726
<Member Name="pst" Value="2"/>
4169941727
<Member Name="unknownFutureValue" Value="3"/>
41728+
<Member Name="msg" Value="4"/>
4170041729
</EnumType>
4170141730
<EnumType Name="exportFormat">
4170241731
<Member Name="pst" Value="0"/>
@@ -41715,6 +41744,15 @@ within the time frame of their original request."/>
4171541744
<Member Name="pdfReplacement" Value="4"/>
4171641745
<Member Name="tags" Value="16"/>
4171741746
<Member Name="unknownFutureValue" Value="32"/>
41747+
<Member Name="splitSource" Value="64"/>
41748+
<Member Name="includeFolderAndPath" Value="128"/>
41749+
<Member Name="friendlyName" Value="256"/>
41750+
<Member Name="condensePaths" Value="512"/>
41751+
</EnumType>
41752+
<EnumType Name="itemsToInclude" IsFlags="true">
41753+
<Member Name="searchHits" Value="1"/>
41754+
<Member Name="partiallyIndexed" Value="2"/>
41755+
<Member Name="unknownFutureValue" Value="4"/>
4171841756
</EnumType>
4171941757
<EnumType Name="purgeAreas" IsFlags="true">
4172041758
<Member Name="mailboxes" Value="1"/>
@@ -41731,6 +41769,14 @@ within the time frame of their original request."/>
4173141769
<Member Name="site" Value="2"/>
4173241770
<Member Name="unknownFutureValue" Value="4"/>
4173341771
</EnumType>
41772+
<EnumType Name="statisticsOptions" IsFlags="true">
41773+
<Member Name="includeRefiners" Value="1"/>
41774+
<Member Name="includeQueryStats" Value="2"/>
41775+
<Member Name="includeUnindexedStats" Value="4"/>
41776+
<Member Name="advancedIndexing" Value="8"/>
41777+
<Member Name="locationsWithoutHits" Value="16"/>
41778+
<Member Name="unknownFutureValue" Value="32"/>
41779+
</EnumType>
4173441780
<EnumType Name="deploymentStatus">
4173541781
<Member Name="upToDate" Value="1"/>
4173641782
<Member Name="outdated" Value="2"/>
@@ -42319,6 +42365,10 @@ within the time frame of their original request."/>
4231942365
<Property Name="status" Type="microsoft.graph.security.dataSourceContainerStatus"/>
4232042366
</EntityType>
4232142367
<EntityType Name="ediscoveryAddToReviewSetOperation" BaseType="microsoft.graph.security.caseOperation">
42368+
<Property Name="additionalDataOptions" Type="microsoft.graph.security.additionalDataOptions"/>
42369+
<Property Name="cloudAttachmentVersion" Type="microsoft.graph.security.cloudAttachmentVersion"/>
42370+
<Property Name="documentVersion" Type="microsoft.graph.security.documentVersion"/>
42371+
<Property Name="itemsToInclude" Type="microsoft.graph.security.itemsToInclude"/>
4232242372
<NavigationProperty Name="reviewSet" Type="microsoft.graph.security.ediscoveryReviewSet"/>
4232342373
<NavigationProperty Name="search" Type="microsoft.graph.security.ediscoverySearch"/>
4232442374
</EntityType>
@@ -42388,6 +42438,7 @@ within the time frame of their original request."/>
4238842438
<Property Name="indexedItemsSize" Type="Edm.Int64"/>
4238942439
<Property Name="mailboxCount" Type="Edm.Int32"/>
4239042440
<Property Name="siteCount" Type="Edm.Int32"/>
42441+
<Property Name="statisticsOptions" Type="microsoft.graph.security.statisticsOptions"/>
4239142442
<Property Name="unindexedItemCount" Type="Edm.Int64"/>
4239242443
<Property Name="unindexedItemsSize" Type="Edm.Int64"/>
4239342444
<NavigationProperty Name="search" Type="microsoft.graph.security.ediscoverySearch"/>
@@ -42406,8 +42457,10 @@ within the time frame of their original request."/>
4240642457
<EntityType Name="ediscoveryPurgeDataOperation" BaseType="microsoft.graph.security.caseOperation"/>
4240742458
<EntityType Name="ediscoverySearchExportOperation" BaseType="microsoft.graph.security.caseOperation">
4240842459
<Property Name="additionalOptions" Type="microsoft.graph.security.additionalOptions"/>
42460+
<Property Name="cloudAttachmentVersion" Type="microsoft.graph.security.cloudAttachmentVersion"/>
4240942461
<Property Name="description" Type="Edm.String"/>
4241042462
<Property Name="displayName" Type="Edm.String"/>
42463+
<Property Name="documentVersion" Type="microsoft.graph.security.documentVersion"/>
4241142464
<Property Name="exportCriteria" Type="microsoft.graph.security.exportCriteria"/>
4241242465
<Property Name="exportFileMetadata" Type="Collection(microsoft.graph.security.exportFileMetadata)"/>
4241342466
<Property Name="exportFormat" Type="microsoft.graph.security.exportFormat"/>
@@ -43336,6 +43389,9 @@ within the time frame of their original request."/>
4333643389
<Parameter Name="bindingParameter" Type="microsoft.graph.security.ediscoveryReviewSet"/>
4333743390
<Parameter Name="search" Type="microsoft.graph.security.ediscoverySearch"/>
4333843391
<Parameter Name="additionalDataOptions" Type="microsoft.graph.security.additionalDataOptions"/>
43392+
<Parameter Name="itemsToInclude" Type="microsoft.graph.security.itemsToInclude"/>
43393+
<Parameter Name="cloudAttachmentVersion" Type="microsoft.graph.security.cloudAttachmentVersion"/>
43394+
<Parameter Name="documentVersion" Type="microsoft.graph.security.documentVersion"/>
4333943395
</Action>
4334043396
<Action Name="export" IsBound="true">
4334143397
<Parameter Name="bindingParameter" Type="microsoft.graph.security.ediscoveryReviewSet"/>
@@ -43364,6 +43420,7 @@ within the time frame of their original request."/>
4336443420
</Action>
4336543421
<Action Name="estimateStatistics" IsBound="true">
4336643422
<Parameter Name="bindingParameter" Type="microsoft.graph.security.ediscoverySearch"/>
43423+
<Parameter Name="statisticsOptions" Type="microsoft.graph.security.statisticsOptions"/>
4336743424
</Action>
4336843425
<Action Name="exportReport" IsBound="true">
4336943426
<Parameter Name="bindingParameter" Type="microsoft.graph.security.ediscoverySearch"/>
@@ -43372,6 +43429,8 @@ within the time frame of their original request."/>
4337243429
<Parameter Name="exportCriteria" Type="microsoft.graph.security.exportCriteria"/>
4337343430
<Parameter Name="exportLocation" Type="microsoft.graph.security.exportLocation"/>
4337443431
<Parameter Name="additionalOptions" Type="microsoft.graph.security.additionalOptions"/>
43432+
<Parameter Name="cloudAttachmentVersion" Type="microsoft.graph.security.cloudAttachmentVersion"/>
43433+
<Parameter Name="documentVersion" Type="microsoft.graph.security.documentVersion"/>
4337543434
</Action>
4337643435
<Action Name="exportResult" IsBound="true">
4337743436
<Parameter Name="bindingParameter" Type="microsoft.graph.security.ediscoverySearch"/>
@@ -43382,6 +43441,8 @@ within the time frame of their original request."/>
4338243441
<Parameter Name="additionalOptions" Type="microsoft.graph.security.additionalOptions"/>
4338343442
<Parameter Name="exportFormat" Type="microsoft.graph.security.exportFormat"/>
4338443443
<Parameter Name="exportSingleItems" Type="Edm.Boolean"/>
43444+
<Parameter Name="cloudAttachmentVersion" Type="microsoft.graph.security.cloudAttachmentVersion"/>
43445+
<Parameter Name="documentVersion" Type="microsoft.graph.security.documentVersion"/>
4338543446
</Action>
4338643447
<Action Name="purgeData" IsBound="true">
4338743448
<Parameter Name="bindingParameter" Type="microsoft.graph.security.ediscoverySearch"/>

0 commit comments

Comments
 (0)