Skip to content

Commit 3f74bfe

Browse files
committed
Apply rename directives Analytics, *.OneNote, Teams.Team
1 parent c851777 commit 3f74bfe

File tree

10 files changed

+113
-483
lines changed

10 files changed

+113
-483
lines changed

config/ModulesMapping.jsonc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"Analytics": "^users.userAnalytics$|^users.officeGraphInsights$",
33
"Bookings": "^bookingBusinesses\\.|^bookingCurrencies\\.",
4-
"CloudCommunications": "^communications\\.",
54
"DevicesApps.DeviceAppManagement": "^deviceAppManagement\\.",
65
"DevicesApps.MobileAppManagement": "^users.managedAppRegistration$|^users.windowsInformationProtectionDeviceRegistration$",
76
"DevicesApps.OfficeConfiguration": "^officeConfiguration\\.",
@@ -33,7 +32,7 @@
3332
"Identity.AuditLogs": "^auditLogs\\.",
3433
"Identity.AuthenticationMethods": "^users.authentication$",
3534
"Identity.AzureADPIM": "^privilegedRoles\\.|^privilegedRoleAssignments\\.|^privilegedOperationEvents\\.|^privilegedApproval\\.|^privilegedRoleAssignmentRequests\\.",
36-
"Identity.ConditionalAccess": "^conditionalAccess.namedLocation$|^conditionalAccess.conditionalAccessPolicy$",
35+
"Identity.ConditionalAccess": "^identity.conditionalAccessRoot$",
3736
"Identity.Contracts": "^contracts\\.",
3837
"Identity.DataPolicyOperations": "^dataPolicyOperations\\.",
3938
"Identity.Devices": "^devices\\.",
@@ -87,7 +86,7 @@
8786
"Users.Drive": "^users.drive$",
8887
"Users.Extensions": "^users.extension$",
8988
"Users.FollowedSites": "^users.site$",
90-
"Users.Functions": "^users.Functions$",
89+
// "Users.Functions": "^users.Functions$", // Fails to download.
9190
"Users.Groups": "^users.group$|^users.team$",
9291
"Users.InformationProtection": "^users.informationProtection$", // Missing in docs
9392
"Users.LicenseDetails": "^users.licenseDetails$",
@@ -101,7 +100,8 @@
101100
"Users.UserSettings": "^users.userSettings$",
102101

103102
// Fails to build.
104-
//"DevicesApps.DeviceManagement": "^deviceManagement\\.|^users.deviceEnrollmentConfiguration$|^users.deviceManagementTroubleshootingEvent$|^users.managedDevice$|^users.mobileAppIntentAndState$",
103+
// "CloudCommunications": "^communications\\.", \\ OData.OpenAPI should handle multiple namespace.
104+
// "DevicesApps.DeviceManagement": "^deviceManagement\\.|^users.deviceEnrollmentConfiguration$|^users.deviceManagementTroubleshootingEvent$|^users.managedDevice$|^users.mobileAppIntentAndState$",
105105
// "Workbooks": "^workbooks\\.", - Too large
106106

107107
// Invalid / No longer supported

src/Analytics/Analytics/Microsoft.Graph.Analytics.psd1

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 6/30/2020
6+
# Generated on: 8/6/2020
77
#
88

99
@{
@@ -12,13 +12,13 @@
1212
RootModule = './Microsoft.Graph.Analytics.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '0.5.1'
15+
ModuleVersion = '0.9.0'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'
1919

2020
# ID used to uniquely identify this module
21-
GUID = 'd663fd43-b6dc-41e2-9e7e-2b9b761c9b89'
21+
GUID = '7634ebee-ae71-4914-9be2-ea5a0e314885'
2222

2323
# Author of this module
2424
Author = 'Microsoft Corporation'
@@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2'
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Microsoft.Graph.Authentication'; ModuleVersion = '0.7.0'; })
54+
RequiredModules = @(@{ModuleName = 'Microsoft.Graph.Authentication'; ModuleVersion = '0.7.1'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = './bin/Microsoft.Graph.Analytics.private.dll'
@@ -69,21 +69,10 @@ FormatsToProcess = './Microsoft.Graph.Analytics.format.ps1xml'
6969
# NestedModules = @()
7070

7171
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72-
FunctionsToExport = 'Get-MgActivitystatisticActivityStatistics', 'Get-MgUserAnalytic',
73-
'Get-MgUserAnalyticActivityStatistics', 'Get-MgUserInsight',
74-
'Get-MgUserInsightShared',
75-
'Get-MgUserInsightSharedLastSharedMethod',
76-
'Get-MgUserInsightSharedResource', 'Get-MgUserInsightTrending',
77-
'Get-MgUserInsightTrendingResource', 'Get-MgUserInsightUsed',
78-
'Get-MgUserInsightUsedResource',
79-
'New-MgActivitystatisticActivityStatistics',
80-
'New-MgUserAnalyticActivityStatistics', 'New-MgUserInsightShared',
81-
'New-MgUserInsightTrending', 'New-MgUserInsightUsed',
82-
'Remove-MgActivitystatisticActivityStatistics',
83-
'Update-MgActivitystatisticActivityStatistics',
84-
'Update-MgUserAnalytic', 'Update-MgUserAnalyticActivityStatistics',
85-
'Update-MgUserInsight', 'Update-MgUserInsightShared',
86-
'Update-MgUserInsightTrending', 'Update-MgUserInsightUsed'
72+
FunctionsToExport = 'Get-MgUserActivityStatistics', 'Get-MgUserLastSharedMethodInsight',
73+
'Get-MgUserSharedInsight', 'Get-MgUserSharedResourceInsight',
74+
'Get-MgUserTrendingInsight', 'Get-MgUserTrendingResourceInsight',
75+
'Get-MgUserUsedInsight', 'Get-MgUserUsedResourceInsight'
8776

8877
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
8978
CmdletsToExport = @()

src/Analytics/Analytics/readme.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,30 @@ title: $(service-name)
3232
subject-prefix: ''
3333

3434
```
35+
36+
### Directives
37+
38+
> see https://github.com/Azure/autorest/blob/master/docs/powershell/directives.md
39+
40+
``` yaml
41+
directive:
42+
# Remove paths that are not valid.
43+
- remove-path-by-operation: ^users_(Get|Create|Update|Delete)Analytics$|^users.analytics_(Create|Update|Delete)ActivityStatistics$|^users_.*Insights$|^users.insights_(Create|Update|Delete)(Shared|Trending|Used)$
44+
# Rename
45+
- where:
46+
subject: ^(User)Analytic(ActivityStatistics)$
47+
set:
48+
subject: $1$2
49+
- where:
50+
subject: ^(User)(Insight)(.*)$
51+
set:
52+
subject: $1$3$2
53+
- where:
54+
subject: ^(User)(Shared)(LastSharedMethodInsight)$
55+
set:
56+
subject: $1$3
57+
```
58+
3559
### Versioning
3660
3761
``` yaml

0 commit comments

Comments
 (0)