Skip to content

Commit 7b5d6dc

Browse files
committed
Apply directives to cmdlets in Groups.* modules.
1 parent 3f74bfe commit 7b5d6dc

File tree

12 files changed

+415
-142
lines changed

12 files changed

+415
-142
lines changed

src/DevicesApps.DeviceAppManagement/DevicesApps.DeviceAppManagement/Microsoft.Graph.DevicesApps.DeviceAppManagement.psd1

Lines changed: 256 additions & 53 deletions
Large diffs are not rendered by default.

src/DevicesApps.DeviceAppManagement/DevicesApps.DeviceAppManagement/readme.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,22 @@ require:
3131
title: $(service-name)
3232
subject-prefix: ''
3333

34+
```
35+
36+
### Directives
37+
38+
> see https://github.com/Azure/autorest/blob/master/docs/powershell/directives.md
39+
40+
``` yaml
3441
directive:
3542
# Remove paths that are too long.
3643
- remove-path-by-operation: ^deviceAppManagement.wdacSupplementalPolicies.deviceStatuses.policy_assign$|^deviceManagement.deviceHealthScripts.deviceRunStates.managedDevice_deleteUserFromSharedAppleDevice$
44+
# Rename cmdlets with duplicates in their name.
45+
- where:
46+
subject: ^(DeviceAppManagement)(\1)+
47+
set:
48+
subject: $1
49+
# Rename cmdlets.
3750
- where:
3851
verb: Update
3952
subject: ^(DeviceAppManagement)(MobileAppRelationship)$
@@ -46,7 +59,22 @@ directive:
4659
variant: ^Update1$|^UpdateExpanded1$|^UpdateViaIdentity1$|^UpdateViaIdentityExpanded1$
4760
set:
4861
subject: $1Multiple$2
62+
- where:
63+
subject: Io(Lob|Managed)
64+
set:
65+
subject: iOS$1
66+
# Rename DeviceAppManagement* cmdlets to DeviceAppMgt*. Alias DeviceAppMgt* to DeviceAppManagement*.
67+
# This should always be the last directive.
68+
- where:
69+
subject: ^DeviceAppManagement.*
70+
set:
71+
alias: ${verb}-Mg${subject}
72+
- where:
73+
subject: (.*)(DeviceAppManagement)(.*)
74+
set:
75+
subject: $1DeviceAppMgt$3
4976
```
77+
5078
### Versioning
5179
5280
``` yaml

src/DevicesApps.OfficeConfiguration/DevicesApps.OfficeConfiguration/Microsoft.Graph.DevicesApps.OfficeConfiguration.psd1

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

99
@{
@@ -12,13 +12,13 @@
1212
RootModule = './Microsoft.Graph.DevicesApps.OfficeConfiguration.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 = '5a0b930c-1167-4deb-b4e2-82403ffa1442'
21+
GUID = 'e540e9e0-3a25-42fa-9a41-f44e87d48e05'
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,16 +70,15 @@ FormatsToProcess = './Microsoft.Graph.DevicesApps.OfficeConfiguration.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-MgOfficeConfiguration',
74-
'Get-MgOfficeConfigurationClientConfiguration',
75-
'Get-MgOfficeConfigurationClientConfigurationAssignment',
76-
'New-MgOfficeConfigurationClientConfiguration',
77-
'New-MgOfficeConfigurationClientConfigurationAssignment',
78-
'Set-MgOfficeConfigurationClientConfiguration',
79-
'Update-MgOfficeConfiguration',
80-
'Update-MgOfficeConfigurationClientConfiguration',
81-
'Update-MgOfficeConfigurationClientConfigurationAssignment',
82-
'Update-MgOfficeConfigurationClientConfigurationPriority'
73+
FunctionsToExport = 'Get-MgOfficeClientConfiguration',
74+
'Get-MgOfficeClientConfigurationAssignment',
75+
'Get-MgOfficeConfiguration', 'New-MgOfficeClientConfiguration',
76+
'New-MgOfficeClientConfigurationAssignment',
77+
'Set-MgOfficeClientConfiguration',
78+
'Update-MgOfficeClientConfiguration',
79+
'Update-MgOfficeClientConfigurationAssignment',
80+
'Update-MgOfficeClientConfigurationPriority',
81+
'Update-MgOfficeConfiguration'
8382

8483
# 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.
8584
CmdletsToExport = @()

src/DevicesApps.OfficeConfiguration/DevicesApps.OfficeConfiguration/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: ^(Office)(Configuration)(ClientConfiguration.*)
45+
set:
46+
subject: $1$3
47+
```
48+
3549
### Versioning
3650
3751
``` yaml

src/Files.Drives/Files.Drives/Microsoft.Graph.Files.Drives.psd1

Lines changed: 11 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/7/2020
77
#
88

99
@{
@@ -12,13 +12,13 @@
1212
RootModule = './Microsoft.Graph.Files.Drives.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 = 'f1995c8c-e2d9-4022-bbb2-3466e9c8b551'
21+
GUID = '4f9a72fe-2e17-4b72-b12c-4ad96d877b86'
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.Files.Drives.private.dll'
@@ -96,39 +96,31 @@ FunctionsToExport = 'Get-MgDrive', 'Get-MgDriveActivity', 'Get-MgDriveActivityDr
9696
'Get-MgDriveListItemField', 'Get-MgDriveListItemVersion',
9797
'Get-MgDriveListItemVersionField', 'Get-MgDriveListSubscription',
9898
'Get-MgDriveRoot', 'Get-MgDriveSpecial', 'Invoke-MgRecentDrive',
99-
'Invoke-MgSharedDrive', 'New-MgDrive', 'New-MgDriveActivity',
100-
'New-MgDriveActivityListItemActivity',
101-
'New-MgDriveActivityListItemVersion', 'New-MgDriveBundle',
102-
'New-MgDriveFollowing', 'New-MgDriveItem', 'New-MgDriveListActivity',
103-
'New-MgDriveListActivityListItemActivity',
99+
'Invoke-MgSharedDrive', 'New-MgDriveActivityListItemVersion',
100+
'New-MgDriveBundle', 'New-MgDriveFollowing', 'New-MgDriveItem',
104101
'New-MgDriveListActivityListItemVersion', 'New-MgDriveListColumn',
105102
'New-MgDriveListContentType',
106103
'New-MgDriveListContentTypeColumnLink', 'New-MgDriveListItem',
107-
'New-MgDriveListItemActivity', 'New-MgDriveListItemVersion',
108-
'New-MgDriveListSubscription', 'New-MgDriveSpecial', 'Remove-MgDrive',
109-
'Restore-MgDriveActivityListItemVersion',
104+
'New-MgDriveListItemVersion', 'New-MgDriveListSubscription',
105+
'New-MgDriveSpecial', 'Restore-MgDriveActivityListItemVersion',
110106
'Restore-MgDriveListActivityListItemVersion',
111-
'Restore-MgDriveListItemVersion', 'Search-MgDrive', 'Update-MgDrive',
112-
'Update-MgDriveActivity', 'Update-MgDriveActivityDriveItem',
113-
'Update-MgDriveActivityListItem',
114-
'Update-MgDriveActivityListItemActivity',
107+
'Restore-MgDriveListItemVersion', 'Search-MgDrive',
108+
'Update-MgDriveActivityDriveItem', 'Update-MgDriveActivityListItem',
115109
'Update-MgDriveActivityListItemDriveItem',
116110
'Update-MgDriveActivityListItemField',
117111
'Update-MgDriveActivityListItemVersion',
118112
'Update-MgDriveActivityListItemVersionField',
119113
'Update-MgDriveBundle', 'Update-MgDriveFollowing',
120114
'Update-MgDriveItem', 'Update-MgDriveList',
121-
'Update-MgDriveListActivity', 'Update-MgDriveListActivityDriveItem',
115+
'Update-MgDriveListActivityDriveItem',
122116
'Update-MgDriveListActivityListItem',
123-
'Update-MgDriveListActivityListItemActivity',
124117
'Update-MgDriveListActivityListItemDriveItem',
125118
'Update-MgDriveListActivityListItemField',
126119
'Update-MgDriveListActivityListItemVersion',
127120
'Update-MgDriveListActivityListItemVersionField',
128121
'Update-MgDriveListColumn', 'Update-MgDriveListContentType',
129122
'Update-MgDriveListContentTypeColumnLink',
130123
'Update-MgDriveListDrive', 'Update-MgDriveListItem',
131-
'Update-MgDriveListItemActivity',
132124
'Update-MgDriveListItemActivityDriveItem',
133125
'Update-MgDriveListItemActivityListItem',
134126
'Update-MgDriveListItemDriveItem', 'Update-MgDriveListItemField',

src/Files.Drives/Files.Drives/readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ 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: ^.*.drive_(Create|Update|Delete)Drive$|^drive.*_(Create|Update|Delete)Activities$
44+
45+
```
46+
3547
### Versioning
3648

3749
``` yaml

src/Groups.Actions/Groups.Actions/Microsoft.Graph.Groups.Actions.psd1

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

99
@{
@@ -12,13 +12,13 @@
1212
RootModule = './Microsoft.Graph.Groups.Actions.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 = '6e645df9-458c-4feb-bd80-3088cb33a5c4'
21+
GUID = 'c067da4d-eaa1-4e28-b6a9-eca6c2d5f623'
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.Groups.Actions.private.dll'
@@ -71,20 +71,10 @@ FormatsToProcess = './Microsoft.Graph.Groups.Actions.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 = 'Add-MgGroupFavorite', 'Confirm-MgGroupGrantedPermission',
7373
'Confirm-MgGroupMemberGroup', 'Confirm-MgGroupMemberObject',
74-
'Copy-MgGroupOnenoteNotebook',
75-
'Copy-MgGroupOnenoteNotebookSectionGroupSectionPageToSection',
76-
'Copy-MgGroupOnenoteNotebookSectionGroupSectionToNotebook',
77-
'Copy-MgGroupOnenoteNotebookSectionGroupSectionToSectionGroup',
78-
'Copy-MgGroupOnenoteNotebookSectionPageToSection',
79-
'Copy-MgGroupOnenoteNotebookSectionToNotebook',
80-
'Copy-MgGroupOnenoteNotebookSectionToSectionGroup',
81-
'Copy-MgGroupOnenotePageToSection',
82-
'Copy-MgGroupOnenoteSectionGroupSectionPageToSection',
83-
'Copy-MgGroupOnenoteSectionGroupSectionToNotebook',
84-
'Copy-MgGroupOnenoteSectionGroupSectionToSectionGroup',
85-
'Copy-MgGroupOnenoteSectionPageToSection',
74+
'Copy-MgGroupOnenoteNotebook', 'Copy-MgGroupOnenotePageToSection',
8675
'Copy-MgGroupOnenoteSectionToNotebook',
87-
'Copy-MgGroupOnenoteSectionToSectionGroup', 'Get-MgGroupById',
76+
'Copy-MgGroupOnenoteSectionToSectionGroup',
77+
'Get-MgGroupAvailableExtensionProperty', 'Get-MgGroupById',
8878
'Get-MgGroupCalendarEventCalendarSchedule',
8979
'Get-MgGroupCalendarSchedule', 'Get-MgGroupEventCalendarSchedule',
9080
'Get-MgGroupMemberGroup', 'Get-MgGroupMemberObject',
@@ -138,11 +128,7 @@ FunctionsToExport = 'Add-MgGroupFavorite', 'Confirm-MgGroupGrantedPermission',
138128
'Stop-MgGroupCalendarEventInstance', 'Stop-MgGroupEvent',
139129
'Stop-MgGroupEventCalendarEvent', 'Stop-MgGroupEventInstance',
140130
'Test-MgGroupDynamicMembership', 'Test-MgGroupProperty',
141-
'Update-MgGroupOnenoteNotebookSectionGroupSectionPageContent',
142-
'Update-MgGroupOnenoteNotebookSectionPageContent',
143-
'Update-MgGroupOnenotePageContent',
144-
'Update-MgGroupOnenoteSectionGroupSectionPageContent',
145-
'Update-MgGroupOnenoteSectionPageContent'
131+
'Update-MgGroupOnenotePageContent'
146132

147133
# 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.
148134
CmdletsToExport = @()

src/Groups.Actions/Groups.Actions/readme.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,17 @@ require:
3131
title: $(service-name)
3232
subject-prefix: ''
3333

34+
```
35+
36+
### Directives
37+
38+
> see https://github.com/Azure/autorest/blob/master/docs/powershell/directives.md
39+
40+
``` yaml
41+
3442
directive:
3543
# Remove paths that have /parent* or /calendarView*.
36-
- remove-path-by-operation: groups.onenote..*.parent.*|groups.*.calendarView.*
44+
- remove-path-by-operation: groups.onenote..*.parent.*|groups.*.calendarView.*|.*.notebooks.section.*|.*.sectionGroups.section.*|.*.sections.pages.*
3745
# Remove cmdlets.
3846
- where:
3947
verb: Test
@@ -76,6 +84,7 @@ directive:
7684
set:
7785
subject: $1Content
7886
```
87+
7988
### Versioning
8089
8190
``` yaml

src/Groups.Functions/Groups.Functions/Microsoft.Graph.Groups.Functions.psd1

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

99
@{
@@ -12,13 +12,13 @@
1212
RootModule = './Microsoft.Graph.Groups.Functions.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 = 'e6585d87-6296-4b47-8853-78791677715f'
21+
GUID = '37172aed-43de-4cae-9cce-c393900822c4'
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.Groups.Functions.private.dll'
@@ -70,27 +70,13 @@ FormatsToProcess = './Microsoft.Graph.Groups.Functions.format.ps1xml'
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.
7272
FunctionsToExport = 'Get-MgGroupCalendarEventDelta',
73-
'Get-MgGroupCalendarEventInstanceDelta',
74-
'Get-MgGroupCalendarViewCalendarEventDelta',
75-
'Get-MgGroupCalendarViewDelta',
76-
'Get-MgGroupCalendarViewInstanceDelta', 'Get-MgGroupDelta',
77-
'Get-MgGroupEventCalendarEventDelta',
78-
'Get-MgGroupEventCalendarViewDelta', 'Get-MgGroupEventDelta',
79-
'Get-MgGroupEventInstanceDelta',
80-
'Get-MgGroupOnenoteNotebookRecentNotebook',
73+
'Get-MgGroupCalendarEventInstanceDelta', 'Get-MgGroupDelta',
74+
'Get-MgGroupEventCalendarEventDelta', 'Get-MgGroupEventDelta',
75+
'Get-MgGroupEventInstanceDelta', 'Get-MgGroupOnenoteRecentNotebook',
8176
'Invoke-MgCalendarGroupCalendar',
8277
'Invoke-MgCalendarGroupCalendarEventCalendar',
83-
'Invoke-MgCalendarGroupCalendarViewCalendar',
8478
'Invoke-MgCalendarGroupEventCalendar',
85-
'Invoke-MgPreviewGroupOnenoteNotebookSectionGroupSectionPage',
86-
'Invoke-MgPreviewGroupOnenoteNotebookSectionPage',
87-
'Invoke-MgPreviewGroupOnenotePage',
88-
'Invoke-MgPreviewGroupOnenotePageParentNotebookSectionGroupSectionPage',
89-
'Invoke-MgPreviewGroupOnenotePageParentNotebookSectionPage',
90-
'Invoke-MgPreviewGroupOnenotePageParentSectionPage',
91-
'Invoke-MgPreviewGroupOnenoteSectionGroupParentNotebookSectionPage',
92-
'Invoke-MgPreviewGroupOnenoteSectionGroupSectionPage',
93-
'Invoke-MgPreviewGroupOnenoteSectionPage'
79+
'Invoke-MgPreviewGroupOnenotePage'
9480

9581
# 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.
9682
CmdletsToExport = @()

0 commit comments

Comments
 (0)