Skip to content

Commit 7aea146

Browse files
committed
Fix duplicate cmdlet names.
1 parent 7b5d6dc commit 7aea146

File tree

20 files changed

+201
-168
lines changed

20 files changed

+201
-168
lines changed

config/ModulesMapping.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"DevicesApps.OfficeConfiguration": "^officeConfiguration\\.",
77
"DevicesApps.SharedResources": "^users.mobileAppTroubleshootingEvent$",
88
"Education": "^education\\.",
9-
"Files.Drives": "^drives\\.",
9+
"Files.Drives": "^drives\\.|^drive\\.",
1010
"Files.Permissions": "^groups.resourceSpecificPermissionGrant$", // Missing in docs
1111
"Files.Shares": "^shares\\.",
1212
"Financials": "^financials\\.",
@@ -86,7 +86,7 @@
8686
"Users.Drive": "^users.drive$",
8787
"Users.Extensions": "^users.extension$",
8888
"Users.FollowedSites": "^users.site$",
89-
// "Users.Functions": "^users.Functions$", // Fails to download.
89+
"Users.Functions": "^users.Functions$",
9090
"Users.Groups": "^users.group$|^users.team$",
9191
"Users.InformationProtection": "^users.informationProtection$", // Missing in docs
9292
"Users.LicenseDetails": "^users.licenseDetails$",

src/Identity.AppRoleAssignments/Identity.AppRoleAssignments/Microsoft.Graph.Identity.AppRoleAssignments.psd1

Lines changed: 5 additions & 9 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/10/2020
77
#
88

99
@{
@@ -12,13 +12,13 @@
1212
RootModule = './Microsoft.Graph.Identity.AppRoleAssignments.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 = 'cdd29c59-698b-4717-a967-fb7bd9c9bf83'
21+
GUID = 'c075c9a1-cd66-439c-aef7-a76a749dc962'
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.Identity.AppRoleAssignments.private.dll'
@@ -69,12 +69,8 @@ FormatsToProcess = './Microsoft.Graph.Identity.AppRoleAssignments.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-MgAppRoleAssignmentAppRoleAssignmentAppRoleAssignment',
73-
'Get-MgGroupAppRoleAssignment', 'Get-MgUserAppRoleAssignment',
74-
'New-MgAppRoleAssignmentAppRoleAssignmentAppRoleAssignment',
72+
FunctionsToExport = 'Get-MgGroupAppRoleAssignment', 'Get-MgUserAppRoleAssignment',
7573
'New-MgGroupAppRoleAssignment', 'New-MgUserAppRoleAssignment',
76-
'Remove-MgAppRoleAssignmentAppRoleAssignmentAppRoleAssignment',
77-
'Update-MgAppRoleAssignmentAppRoleAssignmentAppRoleAssignment',
7874
'Update-MgGroupAppRoleAssignment', 'Update-MgUserAppRoleAssignment'
7975

8076
# 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.

src/Identity.AuditLogs/Identity.AuditLogs/Microsoft.Graph.Identity.AuditLogs.psd1

Lines changed: 5 additions & 13 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/10/2020
77
#
88

99
@{
@@ -12,13 +12,13 @@
1212
RootModule = './Microsoft.Graph.Identity.AuditLogs.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 = '84e021ed-e3a4-49d7-89de-5b08dacc1960'
21+
GUID = 'aa34c584-5692-4582-9c62-5b7d088d2262'
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.Identity.AuditLogs.private.dll'
@@ -71,15 +71,7 @@ FormatsToProcess = './Microsoft.Graph.Identity.AuditLogs.format.ps1xml'
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.
7272
FunctionsToExport = 'Get-MgAuditLogDirectoryAudit',
7373
'Get-MgAuditLogDirectoryProvisioning', 'Get-MgAuditLogProvisioning',
74-
'Get-MgAuditLogRestrictedSignIn', 'Get-MgAuditLogRootAuditLogRoot',
75-
'Get-MgAuditLogSignIn', 'New-MgAuditLogDirectoryAudit',
76-
'New-MgAuditLogDirectoryProvisioning', 'New-MgAuditLogProvisioning',
77-
'New-MgAuditLogRestrictedSignIn', 'New-MgAuditLogSignIn',
78-
'Update-MgAuditLogDirectoryAudit',
79-
'Update-MgAuditLogDirectoryProvisioning',
80-
'Update-MgAuditLogProvisioning',
81-
'Update-MgAuditLogRestrictedSignIn',
82-
'Update-MgAuditLogRootAuditLogRoot', 'Update-MgAuditLogSignIn'
74+
'Get-MgAuditLogRestrictedSignIn', 'Get-MgAuditLogSignIn'
8375

8476
# 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.
8577
CmdletsToExport = @()

src/Identity.AuditLogs/Identity.AuditLogs/readme.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ 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: auditLogs.auditLogRoot_.*|auditLogs_(Create|Update|Delete).*
44+
```
45+
3546
### Versioning
3647
3748
``` yaml

src/Identity.DataPolicyOperations/Identity.DataPolicyOperations/Microsoft.Graph.Identity.DataPolicyOperations.psd1

Lines changed: 6 additions & 8 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/10/2020
77
#
88

99
@{
@@ -12,13 +12,13 @@
1212
RootModule = './Microsoft.Graph.Identity.DataPolicyOperations.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 = '3ce59df7-0ff7-4741-992b-158d0fd3732d'
21+
GUID = '84c95fa4-d67b-4cb8-a9bf-898592526d56'
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.Identity.DataPolicyOperations.private.dll'
@@ -69,10 +69,8 @@ FormatsToProcess = './Microsoft.Graph.Identity.DataPolicyOperations.format.ps1xm
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-MgDataPolicyOperationDataPolicyOperationDataPolicyOperation',
73-
'New-MgDataPolicyOperationDataPolicyOperationDataPolicyOperation',
74-
'Remove-MgDataPolicyOperationDataPolicyOperationDataPolicyOperation',
75-
'Update-MgDataPolicyOperationDataPolicyOperationDataPolicyOperation'
72+
FunctionsToExport = 'Get-MgDataPolicyOperation', 'New-MgDataPolicyOperation',
73+
'Remove-MgDataPolicyOperation', 'Update-MgDataPolicyOperation'
7674

7775
# 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.
7876
CmdletsToExport = @()

src/Identity.DataPolicyOperations/Identity.DataPolicyOperations/readme.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ 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+
# Rename cmdlets with duplicates in their name.
43+
- where:
44+
subject: ^(DataPolicyOperation)(\1)+
45+
set:
46+
subject: $1
47+
```
48+
3549
### Versioning
3650
3751
``` yaml

src/Identity.DirectorySettings/Identity.DirectorySettings/Microsoft.Graph.Identity.DirectorySettings.psd1

Lines changed: 8 additions & 8 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/10/2020
77
#
88

99
@{
@@ -12,13 +12,13 @@
1212
RootModule = './Microsoft.Graph.Identity.DirectorySettings.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 = '57afbefa-654d-4f14-94e6-5e97b26c8f6e'
21+
GUID = '97f4e4c4-3c66-47a7-9603-591aa664ef94'
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.Identity.DirectorySettings.private.dll'
@@ -69,10 +69,10 @@ FormatsToProcess = './Microsoft.Graph.Identity.DirectorySettings.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-MgGroupSetting', 'Get-MgSettingDirectorySetting',
73-
'New-MgGroupSetting', 'New-MgSettingDirectorySetting',
74-
'Remove-MgSettingDirectorySetting', 'Update-MgGroupSetting',
75-
'Update-MgSettingDirectorySetting'
72+
FunctionsToExport = 'Get-MgDirectorySetting', 'Get-MgGroupSetting',
73+
'New-MgDirectorySetting', 'New-MgGroupSetting',
74+
'Remove-MgDirectorySetting', 'Update-MgDirectorySetting',
75+
'Update-MgGroupSetting'
7676

7777
# 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.
7878
CmdletsToExport = @()

src/Identity.DirectorySettings/Identity.DirectorySettings/readme.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ 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+
# Rename cmdlets.
43+
- where:
44+
subject: ^(Setting)(DirectorySetting)$
45+
set:
46+
subject: $2
47+
```
48+
3549
### Versioning
3650
3751
``` yaml

src/Identity.OAuth2PermissionGrants/Identity.OAuth2PermissionGrants/Microsoft.Graph.Identity.OAuth2PermissionGrants.psd1

Lines changed: 7 additions & 9 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/10/2020
77
#
88

99
@{
@@ -12,13 +12,13 @@
1212
RootModule = './Microsoft.Graph.Identity.OAuth2PermissionGrants.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 = 'd9e85036-ffa5-4117-9dce-111afc0a287c'
21+
GUID = 'b659347f-f467-44c5-8b1b-34d1aed089db'
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 =
@@ -70,11 +70,9 @@ FormatsToProcess = './Microsoft.Graph.Identity.OAuth2PermissionGrants.format.ps1
7070
# NestedModules = @()
7171

7272
# 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.
73-
FunctionsToExport = 'Get-MgOauth2PermissionGrantDelta',
74-
'Get-MgOauth2PermissionGrantOAuth2PermissionGrantOAuth2PermissionGrant',
75-
'New-MgOauth2PermissionGrantOAuth2PermissionGrantOAuth2PermissionGrant',
76-
'Remove-MgOauth2PermissionGrantOAuth2PermissionGrantOAuth2PermissionGrant',
77-
'Update-MgOauth2PermissionGrantOAuth2PermissionGrantOAuth2PermissionGrant'
73+
FunctionsToExport = 'Get-MgOauth2PermissionGrant', 'Get-MgOauth2PermissionGrantDelta',
74+
'New-MgOauth2PermissionGrant', 'Remove-MgOauth2PermissionGrant',
75+
'Update-MgOauth2PermissionGrant'
7876

7977
# 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.
8078
CmdletsToExport = @()

src/Identity.OAuth2PermissionGrants/Identity.OAuth2PermissionGrants/readme.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ 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+
# Rename cmdlets with duplicates in their name.
43+
- where:
44+
subject: ^(Oauth2PermissionGrant)(\1)+
45+
set:
46+
subject: $1
47+
```
48+
3549
### Versioning
3650
3751
``` yaml

0 commit comments

Comments
 (0)